Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.41K
How do you convert a string to an int? In my book under string functions, it shows this short example: [CODE]ia = atoi ("-123.45xyz"); [/CODE] which says that ia = 123. So, I tried applying this to my code. [CODE] index = atoi (a.GetCode()); cout<<description[index]; //a.GetCode() returns a number string … |