Made it from scratch, that's why i am proud of it
.
Made it in Microsoft Visual C++ 2010.
Here it is
Edit: Well that kinda sucks looking at it now, but, i made a calculator last night, don't feel like putting it here though
.
Made it in Microsoft Visual C++ 2010.
Here it is
Edit: Well that kinda sucks looking at it now, but, i made a calculator last night, don't feel like putting it here though
#include <stdafx.h>
#include <iostream>
#include <cmath>
int main()
{
using namespace std;
float thenumber;
int mynumber = rand() % 100;
cout << "Guess my number.\n";
do {
cin >> thenumber;
if (thenumber > mynumber)
cout << "That number is too high." << endl;
else if (thenumber < mynumber)
cout << "That number is too low." << endl;
else
cout << "You got it!." << endl;
}
while ( thenumber != mynumber);
system("pause");
return 0;
}


