CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: shinobi1992

Search: Search took 0.01 seconds.

  1. Re: C++ Program that reads numbers from a file and calculates the average of them

    Alright so we worked on the code a little further and it does not have any trouble pulling the numbers from the file.
    My only question now is if you could give us a hand with the outputs. When I try...
  2. Re: C++ Program that reads numbers from a file and calculates the average of them

    Yeah that was a mistake on our bad and with the closing bracket for in main()
    I changed all the nums to number.
    Also in line 77 we defined getNumber, is that the wrong place to define it?
  3. Re: C++ Program that reads numbers from a file and calculates the average of them

    //Program: Classify Numbers
    //This program counts the number of zeros, odd, and even numbers *?*/

    #include <iostream>
    #include <iomanip>
    #include <fstream>

    using namespace std;
  4. Re: C++ Program that reads numbers from a file and calculates the average of them

    We initialized N in the int main() function and I'm pretty sure the getNumber is in the our while statement.
  5. Re: C++ Program that reads numbers from a file and calculates the average of them

    Reposted it with the code, thanks for the tip man!
  6. Re: C++ Program that reads numbers from a file and calculates the average of them

    //Program: Classify Numbers
    //This program counts the number of zeros, odd, and even numbers *?*/

    #include <iostream>
    #include <iomanip>
    #include <fstream>

    using namespace std;
  7. C++ Program that reads numbers from a file and calculates the average of them

    https://gist.github.com/anonymous/9536644

    Here is my code and basically these are the steps.
    I feel like we have something good to work on but we keep getting errors. Literally any amount of...
Results 1 to 7 of 7


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)