CC for beginner C Programming Tel 016 270
C/C++ for beginner ម រ នទ ២ ក រច បផត មជ មយនង C Programming រ បច នងបងរ នដ យ៖ អន សភ Tel: 016 270 878 /097 200 13 99 Email: insophea 1987@gmail. com
ឧទ ហរណទមយ C++ language #include<conio. h> #include<stdio. h> #include<iostream> using namespace std; int main() { cout<<"Hello everyone"; getch(); return 0; } ឧទ ហរណទពរ C language #include<conio. h> #include<stdio. h> int main() { printf("Hello everyone"); getch(); return 0; }
ឧទ ហរណទមយ C++ Language #include<stdlib. h> #include <iostream> using namespace std; int main () { int i; cout << "Please enter an integer value: "; cin >> i; cout << "The value you entered is " << i; system("pause"); return 0; } START INPUT PROCESS OUTPUT END
C/C++ for beginner ឧទ ហរណទពរ C Language #include<stdio. h> #include<stdlib. h> int main () { int i; printf("Please enter an integer value: "); scanf("%d", &i); printf("The value you entered is %d", i); system("pause"); return 0; } START INPUT PROCESS OUTPUT END
ឧទ ហរណទមយ #include<stdlib. h> #include<conio. h> #include<iostream> using namespace std; int main() { char ch=getch(); cout<<"Input char is "<<ch<<"n"; system("pause"); return 0; } ឧទ ហរណទប ឧទ ហរណពរ #include<stdlib. h> #include<stdio. h> #include<iostream> using namespace std; int main() { char ch=getchar(); cout<<"Input char is "<<ch<<"n"; system("pause"); return 0; } #include<stdlib. h> ត getch(), getchar(), getche() #include<conio. h> #include<iostream> using namespace std; int main() { char ch=getche(); cout<<"Input char is "<<ch<<"n"; system("pause"); return 0; } បរ សមរ បធវ អវ? ខសគន ដចមត ច ?
- Slides: 11