码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
poj 1298 The Hardest Problem Ever
题目链接:http://poj.org/problem?id=1298题目大意:按照所给的顺序要求将输入的字符串进行排列。 1 #include 2 #include 3 #include 4 using namespace std; 5 int main () 6 { 7 char ...
分类:其他好文   时间:2014-07-16 21:53:34    阅读次数:186
poj 3751 时间日期格式转换
题目链接:http://poj.org/problem?id=3751题目大意:按照要求的格式将输入的时间日期进行转化。 1 #include 2 #include 3 using namespace std; 4 int main () 5 { 6 int t; 7 cin>>...
分类:其他好文   时间:2014-07-16 21:37:33    阅读次数:153
hdu 4811 Ball
分类讨论,看分成两堆两边的个数。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 __int64 a[3][3][3]; 8 __int64 f[4],n,k,tep; 9 10 int main...
分类:其他好文   时间:2014-07-16 21:30:59    阅读次数:171
字符串与数字之间的转换
1. itoaitoa是广泛应用的非标准c语言扩展函数,头文件为 #icnludechar* itoa(int value,char* string,int radix);#include#includeusing namespace std;int main(){ int i=15; char s...
分类:其他好文   时间:2014-07-16 21:28:56    阅读次数:196
hdu 4802 GPA
水题#include #include using namespace std;int main(){ int n; int c,sum1; double sum2; char str[10]; while(scanf("%d",&n)!=EOF) { ...
分类:其他好文   时间:2014-07-16 21:20:09    阅读次数:173
最长重复子串(转)
预备知识: 1. sort 使用时得注明:using namespace std; 或直接打 std::sort() 还得加上 #include 2. qort是qsort的升级版,如果能用sort尽量用sort,使用也比较简单,不像qsort还得自己去写 cmp 函数, 只要注明 ...
分类:其他好文   时间:2014-07-16 21:18:57    阅读次数:217
tkD--来自TCL/TK之D语言跨平台GUI库
D越来越有玩头了~~感觉一下代码的流畅: 1 module main; 2 3 /** 4 * Imports. 5 */ 6 import std.algorithm; 7 import std.array; 8 import std.datetime; 9 import ...
分类:其他好文   时间:2014-07-16 21:12:50    阅读次数:288
C++ Single
#include #include using namespace std;class Single{public: static Single* ShareInstance(); static void ReleaseInstance();private: Single(); ...
分类:编程语言   时间:2014-07-16 21:08:19    阅读次数:264
使用c++11标准库转换字符编码
转自:http://www.cnblogs.com/LinuxHunter/archive/2013/01/06/2848293.html#include #include #include const std::string ws2s( const std::wstring& src ){ std...
分类:编程语言   时间:2014-07-16 21:07:38    阅读次数:261
Winsock 网络编程笔记(1)----入门
今天第一次接触winsock网络编程,看的资料是Windows网络编程第二版。通过博客记住自己的看书笔记。。在这里贴出第一个程序,虽然程序什么都没做,但以此作为入门,熟悉其网络编程风格。。 1 #include"winsock2.h" 2 #include 3 using namespace std...
分类:Windows程序   时间:2014-07-16 21:00:25    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!