Contoh Gambar |
Pertama :
-----------------------------------------------------------------------------------------------
#include <iostream>
#include <stdlib.h>
using namespace std;
int baris();
int main()
{ baris();
cout << "Nama\t\t : Frengky " << endl;
baris();
cout<<"Alamat\t\t : Jakarta "<<endl;
baris();
cout<<"Pekerjaan\t : Bos Kardus Bekas "<<endl;
baris();
cout<<endl;
system("pause");
return 0;
}
-----------------------------------------------------------------------------------------------
Kedua Membuat Baris :
- Buka File
- Klik New
- Klik File
- Empty File
- Go
- Klik sebelah kanan "filename with full path"
- Ketik "baris.cpp"
- Save
- Klik "All"
- Finish
- Ketik seperti dibawah ini :
-----------------------------------------------------------------------------------------------
#include <iostream>
using namespace std;
int baris()
{
cout<<"=================================="<<endl;
return 0;
}
COMPILE.....
-----------------------------------------------------------------------------------------------
Lalu COMPILE di MAIN.CPP.....
Selamat mencoba....
Tidak ada komentar:
Posting Komentar