由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] What is wrong? Urgent help needed.
相关主题
请问sql语句能不能实现这样的功能a very simple c++ question
How to input a return key in C or C++?fstream 扫盲,谢谢!
C++缘何厚deque薄queue?C/C++ ferror()的返回值问题
读取数据求教Help to compile boost serialization
Clock() problemC++ 读不规则长度文件问题
一个极简单的程序求教What is wrong with the code?
【请教】fscanf 和 fstream 哪一个更好? (转载)Why no output file generate? What is wrong?
关于文件读取的C++ 问题?A C++ puzzle for me
相关话题的讨论汇总
话题: urgent话题: what话题: needed话题: wrong话题: nextaction
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
careerchange (Stupid) 于 (Mon Dec 8 20:34:06 2008) 提到:
Urgent help needed, project due in a couplr of hours.
What is wrong? The following code does not ask the name input:
At running, after I type 3, it prints but does not wait for input.
#include
#include
using namespace std;
int main(){
int nextAction;
cin >> nextAction;
char name[80];
cout << "Please type the name:" << endl;
cin.getline(itemname,80,'\n');
1 (共1页)
进入Programming版参与讨论
相关主题
A C++ puzzle for meClock() problem
无法编译一个文件一个极简单的程序求教
C++默认的copy constructor的疑惑【请教】fscanf 和 fstream 哪一个更好? (转载)
问一个C++文件读取的问题关于文件读取的C++ 问题?
请问sql语句能不能实现这样的功能a very simple c++ question
How to input a return key in C or C++?fstream 扫盲,谢谢!
C++缘何厚deque薄queue?C/C++ ferror()的返回值问题
读取数据求教Help to compile boost serialization
相关话题的讨论汇总
话题: urgent话题: what话题: needed话题: wrong话题: nextaction