I saw this at the bottom of this page under Similar Threads:
[thread=31665]How to make console programs full screen?[/thread]
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
This program was written for something else, but I added the code to do it in full screen (but its not really full screen on XP, just as big as the cmd prompt window can get :eek: )
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <Wincon.h>
#include <string>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd,SW_SHOWMAXIMIZED);
string str = "UPPER-CASE";
transform(str.begin(),str.end(),str.begin(),(int(*)(int))std::tolower);
cout << str << endl;
cin.ignore();
return 0;
}
Ancient Dragon
Retired & Loving It
30,047 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342