M
Michael
Hi,
I am using Quincy99 and do not have sstream library to use. I want to
convert string "123" to integer 123. How to get the work done? Thanks!
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string a ("123");
int b;
b=int(a);
cout << b;
return 0;
}
Thanks a lot!
Michael
I am using Quincy99 and do not have sstream library to use. I want to
convert string "123" to integer 123. How to get the work done? Thanks!
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string a ("123");
int b;
b=int(a);
cout << b;
return 0;
}
Thanks a lot!
Michael