2014
来源:互联网 发布:mac卸载ubuntu双系统 编辑:程序博客网 时间:2024/04/27 16:08
#include <iostream>using namespace std;int main(){ int a=21; cout.setf(ios::showbase); cout<<"dec:"<<a<<endl; cout.unsetf(ios::dec); cout.setf(ios::hex); cout<<"hex:"<<a<<endl; cout.unsetf(ios::hex); cout.setf(ios::oct); cout<<"oct:"<<a<<endl; char *pt="China"; cout.width(10); cout<<pt<<endl; cout.width(10); cout.fill('*'); cout<<pt<<endl; double pi=22.0/7.0; cout.setf(ios::scientific); cout<<"pi="; cout.width(14); cout<<pi<<endl; cout.unsetf(ios::scientific); cout.setf(ios::fixed); cout.width(12); cout.setf(ios::showpos); cout.setf(ios::internal); cout.precision(6); cout<<pi<<endl; return 0;}做题做烦了,先体验体验别的吧
0 0
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- 2014
- Can't Find Theme.AppCompat.Light 错误修改
- android 之 android.widget.RelativeLayout.LayoutParams
- ubuntu9.04 shell编程 [: 10: y: unexpected operator
- POJ1422 Air Raid
- 拉格朗日对偶优化
- 2014
- hdu2795Billboard
- C语言全局变量,局部变量,结构体分析,枚举类型笔记
- 去你妹的渣渣IE浏览器!!!你丫有病啊!!居然不支持JAVASCRIPT的TRIM()!!!!
- Tomcat 替换项目图标
- 黑马程序员--File类
- 负载均衡
- Google Android 开发环境搭建
- 13.黑马程序员-block语法