void color(int fg, int bg)
{
HANDLE H = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(H, bg * 16 + fg);
}
Default colors: color(15, 0);
Colors:
0: Black/Noir
1: Dark Blue/Bleu Foncé
2: Green/Vert
3: Blue-Grey/Bleu-Gris
4: Marron
5: Purple/Violet
6: kaki
7: Light Grey/Gris Clair
8: Grey/Gris
9: Blue/Bleu
10: Neon Green/Vert Fluo
11: Turquoise
12: Red/Rouge
13: Neon Pink/Rose Fluo
14: Neon Yellow/Jaune Fluo
15: White/Blanc
=================================================================
http://patorjk.com/software/taag/#p=display&f=Big%20Money-nw&t=Ascii
std::cout << R"(
$$$$$$\ $$\ $$\
$$ __$$\ \__|\__|
$$ / $$ | $$$$$$$\ $$$$$$$\ $$\ $$\
$$$$$$$$ |$$ _____|$$ _____|$$ |$$ |
$$ __$$ |\$$$$$$\ $$ / $$ |$$ |
$$ | $$ | \____$$\ $$ | $$ |$$ |
$$ | $$ |$$$$$$$ |\$$$$$$$\ $$ |$$ |
\__| \__|\_______/ \_______|\__|\__|
)" << std::endl;
=================================================================
=================================================================
#include <iostream>
#include <boost/dll.hpp> //Debug&Release => Only x86
#include <windows.h>
void main() {
SetConsoleOutputCP(CP_UTF8);
std::string name = boost::dll::program_location().filename().string();
std::cout << name << std::endl;
system("pause");
}
=================================================================
std::string a = "Dick Head";
if (a.find("Head") != std::string::npos) {
std::cout << "Found" << std::endl;
} else {
std::cout << "Not Found" << std::endl;
}
=================================================================
#include <iostream>
#include <Windows.h>
int main()
{
std::cout << "Hello World!\n" << GetSystemMetrics(SM_CXSCREEN) << "x" << GetSystemMetrics(SM_CYSCREEN) << std::endl;
}