|
-
January 30th, 2003, 05:59 AM
#1
Convert int to String and vice versa
Hi
Can any one let me know how to convert int to string and vice versa.
Thanks
----------------------------------------------------------
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
int main()
{
vector<string> removeClusters;
int i = 0;
int j = 2;
//FALLS HERE
removeClusters.push_back(i+j);
removeClusters.push_back("1");
for (int i = 0; i < (removeClusters.size() ) ; i++)
{
cout << "Cluster Vector Data " << removeClusters[i] << endl;
}
return 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|