and why do people say that std:: is better then using namespace?
also, what is a better way to make the console window stay shown in the following code? i know it is bad to use system("well_anything_really"); but that what i knew would fix the problem.
without it the console did not show and it would display a window with no size. just the bar on top (name, minimize button, unavailable max button, exit)
how can i fix this?
i am learning allegro5 and have written a simple program. it starts with a console box and asks the user to type the width and height and then it displays an all white window of the given size and a line of text that also states what the size is. it works out well.
am i on the right track? i feel that learning this is coming along fairly well.
i found that for the line of text i have 300x50 is a good size minimum so nothing gets cut off. so i made the computer prevent any numbers from being input that are lower then 300x50
i also allowed the user to set how long the window stays open for.
any comments? am should i be doing anything different? thanks a lot for the help.
cout << "please enter the width and height of your window(atleast 300x50), and a display time(in seconds): ";
cin >> width;
cin >> height;
cin >> time;