C++ Projects

Source Code for Project 1

#include <iostream> #include <limits> #define _WIN32_WINNT 0x0500 #include <windows.h> char l = 176; char m = 177; char d = 178; int main() { HWND console = GetConsoleWindow(); RECT r; GetWindowRect(console, &r); //stores the console's current dimensions //MoveWindow(window_handle, x, y, width, height, redraw_window); MoveWindow(console, r.left, r.top, 800, 600, TRUE); for (int j = 0; j < 100; ++j) { for (int i = 0x41; i < 0x5B; ++i); } std::cout << std::endl; Sleep(1000); MoveWindow(console, r.left, r.top, r.right - r.left, r.bottom - r.top, TRUE); std::cout << "8\"\"\"\"8 8\"\"\"\"8 " << std::endl; std::cout << "8 8 eeeee eeeee e eeee 8 \" " << std::endl; std::cout << "8eeee8ee 8 8 8 \" 8 8 8 8e 8 8 " << std::endl; std::cout << "88 8 8eee8 8eeee 8e 8e 88 ee8ee ee8ee " << std::endl; std::cout << "88 8 88 8 88 88 88 88 e 8 8 " << std::endl; std::cout << "88eeeee8 88 8 8ee88 88 88e8 88eee8 " << std::endl << std::endl; std::cout << "8\"\"\"\" \"\"8\"\" " << std::endl; std::cout << "8 e e eeeee eeeee eeeee eeeeeee eeee eeeee eeeee eeeee e 8 e e eeeee eeee eeeee " << std::endl; std::cout << "8eeee 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8e 8 8 8 8 8 8 \" " << std::endl; std::cout << "88 8e 8 8e 8 8e 8 8eee8 8e 8 8 8eee 8e 8 8e 8eee8 8e 88 8eeee8 8eee8 8eee 8eeee " << std::endl; std::cout << "88 88 8 88 8 88 8 88 8 88 8 8 88 88 8 88 88 8 88 88 88 88 88 88 " << std::endl; std::cout << "88 88ee8 88 8 88ee8 88 8 88 8 8 88ee 88 8 88 88 8 88eee 88 88 88 88ee 8ee88 " << std::endl; std::cout << "Compiler: Codeblocks v12.11" << std::endl; std::cout << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << std::endl; std::cout << "|\t" << "int min:\t" << std::numeric_limits<int>::min() << "\t|" << std::endl; std::cout << "|\t" << "int max:\t" << std::numeric_limits<int>::max() << "\t|" << std::endl << "|\t\t\t\t\t|" << std::endl; std::cout << "|\t" << "short min:\t" << std::numeric_limits<short>::min() << "\t\t|" << std::endl; std::cout << "|\t" << "short max:\t" << std::numeric_limits<short>::max() << "\t\t|" << std::endl << "|\t\t\t\t\t|" << std::endl; std::cout << "|\t" << "long min:\t" << std::numeric_limits<long>::min() << "\t|" << std::endl; std::cout << "|\t" << "long max:\t" << std::numeric_limits<long>::max() << "\t|" << std::endl << "|\t\t\t\t\t|" << std::endl; std::cout << "|\t" << "signed min:\t" << std::numeric_limits<signed>::min() << "\t|" << std::endl; std::cout << "|\t" << "signed max:\t" << std::numeric_limits<signed>::max() << "\t|" << std::endl << "|\t\t\t\t\t|" << std::endl; std::cout << "|\t" << "unsigned min:\t" << std::numeric_limits<unsigned>::min() << "\t\t|" << std::endl; std::cout << "|\t" << "unsigned max:\t" << std::numeric_limits<unsigned>::max() << "\t|" << std::endl << "|\t\t\t\t\t|" << std::endl; std::cout << "|\t" << "float min:\t" << std::numeric_limits<float>::min() << "\t|" << std::endl; std::cout << "|\t" << "float max:\t" << std::numeric_limits<float>::max() << "\t|" << std::endl << "|\t\t\t\t\t|" << std::endl; std::cout << "|\t" << "double min:\t" << std::numeric_limits<double>::min() << "\t|" << std::endl; std::cout << "|\t" << "double max:\t" << std::numeric_limits<double>::max() << "\t|" << std::endl; std::cout << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << "-" << std::endl; std::cout << d << m << l << "(C)copyright 2013 Levi Gamble" << l << m << d << std::endl; system("pause"); }

 

If you find any broken links please send me an E-mail: Levi69@gmail.com.

Main homepage