码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
15周《C++语言基础》程序阅读——二进制文件及文件的随机读写(1)
1、阅读并运行下面的两个程序,分别用记事本和二进制文件阅读器(请自行下载Binary Viewer等程序,或者用DOS中的Debug程序,并百度其用法)。查看其内容,并理解文件存储的原理。 (1) #include #include #include using namespace std; int main( ) { int a; ofstream outfile(...
分类:编程语言   时间:2015-06-16 09:29:17    阅读次数:216
北大OJ_1001题:求正数的高精度幂
程序说明 程序效率不高,时间复杂度为O(n^2),有待进一步的优化,呵呵    程序代码 #include #include #include using namespace std; //求两个大数的乘积(两数均为正数) string GetProductOfTwoBigNum( string strNumLeft, string strNumRight ) { ///...
分类:其他好文   时间:2015-06-16 09:27:56    阅读次数:201
杭电ACM1240——Asteroids!~~简单的BFS
这道题目,三维空间上的BFS,给你起点和终点,看能否找到一条路,O表示可以走,X表示不可以走!~ 理解了题目,就可以用队列来实现BFS来求解。 下面的是AC 的代码: #include #include #include #include using namespace std; class data { public: int xyz; int count; }; cha...
分类:其他好文   时间:2015-06-16 09:22:19    阅读次数:113
四种插入排序说明
宏定义如下: #include using namespace std; #define M 21 typedef int SqList[M]; 一.直接插入排序 实现代码如下: void InsertSort(SqList &L,int n)//直接插入排序 { for(int i = 2;i < n;++i) //从下标为2处开始处理 { if(L[i] <=...
分类:编程语言   时间:2015-06-16 06:46:56    阅读次数:113
Install Docker on Mac OS X(转)
Install Docker on Mac OS XYou can install Docker using Boot2Docker to rundockercommands at your command-line. Choose this installation if you are fami...
分类:系统相关   时间:2015-06-16 01:18:11    阅读次数:327
创建一个方法来判断是否为闰年。。
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 建一个判断是否为闰年的方法_函数_{ class Program { /// ...
分类:其他好文   时间:2015-06-16 01:11:56    阅读次数:202
MySQL按照汉字拼音字母排序
如果MySQL编码格式为GBK字符集,可直接在查询语句后面添加 order by name asc; --进行升序排序 如果是utf8字符集,需要在排序的时候对字段进行转码, order by convert(name using gbk) asc; 附:查看MySQL编码方式 SHOW VARIABLES LIKE 'character%';...
分类:数据库   时间:2015-06-16 00:01:49    阅读次数:379
KMP算法解决字符串出现次数
比如主串为:”1001110110” 子串为:”11“ 则出现位置分别为:3 4 7//KMP算法 2015.6.7#include #include using namespace std;int main() { char *s = "1001110110"; char *p = "11"; int ar[20] = {...
分类:编程语言   时间:2015-06-15 23:59:17    阅读次数:340
Jquery ajax传递复杂参数给WebService
参考:http://www.cnblogs.com/kingge/archive/2011/08/04/2127642.htmlhttp://www.cnblogs.com/micromouse/archive/2010/08/14/1799464.htmlusing System;using Sy...
分类:Web程序   时间:2015-06-15 23:53:12    阅读次数:145
HDU 3006
http://acm.hdu.edu.cn/showproblem.php?pid=3006注意到集合内数字最大只有14,状态压缩一下,然后枚举出所有状态#include #include #include using namespace std;int dp[1<<15];int main() {...
分类:其他好文   时间:2015-06-15 23:52:58    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!