我在哪里可以找到在NS2库的cpp文件中生成的打印信息,其中我添加了一些cout()函数来打印一些信息
Where can i find the printed information generated in the cpp files of NS2 library in which I added some cout() functions to print some information?
我在linux中使用ns2来做一些网络实验。 我在 ns 库的一些 cpp 文件中添加了一些打印行(通过函数 cout())。但是当我执行 TCL 脚本时,我在屏幕上看不到打印的信息。那么我在哪里可以找到 cpp 文件中生成的打印信息?
@Ryan ,嗨。
Ns2是一个otcl/tcl应用程序。"函数"也必须编译成ns-2.3x/tcl/lib/{ files.tcl }。
示例"打印消息"是默认的 HELLO :
CD NS-2.3X/TCL/lib/&&grep -in hello ns-lib.tcl
860:自我在 0.0 "$ragent启动" ;# 启动信标/你好消息
867: 自我在 0.0 "$ragent启动" ;# 启动信标/你好消息
891: 自我在 0.0 "$ragent启动" ;# 启动信标/你好消息
您还可以检查 HELLO 在 files.cc 中的位置:CD NS-2.3X/&&格雷普-凛你好 *
-
相关文章:
- 按字母顺序打印存储在字符数组中的信息
- CppUnit:如何立即打印故障详细信息
- 当遇到不是来自 STL 的未捕获异常时,有没有办法打印其信息?
- C++代码不打印信息,有什么问题?
- 有打印库信息的命令吗?(C++)
- C GTEST在测试结束时仅在测试失败时打印其他信息
- 如何使dumpObjectInfo打印调试信息
- 将虚函数与类和构造函数一起使用来打印书籍信息
- 试图在C++中打印存储在类型对象数组中的信息
- boost::exception-如何打印详细信息
- 我在哪里可以找到在NS2库的cpp文件中生成的打印信息,其中我添加了一些cout()函数来打印一些信息
- 为类打印输出(打印调试信息)的最佳实践是什么?
- 在编译时分配内存的工厂模式,以及如何打印编译时信息
- 可以#define用于打印信息
- 在cpp中使用libpcap打印RTP头信息
- 如何使用for循环从数组中打印出交替的信息
- 如何检索或打印"Catch"信息记录缓冲区?
- 打印数字签名信息
- 通过循环另一个用于搜索文件的函数从文件中打印出信息- c++
- 我可以使用什么Mac/iOS/便携式库来格式化信息以打印到标签纸上