I I'm trying to to convert var a to int with this, but dosn't work? is the use of strtol correct? thanks
Qt Code:
char * pEnd; int num; const char* a = "v"; //why with 'v' doesn't compile???? num = strtol (a, &pEnd, 10); cout << " num " << num << endl; //it print alway 0 }To copy to clipboard, switch view to plain text mode
Bookmarks