码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
Reverse Words in a String | LeetCode OJ | C++
我的思路:先读取每一个单词,存放到容器中;读取完毕后,将容器中的单词倒序写入输出中。#include#include#includeusing namespace std;void f(string &s){ vector vs; string temp=""; int i=0;...
分类:编程语言   时间:2014-10-24 12:19:25    阅读次数:165
UVA - 10057 A mid-summer night's dream.
偶数时,中位数之间的数都是可以的(包括中位数) 奇数时,一定是中位数 推导请找初中老师 #include #include #include #include #include using namespace std; int box[1000000]; int main() { //freopen("in","r",stdin); //freopen...
分类:其他好文   时间:2014-10-24 11:03:24    阅读次数:240
20141023--结构体
结构体: 1 namespace jiegouti 2 { 3 class Program 4 { 5 //结构体 是一个变量组 6 public struct jiegouti 7 {//定义一组变量,可以定义任何类型的数据变量。...
分类:其他好文   时间:2014-10-24 10:45:35    阅读次数:235
for循环深究
#includeusing namespace std;int main (){ int i = 0; for(i = 0,cout<< "First=" << i <<' ';cout<< "Second=" << i <<' ',i < 10;i++,cout<< "Third=" <<i<<'...
分类:其他好文   时间:2014-10-24 10:32:34    阅读次数:153
黄聪:VS2010开发如何在c#中使用Ctrl、Alt、Tab等全局组合快捷键
1、新建一个类HotkeyHelperusing System;using System.Runtime.InteropServices;using System.Windows.Forms;using System.Collections;namespace 黄聪{ public deleg...
分类:Windows程序   时间:2014-10-24 09:08:18    阅读次数:339
《javascript高级程序设计》笔记(十九)
E4X(一)E4X的类型1.XML类型2.XMLLIist类型3.Namespace类型4.QName类型(二)一般用法1.访问特性2.其他节点类型3.查询4.构建和操作XML5.解析和序列化6.命名空间(三)其他变化(四)全面启用E4X
分类:编程语言   时间:2014-10-24 01:36:20    阅读次数:194
Hdu 1158 Employment Planning(DP)
Problem地址:http://acm.hdu.edu.cn/showproblem.php?pid=1158一道dp题,或许是我对dp的理解的还不够,看了题解才做出来,要加油了。只能先上代码了。#include #include #include using namespace std;cons...
分类:其他好文   时间:2014-10-24 01:34:10    阅读次数:230
ural 1020. Rope(几何)
题目链接:ural 1020. Rope 题目大意:按照顺序给定N个点,每个点有半径R,问说用线环绕N个点所需要的长度。 解题思路:因为需要围成一个圈,所以旋转角度一定是一周,板径又都相同,所以直接就是两两点之间的距离加上一个周长。 #include #include #include #include using namespace std; const int maxn...
分类:其他好文   时间:2014-10-24 00:22:24    阅读次数:181
poj 3067 Japan(线段树)
题目链接:poj 3067 Japan 题目大意:给定N和M,表示东部和西部城市的数量,然后K条铁路,每条铁路连接东西城市,问说会有多少次交点。 解题思路:线段树维护即可,每条边按照x小的,y小的排序,然后每次查询y+1到M的即可。 #include #include #include using namespace std; const int maxn = 1005;...
分类:其他好文   时间:2014-10-24 00:21:42    阅读次数:235
ural 1019 Line Painting(线段树)
题目链接:ural 1019 Line Painting 题目大意:一个0~1e9的区间,初始都是白的,现进行N次操作,每次将一段区间图上一中颜色。最后问说连续最长的白色区间。 解题思路:线段树区间合并,每个节点即维护一个区间,很经典。注意坐标需要离散化,但是还是要将0和1e9放进去。 #include #include #include using namespace st...
分类:其他好文   时间:2014-10-24 00:21:20    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!