可能重複: C++ table data structure that can be displayed in a terminal 進出口尋找在C++樹數據結構impelementation,其可以可視化樹在控制檯。 事情是這樣的: [pseudo code]
makeTree(root);
addChild(root,child1);
addChild(child1,child1.1)
#include <stdlib.h>
#include <Windows.h>
#include <Tchar.h>
HANDLE wHnd; // Handle to write to the console.
HANDLE rHnd; // Handle to read from the console.
int _tmain(int argc, _TCHAR* argv[])