码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
Codeforces Round #301 (Div. 2)
#include #include #include #include #include using namespace std; #define maxn 1005 #define inf 0x3f3f3f3f char s1[maxn],s2[maxn]; int main() { int n; cin>>n; cin>>s1>>s2; int d=0; ...
分类:其他好文   时间:2015-05-02 09:45:01    阅读次数:145
SkillButton 技能冷却
#pragmaonce #include"cocos2d.h" USING_NS_CC; classSkillButton:publicNode { public: SkillButton(); ~SkillButton();//技能标记 staticSkillButton*createSkillButton(floatskillCD,constchar*normalImage,constchar*clikImage,constchar*maskImage,inttag); boolinit(floa..
分类:其他好文   时间:2015-05-02 06:24:26    阅读次数:160
HDU ACM 1103 Flo's Restaurant
分析:借助STL的min_element实现。每次更新最先被占用的桌子,具体见注释。 #include #include using namespace std; int main() { int A,B,C; char s[10]; int a[102],b[102],c[102]; int curtime,count,ans; int *p; //桌子最...
分类:其他好文   时间:2015-05-02 01:10:24    阅读次数:161
求逆序数的两个方法
1.归并排序#include using namespace std;const int maxn = 1000;int a[maxn],b[maxn];int ans;void merge_sort(int x,int y){ if(y-x>1) { int m = x+...
分类:其他好文   时间:2015-05-02 01:04:09    阅读次数:122
C#-Winform-打印控件
控件设计:设置上述出去Button和Form控件的剩余控件(PrintDialog1等)的Document属性为相应的PrintDocument。代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Compon...
分类:Windows程序   时间:2015-05-02 01:03:01    阅读次数:351
C#学习(七)- Tread
1. 概述与概念 C#支持通过多线程并行地执行代码,一个线程有它独立的执行路径,能够与其它的线程同时地运行。一个C#程序开始于一个单线程,这个单线程是被CLR和操作系统(也称为“主线程”)自动创建的,并具有多线程创建额外的线程。这里的一个简单的例子及其输出:using System;using S....
分类:Windows程序   时间:2015-05-02 01:02:43    阅读次数:191
instancetype VS id
英文好的直接读下面链接的文章就好了:http://stackoverflow.com/questions/8972221/would-it-be-beneficial-to-begin-using-instancetype-instead-of-idhttps://developer.apple.c...
分类:其他好文   时间:2015-05-02 01:01:14    阅读次数:152
学习ASP .NET MVC5官方教程总结(七)Edit方法和Edit视图详解
学习ASP .NET MVC5官方教程总结(七)Edit方法和Edit视图详解        在本章中,我们研究生成的Edit方法和视图。但在研究之前,我们先将 release date 弄得好看一点。打开Models\Movie.cs 文件。先添加一个引用: using System.ComponentModel.DataAnnotations;然后在Movie类中添加以下代码: [D...
分类:Web程序   时间:2015-05-01 23:54:30    阅读次数:345
单词翻转(i am a student)--->>(student a am i)
问题描述: 写一个函数将i am a student  转化为  student a am i 解题思路: //i am a student --->--> student a am i #include using namespace std; /*翻转函数--->利用交换*/ void words_reverse(char str[],int left,int right) ...
分类:其他好文   时间:2015-05-01 22:37:29    阅读次数:186
c#之第三课
学习获取终端输入的参数并且打印,以及使用循环。using System;public class CommandLine{ public static void Main(string[] args) // 需要参数 { // The Length property is us...
分类:Windows程序   时间:2015-05-01 22:27:31    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!