All that is necessary for evil to succeed is that good people do nothing! Support Act for America

C++ question - Anarchist Cookbook
Anarchist Cookbook  

Go Back   Anarchist Cookbook > Anarchist Cookbook > Hacking

Hacking Hacking related discussions.

Reply
 
Thread Tools Search this Thread Display Modes
Old March 22nd, 2007   #1
schecter
Junior Member
Points: 922, Level: 11
Points: 922, Level: 11 Points: 922, Level: 11 Points: 922, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
schecter's Avatar
 

Last Online: May 17th, 2009 12:36 PM
Join Date: Mar 2007
Posts: 24
Cash Credits: 80
schecter RSS Feed
C++ question

Hi
I'm trying to write a program that would make something happen after so many seconds. I'm pretty sure I'd have to put in:

#include <time.h>

but I'm not totally sure and if any of you can help could you please show me what to do to make it calculate the seconds and start something after a few minutes.

Thanks,
Schecter
schecter is offline   Reply With Quote
Old March 22nd, 2007   #2
ishkur88
Senior Member
Points: 5,313, Level: 31
Points: 5,313, Level: 31 Points: 5,313, Level: 31 Points: 5,313, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
ishkur88's Avatar
 

Last Online: 1 Day Ago 06:01 PM
Join Date: Nov 2006
Location: the internet.
Age: 25
Posts: 1,104
Cash Credits: 6,002
ishkur88 RSS Feed
Send a message via AIM to ishkur88 Send a message via MSN to ishkur88 Send a message via Yahoo to ishkur88
errr....hmmmmmm....Google... literally 1.5 sec worth of searching:

* http://www.google.com/search?hl=en&q...=Google+Search

i posted the Google Syntax for a reason... you had a genuine question, so I'll go easy, but damn... learn how to use Google...
__________________
I am not young enough to know everything.
ishkur88 is offline   Reply With Quote
Old March 22nd, 2007   #3
schecter
Junior Member
Points: 922, Level: 11
Points: 922, Level: 11 Points: 922, Level: 11 Points: 922, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
schecter's Avatar
 

Last Online: May 17th, 2009 12:36 PM
Join Date: Mar 2007
Posts: 24
Cash Credits: 80
schecter RSS Feed
thanks a lot man it really helped :] haha and thanks for not bitching :P
schecter is offline   Reply With Quote
Old March 22nd, 2007   #4
Cuddles
Senior Member
Points: 8,263, Level: 39
Points: 8,263, Level: 39 Points: 8,263, Level: 39 Points: 8,263, Level: 39
Activity: 48%
Activity: 48% Activity: 48% Activity: 48%
 
Cuddles's Avatar
 

Last Online: 1 Day Ago 01:14 PM
Join Date: Dec 2005
Location: i dont know, but its aweful hot...
Posts: 2,028
Cash Credits: 6,367
Cuddles RSS Feed
Send a message via AIM to Cuddles Send a message via MSN to Cuddles
you would probably be best using time.h, and using the get time function(i dont remember it's syntax, ive only used it once or so), within a loop, and after the difference in time is found, if it's greater than a certain amount, it runs a loop, however, there is most certainly a simpler way to do that, and google would certainly help more.
__________________
Caution: the above post may cause anal leakage if not taken with alcohol.
Cuddles is offline   Reply With Quote
Old March 22nd, 2007   #5
schecter
Junior Member
Points: 922, Level: 11
Points: 922, Level: 11 Points: 922, Level: 11 Points: 922, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
schecter's Avatar
 

Last Online: May 17th, 2009 12:36 PM
Join Date: Mar 2007
Posts: 24
Cash Credits: 80
schecter RSS Feed
thanks :] yea I'm trying to make something to send to someone i know just to have IE open up every 5 minutes or so just to mess with him :P. I also just want to familiarize with the language and get used to writing with it.
schecter is offline   Reply With Quote
Reply

Tags
question


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:01 PM.


Powered by Anarchy and vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios