NetBeans for Mac c++ Input
NetBeans for Mac c++ Input
我刚刚在Mac上安装了Netbeans 8.2,并用一些CIN和COUT进行了简单的Programe。输出工作正常,但是没有要求我在CIN中输入任何内容,而没有它就结束了。
int main(int argc, char** argv) {
int a;
cin << a;
cout >> a;
cout >> "Hello world";
}
那么如何使键盘输入工作?
您的>>
和<<
是错误的方式。这应该有效:
cin >> a;
cout << a;
cout << "Hello world";
相关文章:
- "input.length();"的目的是什么?
- 如何使用"derived input class"创建派生类?
- 开放CV垫"Sizes of input arguments do not match"的问题
- 什么是"Reading unbounded stream from standard input (Memory Management)"的例子
- 如何检查输入是否为字符并显示它是"invalid input",否则它将按原样运行
- 输出 [left]=input[i] 行中的 c++ 代码中存在无效的类型错误
- 无法在"surface input"模式下使用 Android 平台的 MediaCodec 类
- CMD:程序.exe 1< "A:/input.txt"产生无输出
- mmap with /dev/input/event*
- 如何应用注册表模式使"select class depend on input"遵守开放封闭原则?
- 为什么我应该使用 "int input{0};" 而不是"int intput;"
- 如何使Palindrome代码不必担心(用户input)单词间距
- 什么是 Python 的 map(int,input().split()) 的 C++ 等价物
- 如何从 Linux /dev/input/eventX 轮询输入
- 如果(玩家[P] .setCoin(Gameboard,Input))将其命名为“在线”游戏板的攻击函数)
- C++ if(cin>>input) 在 while 循环中无法正常工作
- 如何在C++中分配“#input”类型的宏字符串
- NetBeans for Mac c++ Input
- 如何在不使用UWP的情况下使用命名空间Windows.gaming.gaming.input
- 使用 libnl-3-route "Invalid input data or parameter"添加路由