Search:

Type: Posts; User: felixgun

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,354

    HELP!! NEw to Arrays/Functions.. LOST

    Hey guys,
    I've been working on this assignment and i'm to the last part of it. The program was to make a function to check the file by a user-defined file name and open it. And once open, i am...
  2. When i type in pa8.in for my first input file, ...

    When i type in pa8.in for my first input file,

    It says "Error opening pa8.in. Program Terminated"

    But my pa8.in is in there.
  3. Problem writing function that opens file by user-inputed file name??

    Hi,
    I'm having trouble in one part of my code. My code is supposed to write/use a single function that opens a single file (and checks for a successful open) but, you must ask the user for the file...
  4. Ahh, i see I re-arranged everything, but and I...

    Ahh, i see I re-arranged everything, but and I get the right average. But the count of choice=2, I keep getting Count = 10. When count is supposed to be 26.

    I changed it to :

    ...
  5. Different output for Choice=2.

    Now when i choose choice 2, I am getting "The average of the 10 non-negative numbers is 1"

    When there are 26 non negative numbers with an average of 36.8462.

    AHHH I'm about to go nuts!! can...
  6. OK I'm getting it a little bit.. Function Definition problem??

    OK I finally got my function definition to run properly but now my code that i had for 2) Average Non Negative Numbers are not working!!

    In my code, i am reading from file pa6.numbers.cpp which...
  7. i'm so lost...

    so do i have to declare the inFile variable again? also where am i missing brackets? i'm checking over it i don't see it.. thanks for your help guys
  8. HELP!! Function Definition problem? Syntax Error I think..

    Hi Guys,
    I was wondering if any of you could help me out.. I am supposed to modify this code to user-defined functions but it keeps giving me an error for the first function definition after int...
  9. yep, it was the negative (-) in the input file...

    yep, it was the negative (-) in the input file the whole time.. wow... thanks alot
  10. #include #include #include...

    #include <iostream>
    #include <string>
    #include <fstream>

    using namespace std;
    int main()
    {
    ifstream inFile;
    int count, choice;
    int num, sum;
  11. **HELP** Stuck in infinite loop! Count all negative #'s in File??

    Hi,
    I've been stuck on this problem for way too long, can any of you help me out?? My assignment is as follows:
    You must implement the menu system using a do {} while loop. For each of the options...
Results 1 to 11 of 11