You are here:

C++/okay....still a few problems


Hi eddie....
how are you?? hope ur doin well...
my questions are-

i tried the sleep() but the compiler points out an error that sleep() needs a prototype...however i have the windows.h file in the header file so i really dont know what the problem is....

However is there any alternate program i can use...i have dev-c++ but i dont usually compile on that program because at college we use turbo c++...

regarding the menu...that would be a good idea but someone recently posted on a foroum that the function return would be a better idea...any particular way of using it and what header file does it belong to...

Is the time() and sleep() similar in any manner..i soemhow got the time function to work but when running the program it makes the program a bit "yucky" as it looks like the pc got hung .....

Lol..anyways keep helping and thanks a lot for taking your time...

Varun Kumar
p.s. - is there any chance personal correspondence would do?? i really appreciate it that way..

Hello Varun, thank you for the question.

I don't know if this was just an oversite, but the function is called Sleep() with an uppercase s. This might fix your error.

I am unaware of a function called return. In fact, it couldn't be called that since that is a keyword.

The time function actually gets the time of day from the hardware. Sleep forces a system pause.

No problem. Let me know if you have any more problems.

- Eddie


All Answers

Answers by Expert:

Ask Experts




I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by I also know a good deal about graphics via OpenGL, and GUIs.


I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2017 All rights reserved.