Wednesday, September 26, 2012

INPUT/OUTPUT COMMAND AT C++

 OUTPUT COMMAND
1.      printf()
form of writing:
      printf(“my name’s is Yuni Setyowati”);
2.      cout()
form of writing:
cout<<”my name’s is Yuni Setyowati “;

3.      puts()
4.      form of writing:
puts(“my name’s is Yuni Setyowati”);

5.      putchar()
form of writing:
putchar(‘A’);
putchar(‘K’);
putchar(‘U’);
INPUT COMMAND
1.      scanf()
form of writing :
scanf(“%s”, &nama);

2.      cin()
fomy of writing:
cin>>name;

3.      gets()
form of writing:
gets(name);

4.      getch()
form of writing:
getch();

5.      getche()
form of writing:
getche();

No comments:

Post a Comment