@related : CPlusPlus static virtual vector map
Executable images created for the DOS/Wintel environment (but not employing the Win32 API), using the GNU GCC compilers and language standards, are subject to failure (or performance degradation) when executed in Microsoft Windows Vista, because Vista arbitrarily restricts the memory space for the GCC executable to 32 MB
read more : http://www.trnicely.net/misc/vista.html
#include <string> #include <iostream> // std::cout, std::cerr #include <strstream> // deprecated using namespace std; int main(int argc, char* argv[]) { char* str="http://rzr.online.fr 42\0"; strstream s; s<<str<<endl; //now >> can be used string w; s>>w; cout<<"# will print 1string : \"" << w<<'\"'<<endl; // # will print 1string : "http://rzr.online.fr" int i; s>>i; cout<<"# will print int : \"" << i <<'\"'<<endl; // # will print int : "42" }