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...
Type: Posts; User: felixgun
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...
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.
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...
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 :
...
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...
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...
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
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...
yep, it was the negative (-) in the input file the whole time.. wow... thanks alot
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main()
{
ifstream inFile;
int count, choice;
int num, sum;
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...