码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
算法三:插入排序
插入排序类似于扑克牌摸牌的过程(我的习惯),小的放在前面,如果抓到更小的就再往前面放 但是第一张是不用排的。。。。 数组: 3, 6, 2, 1, 9 ->2,3,6,1,9 ->1,2,3,6,9 #include <iostream> using namespace std; int main(
分类:编程语言   时间:2016-02-26 14:04:45    阅读次数:250
最大子段和(c++)
// 最大子段和.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int MaxSum_test(int v[], int l, int r) { int k,sum = 0; i
分类:编程语言   时间:2016-02-26 14:03:30    阅读次数:208
【LeetCode OJ 225】Implement Stack using Queues
题目链接:https://leetcode.com/problems/implement-stack-using-queues/ 题目:Implement the following operations of a stack using queues. push(x) -- Push element x onto stack.pop() -- Removes the element on...
分类:其他好文   时间:2016-02-26 12:26:50    阅读次数:158
Display a picture
摘自 <<Learning OpenCV: Computer Vision in C++ with the OpenCV Library>> #include "opencv2/highgui/highgui.hpp" using namespace cv; int main(int argc, c
分类:其他好文   时间:2016-02-26 08:09:31    阅读次数:166
设置窗体透明C#代码
上个示例是C#调用windows api在原来代码上加入窗体透明,控件不透明代码: 1 using System; 2 using System.Runtime.InteropServices; 3 using System.Windows.Forms; 4 5 namespace HoverTre
分类:Windows程序   时间:2016-02-26 00:22:02    阅读次数:311
C++第七天笔记2016年02月24日(周三)P.M
1. 哪些构造函数支持做类型转换? 传递一个参数就可以被调用的构造函数。 2. 不同函数调用时间分析源码: 1 #include <iostream> 2 using namespace std; 3 4 class Demo{ 5 public: 6 Demo(int n=0):i(n){cout
分类:编程语言   时间:2016-02-25 22:44:03    阅读次数:250
C++第五天笔记2016年02月22日(周一)P.M
1. 输出运算符重载: 1 #include <iostream> 2 #include"cstring" 3 4 using namespace std; 5 6 class Complex 7 { 8 public: 9 Complex(int r=0,int i=0):_r(r),_i(i){
分类:编程语言   时间:2016-02-25 22:43:57    阅读次数:231
1.2编程基础之变量定义、赋值及转换
Portal:http://noi.openjudge.cn/ch0102/ 一套水题,然而他们还是题 01-03是测基本数据类型存储空间大小 01 #include<iostream> #include<cstring> #include<cstdio> using namespace std;
分类:其他好文   时间:2016-02-25 21:17:43    阅读次数:293
C# 文件操作类
using System;using System.IO; namespace Utils{ public class IOHelper { public IOHelper(); public static bool CopyDir(DirectoryInfo fromDir, string toD
分类:Windows程序   时间:2016-02-25 21:08:02    阅读次数:278
SDUT OJ 2783 小P寻宝记
#include<iostream> #include<memory.h> #define N 10020 using namespace std; int dp[N],pi[N],wi[N]; int max(int a,int b) { return a>b?a:b; } int main()
分类:其他好文   时间:2016-02-25 19:41:39    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!