博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年11月12日

摘要: 1 /**********使用*********** 2 CreateToolhelp32Snapshot( ) 3 Process32First( ) 4 Process32Next( ) 5 枚举进程的相关信息 6 **************************/ 7 ... 阅读全文

posted @ 2014-11-12 13:34 六年一班刘同学 阅读(511) 评论(0) 推荐(0) 编辑

2014年10月23日

摘要: 1 这个是头文件,建立成.h 2 3 #include "windows.h" 4 #include "malloc.h"//使用函数malloc,必须要导入这个头文件. 5 6 7 8 //创建普通的一个类型为USER的结构体 9 struct USER 10 { 11... 阅读全文

posted @ 2014-10-23 22:35 六年一班刘同学 阅读(1622) 评论(0) 推荐(0) 编辑

2014年10月22日

摘要: 3 4 #include "stdafx.h" 5 6 int main(int argc, char* argv[]) 7 { 8 int a; 9 int b;10 int* const p1 = &a; //常量指针,指针不可以改,但是指针指向的内容... 阅读全文

posted @ 2014-10-22 21:54 六年一班刘同学 阅读(239) 评论(0) 推荐(0) 编辑

摘要: 1 // 变量在不同区域的默认初始值.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 6 //定义全局变量 7 int* p; 8 int a; 9 char c... 阅读全文

posted @ 2014-10-22 12:36 六年一班刘同学 阅读(219) 评论(0) 推荐(0) 编辑

2014年10月17日

摘要: 1 // 数值指针和指针数组 2 // C语言环境 3 4 #include "stdafx.h" 5 6 int main(int argc, char* argv[]) 7 { 8 //数组指针,是一个指针. 这个指针指向一个数组. 9 //指针数组,是一个数组. 这个数组... 阅读全文

posted @ 2014-10-17 22:17 六年一班刘同学 阅读(157) 评论(0) 推荐(0) 编辑

2014年10月12日

摘要: 1 #include "stdafx.h" 2 #include "iostream" 3 4 using namespace std; 5 6 class CStu 7 { 8 private: 9 int M_Id;10 int M_Age;11 public:12 ... 阅读全文

posted @ 2014-10-12 17:18 六年一班刘同学 阅读(351) 评论(0) 推荐(0) 编辑

2014年10月11日

摘要: 1 // test_构造函数2.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include "iostream" 6 7 using namespace s... 阅读全文

posted @ 2014-10-11 23:08 六年一班刘同学 阅读(4042) 评论(0) 推荐(0) 编辑

摘要: 1 #include "stdafx.h" 2 #include "iostream" 3 4 using namespace std; 5 6 class stu 7 { 8 private: 9 int Id;10 int Age;11 int Tall;12 ... 阅读全文

posted @ 2014-10-11 17:38 六年一班刘同学 阅读(557) 评论(0) 推荐(0) 编辑

2014年10月10日

摘要: 1 // section_8.cpp : Defines the entry point for the console application. 2 //范磊 C++ 第8章 指针 3 //指针本质也是一个变量,只是这个变量存放的数据比较特殊,怎么特殊? 4 //里面存放的是别人家的地址... 阅读全文

posted @ 2014-10-10 23:31 六年一班刘同学 阅读(239) 评论(0) 推荐(0) 编辑

2014年10月9日

摘要: 1 // section_7.cpp : Defines the entry point for the console application. 2 //范磊 C++ 第7章 循环语句 3 4 #include "stdafx.h" 5 #include "iostream" 6 ... 阅读全文

posted @ 2014-10-09 17:20 六年一班刘同学 阅读(175) 评论(0) 推荐(0) 编辑