Here is the code:
Code:
#include <windows.h>
#include <iostream>
using namespace std;
void SetWindow(int Width, int Height)
{
_COORD coord;
coord.X = Width;
coord.Y = Height;
_SMALL_RECT Rect;
Rect.Top = 0;
Rect.Left = 0;
Rect.Bottom = Height - 1;
Rect.Right = Width - 1;
HANDLE Handle = GetStdHandle(STD_OUTPUT_HANDLE); // Get Handle
SetConsoleScreenBufferSize(Handle, coord); // Set Buffer Size
SetConsoleWindowInfo(Handle, TRUE, &Rect); // Set Window Size
}
int main(void)
{
SetWindow(100,50);
cout << "Hello world!" << endl << "The End is Nigh" << endl;
int thisisanumber;
int n;
cout << "Please enter a Number here: ";
cin>> thisisanumber;
cin>> n;
cin.ignore();
cout<< "You entered: "<<thisisanumber <<"/"<<n;
cin.get();
if(cin>> n == true);
{
cout << "than what is the number:"<<thisisanumber;
}
}
but cannot figure out this "if" statement
any help would be greatly appreciated
error = if(cin>> n == true);
thnx
Althalus