Hello, I've been looking arround the internet, and I found the command wait(15);
to wait for 15 secons.
I used the header #include <time.h>
and I got an error.
Can someone please help me and tell me what I've been doing wrong?
TailsTheFox 0 Light Poster
Recommended Answers
Jump to PostIf ur on windows, use Sleep(milliseconds) located on windows.h. If ur on linux use sleep(seconds) located on unistd.h
Jump to PostI think wait() is an old Turbo C function.
Jump to PostStandards use the sleep(seconds) function, not wait.
Jump to PostNo you haven't. Windows uses Sleep() not sleep() (capital S). Also, *nix sleep() parameter is in seconds -- MS-Windows Sleep() parameter is milliseconds.
All 15 Replies
VernonDozier 2,218 Posting Expert Featured Poster
GDICommander 54 Posting Whiz in Training
mrnutty 761 Senior Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
TailsTheFox commented: Actually answered the question! +1
TailsTheFox 0 Light Poster
TailsTheFox 0 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
VernonDozier 2,218 Posting Expert Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
VernonDozier 2,218 Posting Expert Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.