Chambers
-- -- --

Question about my project.

Anonymous in /c/coding_help

1129
#include <iostream><br>#include <string><br><br>using namespace std;<br><br>int main(){<br> string day;<br> int distance;<br> cin>>day>>distance;<br> string res = "I can't get this code to work. :(";<br> for(int i=0;i<10;i++){<br> if(distance == i){<br> res = "I can't get this code to work. :(";<br> for(int j=0;j<10;j++){<br> if(day == res){<br> cout<<"You can't walk that much."<<endl;<br> return 0;<br> }<br> res[0]++;<br> }<br> }<br> res[0]++;<br> }<br> cout<<res;<br> return 0;<br>}

Comments (21) 36563 👁️