These are just some of the more useful #define statements I've used in C++. These are some of the statements you'll use the most (in the case of template<typename T> when you use it, you use it a lot!). So I figured I'd post it for others, even though a lot of the programmers probably already have this list.
#define out cout<< #define in cin>> #define n "\n" #define nn "\n\n" #define type template<typename T> #define sp system("pause"); #define f_loop_l for (int i = 0; i < x; i++) // Replace 0 and/or x with a specific number #define f_loop_g for (int i = 0; i > x; i++) // Replace 0 and/or x with a specific number
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.