04 2014 档案
摘要:// random_shuffle example#include // std::cout#include // std::random_shuffle#include // std::vector#include // std::time#incl...
阅读全文
摘要:char szBuffer[] = "wo我是中国人!woo"; int nPos = 0; int nCnCount = 0; int nSize = strlen(szBuffer); while(nPos<nSize){ if((int)szBuffer[nPos++] <0) ++nCnCount; } cout<<"存在中文字个数:"<<nCnCount/2<<endl;
阅读全文
摘要:一、LOCAL_SRC_FILES := hellocpp/main.cpp \ ../../Classes/AppDelegate.cpp \ ../../Classes/HelloWorldScene.cpp二、FILE_LIST := hellocpp/main.cpp \ $(wildcard $(LOCAL_PATH)/../../Classes/Shared/*.cpp) \ $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp) ...
阅读全文