0

When I run my program it really fast so I dont see what program is runnig.Then the question how to make to see what it working?(Anything unless getch())

3rd Sep 2016, 11:01 AM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar
3 odpowiedzi
+ 2
Depending on your IDE, there are some settings you can change to keep it from exiting so quickly. Or you could do system("pause"); at the end of your program (before return 0).
3rd Sep 2016, 1:01 PM
Cohen Creber
Cohen Creber - avatar
+ 2
If you want to slow down the iterations.. you may use the sleep function... The next line of code will execute after given amount of time... Thus making it easier for you to interpret whats going on... . Use <unistd.h> header file. . sleep(int time(in seconds)); . Hope this helps.
16th Nov 2016, 8:20 AM
Shashank Sharma
Shashank Sharma - avatar
+ 1
Woo thnx! I forget to tell that I want the thing which isnt use <conio.h> and getch()
3rd Sep 2016, 1:08 PM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar