C Language Tutorial – Metallica will kick your ass

#include

int main(int argc, char**argv) {
const std::string red(“\033[0;31m”);
const std::string reset(“\033\[0m”);

// Prints welcome message…
std::cout << "Hey Metal Heads, Welcome ...\n" << std::endl; std::cout << red << "Metallica Will Kick Your Ass! \n" << reset << std::endl; // Prints arguments... if (argc > 1) {
std::cout << std::endl << "Arguments:" << std::endl; for (int i = 1; i < argc; i++) { std::cout << i << ": " << argv[i] << std::endl; } } return 0; }

Leave a Reply

Your email address will not be published. Required fields are marked *