- 博客(7)
- 收藏
- 关注
原创 7.12编程练习
练习1#include double HAverage(double ,double);int main(){ using namespace std; cout << "Enter two numbers(0 to quit): "; double x,y; while(cin >> x >> y) { if (x*y!=0)
2009-04-12 14:39:00
397
原创 8.8编程练习
练习1#include using namespace std;namespace { int run_time=0;}void funny(const char str[], int m=0);int main(){ cout << "Call cout function 1st" << endl; funny("This is cout
2009-04-12 14:37:00
367
原创 6.11编程练习
练习1#include #include using namespace std;int main(){ char ch; int count=0; while((cin >> ch)&&(ch!=@)) { if (!isdigit(ch)) if (islower(ch)) co
2009-04-04 11:41:00
405
原创 cctype字符函数
函数名称 返回值isalnum() 如果参数是字母数字,即字母或数字,该函数返回trueisalpha() 如果参数是字母,该函数返回t
2009-03-14 16:03:00
343
原创 4.11编程练习
练习1#include #include using namespace std;int main(){ char fname[20],lname[20],grade; int age; cout << "What is your first name? "; cin.getline(fname,20); cout <<
2009-03-08 09:57:00
299
原创 3.7编程练习
练习1#include using namespace std;int main(){ const int Inch_per_foot=12; unsigned int height=0; cout << "Enter your height in inches in integer:_____/b/b/b/b/b"; cin >> hei
2009-02-26 11:18:00
385
原创 2.7编程练习
练习1#include int main(){ std::cout<< "my name is lx" << std::endl << "and my address is null" << std::endl; return 0;} 原来endl也是std命名空间中的。 练习2#include int main(){
2009-02-22 09:36:00
291
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人