你可以参照C++11的可变长参数模版,QT是支持的(QT5没问题) 给你个连接,你看看:http://www.cnblogs.com/zenny-chen/archive/2013/02/03/2890917.html
类似于这样? printf("%d",i); printf("%s",s); printf("the number is %d ,string is:%s", i, s); 那么至少QT的QDebug就可以做到
16,810
社区成员
26,684
社区内容
加载中
试试用AI创作助手写篇文章吧