I've been writing a small CLI program in C++ which will take and store some student data in ram and will manipulate them when needed.
I've 2 questions now.
1. I like to create a splash screen nothing fancy like displaying a image or anything like to keep it simple some text massage in the same window some up after a small time period the main program loads how can I archive this I've been going through "google" and trying every thing but ending in disaster.
2. I want to change the font color and the background color of the console so it will be little more easy on the eyes of the user can this be cone using the command SYSTEM(color b2) the way we change the color in CMD normally.
And please keep in mind I've just started to wonder in to the big world of C++ I'm still maggot compared to you guys I might nag you but please bear with me.
Thank you.
Sorry for the double post but I was not getting any answers in beginners forum.
For a console application, all you need to do is print your spash as soon as you enter main. Then do all your loading while the user is admiring your ASCII art, and then present the first prompt.
1 2 3 4 5 6 7 8 9 10
int main( int argc, char** argv )
{
display_splash();
initialize( argc, argv );
while (main_menu()) { }
return 0;
}
Duoas I was reading lots of post made by you helped me a lot sorry for being a nag can you please elaborate on the splash screen part I worked out most of the text coloring using your posts.
Thanks to your posts I managed to get the text color changed I want to change the background color as well can I use the same function ?
I'm still finding my way around C++
And I've seen you're not grate fan of using system() I'm using that command to set the window title, clear the screen and to pause the program is there any other way of doing this properly.