load() - Adds a short, but effective loading screen |
I have created my own custom little add-on like thing for c++, called C++Extra it adds lots of new features! C++Extra (Version 0.01) http://www.filedropper.com/cextra I hope it helps you alot! Please reply feedback and anything I should add! Planned Features: Make the load() command be customizable, for example a border around it or not. var() - You type the variable name between ( and ) and it will created a variable called that. print() - It is cout but more easyer to type, just type text in the ( and ). wait() - Type a number of mili-seconds to wait between ( and ). It basically waits for the number of mili-seconds. Current Features: clear() - Clears the console load() - Adds a short, but effective loading screen |
|
|
|
|
enum Color { DARKBLUE = 1, DARKGREEN, DARKTEAL, DARKRED, DARKPINK, DARKYELLOW, GRAY, DARKGRAY, BLUE, GREEN, TEAL, RED, PINK, YELLOW, WHITE };
|
|
|
|
maxAllowedSize
- probably constantcurrentSize
- not constantSIZE
- probably a macro
|
|
using namespace std;
is frowned upon. Only the consequences for macro collisions are much worse, because at least with std collisions, you can still work them out with scoping rules. Macros have no scoping rules, so if you collide, you're boned.
|
|
using namespace std;
and seldom have I found programmers that end up willingly moving away from that to do one of the variants std::cout << "Text!" << std::endl;
or using std::cout; using std::endl; using std::cin;
.using namespace std;
in the scope of all functions and main().
std::<insert object>
mainly because I don't know everything about the STL, and I don't want any redefinition errors.
|
|