Commit 606af6bb authored by Zhuoyu Zhang's avatar Zhuoyu Zhang
Browse files

第一次提交

parent c561153e
{
"MicroPython.executeButton": [
{
"text": "▶",
"tooltip": "运行",
"alignment": "left",
"command": "extension.executeFile",
"priority": 3.5
}
],
"MicroPython.syncButton": [
{
"text": "$(sync)",
"tooltip": "同步",
"alignment": "left",
"command": "extension.execute",
"priority": 4
}
]
}
\ No newline at end of file
cmake_minimum_required (VERSION 2.8)
project (main)
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
aux_source_directory (src SRC_LIST)
include_directories (include)
add_executable (main ${SRC_LIST})
\ No newline at end of file
File added
#ifndef _PRINT_H
#define _PRINT_H
#include <stdio.h>
void print();
void print1();
#endif
\ No newline at end of file
#include "print.h"
int main()
{
print();
print1();
}
#include "print.h"
void print()
{
printf("Hello World!");
}
\ No newline at end of file
/**
* @file print1.c
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2023-05-10
*
* @copyright Copyright (c) 2023
*
*/
#include "print.h"
/**
* @brief 输出Hello XLab!
*
* @param x
* @return int
*/
int print1(int x)
{
printf("%d,Hello XLab!",x);
return x+1;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment