繁体   English   中英

Gitpod 运行一个 C hello world 程序

[英]Gitpod to run a C hello world program

我是 C 语言的新手,但我将Gitpod用于其他语言。 我想知道如何从Gitpod界面一步步运行这个简单的“hello world”main.c程序?

#include <studio.h>
void main(){
    printf("hello")
}

非常感谢 !

修复错误后,您可以使用gcc main.c编译代码并运行二进制a.out 已经提到的错误:

  • studio.h -> stdio.h
  • ...hello") -> ...hello");

你应该在 printf("hello") 之后放置;

//like this
printf("hello");
#include <stdio.h>
int main(){
    printf("hello");
    return 0;
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM