
c program
iteye_6288
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c/cpp programming @ Cygwin
to programming @ Cygwin 1. to install Cygwin - to select the mirror websit : http://www.cygwin.cn/pub/ - to select the following component:binutils gcc gcc-mingw gdbma...2010-04-18 18:15:57 · 118 阅读 · 0 评论 -
makefile 通用
makefile 通用 1. 文件: makefile SRCS = $(wildcard *.c)OBJS = $(SRCS:.c = .o)CC = gccCCFLAGS = -g -Wall -O0INCLUDES = -I/homehello : $(OBJS) $(CC) $^ -o $@ $(INCLUDES) $(LIBS...2010-04-19 11:08:35 · 226 阅读 · 0 评论 -
c/cp++ - int main()
c/c++ main() 是 c/c++ 开发遇到的第一个问题 同时也不是很简单东西 所以今天查点资料 与大家分享 1. 仅2种形态的main()被接受 即: int main()int main(int argc, char *argv[]) 2. 以一个简单例子演示之 * 代码:接受参数 并打印之 include ...2010-04-21 11:51:42 · 232 阅读 · 0 评论 -
static *GetSingletonInstance
to release the source code: 1. Box.h #ifndef BOX_H#define BOX_Husing namespace std;class Box {protected: int fMax; static Box* pfSingletonInstance;...2010-04-21 16:06:23 · 278 阅读 · 0 评论 -
info output w/ level
带leve 信息输出 直接上代码 #include <stdio.h>#include <stdarg.h>#define Error 0#define Warning 1#define Debug 2#define Info 3#define NOW Debugint gErrorMsg(char* fmt,....2010-05-03 17:52:57 · 176 阅读 · 0 评论 -
fstream 文件流 操作
文件流 借助与 fstream 1. 示例代码 #include <iostream.h> #include <fstream.h> using namespace std;int main(){ ofstream data; data.open("./data.txt"); i...原创 2010-05-06 11:56:38 · 324 阅读 · 0 评论