1 #include <stdio.h> 2 3 void main() 4 { 5 printf("Hello World!\n"); 6 }
幾乎學習任何語言接觸到的第一個語言都是Hello World!
先是頭文件.(stdio.h是standard input and output的縮寫)
然后是主函數,主函數名稱一定是main.
主函數內部調用printf()函數輸出字符串:Hello World!
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。