摘要:
c++习惯将定义放在头文件中 实现放在cpp文件中 容易出现的错误 错误1: error C2143: syntax error : missing ';' before 'PCH creation point' 该错误是因为 头文件类定义结束时要加 ;结尾 不然... 阅读全文
posted @ 2010-06-10 20:14
饺子吃遍天
阅读(239)
评论(0)
推荐(0)
摘要:
c++习惯将定义放在头文件中 实现放在cpp文件中 容易出现的错误 错误1: error C2143: syntax error : missing ';' before 'PCH creation point' 该错误是因为 头文件类定义结束时要加 ;结尾 不然... 阅读全文
posted @ 2010-06-10 20:14
饺子吃遍天
阅读(133)
评论(0)
推荐(0)
摘要:
继承 #include class A{public: static void add(){ couthand=hand; } int hand; void walk() { coutclass Person{public: Person(int hand) ... 阅读全文
posted @ 2010-06-10 00:26
饺子吃遍天
阅读(110)
评论(0)
推荐(0)
摘要:
继承 #include class A{public: static void add(){ couthand=hand; } int hand; void walk() { coutclass Person{public: Person(int hand) ... 阅读全文
posted @ 2010-06-10 00:26
饺子吃遍天
阅读(89)
评论(0)
推荐(0)
摘要:
#include //引用传递int add1(int &x,int &y){ x=5; return x+y;};//指针传递int add2(int *x,int *y){ *x=5; return *x+*y;};//值传递int add3(int x,int ... 阅读全文
posted @ 2010-06-10 00:20
饺子吃遍天
阅读(79)
评论(0)
推荐(0)
摘要:
#include //引用传递int add1(int &x,int &y){ x=5; return x+y;};//指针传递int add2(int *x,int *y){ *x=5; return *x+*y;};//值传递int add3(int x,int ... 阅读全文
posted @ 2010-06-10 00:20
饺子吃遍天
阅读(101)
评论(0)
推荐(0)