- Android 平台下的helloworld
- 打开QT创建一个Qt Widgets Application
(2)创建一个名为AndroidHelloWorld的项目
(3)在构建套件中我们选择Android for armeabi-7a(GCC 4.8 Qt 5.2.0)
创建一个基于Android的套件
(4)在main.cpp中我们添加如下的一段代码
#include //调用日志输出函数
int main()
{
_android_log_print(ANDROID_LOG_DEBUG, "itcast","hello world hello yincheng "); //输出调试信息
return 1;
}
(5)启动名为itcast的虚拟设备
(6) 打印出了 hello world hello yincheng
2、Linux下 gcc 编译1.c 生成a.out
打印出hello world hello itcast hello yincheng
3、Linux下 Eclipse 打印 helloworld
4、Linux下QT
(1)创建一个C项目
(2)QT 打印Hello World
(3)Linux 下Code::Blocks 打印HelloWorld