Guide > Simple, Basic, and Advanced Data Types > Simple Data Types > Files and Directories

Some Useful Functions

The header <LEDA/system/basic.h> defines several functions and macros that are convenient to have, e.g.,

int read_int(string s) prints s and reads an integer from cin.
float used_time(float& T) returns the cpu time used by the program from time T up to this moment and assigns the current time to T.
void print_statistics() prints a summary of the currently used memory.
and many more ...

See also:

Manual Page Useful Functions




Algorithmic Solutions Software GmbH