Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::system is an STL function to make a call to your (operating) system.
In this example, the (DOS) command 'dir' is executed and its output written to the file output.txt.
#include <cstdlib> |
The code below shows a program that starts a boost::timer, starts a program that waits 10 seconds, and then displays the time passed. This will always display the time of 0.0 seconds.
#include <cstdlib> |
The solution is to request the actual time before and after:
#include <cstdlib> |
#include <cstdlib> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.