NS2代码查看方法
最近看《NS與網絡模擬》教材,經常要查看NS2的源代碼,可NS2太過復雜,通過XP的資源管理器看了幾天,發現太累!Google了以下,發現有個軟件在XP下結合Cygwin的NS2平臺,可以很方便地查看源代碼,尤其是NS2繁雜的各種類與成員! http://ns2.superliu.co.cc/entries/ns2/view-ns-source-code-using-source-insight 此鏈接有如何使用Source-insight軟件的詳細介紹,但不知何故,其中部分鏈接地址有問題,特更正如下以備不時只需: Download Source Insight (http://www.sourceinsight.com) 此軟件的官網 Introduction: http://www.sourceinsight.com/prodinfo.html軟件介紹 Trial Version: http://www.sourceinsight.com/eval.html?可下載使用版本 User Manual: http://www.sourceinsight.com/docsv3.html使用手冊,界面很友好,對于NS2代碼的查看而言,不需要! Adding support for .cc file:??? 添加對.cc文件格式的支持 1.?Click “Options” Menu --> “Document Options” Dialog 2.?In “Document Options” Dialog: Select "C++ Source File" in "Document Type" Droplist --> Add “;*.cc” in “File filter”--> Click “Close” Button Adding support for .tcl file: 添加對.tcl文件格式的支持 1.?Download tcl language file from: http://www.sourceinsight.com/public/languages/TCL.CLF 2.Click “Options” Menu --> “Preferences” Dialog --> “Languages” Tab 3.In “Languages” Tab: Click “import” Button --> Select “TCL.CLF” to import the tcl language file --> Select “TCL” in “Language” --> Click “Doc Types…” Button in “Languages” Tab --> “Document Options” Dialog 4.?In “Document Options” Dialog: Click “Add Type…” Button --> Type “tcl” as Document Type Name --> Type “*.tcl” in “File filter” --> Select “TCL” in “Language” Droplist --> Select "Include when adding to projects" Checkbox --> Click “Close” Button Import NS2 Source code? 導入NS2的源代碼,以便查看! 1.?Click "Project" Menu --> New Project --> Type “NS2” as the project name --> Click “OK” Button --> Click “OK” Button in “New Project Setting” Dialog --> “Add and Remove Project Files” Dialog 2.In “Add and Remove Project Files” Dialog: Select the NS2 source code file folder --> Click “Add All” Button --> Select “Recursively add lower sub-directories” --> Click “OK” Button --> Click “OK” for importing source code --> Click “Close” Button in “Add and Remove Project Files” Dialog 以上內容均來自http://ns2.superliu.co.cc/entries/ns2/view-ns-source-code-using-source-insight?,略有修改!
轉載于:https://blog.51cto.com/xgucs/184556
總結
- 上一篇: 10分钟口语
- 下一篇: oracle远程连接配置