- 950 名前:デフォルトの名無しさん mailto:sage [2008/02/04(月) 22:34:51 ]
- >>943
#include<iostream> using namespace std; int main(void){ string s; cout << "学生番号 : "; cin >> s; if(s.length() != 7){ cout << "7文字いれろぼけ" << endl; return 1; } for(string::iterator si = s.begin(); si != s.end(); si++){ if(!isdigit(*si)){ cout << "数字以外いれんなぼけ" << endl; return 1; } } cout << s.c_str() << "@yahoo.co.jp" << endl; return 0; }
|

|