代码搜索结果
找到约 10,000 项符合
1 的代码
ex4_1_1.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
ex4_1_1.dsp
# Microsoft Developer Studio Project File - Name="Ex4_1_1" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) C
ex4_1_1.cpp
//【例4.1_1】完整商品类对象应用实例。
#include
#include
#include
using namespace std;
class CGoods{
private :
char Name[21] ;
int Amount ;
float Price ;
float Tota
ex8_1_1.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
ex8_1_1.cpp
//【例8.1】由在册人员类公有派生学生类。使用了动态生成的C风格字符串.
#include
#include
enum Tsex{mid,man,woman};
struct course{
char* coursename;
int grade;
};
class Person{
char IdPerson[19];
ex8_1_1.dsp
# Microsoft Developer Studio Project File - Name="Ex8_1_1" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) C
ex10_1_1.cpp
#include
using namespace std;
//不用模板
templateclass pushOnFull{
T _value;
public:
pushOnFull(T i){_value=i;}
T value(){return _value;}
void print(){cerr
c1-3-1.cpp
#include
using namespace std;
int max(int x,int y)
{ int z;
if(x>y) z=x;
else z=y;
return(z);
}
int main()
{ int a,b,m;
cin>>a>>b;
m=max(a,b);
cout