- 博客(0)
- 资源 (2)
空空如也
非常实用的C++源码
#include<iostream>
#include<string>
using namespace std;
class Student
{
char* name;
char* id;
int score;
public:
Student(char* n="noname",char* i="2007",int s=59)
{
name=n;
id=i;
score=s;
cout<<"调用构造函数Student"<<endl;
}
char* getname(){return name;cout<<"调用函数getname"<<endl;}
char* getid(){return id;cout<<"调用函数getid"<<endl;}
int getscore(){return score;cout<<"调用函数getscore"<<endl;}
void printall()
{
cout<<"name :"<<name<<endl;
cout<<"id :"<<id<<endl;
cout<<"score :"<<score<<endl;
}
~Student(){cout<<"调用析构函数~Student"<<endl;}
};
int main()
{
Student hkb1;
Student hkb2("hongkaibo","20070301215",90);
hkb1.printall();
hkb2.printall();
}
2009-11-23
超漂亮的淘宝客商城网源码
很不错的源码哦
淘宝商品推广,店铺推广及管理功能。
淘宝商品,店铺一键更换PID.
淘宝搜索推广代码,合作标示代码均在后台添加.
客户注册与否均可购物、留言、评论、发送站内消息。
2009-09-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人