您的位置:首页 > 编程语言 > C语言/C++

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息