# NativeTemplate **Repository Path**: harmonyos_codelabs/NativeTemplate ## Basic Information - **Project Name**: NativeTemplate - **Description**: 基于Native C++模板,实现通过Native API调用C标准库的功能。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2024-06-15 - **Last Updated**: 2026-01-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Implements the function of invoking the C standard library using NAPI ## Introduction This codelab describes how to use DevEco Studio to create a native C++ app and call the C standard library to calculate the square root of the sum of squares of two given numbers. The following figure shows the effect. ## Concepts - Native Development Kit (NDK): a collection of native APIs, compilation scripts, and compilation toolchains provided by the HarmonyOS SDK. It helps you implement key app functions using the C or C++ language. - Standard libraries: C library, C++ library, OpenSL ES, and zlib. ## Permissions N/A ## How to Use 1. Enter two numbers. Tap the Calculate button to generate the square root result of the sum of the squares of the two numbers. ## Constraints 1. The sample is only supported on Huawei phones with standard systems. 2. HarmonyOS: HarmonyOS 5.0.5 Release or later. 3. DevEco Studio: DevEco Studio 6.0.2 Release or later. 4. HarmonyOS SDK: HarmonyOS 6.0.2 Release SDK or later.