65,211
社区成员
发帖
与我相关
我的任务
分享
string s;
cin>>s;
if(strcmp(">", s.c_str)==0)
{
cout < <"准备向右翻页" < <endl;....
}
if(strcmp(">", s.c_str)==0)
{
cout < <"准备向左翻页" < <endl;....
}
if(strcmp("123", s.c_str)==0) //如果客户的是0123则是错误的
{
cout < <"你选择了当前页面的第123项:" < <endl;....
}