Search found 1 match

by aur
Fri Aug 12, 2011 4:02 pm
Forum: Volume 109 (10900-10999)
Topic: 10945 - Mother bear
Replies: 65
Views: 15808

Re: 10945 - Mother Bear

I have been getting a weird WA here's my code : #include <iostream> #include <cstdlib> #include <vector> #include <string> using namespace std; int main() { string s; while(getline(cin,s)){ if(s=="DONE") break; for(int i=0;i<s.length();i++) if(s[i] == ' ' || s[i]== '.' || s[i]==',' || s[i]=='!' || s...

Go to advanced search