Time of Update: 2018-08-21
移植從最簡單、最小的模組開始,MyMoney中有幾個控制項類比較獨立,首先移植他們。 CDoubleEdit是一個只能輸入double的文本控制項,其小數位置最多允許兩位,在MyMoney中提供金錢輸入的功能。 在MFC中,CDoubleEdit從CEdit派生,為響應訊息EN_CHANGE,實現了訊息函數OnEnChange,當文本控制項內容發生改變後,判斷是否是合法值,如果不是則恢複成舊值m_content。以下是CDoubleEdit在MFC中的聲明: class
Time of Update: 2018-08-21
就象 select distinct 欄位名 from 表名 一樣 在datatable中的select 應該怎麼做啊 回複內容 【wwwiii520】: 占個沙發```搞不懂lz意思 【ezhuyin】:
Time of Update: 2018-08-21
在安裝中也是使用的helloworld做的測試,這裡就簡單的寫一下大概過程,首先需要建立一個hello.c的檔案,檔案內容就是 #include <stdio.h>#include <glib.h>intmain(int agrc, char **argv){ g_printf("Hello world!\n"); return 0;}然後就是最簡單的帶庫的編譯 </pre><pre code_snippet_id="16
Time of Update: 2018-08-21
【方案一】以點結尾的檔案夾 複製內容到剪貼簿 代碼: rem 建立以點結尾的檔案夾 md "C:/test" md "C:/test/batcher../" 複製內容到剪貼簿 代碼: rem 把以點結尾的檔案夾重新命名為普通檔案夾 rem 短檔案名稱可以使用dir/x命令獲得 ren "C:/test/BATCHE~1" "batcher" 複製內容到剪貼簿 代碼: rem 把普通檔案夾重新命名為以點結尾的檔案夾
Time of Update: 2018-08-21
malloc函數分配記憶體失敗的原因及解決方案 先說結論 malloc()函數分配記憶體失敗的原因: 1. 記憶體不足。 2. 在前面的程式中出現了記憶體的越界訪問,導致malloc()分配函數所涉及的一些資訊被破壞。下次再使用malloc()函數申請記憶體就會失敗,返回null 指標NULL(0)。 解決方案: 1.在STM32中堆空間記憶體不足的解決方案可以參考我上一篇文章 STM32分配堆棧空間不足問題原因及解決方案
Time of Update: 2018-08-21
From OGRE 3D 中文 Jump to: navigation, search 層(Overlays)允許你在一般的情境內容上繪製2D或3D元素,例如:提示資訊(heads-up displays(HUDs))、菜單系統、狀態列等。OGRE系統中的幀狀態列(Frame Rate Statistics
Time of Update: 2018-08-21
實現自己的strstr函數:返回主串中子字串的位置後的所有字元。 如:主串“12345678”,字串“45”,函數返回“45678” #include <stdio.h> //#include<stdlib.h>#include<assert.h>const char* strstr(const char *src, const char *dst) { //入口參數檢查 assert(NULL !=
Time of Update: 2018-08-21
1、對於not exists查詢,內表存在空值對查詢結果沒有影響;對於not in查詢,內表存在空值將導致最終的查詢結果為空白。 2、對於not exists查詢,外表存在空值,存在空值的那條記錄最終會輸出;對於not in查詢,外表存在空值,存在空值的那條記錄最終將被過濾,其他資料不受影響。 eg: select * FROM customer a
Time of Update: 2018-08-21
git review (四) git clone複製 用法1:git clone <repository> <directory> 用法2:git clone --bare <repository> <directory.git> 用法3:git clone --mirror <repository> <directory.git> 用法說明:
Time of Update: 2018-08-21
[core] repositoryformatversion = 0 filemode = false bare = false
Time of Update: 2018-08-21
經常遇到一些新手,問如果想立志於遊戲引擎研發,有一些什麼好的建議。另外個人認為遊戲程式員即使是在使用商業引擎做項目,也應該至少達到引擎初級水平,這樣才能知其然也知其所以然,也能更好的應用。總結了下自己這麼多年的經驗和教訓,做個分享。一家之言,僅供參考。
Time of Update: 2018-08-21
兩種文法模式: (1):只有一個分支 CASE WHEN條件THEN結果1 ELSE結果2 END (2):支援多種分支 CASE運算式1 WHEN運算式2THEN結果1 WHEN運算式2THEN結果2 WHEN運算式2THEN結果3 ELSE結果4 END 上面的WHEN可以重複多次, =================== 簡單樣本: 1.select 2.casewhen1=1 3.then1 4.else2 5.end;1.select 2.case2
Time of Update: 2018-08-21
寫在前面的話 最近幹起了營運的活;代碼改造,搭建elk,搭建警示,此處做些個總結。 環境介紹 Ubuntu14 Elasticsearch 5.1.2 Kibana 5.1.2 安裝 官網網址: https://elastalert.readthedocs.io/en/latest/running_elastalert.html#tutorial 執行: git clone https://github.com/Yelp/elastalert.git cd
Time of Update: 2018-08-21
一、背景 在調試代碼的時候,每次都要通過git上傳到伺服器調試,實在是一件很麻煩的事情。所以對於一些微小的改動,我就直接在伺服器上修改。等調試成功之後,用git reset再回退到之前的版本,後來經過老大提醒,才發現用git checkout更加簡單一些,而且不用回退版本。 二、git reset回退版本 1、回退到上個版本 命令:git reset –hard HEAD^ 這裡的^就代表回退到上個版本。
Time of Update: 2018-08-21
git 刪除 錯誤 提交的 commit 方法: 根據–soft –mixed –hard,會對working tree和index和HEAD進行重設: git reset --mixed:此為預設,不帶任何參數的git
Time of Update: 2018-08-21
Git 與 Gerrit 應用1—>遇到 Conflict 使用git總有一天會遇到Conflict,所以簡單講一下解決辦法 1.如果在 git push 之出現類似下列資訊,表示有 conflict 發生: ! [rejected] master -> master (fetch first) error: failed to push some refs to ‘http://ryan.chang@172.18.51.25:8082/Sandbox’ hint:
Time of Update: 2018-08-21
Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 解答 開始寫的代碼竟然逾時 public int strStr(String haystack, String needle) { if (haystack == null || needle ==
Time of Update: 2018-08-21
我項目用的TabLayout+ViewPage的多個Fragment滑動顯示的布局 第一個用到了RecyclerView,發現RecyclerViewAdapter調用notifyDataSetChanged的時候沒有東西出來,因為其他幾個Fragment都不是列表的,所以調試了一下此Fragment中的RecyclerViewAdapter,下面擷取資料之後執行的方法。 private void setData() {
Time of Update: 2018-08-21
題目描述: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 代碼: int Solution::strStr(char *haystack, char *needle){ int haystack_length = strlen(haystack);
Time of Update: 2018-08-21
開發OCX控制項過程中遇到這個問題,值得記錄一下。 Debug版本的程式可以正常編譯註冊運行,可是Release版本時註冊失敗,提示找不到模組,使用depends查看, 缺少avcodec-54.dll等庫,這些庫是ffmpeg中用到的,這些庫已經放在了程式目錄中,而且Debug編譯的程式可以正確 識別這些庫並成功註冊。後來把ffmpeg和release兩個關健詞一塊度娘了一下,恍然大悟。