C语言初识

来源:互联网 发布:中国钢铁软件 编辑:程序博客网 时间:2024/06/05 17:15
   
#include <stdio.h> //include 相当于java中的import ;stdio:standard input$output 标准的输入输出;.h头文件的后缀#include <stdlib.h> //标准的c语言函数库main { //c语言中称作main函数       相当于java中的     static void main (String args[]) {}         printf(“Hello world!\n”); //c中的输出函数 ,相当于java中的System.out.print(“Hello world!\n”); \n是通用的回撤换行命令     system("cale");           //调起计算器     system("mspaint");        //调起画板     system("services.msc");   //调起服务 system("pause"); //让docs命令执行pause(终端显示当前效果)命令,作用时控制台停留}//函数的结束 

                                             
0 0
原创粉丝点击