No sleep(); C++ function


#1

When I was writing a small textRPG after migrating from XCode to c9, I was surprised to see that there was an error when I put in the sleep(); function. And this function was VERY important for my textRPG and it worked in XCode, I would like to use c9 for my textRPG but I need my sleep();function or m,y textRPG will be broken so I am forced to use XCode for now. Thanks!
I don’t know whether this is a bug or the language support isn’t that good.


#2

Most likely because you are using a function that is not cross-platform. Remember c9 is Linux. Try this.
http://stackoverflow.com/a/10918411