I did probably the most ghetto/lazy way of writing this program that anyone has ever done.
However if this were actual homework the wording of the question yeilds my answer "bool" no matter how bad it is!!
// ConsoleApplication6.cpp : main project file.
#include "stdafx.h"
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <ctime>
using namespace System;
using namespace std;
int main(){
int guess;
int tries = 0;
cout << "put a number for me to guess" << endl;
cin >> guess;
for (int i = 0; i != guess; ++i){
if (guess < i){
cout << "computer guesses " << i << " to high" << endl;
--i;
--i;
}
if (guess > i){
cout << "computer guesses " << i << " to low" << endl;
}
++tries;
}
cout << "Your number is " << tries << endl;
system("pause");
return 0;
}