ďťż

Ładny brzuch

Mam problem w C++. Pisze program ktory jest pozniej wykonywany w konsoli dosowej.Chcę aby powiedzmy wynik z danego działania był wyświetlany w tle innego koloru ale aby tło miał tylko jeden wyświetlany wiersz a reszta miała kolor tła taki jak jest zawsze:)

Three Rings for the Elven-Kings under the sky. Seven for the Dwarf-lords in their halls of stone. Nine for mortal men doomed to die. One for the DArk Lord on his dark throne. In the land of Mordor where the shadows lie. One ring to rule them all, One ring to find them, One ring to bring them all in the darkness bind them. In the Land of Mordor where the shadows lie.



nie ma konsoli dosowej :chytry: albo piszesz program pod kompilatorem dosowym i masz program dosowy albo piszesz aplikacje konsolowa pod kompilatorem windowsowym [w tym wypadku nie odpalisz tego progsa w czystym dosie].
napisz najlepiej jakiego kompilatora uzywasz...

pozdrawiam
pepsi^no1

Używam Dev-C++4.9.8.0 i tworze zawsze nowy plik pod nazwą "Console aplication"

Three Rings for the Elven-Kings under the sky. Seven for the Dwarf-lords in their halls of stone. Nine for mortal men doomed to die. One for the DArk Lord on his dark throne. In the land of Mordor where the shadows lie. One ring to rule them all, One ring to find them, One ring to bring them all in the darkness bind them. In the Land of Mordor where the shadows lie.

cytat:matys napisał:

Używam Dev-C++4.9.8.0 i tworze zawsze nowy plik pod nazwą "Console aplication"

Three Rings for the Elven-Kings under the sky. Seven for the Dwarf-lords in their halls of stone. Nine for mortal men doomed to die. One for the DArk Lord on his dark throne. In the land of Mordor where the shadows lie. One ring to rule them all, One ring to find them, One ring to bring them all in the darkness bind them. In the Land of Mordor where the shadows lie.

To do nagłówków dodaj conio.c

i do kolorów masz funkcje
textbackground
textcolor

np. textcolor(15); po tym tekst będzie biały

Programista nie wielbłąd wypić musi :D



temat juz sie przewijal przez forum:
http://www.ks-eksper...p?TOPIC_ID=6338
http://www.ks-eksper...p?TOPIC_ID=5501
http://www.ks-eksper...p?TOPIC_ID=5145

zobacz rowniez:
http://www.gametutorials.com/
http://msdn.microsof...e_functions.asp

pozdrawiam
pepsi^no1

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • zsf.htw.pl
  •