由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - About command line in C++
相关主题
c++设计一问:如何动态地调用不同的算法的dll ?A simple question on Flex
如何定义 Javascript overload function ?gdb里怎么call member function
如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?Default function template arguments
[合集] 问个MatLab小问题 (转载)[合集] A C++ Constructor Question
matlab: how to set defaul value for function argumentshow to input arguments in visual C++ .NET
来几个C++测试题C++ template function default argument 很怪?
C -- sample without replacement问个c++问题
C里面有没有default argument这么一说,是不是只有在C++里有这个feature?问一个C++问题:default parameter and overriding/inheritanc (转载)
相关话题的讨论汇总
话题: c++话题: console话题: about话题: input话题: able
进入Programming版参与讨论
1 (共1页)
s*****c
发帖数: 550
1
Hi,
I was trying to run some C programs (from UNIX environment) in VC++
environment, and I created a Win32 application Console as project. I need to
be able to input something like:
./executable.exe Arg0 Arg1 Arg2 > output.txt
But now, I can only have a console window flashed through, but not able to
get input arguments.
Shannon
T*****9
发帖数: 2484
2
VC++重定向比较困难
我一般都是
std::ofstream log("output.txt");
std::streambuf *oldbuf = std::cout.rdbuf(log.rdbuf());

to

【在 s*****c 的大作中提到】
: Hi,
: I was trying to run some C programs (from UNIX environment) in VC++
: environment, and I created a Win32 application Console as project. I need to
: be able to input something like:
: ./executable.exe Arg0 Arg1 Arg2 > output.txt
: But now, I can only have a console window flashed through, but not able to
: get input arguments.
: Shannon

s*****c
发帖数: 550
3
谢谢你的回复。

【在 T*****9 的大作中提到】
: VC++重定向比较困难
: 我一般都是
: std::ofstream log("output.txt");
: std::streambuf *oldbuf = std::cout.rdbuf(log.rdbuf());
:
: to

s******e
发帖数: 431
4
What does this mean?
"But now, I can only have a console window flashed through, but not able to
get input arguments."
If you want to use F5 to debug a console application, put parameters into
debug settings of project properties dialog.

to

【在 s*****c 的大作中提到】
: Hi,
: I was trying to run some C programs (from UNIX environment) in VC++
: environment, and I created a Win32 application Console as project. I need to
: be able to input something like:
: ./executable.exe Arg0 Arg1 Arg2 > output.txt
: But now, I can only have a console window flashed through, but not able to
: get input arguments.
: Shannon

s******e
发帖数: 431
5
oh, and use ctrl+F5 to run the application.

to

【在 s******e 的大作中提到】
: What does this mean?
: "But now, I can only have a console window flashed through, but not able to
: get input arguments."
: If you want to use F5 to debug a console application, put parameters into
: debug settings of project properties dialog.
:
: to

1 (共1页)
进入Programming版参与讨论
相关主题
问一个C++问题:default parameter and overriding/inheritanc (转载)matlab: how to set defaul value for function arguments
python: how to use an array as an argument来几个C++测试题
C++ 普及课程 (视频):Koenig Lookup - Argument Dependent Lookup (ADL)C -- sample without replacement
C++ static member method with default argumentsC里面有没有default argument这么一说,是不是只有在C++里有这个feature?
c++设计一问:如何动态地调用不同的算法的dll ?A simple question on Flex
如何定义 Javascript overload function ?gdb里怎么call member function
如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?Default function template arguments
[合集] 问个MatLab小问题 (转载)[合集] A C++ Constructor Question
相关话题的讨论汇总
话题: c++话题: console话题: about话题: input话题: able