INPUT
problem solving consists of using generic or ad hoc
methods, in an orderly manner, for finding solutions to problems. some of the problem-solving techniques
developed and used in artificial intelligence,computer
science, engineering, mathematics, medicine, etc.
OUTPUT
Problem solving consists of using generic or ad hoc
methods, in an orderly manner, for finding solutions to problems. Some of the problem-solving techniques
developed and used in artificial intelligence,computer
science, engineering, mathematics, medicine, etc.
#include <iostream>
#include <string>
using namespace
std;
int main()
{
char
ch;
cin >> ch;
cout << (char)(ch+('A'-'a'));
while(cin
>>noskipws>>ch){
if
(ch!='.'){
cout << ch;
}
else
{
cout << ch; //.
cin >> ch; //space
cout << ch;
cin >> ch;
cout << (char)(ch+('A'-'a'));
}
}
//system("Pause");
}
沒有留言:
張貼留言