|
- #include "ace/Log_Msg.h"
- void foo (void);
- int ACE_TMAIN (int, ACE_TCHAR *[])
- { ACE_TRACE(ACE_TEXT ("main"));
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHi Mom\n")));
- foo();
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGoodnight\n")));
- return 0;
- }
- void foo (void)
- { ACE_TRACE (ACE_TEXT ("foo"));
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHowdy Pardner\n")));
- }按照书上写的有下面的结果(1024) calling main in file `Simple1.cpp' on line 7
- Hi Mom
- (1024) calling foo in file `Simple1.cpp' on line 18
- Howdy Pardner
- (1024) leaving foo
- Goodnight
复制代码 (1024) leaving main 我怎么没看见 (1024) calling main in file `Simple1.cpp' on line 7 (1024) calling foo in file `Simple1.cpp' on line 18 (1024) leaving main这几行啊 !!!??? |
|