当前位置:网站首页>Harmonyos quick start: Hello World
Harmonyos quick start: Hello World
2022-07-19 12:24:00 【InfoQ】
Add source file
Write code
#include <stdio.h>
#include "ohos_init.h"
void Hello_World(void)
{
printf("Hello World!\r\n");
}
APP_FEATURE_INIT(Hello_World);structure BUILD.gn
static_library("myapp") {
sources = [
"hello_world.c"
]
include_dirs = [
"//utils/native/lit/include"
]
}Write the module compile the build file BUILD.gn
debugging Hello World Program
边栏推荐
- 机器学习(上)吴恩达
- String correlation function (II)
- Will webgpu become the killer of webgl?
- 机器学习作业1
- 第二天实验
- Detailed explanation of SQL blind annotation
- Detailed explanation of RAID disk array, raid classification, advantages and disadvantages
- C language drawing example - palette
- Matlab (4) functions and files
- Core base station_ The error "no gateways configured" is reported when starting the CPA file
猜你喜欢

C language drawing example - flower pattern

Mysql-1366 - Incorrect string value: ‘\xE5\xBC\xA0\xE4\xB8\x89‘ for column ‘userName‘ at row 1

Example of C language painting - progress bar

Talk about the redis cache penetration scenario and the corresponding solutions

HCIP(5)

Editing skills

字符串相关函数(二)

Arbitrum Nova 发布!打造低成本高速度的游戏社交领域专用链

es安装ik分词器

Microcomputer principle and technology Interface Experiment four subroutines and interrupt experiment
随机推荐
Genesis and bluerun ventures have in-depth exchanges
How to apply applet container technology to develop hybrid app
MyCat2搭建mysql主从分离
对Rapidly-exploring Random Trees(RRT)路径规划方法的理解
Solution: code error: error reported by error could not resolve
What is the relationship between softmax and cross enterprise?
招生宣传-江南大学
阿荷投资的思考
字符串相关函数(二)
Travail du quatrième jour
Acwing785. 快速排序
Example of C language painting - progress bar
三分钟了解mysql中主键、外键、非空、唯一、默认约束是什么,以及如何创建表
Matlab (4) functions and files
LeetCode_前缀和_中等_523.连续的子数组和
SwiftUI Swift 中的数据持久性,保存数据的不同方法
Mysql-1366 - Incorrect string value: ‘\xE5\xBC\xA0\xE4\xB8\x89‘ for column ‘userName‘ at row 1
Familiar with nestjs (beginner)
2022年了,跨端技术方案应该怎么选?
如何运行.sh脚本文件