Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C 中是否有可用的库/函数来漂亮地打印表格数据。我正在寻找这样的东西:http ://code.google.com/p/prettytable/
如果你真的想实现看起来像 Python 模块那样通用的东西,那么数据存储就是一个问题。当然,在 C 语言中将内容放入列表中并不容易。例如,您可能想查看glib 的 GVariant解决方案。在此基础上构建一个处理任何合理类型值的表格格式化程序将非常容易。
GVariant