原创 用二分法尋找最長連續單調遞增子序列

/* 在由n個數組成的序列中,找出最長的單調遞增子序列。子序列是連續的 */ #include <iostream>using namespace std; template <typename T>void ArrCopy ( cons

原创 Eclipse+CDT試用小記(1)

到官網下載Eclipse。我現在的版本是3.4.2. 解壓到C:/Eclipse 解包後約120MB, 執行Eclipse.exe,指定工作區位置。 點擊Help->Software Updates->Find and Install->

原创 C++/CLI 中字符串類型的轉化: 把System::String轉化爲std::string

Stan Lippman's BLog System::String -> std::string A reader asks,   Sender: Erik Brendengen   Is there an easy way t

原创 我解2006百度之星程序設計大賽之蟈蟈計分

#include <string>#include <vector>#include <fstream>#include <queue>#include <iostream>#include <stdio.h>#include "mat

原创 C++/CLI 中字符串類型的轉化: 把std::string轉化爲System::String

#include <string>using namespace std; string nativeString("Hello!");String^ managedString = gcnew String(nativeString.