C++ 输入一个整数输出…
来源:互联网 发布:非农数据影响哪些期货 编辑:程序博客网 时间:2024/06/07 19:43
#include "StdAfx.h"
#include
//#include
using namespace std;
int main()
{
cin>>i;
for(int t=0;t<<'* ';}
//while(i>0){cout<<'* ';i--;}
cout<<endl;
}
以上代码有什么问题???
输出结果如图
正确代码如下:
#include "StdAfx.h"
#include
//#include
using namespace std;
int main()
{
cin>>i;
for(int t=0;t<<'*';} ////看这里
//while(i>0){cout<<'* ';i--;}
cout<<endl;
}
输出结果为:
0 0
- C++ 输入一个整数输出…
- 【c语言】 输出一个整数的每一位
- C# WINFORM 某些控件实现联想输入…
- Pro*C OCI …
- IOS Objective c 同步 异步链接 …
- c++ 控制输出格式
- Improved logging in Objective-C …
- Bootloader and Uboot compiled, c…
- C# StreamReader 和 StreamWriter …
- (c语言)输入一个整数,将其逆序输出
- Linux shell 逆序输出输入的参数
- linux oracle 解决输入…
- 一个米农对 百度 与 谷歌 的评价 …
- Matlab 数据的输入和输出
- C++ typeid: find out type in rea…
- poj 3083 Children of the Candy C…
- A temporary table could not be c…
- It is never too late to make a c…
- cocos2d-x 2.0版本 自适应屏幕分辨率
- Data Struct \ Stack
- Data Struct \ list - insert - re…
- Data Struct \ bubble sort
- C 语言编程 \任意字符串输入输出
- C++ 输入一个整数输出…
- 在ipv4的网络上使用utorrent3.0下…
- php生成随机验证码源码
- 数组全排列c语言实现
- AOJ660 逃生的青蛙王子
- ★Windows8.1安装激活…
- 绵竹市公安局副局长亲属不满检查殴打医生
- 体验"类"带来的感觉
- UINT SocketThreadFunc(LPVOID lparam)