Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

char to integer C++

//simply Minus a string ZERO from it

char c = '4" ;
cout << c -'0' <<  endl;  		// int-4

//check
cout << c + 2 ;  	// 6
 
PREVIOUS NEXT
Tagged: #char #integer
ADD COMMENT
Topic
Name
7+1 =