原创 static in c++

static關鍵字至少有下列n個作用:(1)設置變量的存儲域,函數體內static變量的作用範圍爲該函數體,不同於auto變量,該變量的內存只被分配一次,默認初始化爲0,因此其值在下次調用時仍維持上次的值; (2)限制變量的作用域,在

原创 vs無法識別的外部符號 main

一、原因: 1, 你用vc建了一個控制檯程序,它的入口函數應該是main,而你使用了WinMain. 2. 你用vc打開了一個.c/.cpp文件,然後直接編譯這個文件,這個文件中使用了WinMian而不是main作爲入口函數。vc這

原创 sql-server多字段去重

sql語句是從右到左執行的← 優化原則:能迅速排查的語句放在右邊 顯示部門平均工資低於2000的部門號和平均工資,這裏不用子查詢而是用having --having往往和group by結合使用,對分組查詢的結果進行篩選 select a

原创 "CL.EXE"錯誤

最近vs2010總是出現“cl.exe”停止工作或退出,解決方案如下: 1、嘗試新建是否也有同樣的問題 2、如果是其他項目都有這個問題,可能是由於更新了.NETFRAMEWORK造成的,這時候需要對vs也同樣進行更新 博主遇到vs2010

原创 friend & operator

以上 class Vector { private: int x; int y; public: Vector(){}; Vector(int X, int Y){ x = X; y = Y; } Vector(Vec

原创 error 0x0007b in vs10 with opencv+64bit system

1、generally, you can solve it by add both  .../opencv/build/x64/vc10/bin and .../opencv/build/x86/vc10/bin to your Path

原创 android sdk install

1、download Android SDK .zip 2、UNZIP the file 3、run the SDK Manager.exe 4、now you may see the bottom Fecthing http:.....

原创 ICP in PCL

This is an simple demo of icp. in the future, I shall make it faster by  means of down sampling

原创 Thread in WIN32 & Linux

以下是WIN32中的線程創建,主要創建函數在程序中給出說明#include <iostream> #include <cstdlib> #include <windows.h> DWORD WINAPI FunProc(LPVOID lp

原创 CreateProcess failure, error 2

the general solution to the problem that port "5037" is used can simply be: adb nodaemon server netstat -ano|finstr

原创 using namespace&using

using namespace xxx  all the sub-namespace defined under xxx can be reached using xxx in fact, it's just a declar

原创 boost::bind

boost::bind Purpose boost::bind is a generalization of the standard functions std::bind1st and std::bind2nd. It suppo

原创 const修飾函數

const可以認爲是保護變量的作用,在函數前面與函數後面保護的對象是不同的 一、關於function() const 1、一個函數名字後有const,這個函數必定是成員函數,也就是說普通函數後面不能有const修飾 2、在一個類裏定

原创 java equals

comparison function for String: we should not use "==", for it compares the address of the two arguments instead of the

原创 jdk1.8中使用sql server

java 1.8放棄了對jdbc的支持,使用sql server可以使用microsoft的,地址:點擊打開鏈接 一、配置CLASSPATH路徑 右擊 我的電腦 → 屬性 → 高級系統設置(高級) → 環境變量,在系統變量中雙擊CLA