码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
uva 100 - The 3n + 1 problem
1 #include 2 #include 3 using namespace std; 4 5 void print(int i, int j) 6 { 7 if(i > j) { int temp = i; i = j; j = temp; } 8 9 int max ...
分类:其他好文   时间:2016-01-20 06:19:35    阅读次数:135
uva 759 - The Return of the Roman Empire
1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int SIZE = 13; 7 const int value[] = {1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500...
分类:其他好文   时间:2016-01-20 06:16:07    阅读次数:200
Asp.net后台创建HTML
为了使HTML界面中的内容能根据数据库中的内容动态显示用户需要的内容,或者根据权限不同要显示同而实现页面内容的动态创建使用HtmlGenericControl创建HTML标签引入命名空间: using System.Web.UI.HtmlControls;更改其属性: hgg_div.Attribu...
分类:Web程序   时间:2016-01-20 01:09:34    阅读次数:224
使用String的几个方法
Use the String ResourcesYou can reference your string resources in your source code and other XML files using the resource name defined by theelement'...
分类:其他好文   时间:2016-01-20 00:58:14    阅读次数:239
Anagrams问题
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 map s0,s1; 8 char str0[90],str1[90]; 9 10 void zh(char str0[],in...
分类:其他好文   时间:2016-01-19 23:32:10    阅读次数:163
简单的变长数组
以下是实现以及应用的一个例程:#include using namespace std;template class Vector{ public: explicit Vector( int initSize = 0 ) : theSize( initSize ),...
分类:编程语言   时间:2016-01-19 20:56:57    阅读次数:199
Angularjs-first-using.md
简介Angular.js是一个MV*(Model-View-Whatever,不管是MVC或MVVM,统归为MDV-Model Drive View)Javascript框架,其是Google推出的SPA(Single-Page-Application)应用框架,为我们的Web开发增加了不少魔法变换...
分类:Web程序   时间:2016-01-19 20:50:42    阅读次数:199
asp.net using library ClosedXML to export excel
Reference: http://closedxml.codeplex.com/add namespace:usingClosedXML.Excel;usingSystem.IO;Method: publicvoidExportDataToExcel(DataTabledt,stringfile....
分类:Web程序   时间:2016-01-19 19:14:43    阅读次数:192
约瑟夫环问题
题目:有N个人做成一圈玩游戏,编号为1至N。从编号为1的人开始传递马铃薯。M次传递后,持有马铃薯的人退出游戏。圈缩小,然后游戏从退出的人下面的人开始,继续进行。最终留下来的人获胜。写出一个程序解决约瑟夫环问题,此时M和N为任意值。编程如下:#include using namespace std;t...
分类:其他好文   时间:2016-01-19 19:03:44    阅读次数:257
经常使用排序算法
经常使用的排序算法在此总结一下经常使用排序算法的代码实现#include using namespace std;typedef int ElemType;/*1、插入排序(1)直接插入排序算法算法思想:将等排序列划分为有序与无序两部分。然后再依次将无序部分插入到已经有序的部分,最后就能够形成有序序...
分类:编程语言   时间:2016-01-19 17:25:35    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!