Time of Update: 2015-05-11
標籤: 今天繼續談模組化的問題。這個想慢慢寫成個系列,但是不一定連續寫。基本是想起來了,就整理點思路出來。主要還是為以後集中整理做點鋪墊。 我們都知道,層次分明的代碼最容易維護。你可以輕易的換掉某個層次上的某個模組,而不用擔心對整個系統造成很大的副作用。
Time of Update: 2015-05-11
標籤:xl_blocking_queue.h ?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#ifndef SRC_COMMON_BLOCKING_QUEUE_H_#define SRC_COMMON_BLOCKING_QUEUE_H_#include <boost/thread.hpp>#include
Time of Update: 2015-05-11
標籤: (C++) Assertion failed: !"Bad error code", file VMem.c, line 715 Misc error. Full error message Assertion failed: !"Bad error code", file VMem.c, line 715 View a screenshot of this error
Time of Update: 2015-05-11
標籤:C# 線程知識--使用ThreadPool執行非同步作業
Time of Update: 2015-05-11
標籤:數組可以幫我我們一次聲明儲存多個相同類型的變數。用來解決同一類大量資料在記憶體儲存和運算的功能特點:連續、同一類資料數組定義==>賦值==>取值 定義: int[] nums0 = new int[10];//10是數組的長度 int[] nums1 = { 1, 2, 3,
Time of Update: 2015-05-11
標籤:ctime 這個用的最多就是隨機數的時候,現在用一用其他特性.#include <stdio.h>#include <time.h>int main(){ time_t sec; ///typedef long time_t struct tm * curTime; sec = time(NULL); ///擷取時間,從1970.1.1到現在的秒數,也可以寫成 time(&sec); curTime =
Time of Update: 2015-05-11
標籤:#include <stdio.h>int binSearch(int, int, int);main(){ int i, n = 10, x = 7; //這裡假設把數組a[]定義為a[n],是錯誤的,不能定義變長數組。 int a[10]; printf("Please enter your num:/n"); //從標準輸入給數組賦值的唯一方法:用for迴圈 for(i=0;i<n;i++) { scanf("%d",&
Time of Update: 2015-05-11
標籤:c++ 物件導向 設計模式 裝飾模式 裝飾模式(decorator
Time of Update: 2015-05-11
標籤:c++ 限定 記憶體 C++中從指定地區分配記憶體:#include<iostream>using namespace std;const int buf(1024);char buffer[buf]={0}; //開闢靜態地區
Time of Update: 2015-05-11
標籤: 本節研究智能指標的相關問題;unique_ptr的簡單實現template <typename T> class SmartPointer { public: SmartPointer(const SmartPointer&) = delete; SmartPointer& operator=(const SmartPointer&) = delete;
Time of Update: 2015-05-11
標籤:c++ 物件導向 設計模式 代理模式 代理模式(Proxy):為其他對象提供一種代理以控制對這個對象的訪問。應用情境:1.遠程代理,也就是為一個對象在不同的地址空間提供局部代表,這樣就可以隱藏一個對象存在於不同地址空間的事實。
Time of Update: 2015-05-11
標籤:c語言 遞迴調用 字串反轉 字串長度 問題描述: 編寫一個函數reverse_string(char *srring)(遞迴實現) 實現:將參數字串中的字元反向排列。 &
Time of Update: 2015-05-11
標籤:1.setWindowsHookex詳解http://blog.csdn.net/mmllkkjj/article/details/6627188 函數功能:該函數將一個應用程式定義的掛鈎處理過程安裝到掛鈎鏈中去,您可以通過安裝掛鈎處理過程來對系統的某些類型事件進行監控,這些事件與某個特定的線程或系統中的所有事件相關. 函數原形:HHOOK SetWindowsHookEx( int idHook, HOOKPROC lpfn,HINSTANCE hMod,DWORD
Time of Update: 2015-05-11
標籤: /// <summary> /// 時間戳記轉為C#格式時間 /// </summary> /// <param name=”timeStamp”></param> /// <param name="bflag">為真時擷取10位時間戳記,為假時擷取13位時間戳記.</param> ///
Time of Update: 2015-05-11
標籤:最近患上了滑鼠手。比較疼,影響到了工作。 乾脆左手用起了滑鼠。每次都要到控制台去修改設定比較繁瑣 所以決定寫個小工具。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Runtime.InteropServices;using System.Reflection;namespace Van{
Time of Update: 2015-05-11
標籤:What is Entity FrameworkEntity Framework (EF) is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually
Time of Update: 2015-05-11
標籤:C#中HashTable的用法一,雜湊表(Hashtable)簡述在.NET Framework中,Hashtable是System.Collections命名空間提供的一個容器,用於處理和表現類似keyvalue的索引值對,其中key通常可用來快速尋找,同時key是區分大小寫;value用於儲存對應於key的值。Hashtable中keyvalue索引值對均為object類型,所以Hashtable可以支援任何類型的keyvalue索引值對.二,雜湊表的簡單操作在雜湊表中添加一
Time of Update: 2015-05-11
標籤:break 關鍵字 作用: 1、跳出 switch-case
Time of Update: 2015-05-11
標籤: Object-C非正式協議與正式協議的區別 - braddoris的專欄 - 部落格頻道 - CSDN.NEThttp://blog.csdn.net/braddoris/article/details/24621161 Object-C非正式協議與正式協議的區別 分類: ios 2014-04-28 09:32 1428人閱讀 評論(0) 收藏 舉報這兩個概念困擾我很久了,一直都很像搞清楚到非正式協議和正式協議有什麼區別和聯絡,下面結合網上的資料和自己的看法談談這個問題。
Time of Update: 2015-05-11
標籤:#include "apue.h" (c程式添加的標頭檔)1. 超級使用者權限登入 #cd /usr/include 2. 將apue.h和error.c兩個檔案copy到該目錄下。(apue.h位於 your_apue_path/inlcude ; error.c位於your_apue_path/lib ) 以我的路徑為例: #cp /root/apue.2e/inlcude/apue.h . #cp