码迷,mamicode.com
首页 >  
搜索关键字:iomanip    ( 198个结果
随机数
#include <iostream>#include <iomanip>#include <cstdlib> #include<ctime>using namespace std;class player{ public: char manplay(int a); char computerpla ...
分类:其他好文   时间:2016-10-22 14:38:09    阅读次数:180
1002. Set
#include<iostream>#include<iomanip>#include<set>#include<vector>#include<algorithm>using namespace std;class SetOperation { public: // Add any codes y ...
分类:其他好文   时间:2016-10-22 14:37:08    阅读次数:206
[收藏]C++简单五子棋
1 #include<iostream> 2 #include<iomanip> 3 using namespace std; 4 5 const int X = 21; //棋盘行数 6 const int Y = 21; //棋盘列数 7 char p[X][Y]; //定义棋盘 8 int m ...
分类:编程语言   时间:2016-10-05 10:47:48    阅读次数:312
STL容器
啦啦啦,今天听啦高年级学长讲的STL容器啦,发现有好多东西还是有必要记载的,毕竟学长是身经百战的,他在参加各种比赛的时候积累的经验可不是一天两天就能学来的,那个可是炒鸡有价值的啊,啊啊啊啊啊 #include<iomanip> 主要是对cin,cout之类的一些操纵运算子,比如setfill,set ...
分类:其他好文   时间:2016-09-27 19:21:50    阅读次数:181
[HDOJ5878]I Count Two Three(暴力枚举,二分)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5878 两种做法 1 #include <algorithm> 2 #include <iostream> 3 #include <iomanip> 4 #include <cstring> 5 #inc ...
分类:其他好文   时间:2016-09-19 17:28:11    阅读次数:130
笔直的水管 usaco 背包
背包dp入门,需要滚动数组; 1 #include<iostream> 2 #include<cstdio> 3 #include<string> 4 #include<cstring> 5 #include<algorithm> 6 #include<iomanip> 7 #include<cst ...
分类:其他好文   时间:2016-09-06 18:18:29    阅读次数:161
快速幂算法
快速幂就是快速算出某个数的多少次幂a^b 普通方法O(n)不解释: 1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #include<cstdlib> 5 #include<iomanip> 6 #include<algorit ...
分类:编程语言   时间:2016-08-26 21:21:52    阅读次数:145
iomanip.h
http://baike.baidu.com/link?url=zuNLgcUVylhUYYefyV13F38NChIMx8nnCEWV5zkkTQMrrSdKPxUERZuydSHtp6sXukWv9QvYtPJRAw02MddZ-_ ...
分类:其他好文   时间:2016-08-11 22:46:51    阅读次数:111
C++ cout 格式化输出方法
C语言里可以用printf(),%f来实现浮点数的格式化输出,用cout呢...? iomanip是I/O流控制头文件,就像printf的格式化输出一样。 以下是一些常用的: dec 置基数为10 相当于"%d"hex 置基数为16 相当于"%X"oct 置基数为8 相当于"%o"setfill(c ...
分类:编程语言   时间:2016-08-07 00:54:09    阅读次数:424
C++中输入输出流及文件流操作笔记
1、流的控制 iomanip 在使用格式化I/O时应包含此头文件。 stdiostream 用于混合使用C和C + +的I/O机制时,例如想将C程序转变为C++程序 2、类继承关系 ios是抽象基类,由它派生出istream类和ostream类, iostream类支持输入输出操作,iostream ...
分类:编程语言   时间:2016-06-27 17:21:19    阅读次数:287
198条   上一页 1 ... 14 15 16 17 18 ... 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!