cd141.cpp [C++]
#include <iostream>
#include <string>
using namespace std;
int main(){
string name;
int age;
cout << "お名前を入力して下さい:";
cin >> name;
cout << "ご年齢を入力して下さい:";
cin >> age;
cout << name << "さん、こんにちは。" << endl;
cout << "貴方は" << age << "歳なんですね。" << endl;
return 0;
}
─────
2012-03-03 08:24
nice!(0)
コメント(0)
トラックバック(0)
コメント 0