1、打开codeblock开发环境,进入首页面,进入准备工作。


3、编写代码:编写代码首先要写头文件,否则会出现不能识别的错误。如果主函数为void而不是int,return 0 可不写。#include<stdio.h>int main(){ printf("hello word!\n"); return 0;}
4、程序运行:点击右上角的运行按钮,程序编译完成。

时间:2024-10-27 04:59:35
1、打开codeblock开发环境,进入首页面,进入准备工作。
3、编写代码:编写代码首先要写头文件,否则会出现不能识别的错误。如果主函数为void而不是int,return 0 可不写。#include<stdio.h>int main(){ printf("hello word!\n"); return 0;}
4、程序运行:点击右上角的运行按钮,程序编译完成。