#include
using namespace std;
class Test
{
public:
Test();
~Test();
int getdata();
int showdata();
std::string m_data;
};
Test::Test()
{
}
Test::~Test()
{
}
int Test::getdata()
{
std::string tmp;
while(1)
{
cin>>tmp;
///输入为e就退出
if(tmp == "e"||tmp == "E")
{
break;
}
//大于10 或者小于0 都不存
if(10
{
continue;
}
m_data+=tmp;
}
return 0;
}
int Test::showdata()
{
cout<<"输出:"<
}
int _tmain(int argc, _TCHAR* argv[])
{
Test aa;
aa.getdata();
aa.showdata();
return 0;
}
有不懂可以再问