-
Font/Text Colour
8 royal blue arial
Hey I was wondering if anyone can help,I'm a first year college student and doing an assignment but I sa something that would make it look really great but I can't remember where I saw it , there are comands to change the colour of text and make them 'flash' etc in C they were like \1 and \2 I think... If anyone can help I would really appreciate it, I use both Borland and Visual C++
Cheers Dutch's Finest (Ahhh the Dutch Gold sorry an Irish joke)
-
Can you be more specific?
There are many compilers from both sources, and there is no single good answer given the range of possibilities
-
Sure, well I want the main menu of the code bellow to flash and have different text colors
My code is attached have a look and tell me what you think...
-
As far as the program is concerned, there are a couple of points you might want to look at:
1) Main should be like this Also I see you used fflush( stdin ); to clear your buffer. You should have a look at this and this.
As far as the text colour thing goes, good luck. You can look
here for a start. Then try a search on the board.
~/
-
The first thing you need to do is to discover functions. A 400+ line main() which has barely begun to grow to its true size is a horrifying prospect.
Like every case in main() should be
case 1: do_british(); break;
case 2: do_danish(); break;
The second thing you need to do is get a lot more consistent about your indentation. Every editor has a different view of tabs, so stick to using just spaces for indentation. Then at least your code will look the same to everyone.
Since you included conio.h, I guess
cprintf()
textcolor()
textattr()
are the functions you need to be looking at