Kamis, Juli 12, 2012

Make Colored Text On Turbo Pascal




To make colored text on Run result of Turbo Pascal programming, we must use uses crt; function and add code:
textcolor(color_code);
before text which will be on target, for example: color code for green color is 2, then in syntax can be exemplified as follow:

uses crt;
begin
textcolor(2);
writeln('Text with color code 2 is green');
readln;
end.

Yeah, only that, for some color code list and example for its program can be downloaded here, please change color code with diffrent number, thanks...

2 komentar:

kok ga bisa kode nya

4 rady unita >>> makasih telah berkunjung ke sahabat-informasi.com ^_^,

mungkin sdr. rady unita keliru dalam mengetikkan kode, soalnya udah dicoba kembali kodenya bisa digunakan:

silakan lihat videonya di sini:

http://www.youtube.com/watch?v=fedfnJVgDCA

kalau ada keraguan, silakan hubungi sahabat kembali...

terima kasih... :-)