WELCOME!

Selamat datang di blog Trilogy21 dan Dewadennya++.

Semua inspirasi, inovasi, kreasi, motivasi, persahabatan, beberapa materi ilmu pengetahuan.


pengetahuan dasar coding borland c++


Jangan cuma co-pas. dipelajari lebih dulu sob!

#include <iostream.h>
#include <stdio.h>
#include <conio.h>

main()
{
char lagi;
atas:
clrscr();
cout << "\t      TUGAS 1 BORLAND C++\n" << endl;
cout << "\t ELECTRICAL ENGINEERING 2011\n" << endl;
cout << "\t      SELAMAT DATANG DI FORM MAHASISWA\n" << endl;
cout << "_________________________________________________________" << endl;

char nama[21], NB[20], NI[20], hobi[20], U[20], F[20], P[20];
cout << " Nama Panggilan             : ";
gets (nama);
cout << " Nama Bapak                  : ";
gets (NB);
cout << " Nama Ibu                      : ";
gets (NI);
cout << " Hobi Anda                     : ";
gets (hobi);
cout << " Tempat Kuliah               : ";
gets (U);
cout << " Fakultas             : ";
gets (F);
cout << " Program Studi                : ";
gets (P);
clrscr();
{
cout << "\t             FORM MAHASISWA\n " << endl;
cout << "\t         TEKNIK ELEKTRO UNRAM\n " << endl;
cout << "\t    BAHASA PEMROGRAMAN BORLAND C++\n " << endl;
cout << "_____________________________________________\n" << endl;
cout << "  Nama Panggilan            : " <<nama<<endl;
cout << "  Nama Bapak                 : " <<NB<<endl;
cout << "  Nama Ibu                     : " <<NI<<endl;
cout << "  Hobi Anda                    : " <<hobi<<endl;
cout << "  Tempat Kuliah              : " <<U<<endl;
cout << "  Fakultas                        : " <<F<<endl;
cout << "  Program Studi               : " <<P<<endl;
cout << "  "<<endl;
cout << "\t                       Tertanda" << endl;
cout << "\t                    "<<nama<< " "<<endl;
cout << "\____________________________________________\n" << endl;

cout << "Mau mencoba lagi [Y/T]=";
cin >> lagi;
if(lagi=='Y' || lagi=='y')
goto atas;
getch();
}
getch();
}

Tidak ada komentar: