Writing a simple C++ Program
2011-05-24 22:54
423 查看
Today I write two simple cpp program,one is the console application ,and the second is the windows program.
here I just want to talk about the IO Redirection.As we know that the standard IO Library provide us the input and out.
sometimes such as we write the windows program ,most often we use MessageBox function to show some debug imformation. But this is not convenient. Infact Most operating systems give us a way of redirecting the input and output streams when we run a program. not just the console program ,also the windows can also redirect the io stream. below is my excution command line.
D:/cppworkspace/WindowApp/WindowsUI/Debug>WindowsUI.EXE >>d:/a.txt
D:/cppworkspace/WindowApp/Cppstudy/Debug>CppConsole.exe >>d:/a.txt
here I just want to talk about the IO Redirection.As we know that the standard IO Library provide us the input and out.
sometimes such as we write the windows program ,most often we use MessageBox function to show some debug imformation. But this is not convenient. Infact Most operating systems give us a way of redirecting the input and output streams when we run a program. not just the console program ,also the windows can also redirect the io stream. below is my excution command line.
D:/cppworkspace/WindowApp/WindowsUI/Debug>WindowsUI.EXE >>d:/a.txt
D:/cppworkspace/WindowApp/Cppstudy/Debug>CppConsole.exe >>d:/a.txt
相关文章推荐
- 1.1 Writing a Simple C++ Program
- Writing and Compiling A Simple Program For OpenWrt
- C++ - A Simple Calculator Program
- 1357 [Ba1000] Simple C++ Program
- WRITING A SIMPLE KUDU JAVA API PROGRAM
- Writing a Simple Program with Qt Creator
- C++之父文章1:How do I write this very simple program?
- Writing a Simple Service and Client (C++)
- [C++ Primer] 1.Write a Simple C++ Program
- Writing a Simple Publisher and Subscriber (C++)
- Simple "virus" like program in C++
- A simple libpng example program
- writing a java program with Native methods
- 设计模式(C++实现):simple factory pattern + singleton pattern
- C++ Mac OS program
- 【C++学习】【阶段一】Write a C++program
- Eclipse下编译C/C++程序出错:The program file specified in the launch configuration does not exist
- Data Structures and Program Design in C++
- Writing a Simple …