double number, min=9999, max=0;
don't need to give number a initial value, thats what the cin is for(though you can if you want too). The min must be set as 9999, otherwise it will always stay at...
Type: Posts; User: JukeBoxHero
double number, min=9999, max=0;
don't need to give number a initial value, thats what the cin is for(though you can if you want too). The min must be set as 9999, otherwise it will always stay at...
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int number,max=0,min=9999;
vector<int> randomNumbers;
cout << "Type in random numbers 0 - 9999. Enter -1 to...
thanks again for the quick reply
thanks for the help :)
oh and one more thing, right now I can only enter a game title one word long, how do you enter whole sentences using cin?
ok im reading a c++ book called beginning c++ game programming and doing one of the exercises in it which is:
write a program using vectors and iterators that allows a user to maintain a list of...