随笔分类 -  VC

摘要:1、 new delete 2、 malloc 释放是啥? 3、 别的方式?? C 阅读全文
posted @ 2016-01-28 16:00 CodeSkill 阅读(142) 评论(0) 推荐(0)
摘要:1、 #include <windows.h> 2、 #include <vector> using namespace std; 问题: 一种是 带".h"的,一种是 不带".h"但是有命名空间的,区别何在?? C 阅读全文
posted @ 2016-01-28 09:47 CodeSkill 阅读(264) 评论(0) 推荐(0)
摘要:1、 STL::string STL中的 字符串 的 分割,是怎么弄的?(类似 C#/java/Qt中的 split()函数) 2、 阅读全文
posted @ 2016-01-27 15:25 CodeSkill 阅读(211) 评论(0) 推荐(0)
摘要:1、std: 1 #include 2 #include // for cerr 3 //#include // for what ? 4 using namespace std; 5 6 7 int _tmain(int argc, _TCHAR* argv[]) 8 { 9 st... 阅读全文
posted @ 2016-01-27 13:29 CodeSkill 阅读(538) 评论(0) 推荐(0)
摘要:1、重载操作符2、操作符 = ,使用时,当 对象里面 含有 指针成员变量时,要注意什么?C 阅读全文
posted @ 2016-01-27 13:15 CodeSkill 阅读(160) 评论(0) 推荐(0)
摘要:1、MFC 的字符串 Stringafx 的字符串STL 的字符串 stringATL 的字符串2、 阅读全文
posted @ 2016-01-26 13:29 CodeSkill 阅读(139) 评论(0) 推荐(0)
摘要:参考网址:http://www.xuebuyuan.com/1959215.html我的测试代码:Pipe_Server_VC6_Console.exe : 1 #include 2 3 #include 4 using namespace std; 5 6 int main() 7 { 8... 阅读全文
posted @ 2015-11-10 09:07 CodeSkill 阅读(2123) 评论(0) 推荐(1)
摘要:1、参考:http://bbs.chinaunix.net/thread-3699479-1-1.html1.1、二楼 说到:“小于或等于 PIPE_BUF 字节的 write 一定是原子操作,超过这个值的不一定。POSIX 规定 PIPE_BUF 至少是 512。”1.2、九楼 说到:“PIPE_... 阅读全文
posted @ 2015-11-09 16:31 CodeSkill 阅读(221) 评论(0) 推荐(0)
摘要:环境:Win7、VC61、代码: 1 #include 2 #include 3 4 #include 5 #include 6 7 int main() 8 { 9 printf("Sub01 : *stdin : %x\n", *stdin);10 printf("S... 阅读全文
posted @ 2015-11-09 14:36 CodeSkill 阅读(332) 评论(0) 推荐(0)
摘要:Win7 VC61、子进程 代码: 1 #include 2 #include 3 4 int main() 5 { 6 Sleep(1000); 7 8 printf("Sub01 : *stdin : %x\n", *stdin); 9 printf("Sub01... 阅读全文
posted @ 2015-11-09 14:07 CodeSkill 阅读(336) 评论(0) 推荐(0)
摘要:PS:标准输入/标准错误 ,参考这个来弄吧。环境:Win7(32位/64位),VC61、 1 int main() 2 { 3 printf("*stdin : %x\n", *stdin); 4 printf("*stdout : %x\n", *stdout); 5 pr... 阅读全文
posted @ 2015-11-09 10:56 CodeSkill 阅读(615) 评论(0) 推荐(0)
摘要:1、子进程(VC6代码): 1 #include 2 #include 3 4 #include 5 using namespace std; 6 7 int main() 8 { 9 //*10 printf("_console_vc6(1) : %d\n", ::GetTickC... 阅读全文
posted @ 2015-11-08 15:43 CodeSkill 阅读(206) 评论(0) 推荐(0)
摘要:1、参考网址:http://www.cnblogs.com/cnarg/archive/2011/02/20/1959292.html 1 function TfrmMain.ExecDosCmd :boolean; 2 var sa :SECURITY_ATTRIBUTES; 3 si :... 阅读全文
posted @ 2015-11-07 20:47 CodeSkill 阅读(6602) 评论(0) 推荐(0)