*1:C++接受输入字符串 1 /* Author : grey_qisen */ 2 // instr1.cpp -- reading more than one string 3 4 #include 5 int main(){ 6 using namespace std; 7 ...
分类:
其他好文 时间:
2015-08-26 10:37:15
阅读次数:
160
将屏幕保存为图片。使用vs2008编译通过。[cpp]view plaincopy#include"stdafx.h"#include#includeint__stdcallWinMain(HINSTANCEhInstance,HINSTANCEhPrevInstance,LPSTRlpCmdLin...
分类:
编程语言 时间:
2015-08-25 23:20:18
阅读次数:
303
万年历项目:.cpp文件如下#include
using namespace std;
class Date
{
public:
Date(int year = 1900, int month = 1, int day = 1)// 初始化列表进行初始化。
:_year(year),
_month(month),
_day(day)
{
if (Check...
分类:
其他好文 时间:
2015-08-25 21:36:37
阅读次数:
141
3-7_1 1 /* Author : grey_qisen */ 2 //3-7_1.cpp 3 4 #include 5 const int CHANGENUM = 12; 6 int main(){ 7 using namespace std; 8 int height; ...
分类:
其他好文 时间:
2015-08-25 21:04:41
阅读次数:
254
我觉得实验一下会记得比较牢,话不多直接上代码。下面是array数组,感觉用的不多。//cpp 风格数组 array#include #include #include using namespace std;int main(){ array myint = {1 , 2 , 34, 45 ,...
分类:
编程语言 时间:
2015-08-25 16:26:01
阅读次数:
198
1.使用共享内存
代码如下:
[cpp]
view plaincopy
void FileMapping(void) { //打开共享的文件对象。 m_hMapFile = ::OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE,_T("TestFileMap")); if (m_hMapFile) ...
分类:
系统相关 时间:
2015-08-25 14:15:44
阅读次数:
144
方法列表说明关于static const JNINativeMethod method_table[]方法列表的原型如下:[cpp]view plaincopytypedefstruct{constchar*name;constchar*signature;void*fnPtr;}JNINative...
分类:
其他好文 时间:
2015-08-25 14:05:01
阅读次数:
118
排列与组合,递归实现
// Permutation and Combination.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include
#include
#include
using namespace std;
vector>aaa;
set>solu;
void do_once(vector&selected, vector&re...
分类:
其他好文 时间:
2015-08-25 12:06:20
阅读次数:
184
// ACM学习-割点和桥.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include
#include
#include
#include
using namespace std;
const int v = 13;
int edge[v][v] = {
{ 0, 1, 1, 0, 0, 1, 0, 0, 0, 0...
分类:
其他好文 时间:
2015-08-25 12:01:46
阅读次数:
253
[cpp]view plaincopytypedefstruct_IplImage{intnSize; /*IplImage大小*/ intID; /*版本(=0)*/ intnChannels; /*大多数OPENCV函...
分类:
其他好文 时间:
2015-08-21 22:51:01
阅读次数:
827