SyntaxFix
Write A Post
Hire A Developer
Questions
#include <iostream> #include <string.h> using namespace std; int main() { string s="000101"; cout<<s<<"\n"; int a = stoi(s); cout<<a<<"\n"; s=to_string(a); s+='1'; cout<<s; return 0; }
Output: