码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
switch-case结构
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace ConsoleApplication16{ class Program { static void Main(st ...
分类:其他好文   时间:2016-03-29 21:27:11    阅读次数:120
hud 1785 畅通工程
#include<iostream> #include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int par[103]; struct Island { int x,y; } isl[103]; stru ...
分类:其他好文   时间:2016-03-29 19:34:09    阅读次数:214
Command自定义二
MyCommand.cs using System; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace DefineCommand { public class MyC... ...
分类:其他好文   时间:2016-03-29 19:19:44    阅读次数:130
BZOJ4443:[SCO2015]小凸玩矩阵
题目大意:给一个N*M的矩阵,选出N个数,使得每行没列只选一个数,求第K大的数的最小值是多少? 二分答案,第k大的数<=x,则有N-k+1个数<=k,用二分图判定。 #include<bits/stdc++.h> using namespace std; int n,m,k; int a[255][ ...
分类:其他好文   时间:2016-03-29 18:05:05    阅读次数:141
图片各种旋转、改变大小
1、各种旋转、改变大小 注意:先要添加画图相关的 using 引用。 // 向右旋转图像 90 °代码如下 : private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g =  ...
分类:其他好文   时间:2016-03-29 14:35:56    阅读次数:185
LeetCode sort-list
问题描述:Sort a linked list in O(n log n) time using constant space complexity. O(n lgn)时间复杂度,O(1)空间复杂度。 分析:O(n lgn)时间复杂度的排序算法有几个(快排,归并,希尔,堆),但是O(1)空间复杂度就 ...
分类:其他好文   时间:2016-03-29 14:18:49    阅读次数:134
c++primer(第五版) 第十三章 拷贝控制习题答案
纯原创    转载请注明出处:http://blog.csdn.net/axuan_k 13.2    13.3   13.4    13.5 #include using namespace std; class Point{ int a; }; Point global; //13.4 Point foo_bar(Point arg) //1...
分类:编程语言   时间:2016-03-29 13:05:02    阅读次数:237
C#中的global关键字
global关键字,就是字面的意思,全局。 其实有些时候会犯一些错误,就是类名取了一个跟系统类名雷同的情况,其实这是设计上的失误,但是会出现一个情况就是没改了,那么global关键字就起到了作用。 如下代码: 虽然using了一个System命名空间,但是下面还有一个public class Sys ...
分类:Windows程序   时间:2016-03-29 08:50:16    阅读次数:262
LeetCode Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front ...
分类:其他好文   时间:2016-03-29 06:20:49    阅读次数:134
VTK GetScalarPointer() and GetScalarComponentAsFloat() not work
I am using VTK 5.10.1 with VS 2010, and the following example does not work on my machine: http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateI ...
分类:其他好文   时间:2016-03-29 06:15:31    阅读次数:390
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!