လာလည္ေသာမိတ္ေဆြအေပါင္းတို႔ တစ္ေန႕ကို ကုသုိလ္ ၊ ပညာ ၊ ဥစၥာ တစ္ခုခုကို ရရွိၾကပါေစ။

Monday, March 5, 2012

c progrmming tutorials

#include<stdio.h>
 
int main()
{
      printf("Hello world\n");
      return 0;
}
 
ဒီမွာဆိုရင္ေတာ့ #include ဆုိတာ  The '#' sign tells the preprocessor, which scans the code before
 sending it to the compiler, to do something. "include" tells the preprocessor that the following 
file is to be included in the compiling process. When the compiler compiles the source code,
 it also compiles the file indicated, in the case a header file called "stdio.h" which contains 
macros and prototypes and variable types for input/output functions.
အေျဖကေတာ့ hello world ကိုထုတ္ေပးမွာျဖစ္ပါတယ္..<stdio.h> ဆိုတာ standard input and output ျဖစ္ပါတယ္..
main() function ကေတာ့ အဓိကတြက္ထုတ္ေပးမွာျဖစ္ပါတယ္..မပါလုိ႔မရပါဘူး..မိမိတို႔ output ကိုျမင့္ခ်င္ရင္ေတာ့ return 0 ေနရာမွာ
getch()function ကုိထည့္ေပးပါက ျမင္ေတြ႔ၾက၇မွာျဖစ္ပါတယ္...save တဲ့ေနရာမွာ .c ျဖင့္ save ေပးပါ..ေပ်ာ္ရြင္ပါေစ..


No comments: