Pages

Subscribe:

Rabu, 05 Juni 2013

Header File ^materi^

* File header berisi prototype (judul, nama dan sintak)sekumpulan fungsi tertentu (akan disimpan di file pustaka/ file library dengan executable .LIB) 
* Inisial: prototype dari fungsi-fungsi pustaka. printf ( ) dan scanf ( ) terdapat di file header stdio.h

Penulisan file header
#include //Atau #include "stdio.h"


contoh #include "stdio.h"
#include "iostream.h" 
main() 

cout <<"Hello world";
 getch();
}




Menggunakan fungsi printf() / scanf()
Kode Format :
%c :     Karakter
%s :     String
%d :     Integer
%i :      Integer
%u :     Integer tak bertanda (bilangan positif)
%x :     Nilai hexadesimal
%o :     Nilai Oktal
%f :     Bilangan Real/Pecahan
%e :     Notasi scientific
%li :     Long Integer

@ Semoga bermanfaat ya info'x