+ 1

libraries not working

i wanted to ask a question regarding the libraries. Well, i'm using windows and i'm trying to upload some codes in the code playground. The problem is that functions like _sleep() or fflush(stdin) don't work, even if i include the headers of their respective libraries. (stdio.h and windows.h) They throw me the error "_sleep was not declared in this scope" or "fflush was not declared in this scope". Anyone knows what's happening?

3rd Feb 2017, 7:32 PM
Rodrigo Diaz
Rodrigo Diaz - avatar
1 Answer
+ 6
its Sleep() capital s no _ for the Windows library
3rd Feb 2017, 7:40 PM
Kawaii
Kawaii - avatar