第一个C++程序如下:
#include
#include
using namespace std;
void main()
{
string str;
printf("Input a line:");
cin>>str;
for(string::iterator iter = str.begin(); iter != str.end(); ++iter)
{
if( ((*iter >= 'a' ) && (*iter = 'A')&&(*iter 'z')&&(*iter'Z')&&(*ite