[英]Gitpod to run a C hello world program
I am new to C language but I use Gitpod for other languages.我是 C 语言的新手,但我将Gitpod用于其他语言。 I would like to know how to run this simple "hello world" main.c program from the Gitpod interface step by step?
我想知道如何从Gitpod界面一步步运行这个简单的“hello world”main.c程序?
#include <studio.h>
void main(){
printf("hello")
}
Many thanks !非常感谢 !
After fixing the errors you can compile the code with gcc main.c
and run the binary a.out
.修复错误后,您可以使用
gcc main.c
编译代码并运行二进制a.out
。 Errors as already mentioned:已经提到的错误:
studio.h
-> stdio.h
studio.h
-> stdio.h
...hello")
-> ...hello");
...hello")
-> ...hello");
after the printf("hello") you should put;你应该在 printf("hello") 之后放置;
//like this
printf("hello");
#include <stdio.h>
int main(){
printf("hello");
return 0;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.