Time of Update: 2015-05-29
標籤:http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html相信使用過MFC編程的朋友對CString這個類的印象應該非常深刻吧?的確,MFC中的CString類使用起來真的非常的方便好用。但是如果離開了MFC架構,還有沒有這樣使用起來非常方便的類呢?答案是肯定的。也許有人會說,即使不用MFC架構,也可以想辦法使用MFC中的API,具體的操作方法在本文最後給出操作方法。其實,可能很多人很可能會忽略掉標準C++中string類
Time of Update: 2015-05-29
標籤:駭客程式碼分析與預防
Time of Update: 2015-05-29
標籤:#include <iostream>using namespace std;int gy(int a,int k1){int min;if(a>k1)min=k1;else min=a; while(min) {
Time of Update: 2015-05-28
標籤:#include <stdio.h>#include <stdlib.h>#include <string.h>void reverse(char *p1,char *p2,int col){ int i; p2--; for(i=0;i<col/2;i++) { char t; t = *p1; *p1 = *p2; *p2 = t; p1++;
Time of Update: 2015-05-28
標籤:補充:1.字串必須要有‘/0‘結束。2.字元數組的長度以字元個數,以‘/0‘做結束標記。3.字串在使用前必須初始化。4.字串求長度函數strlen(m1)5.字串複製函數strcp(m1,m2)6.利用第三個字元數組實現字元相串連 例:char str,str1,str2; printf("str=%s %s",str1,str2);或sprintf(str,"%s %s",str1,str2);7.用fscanf和sprintf函數輸入輸出字元 例:char str[10]={0};
Time of Update: 2015-05-28
標籤:C語言的資料類型C語言程式中使用的各種變數都應預先加以說明,即先說明,後使用。對變數的說明可以包括三個方面:·資料類型·儲存類型·範圍所謂資料類型是按被說明量的性質,表示形式,佔據儲存空間的多少,構造特點來劃分的。在C語言中,資料類型可分為:基礎資料型別 (Elementary Data Type),構造資料類型,指標類型,空類型四大類。 1.基礎資料型別 (Elementary Data Type) 基礎資料型別
Time of Update: 2015-05-29
標籤: 之前對於C/C++的回呼函數不是很理解,今天就來學習下C/C++中的回呼函數。 在理解回呼函數之前,首先討論下函數指標的概念。函數指標:1. 概念:指標是一個變數,是用來指向記憶體位址的。一個程式運行時,所有和運行相關的事物都是需要載入到記憶體中,這就決定了程式運行時的任何物件都可以用指標來指向他。函數是存放在記憶體代碼地區內的,他們同樣有地址,因此同樣可以用指標來存取函數,把這個指向函數入口地址的指標稱為函數指標。2. 先看一個Hello World程式:1 #include
Time of Update: 2015-05-28
標籤:mfcc 倒譜
Time of Update: 2015-05-28
標籤:資料結構 c++ 雙鏈表 標頭檔:#pragma once#include <iostream>#include <assert.h>using namespace std;template<class Type>class List;// 結點類template<class Type>class NodeList{friend class
Time of Update: 2015-05-28
標籤:資料結構 c++ 雙迴圈鏈表 標頭檔:#pragma once#include <iostream>#include <assert.h>using namespace std;template<class Type>class List;// 結點類template<class Type>class NodeList{friend
Time of Update: 2015-05-29
標籤:資料結構 c++ 迴圈隊列 標頭檔:#pragma once#include <iostream>#include <assert.h>using namespace std;template<class Type>class CQueue{public:CQueue(size_t sz = INIT_SZ);~CQueue();public:bool
Time of Update: 2015-05-29
標籤:資料結構 順序棧 括弧匹配 標頭檔:#pragma once#include <iostream>#include <assert.h>#include <string.h>using namespace std;template<class Type>class SeqStack{public:SeqStack(size_t sz =
Time of Update: 2015-05-28
標籤:資料結構 c++ 順序棧 標頭檔:#pragma once#include <iostream>#include <assert.h>using namespace std;template<class Type>class SeqStack{public:SeqStack(size_t sz = INIT_SZ);~SeqStack();public:
Time of Update: 2015-05-28
標籤://數組的順序儲存表示//楊鑫#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <time.h>#define OK 1#define ERROR 0#define UNDERFLOW 2#define MAX_ARRAY_DIM 8typedef int Status;typedef int ElemType;typedef struct {
Time of Update: 2015-05-29
標籤:貪吃蛇#include <iostream>#include <stdlib.h>#include <stdio.h>#include <unistd.h>#include <deque>#include <list>#define _SIZE_ 30#define _SET_ cout<<"\033[?25l\033[0m"static int flags = 0;typedef int Array[_
Time of Update: 2015-05-29
標籤:2419: C語言習題 等長字串排序Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 426 Solved: 169[Submit][Status][Web
Time of Update: 2015-05-29
標籤: C#解決方案裡有兩種引用方式,項目引用和dll物理檔案引用。一、項目引用 嚴格引用,專案檔需包含在解決方案裡,好處是便於調試,可直接進入代碼。缺點是耦合度太高(必須全部編譯通過才能run起來),項目太大的話編譯麻煩,不利於部署升級和測試。因為是嚴格引用,單獨替換dll是不起作用的。而且每次升級程式都要重新編譯、打包、卸載、安裝,相當麻煩。二、dll物理檔案引用 鬆散引用,引用的是dll物理檔案,dll項目包不包含在解決方案裡都無所謂(一般是包含的),好處是不必全部重新編譯,哪裡修改
Time of Update: 2015-05-29
標籤:https://devtalk.nvidia.com/default/topic/804306/nsight-visual-studio-edition/nsight-4-5-can-t-debug-net-applications/ Q: I have an OpenGL application written in C#. When I try to debug the application using Nsight 4.5, I get the following
Time of Update: 2015-05-29
標籤:總結C#擷取當前路徑的7種方法C#擷取當前路徑的方法如下:1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName-擷取模組的完整路徑。2. System.Environment.CurrentDirectory-擷取和設定目前的目錄(該進程從中啟動的目錄)的完全限定目錄。3.
Time of Update: 2015-05-29
標籤:正