Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- #include <string>
- using namespace std;
- void SendColoredText(string str,int color);
- int main(){
- SendColoredText("Checking file...",15),SendColoredText("[",15),SendColoredText("><",4),SendColoredText("]\n",15);
- SendColoredText("Checking file...",15),SendColoredText("[",15),SendColoredText("\\/",2),SendColoredText("]\n",15);
- system("PAUSE");
- return 0;
- }
- void SendColoredText(string str, int color){
- HANDLE hConsole;
- hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(hConsole, color);
- cout << str;
- SetConsoleTextAttribute(hConsole, 15);
- }
Advertisement
Add Comment
Please, Sign In to add comment