Can someone help me to slove the problem please.

chchiu2009 2008-12-01 10:42:03
Can someone help me to slove the three problem please. $20USD
...全文
157 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhanshen2891 2008-12-03
  • 打赏
  • 举报
回复
Can someone help me to solve the three problem please. $20USD

问题已解决,参见color
bobye1230 2008-12-03
  • 打赏
  • 举报
回复
实在是上班闲得有点闷的慌。。。。



#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

bool findDigit(const char* text, const char *model)
{
const char *first=&text[0], *end=&text[strlen(text)+1];
for(int i=0;i<strlen(model);i++)
{
first = find(first,end,model[i]);
if(first==end)
return false;
}
return true;
}
void toUpper(char &a)
{
a = toupper(a);
}
int main()
{
int b = 1;
char* example[9] = {"ONE","TWO","THERE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE"};
char* a = new char[100];
cout<<"input the word \"quit\" to quit the program."<<endl;
do
{
bool match = false;
cout<<"input word:"<<endl;
cin>>a;
for_each(&a[0],&a[strlen(a)],toUpper);
for(int i=0;i<9;i++)
{
if(findDigit(a,example[i]))
{
cout<<a<<endl<<i+1<<endl;
match = true;
}
}
if(!match)
cout<<a<<endl<<"NO"<<endl;
}while(strcmp(a,"QUIT"));
return 0;
}
yndfcd 2008-12-02
  • 打赏
  • 举报
回复
哇哈哈200刀还差不多.
sumerainping 2008-12-02
  • 打赏
  • 举报
回复
........................
once_and_again 2008-12-02
  • 打赏
  • 举报
回复
no,for your poor english ..
chchiu2009 2008-12-02
  • 打赏
  • 举报
回复
Where can i found 代码民工??any suggestion?
Zark 2008-12-01
  • 打赏
  • 举报
回复
哪个学校的?

一般来说代码民工的小时工资是$110,解决你的问题约需1/2小时,计费$55.00,加8.625%的消费税,再收15%的小费.
chchiu2009 2008-12-01
  • 打赏
  • 举报
回复
http://www.colxe.com/task.doc
WYhack 2008-12-01
  • 打赏
  • 举报
回复
装逼,还用英语来着!!!
kier2 2008-12-01
  • 打赏
  • 举报
回复
??
霍大脚 2008-12-01
  • 打赏
  • 举报
回复

把题目写出来先
星羽 2008-12-01
  • 打赏
  • 举报
回复
faint ~~
yangkunhenry 2008-12-01
  • 打赏
  • 举报
回复
?

65,210

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧