Time of Update: 2015-05-06
標籤:開啟 YourEngineFolder\Engine\Config\BaseEngine.ini將1 Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, Path="%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache"
Time of Update: 2015-05-08
標籤:kruskal 最小產生樹 [本文是自己學習所做筆記,歡迎轉載,但請註明出處:http://blog.csdn.net/jesson20121020]演算法描述:Kruskal演算法是按權值遞增的次序來構造最小產生樹的方法。 假設G(V,E)最一個具有n個頂點的連通網,頂點集V={v1,v2,....,vn}。設所求的最小產生樹為T={U,TE},其中U是T的頂點集,TE是T的邊集,U和TE的初始
Time of Update: 2015-05-08
標籤:在編寫代碼時發現vector的一個現象(1) std::vector<std::string> str_vector; str_vector.resize(3); str_vector.push_back("name_1"); str_vector.push_back("name_2"); 然後進行訪問逐一列印發現: for
Time of Update: 2015-05-08
標籤:"標準庫定義了4個IO對象,處理輸入時使用命名為cin的istream類型對象,這個對象也成為標準輸入。處理輸出時使用命名為cout的ostream類型對象,這個對象也稱為標準輸出。標準庫還定義了另外兩個ostream對象,分別命名為cerr和clog。cerr對象又叫標準錯誤,通常用來輸出警告和錯誤資訊給程式的使用者,而clog對象用於產生程式執行的一般資訊。一般情況下,系統將這些對象與執行視窗聯絡起來,這樣,當我們從cin讀入時,資料從執行程式的視窗讀入,當寫到cout、cerr、cl
Time of Update: 2015-05-08
標籤:c++ 重寫 重載 參考部落格:http://blog.sina.com.cn/s/blog_8ddc5c2e01013hbd.html相信看到這個標題頭就暈了,其實將他們彼此放到一起來看,就會比較清晰辨認了。重載:函數名相同,函數的參數個數、參數類型或參數順序三者中必須至少有一種不同。函數返回值的類型可以相同,也可以不相同。重寫:也叫做覆蓋,一般發生在子類和父類繼承關係之間
Time of Update: 2015-05-08
標籤:// strlen與sizeof對數組和指標的求法#include <stdio.h>#include <string.h>int main(){char *pcColor = "12345678";char acColor[] = "12345678";printf("%d\n", strlen(pcColor));//8 求字串的大小printf("%d\n",
Time of Update: 2015-05-08
標籤:冒泡排序 排序演算法 冒泡排序是 一種比較簡單的排序演算法,其核心邏輯就是不斷地比較相鄰的兩個數,如果前數 大於 後數,就把 兩個數交換。 這樣一趟比較下來,確保把最小的數字移動到了數列開始位置,或者把最大的數字移動到了數列的結尾位置。轉自http://blog.csdn.net/huutu http://www.thisisgame.com.cn代碼如下:轉自http://blog.csdn.net/huutu
Time of Update: 2015-05-08
標籤:c語言 字串比較函數 指標數組 數組指標 問題描述:寫一個函數,用於比較兩個字串的比較(string_compare).程式分析:(1)主要思想:傳入兩個字串後,比較這兩個字串中的每個元素,如果第一次比較就不相等,就不要讓它進入到下面的比較中。這樣一來,將它返回一個相減的值(即:兩數組中開始不相等的那兩個元素相減,返回值(int
Time of Update: 2015-05-06
標籤:include system return 空間 extern的用法。 #include "stdafx.h"#include <windows.h>extern int a; //沒有分配空間,申明不是定義int
Time of Update: 2015-05-06
標籤:動態數組(ArrayList)代表可單獨被索引的對象的集合。動態數組可以自動調整大小。允許動態記憶體的分配,怎加,搜尋,排序。using System;using System.Collections;namespace CollectionApplication{ class Program { static void Main(string[] args) { ArrayList al = new ArrayList();
Time of Update: 2015-05-05
標籤:boost c++11 shared_ptr shared_ptr是一個引用計數智能指標,用於共用對象的所有權。它可以從一個裸指標、另一個shared_ptr、一個auto_ptr、或者一個weak_ptr構造。還可以傳遞第二個參數給shared_ptr的建構函式,它被稱為刪除器(deleter)。刪除器用於處理共用資源的釋放,這對於管理那些不是用new分配
Time of Update: 2015-05-06
標籤:c#using System;using System.Windows.Forms;public class frmMain : Form{ #region Windows Code private void InitializeComponent()
Time of Update: 2015-05-05
標籤:1、靜態類裡面只能有靜態成員(包括靜態欄位、靜態方法),不能包含非靜態變數。靜態類不能有建構函式。2、靜態類裡面可以聲明const變數而且前面不用添加static ,因為預設的const變數預設就是static的,它本身就是屬於類本身的。readonly不是靜態,所以我們在資料庫工具類裡面寫connectionstring的時候都使用static
Time of Update: 2015-05-06
標籤:html5 新特性 <input id="imgsf" type="file" name="imgsf" multiple />input file 中增加 multiple 屬性可以選擇多檔案。IE9以下版本不相容 <form id="form1" method="post"
Time of Update: 2015-05-06
標籤:https://msdn.microsoft.com/zh-cn/library/bcd5672a.aspx官方的說法The protected keyword is a member access modifier. A protected member is accessible within its class and by derived class
Time of Update: 2015-05-05
標籤: List轉字串,用逗號隔開List<string> list = new List<string>();list.Add("a");list.Add("b");list.Add("c");//MessageBox.Show(list.);//LoadModel();string s = string.Join(",", list.ToArray());MessageBox.Show(s); List<test> list =
Time of Update: 2015-05-09
標籤:- (BOOL)verifyKeyword:(NSString *)keyword{ BOOL isMatch = NO; NSString * regex = @"[\u4e00-\u9fa5a-zA-Z0-9\\s]*"; &
Time of Update: 2015-05-08
標籤:衝刺階段一(第三天) Yesterday:在C#的Windows表單應用程式中,設計簡單的遊戲介面。Today:首先把昨天遇到的問題解決了,雖然沒有找到原因,但是只要每一步修改後就立即運行,方能排除一些被忽略的非法操作。 任務:完善介面設定。 遇到問題:每次啟動項目會報錯,被迫還原至上一次修改。 解決問題:Form2.cs中this.Hide函數寫錯,後面沒有接“()”。Tomorrow:最佳化細節。團隊開發——衝刺1.c
Time of Update: 2015-05-08
標籤:轉自:http://myturn.blog.hexun.com/15584978_d.html#include <iostream>using namespace std ; void Swap(int x, int y) ;int main(void){ int a = 1 ;
Time of Update: 2015-05-07
標籤:airtight wifi wips wlan ap 無線 安全 雲 公用雲端 私人雲端AirTight C-55 AP650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/6C/76/wKioL1VJ60HgcUgNAABLMSnaYus792.jpg" style="float:right;" title="QQ圖片20150506181535.png"