码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
质因数分解
1 //质因数分解 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 int top=0,num[10000],time[10000];11 v....
分类:其他好文   时间:2014-11-05 21:16:29    阅读次数:321
Length of Last Word
比较简单的问题:#include#includeusing namespace std;int main(){ int lengthOfLastWord(const char *s); char a[20]; cin.getline(a,20); cout << length...
分类:其他好文   时间:2014-11-05 21:11:57    阅读次数:172
UVA - 103 Stacking Boxes
#include #include #include #include #include #include #include #include #include #include using namespace std; int head[50]; int tail; int dis[50]; struct Edge { int to,next; }edge[1000]; void add(in...
分类:其他好文   时间:2014-11-05 19:45:40    阅读次数:226
UVA - 10405 Longest Common Subsequence
#include #include #include #include #include #include #include #include #include #include using namespace std; int dp[1010][1010]; int main() { int i,j,n,m; string a,b; while(getline(cin,a)) { g...
分类:其他好文   时间:2014-11-05 19:43:25    阅读次数:191
关于如何利用vector来实现邻接链表的笔记
使用标准模板库(STL)中的标准模板 std::vector,可以让我快速的使用邻接链表。一些基本的用法如下:#include #include #include using namespace std;struct Edge{ //定义结构体,用来表示一条边 int ne...
分类:其他好文   时间:2014-11-05 19:23:10    阅读次数:325
一个JavaScript工程师必须掌握的几个方面(转)
作为一个JavaScript工程师,在写一个工具库时,一般来说,需要提供如下的模块。核心模块:core.js$namespace 注册命名空间:$namespace('human.software.dom'); // window.human.software.dom$package 多模块共存,引...
分类:编程语言   时间:2014-11-05 19:11:15    阅读次数:281
素数法
// 1 ~ 1000 素数 #include#include#include#include#include#include#includeusing namespace std;bool shu[10000];void sushu1 (int n)//O(n*sqrt(n));{ bool...
分类:其他好文   时间:2014-11-05 19:10:25    阅读次数:211
HDU 3791
http://acm.hdu.edu.cn/showproblem.php?pid=3791建立二叉树,对比是否相同#include #include #include using namespace std;#define lson rt<<1#define rson rt<<1|1int tre...
分类:其他好文   时间:2014-11-05 19:06:49    阅读次数:264
asp.net 操作word
参考一:点击这里参考二:点击这里using System;using System.Web.Security;using Microsoft.Office.Interop.Word;using System.IO;namespace WeixinService.Bll{ public clas...
分类:Web程序   时间:2014-11-05 18:54:16    阅读次数:240
CODEVS1006&&2081&&2205等差数列
复习dp,做了一系列的等差数列,突然发现第一个和第二个是穷举的。。。1006:题目描述Description给定n(1#include#includeusing namespace std;int a[101]={0};int main(){ int sum,ans=0,n,i,j,k,ch,la;...
分类:其他好文   时间:2014-11-05 18:51:57    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!