上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 63 下一页
摘要: #pragma data_seg("MyData")int g_Value; // Note that the global is not initialized.#pragma data_seg()DLL提供两个接口函数:int GetValue(){return g_Value;}void SetValue(int n){g_Value = n;} 阅读全文
posted @ 2013-06-05 19:45 Predator 阅读(163) 评论(0) 推荐(0) 编辑
摘要: char*pStr=newchar[20]; char*pSource="ganquanfu"; strcpy(pStr,pSource); cout<<pStr<<endl;/*string name = "ganquanfu";const char *names = name.c_str();cout<<names<<endl;*/ 阅读全文
posted @ 2013-06-05 19:43 Predator 阅读(567) 评论(0) 推荐(0) 编辑
摘要: //#include"Program.h"#include<iostream> namespaceName{ usingnamespacestd; voidShowMsg(charmsg[]) { //cout<<msg<<endl; cout<<msg<<endl; }}intmain(){ usingnamespacestd; /*usingnamespaceName; ShowMsg("chinese");*/ Name::ShowMsg("chinese"); int 阅读全文
posted @ 2013-06-04 20:12 Predator 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #include "Program.h"#include "ArrayTest.h"#include "Common.h"void ChangeDatasByRef(int &m,int &n);int main(){int datas[10]={10,1,2,3,4,5,6,7,8,9};ChangeArray(datas);cout<<"After Changed the Array"<<endl;//int len=GetMyArrayLen(datas);int le 阅读全文
posted @ 2013-06-04 19:59 Predator 阅读(316) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 63 下一页