Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

what is wrong with stoi

$
0
0

include<bits stdc++.h="">

include<string.h>

include<stdlib.h>

using namespace std;

int main() { string str1="10"; int i=0; while(str1[i]!='!') { i++; } // string str2=str1.substr(i+1,str1.length()); // cout<<str2; int k; k= stoi( str1 ); cout<<k; return 0; }


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>