技术支持练习
文章平均质量分 72
狼之图腾
天道酬勤,我命由我不由天 !
展开
-
编写一个标准类—Box
编写一个标准类—Box Main函数: #include #include"Box.h" using namespace std; int main() { Box box1; cout<<"The volume of box1 is "<<box1.volume()<<endl; Box box2(20,30,40); cout<<"The volume of b原创 2012-05-27 13:50:05 · 943 阅读 · 0 评论 -
编写一个标准类—Student
编写一个标准类—Student Main函数: #include #include #include "Student.h" using namespace std; int main() { Student student("xiaoming", "123"); student.display(); student.set_pass_word("456");原创 2012-05-27 13:44:11 · 662 阅读 · 0 评论 -
C++经典题目(1)辨析输出结果
#include using namespace std; int main() { int m = 0,n = 0,a = 0,b = 0,c = 0,d = 0; (m=n==b)||(n=c==d); cout << m << endl; cout << n << endl; return 0; }原创 2012-10-29 17:21:20 · 784 阅读 · 0 评论