VSCode for firmware development

Four months ago, I went to a city on a business trip where some of my friends were working. Needing some tools to support my work, I recommended a fantastic coding and debugging tool—VS Code. To my surprise, my friends were not familiar with this tool.

While there are numerous coding tools available, including various IDEs, Uledit, and Source Insight, I believe that VS Code stands out as the best option, and the fact that it’s free makes it even more appealing. If you’re looking to learn Python, you can easily install Python and its extension on your PC. This allows you to code and debug Python projects seamlessly. Similarly, if you aim to enhance your C programming skills, you can install GCC on your PC and leverage VS Code for coding and debugging C code.

Trust me, if you haven’t explored this application yet, I highly recommend checking it out. You can familiarize yourself with it by visiting the following link: https://code.visualstudio.com/. Start using it, and you’ll likely find it to be a valuable asset for your coding endeavors.

#include <stdio.h>

int main() {
    // Declare variables
    int num1, num2, sum;

    // Input: Ask user to enter two numbers
    printf("Enter the first number: ");
    scanf("%d", &num1);

    printf("Enter the second number: ");
    scanf("%d", &num2);

    // Calculate the sum
    sum = num1 + num2;

    // Output: Display the result
    printf("The sum of %d and %d is: %d", num1, num2, sum);

    return 0;
}
// result:
// PS E:\006-Programing\007-c> gcc -o main  main.c
// PS E:\006-Programing\007-c> ./main
// Enter the first number: 23
// Enter the second number: 65
// The sum of 23 and 65 is: 88
// PS E:\006-Programing\007-c> 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值