#include "stdafx.h" |
#include"iostream" |
using namespace std; |
class Limit |
{ |
public : |
char name[30]; |
void accept() |
{ |
cout << "\n Enter Your Name,please!" ; |
cin >> name; |
cout << "\n Your name is:" << name << endl; |
} |
}; |
int main() |
{ |
Limit c; |
c.accept(); |
cout << c.name << endl; |
} |
//2014年4月22日19:36:38 |
//20行 |