当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: #include<stdio.h>void Disp
 

 

 ·一个有意思的c++ trick    »显示摘要«
    摘要:今天看symbian的文件,看到一个类似下面的trick: class t{public: t( int i) { .... } void set(int i) { //简单的调用t(int i)构造函数里面的语句即可 //但是不能这样写: //t(i); //错误,编译器解释成 t i(); //而应该这样。利用new placement new (this)t(i); }}; set调用构造函......
    摘要:ansistring 转 char 代码: void __fastcall tform1::button1click(tobject *sender) { ansistring test = "哈哈"; char *chr = test.c_str(); } char转ansistring 代码: #include void __fastcall tform1::button1......


读取内存中的一段数据

#include<stdio.h>void display_memory(){ int i; unsigned char ch;        unsigned char *p; char s[80]; printf("\nbeginning address(in hex):\n"); scanf("%p%*c",&p); printf("%p:\t",p);    /* output address*/        for(i=0; i<256; i++) {  ch=*p; 
...   下一页

 ·.net的msmq异步调用    »显示摘要«
    摘要:1、引用system.messagiong.dll2、using system.messagiong 命名空间3、创建/建立自己需要的队列(这里监测专有队列) string queuename=".\\private$\\testqueue"; messagequeue q; if(messagequeue.exists(queuename) ) { q=new system.......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE