|
|
发表于 14-3-2006 01:25 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 01:28 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 01:29 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 01:30 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 09:15 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 09:52 AM
|
显示全部楼层
哈咯, 我是data comm 的。。
我那个batch 阿,,才有40++ 人。。。
比起sec tech....
少很多!。。。
AI 更是少!。
好像才14 个人罢了。。
每年都是酱紫 ....
还有。。。我是 beta 的。。
呵呵。。
你们好。。。 |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 10:38 AM
|
显示全部楼层
|
不知道小弟可以在这里问功课吗?有programming的问题不会哦! |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 04:24 PM
|
显示全部楼层
原帖由 vwyk 于 14-3-2006 10:38 AM 发表
不知道小弟可以在这里问功课吗?有programming的问题不会哦!
算了啦。
我都问过了。
可是都没有人来睬我。 |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 04:57 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 05:02 PM
|
显示全部楼层
其实在这里也可以问的。。只不过自己也要做功课啦 。。不可能叫人帮你做完吧。。
不明白什么的都可以列下来。。大家可以研究下。。
还有,大家尽量谈多些学术上所面对的问题,私事就免了。。
加油。。! |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 05:03 PM
|
显示全部楼层
哦~原来如此。
谢谢你咯。 |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 08:23 PM
|
显示全部楼层
这里可以问吗?
我的题目是
Write a C++ program that reads input a word at a time until alone q is entered. The program
should then report the number of words that began with vowels, the number that began with
consonants, and the number that fit neither of those categories. One approach is to use
isalpha() to discriminate between words beginning with letters and those that don’t and then
use an if or switch statement to further identify those passing the isalpha() test that begin with
vowels. A sample run might look like this:
Enter words (q to quit)
:
The 12 awesome oxen ambled
quietly across 15 meters of lawn.
q
5 words beginning with vowels
4 words beginning with consonants
2 others |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 08:23 PM
|
显示全部楼层
我只能做到的
#include <iostream>
#include <cstring>
#include <conio.h>
using namespace std;
int main()
{
string v="AEIOU",b;
bool z;
int vovel=0,con=0, other=0;
char g;
int i=0;
while(2==2)
{
b+=static_cast<char>(getch());
if(b[i]=='q')
break;
else
{ cout<<b[i];
i++;}
}
cout<<b<<endl;
cout<<b.length()<<endl;
system("pause");
// b="The 12 awesome oxen ambled quietly across 15 meters of lawn.";
for(int i=0;i<b.length();i++)
{
b[i]=toupper(b[i]);
z=true;
if(i==0)
{ if(isalpha(b[i]))
{ for(int j=0;j<v.length();j++)
{ cout<<b[i]<<" "<<v[j]<<endl;
if(b[i]==v[j])
{ vovel++;z=false; } }
if(z) con++;}
else
other++;
}
else if(b[i]==' ')
{
i++;
b[i]=toupper(b[i]);
if(isalpha(b[i]))
{ for(int j=0;j<v.length();j++)
{ cout<<b[i]<<" "<<v[j]<<endl;
if(b[i]==v[j])
{ vovel++;z=false; } }
if(z) con++;}
else
other++;
}
}
cout<<"VOVEL = "<<vovel<<endl;
cout<<"CON= "<<con<<endl;
cout<<"other = "<<other<<endl;
system("pause");
return 0;
} |
|
|
|
|
|
|
|
|
|
|
发表于 14-3-2006 08:26 PM
|
显示全部楼层
到底要怎样才好〉?
这是beta cp1 assignment o!
很难哦!问了lecturer n tutor(同一个人)哪里出错,他只对我说,‘you think la’,‘if not,wat use i make those question!’
我该怎么办呢? |
|
|
|
|
|
|
|
|
|
|
发表于 15-3-2006 05:38 PM
|
显示全部楼层
原帖由 vwyk 于 14-3-2006 08:26 PM 发表
到底要怎样才好〉?
这是beta cp1 assignment o!
很难哦!问了lecturer n tutor(同一个人)哪里出错,他只对我说,‘you think la’,‘if not,wat use i make those question!’
我该怎么办呢?
你的tutor是谁? |
|
|
|
|
|
|
|
|
|
|
发表于 15-3-2006 07:15 PM
|
显示全部楼层
原帖由 silversly 于 13-3-2006 09:56 AM 发表
我也没说这是我写的,uncle~~~~~~~~!
我只是引用而已
搞清楚状况才发言!
哈哈,失礼,失礼 !想问问阁下是不是仙剑迷? |
|
|
|
|
|
|
|
|
|
|
发表于 15-3-2006 09:03 PM
|
显示全部楼层
原帖由 limcopy 于 15-3-2006 07:15 PM 发表
哈哈,失礼,失礼 !想问问阁下是不是仙剑迷?
失礼了。
别在这里谈论电玩哦!
会被扣分的,别说我没提醒你.
言之过重,请多包涵. |
|
|
|
|
|
|
|
|
|
|
发表于 17-3-2006 06:22 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 17-3-2006 06:28 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 17-3-2006 07:02 PM
|
显示全部楼层
各位大哥大姐好  |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|