cara merubah warna text di borland c++

cara merubah warna text di borland c++



Assalamu'allaikum Wr.Wb

kali ini saya akan share cara merubah warna text di borland c++

langsung saja saya kasih tutorialnya !!

pertama tambahkan library nya

  #include <windows.h>

Kedua tambahkan

  system ("COLOR A");

# warna hijau menunjukan warna yang digunakan jika ingin menggantinya silahkan....


contoh kode yang sudah jadi bisa diihat dibawah ini


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

void main()
{
system ("COLOR A");
clrscr();
   printf("+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \n");
printf("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \n");
printf("< < < < < < < < < < < < < < < < < < <  BIODATA > > > > > > > > > > > > > > > >\n");
printf("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \n");
   printf("= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \n");
printf("             Nama              : ");
printf("Muh. Syihabudin Sholeh\n");
printf("             TTL               : ");
printf("Klaten, 25 Maret 1997\n" );
printf("             Jenis Kelamin     : ");
printf("laki-laki\n" );
printf("             Alamat            : ");
printf("Tonanggan, Delanggu, Delanggu, Klaten\n");
printf("             Nomor Hp          : ");
printf("085725629333\n");
printf("             Agama             : ");
printf("Islam\n");
printf("             Gol. darah        : ");
printf("O\n");
printf("             Hobbi             : ");
printf("Belajar\n");
printf("             Cita-cita         : ");
printf("Programer\n");
printf("             Motto Hidup       : ");
printf("Manusia Biasa yang mempunyai mimpi luar biasa\n");
   printf("= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \n");
printf("- - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - -  \n");
printf("> > > > > > > > > > > > > > > > > > > END < < < < < < < < < < < < < < < < < < \n");
printf("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \n");
   printf("= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \n");
getch();
}



* semoga bermanfaat

0 Response to "cara merubah warna text di borland c++"

Post a Comment