|
|
back to boardShow all messages Hide all messageshi I am facing problem in converting. I try this: string lock1; int x; cin>>lock1; x= atoi(lock1.c_str()); it works but when I submit it it gives me compilation error, so any ideas or other way to convert from string to integer??? thank you. no thing wrong with my code the only thing missing that I did not include<cstring> and <string> and it's works now :) |
|
|