c++课后习题作业
文章平均质量分 57
pipi090807lili
这个作者很懒,什么都没留下…
展开
-
0143928--皮丽莉---第三章C++作业
#include using namespace std;class Date {public: Date(int,int,int); Date(int,int); Date(int); Date(); void display(); private: int month; int day; int year; };Date::Dat原创 2015-04-19 14:42:36 · 366 阅读 · 0 评论 -
0143928---皮丽莉---第三章的C++作业
3.#include using namespace std;class Date {public: Date(int=1,int=1,int=2005); void display(); private: int month; int day; int year; };Date::Date(int m,int d,int y):month(m),da原创 2015-04-19 14:48:09 · 386 阅读 · 0 评论 -
C++作业
原创 2015-04-20 22:53:09 · 270 阅读 · 0 评论 -
C++ 第四章课后习题作业
1.#include using namespace std;class Complex{public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r; imag=i; } double getreal() { return real;原创 2015-05-20 11:10:00 · 563 阅读 · 0 评论 -
C++课后习题作业
1. #include #include using namespace std;int main(){double a,b,c,s,area; cout<<"please input a,b,c:"; cin>>a>>b>>c; if (a+b<=c) cerr<<"a+b<=c,error!"<<endl; else if(b+c<=a) cerr<<"b+c<=a,e原创 2015-06-16 12:54:27 · 365 阅读 · 0 评论 -
C++课后习题作业
1:#include using namespace std;class Student{public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex:原创 2015-05-18 21:46:30 · 374 阅读 · 0 评论 -
C++课后习题作业
1:#include using namespace std;class Student{public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex:原创 2015-05-18 22:22:09 · 333 阅读 · 0 评论