C语言可以Run EveryWhere,也可以用各种IDE跑起来

 

1、我们启动Mac机下的QT创建一个Qt Widgets Application项目

QT ios system

2.然后我们把创建的项目命名为QTioscode

QT ios system

3.在构建套件中我们选择第三个

QT ios system

4.在详情中我们不做任何修改

QT ios system

5.单击完成

QT ios system

6.在main.cpp中添加如下代码

#include<stdio.h>

#include<stdlib.h>

 

printf("hello ios hello yincheng") ;

system("date");   //显示出日期

system("time");   //显示出时间

system("ls");     //遍历出当前文件夹下的所以文件

QT ios system

 

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2021-04-09
  • 2021-12-22
  • 2021-12-26
  • 2021-11-27
  • 2021-05-28
猜你喜欢
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-04-11
相关资源
相似解决方案