上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页
摘要: 仅供参考,大家要学会自己制作,很有成就感的啊! 先看《c++标准程序库》这本书很厚,但是其实很简单,然后再看effective stl,注意顺序,我初学的时候stl还没了解多少就看effective stl,真是痛苦啊,看了好几天没搞定几个item,后来我改看《c++标准程序库》回头再看effect... 阅读全文
posted @ 2015-07-26 10:19 QQ76211822 阅读(178) 评论(0) 推荐(0) 编辑
摘要: int nData = 1568;//转二进制 for (int i = sizeof(int) * 8 - 1; i >= 0; i--){ if ((nData >>i) & 1){ printf("%d", 1); } else{ printf("%d", 0); } } pr... 阅读全文
posted @ 2015-06-29 20:40 QQ76211822 阅读(251) 评论(0) 推荐(0) 编辑
摘要: char b[11] = {'1', '2', '3', '4', '5', '6', '7', '8', '9', '0'}; const int iShift = 4; for (int j = 0; j < iShift; j++){//循环左移 char pTem = b[0]; for... 阅读全文
posted @ 2015-06-29 20:40 QQ76211822 阅读(256) 评论(0) 推荐(0) 编辑
摘要: char c[11] = {'1', '2', '3', '4', '5', '6', '7', '8', '9', '0'}; const int iRightShift = 8; for (int j = 0; j = 0; i--){ if (i == 0){ c[i] = pTem... 阅读全文
posted @ 2015-06-29 20:39 QQ76211822 阅读(704) 评论(0) 推荐(0) 编辑
摘要: char a[123] = {'Z', 's', 'p', 'l', 'j', 'r', 'q', 'v', 'n', 'm', 'C', 'F', 'D', 'B', 'A', '2', '0', 'Z', ' '}; for (int i = 0; i < strlen(a); i++ 阅读全文
posted @ 2015-06-29 20:38 QQ76211822 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: __cdecl与__stdcall这两种调用约定之间的主要差别在于由谁来执行对参数的清理工作。如果是__cdecl,那么主调函数将负责执行清理工作,如果是__stdcall那被调函数将负责执行清理。通常,我们倾向于使用__stdcall,它能够减少生成代码的规模。因为不需要每次调用时,都在返回后对... 阅读全文
posted @ 2015-06-29 10:32 QQ76211822 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 项目--属性 ---连接器---命令行 输入:/FORCE:MULTIPLE编译环境:VS2012SP3 阅读全文
posted @ 2015-06-29 10:26 QQ76211822 阅读(349) 评论(0) 推荐(0) 编辑
摘要: //定义类成员函数特化类型#include "stdafx.h"#include using namespace std;typedef float typeNew;templateclass MyClass{public: MyClass(); ~MyClass(); T &Get(const T... 阅读全文
posted @ 2015-06-14 11:48 QQ76211822 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include using namespace std;templateclass MyClass{public: MyClass(); ~MyClass(); T &Get(const T&);private:};MyClass::MyClass(){}My... 阅读全文
posted @ 2015-06-14 11:47 QQ76211822 阅读(127) 评论(0) 推荐(0) 编辑
摘要: //一般模板友元关系#include "stdafx.h"#include using namespace std;templateclass MyClass{public: MyClass(); ~MyClass(); templatefriend class MyClass1; template... 阅读全文
posted @ 2015-06-14 11:47 QQ76211822 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页