Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4450196
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: C/C++

2008-04-08 20:36:08

Introduction

If you have ever written an MFC application, you may have missed console window. A console window is such convenient. Like me, you may believe that printf is the most excellent function for debugging. (I hate cout though. Don't use IOSTREAM and STL! They mess everything up!). You can terminate a not-responding program simply by pressing CTRL+C key on a console window without opening Task Manager. However, by default, an MFC application doesn't have a console window. But, adding a short source code (30 lines) to your project and changing a link option will add a console window to your MFC application.