yea thats odd that you should say that cuz i just wrote in fin before, i noticed that it wasnt there
Type: Posts; User: bns1201
yea thats odd that you should say that cuz i just wrote in fin before, i noticed that it wasnt there
i dont know why but in a mac ide it just doesnt get passed the asking of the file name. So if you were to run it in a windows ide i just wanna see if its working.
oooo i see what you mean there. another question, are you running this in a windows native ide?
so should i initialize lowest = 0
and highest = size?
when you say my for loops are incorrect, and you mentioned them earlier, can you point me to where you are referring?
right they dont work for 4,5, and 6. But is there any way you can evaluate options 4,5, and 6 in the sample run, and figure out the essentials that i am missing if any to make them run smoothly?...
if(option==2)
{
for(x=low_bound; x<=high_bound; x++)
{
if(number[x]<lowest)
{
...
so would i have to change:
int lowest = -1;
int highest = 0;
to:
int lowest = 0;
int highest = size;
?
Ok, its starting to make sense. The original test.txt file that my instructor had given me included a 10 at the begining of the file, i have made the edit to show how it originally appeared b4 I had...
Alright, I initialized the integer number[] after i scanned the document, is that what you meant by creating it after you know what it is supposed to be?
//Prompts user for the name of their...
with the initialization of size as 0, is that what the complaining is about? And yea i know about the system("PAUSE") ordeal lol, I have to have it run in a windows native environment, but I have a...
Im using netbeans6.1 on a mac, and it when i run and compile it, it begins fine, but when I put in the file name, it gives me this
If it reads the last data entry twice, how would I fix that?
It seems as though I've written the code perfectly, although its not executing properly. I have to read a bunch of data from a file (which i named test.txt) and then execute a bunch of options to the...