Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- int i;
- string s,b;
- getline(cin, s);
- if (s[0]>'A' && s[0]<'z')
- b=b+'?';
- for (i=0;i<s.length();i++)
- {
- if (s[i]==' ' && s[i+1]>'a' && s[i]<'z')
- b=b+' '+'?';
- else b=b+s[i];
- }
- cout<<b<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement