摘要: 本文转自:http://blog.csdn.net/xingjiarong/article/details/47656339 利用关键字extern,可以在一个文件中引用另一个文件中定义的变量或者函数,下面就结合具体的实例,分类说明一下。 一、引用同一个文件中的变量 如果按照这个顺序,变量 num在 阅读全文
posted @ 2017-06-16 10:59 夜行过客 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 上午在linux环境下,使用QT编译一段C++代码,出现下列错误: 最近在stackoverflow上找到了答案: i was also having the same problem so what i did is For linux and then closed the qt creator 阅读全文
posted @ 2017-06-16 10:36 夜行过客 阅读(4496) 评论(0) 推荐(0) 编辑