最新消息:本站技术交流 QQ 群:28124927

C/C++

ofstream 写文件

ofstream 写文件

exchen 15年前 (2010-03-30) 2293浏览

#include <iostream> #include <fstream> using namespace std ; void main () { char *...

自定义回调函数

自定义回调函数

exchen 16年前 (2009-12-21) 4964浏览

/*程序名称:自定义回调函数实例 作者:exchen(Sysprogram) 日期:2009年12月21日 */ #include <stdio.h> int Print() {...

C++ 构造函数

C++ 构造函数

exchen 16年前 (2009-10-14) 4275浏览

#include <iostream.h> class point { public: int x; int y; //构造函数 point() { x=0; ...

C++ 结构体函数

C++ 结构体函数

exchen 16年前 (2009-10-14) 4896浏览

#include <iostream.h> struct point { int x; int y; void output() { cout << x <...

C++ 结构体

C++ 结构体

exchen 16年前 (2009-10-14) 4292浏览

#include <iostream.h> struct point { int x; int y; }; void main() { point pt; pt.x ...