摘要: #include using namespace std; class CTimeType//定义时间类 { int hour,minute,second; //成员变量 public: CTimeType(int h=12,int m=0,int s=0) ... 阅读全文
posted @ 2017-03-14 11:49 smile带着你 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; class A { public: void f() { cout f(); return 0; } 阅读全文
posted @ 2017-03-14 11:48 smile带着你 阅读(100) 评论(0) 推荐(0) 编辑
摘要: /* 2016年7月27日10:28:49 文件"compilation.cpp" */ #include "compilation.h" #include extern "C" {int add(int x,int y);}//非成员函数 int add(int x,int y) { return x + y; } //以下为成员函数 double C::f(int i) { ... 阅读全文
posted @ 2016-07-27 10:34 smile带着你 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 前言 刚接触lex yacc,学习一下!!http://www.cnblogs.com/welkinwalker/archive/2012/04/09/2439065.html相关内容来源于上述博客 lex是什么? lex:lexical analysis,词法分析。符号提取。实际上这是提取编程语言 阅读全文
posted @ 2016-06-30 14:18 smile带着你 阅读(199) 评论(0) 推荐(0) 编辑