Search:

Type: Posts; User: lostinprogramC+

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    10,909

    Salem - Thank you for the tips. I have made...

    Salem - Thank you for the tips.

    I have made the following changes to the code:



    ifstream inFile;
    inFile >> students[x].studentLName
    >> students[x].studentFName
    >>...
  2. Replies
    5
    Views
    10,909

    fixed the infile error by adding ifstream...

    fixed the infile error by adding


    ifstream inFile;

    before


    inFile >> students[x].studentLName
    >> students[x].studentFName
  3. Replies
    5
    Views
    10,909

    was going to add the input file as well. Here it...

    was going to add the input file as well. Here it is:

    Micky Mouse 100
    Minnie Mouse 85
    Donal Duck 87
    Daisy Duck 83
    Pluto Dog 60
    Sleeping Beauty 70
    Cinderella Princess 93
    Robin Hood 97
  4. Replies
    5
    Views
    10,909

    Structures and Arrays

    Hello everyone - I am receiving several build errors for my code and I am quit frustrated at this point any help would be great. Here is the full programming exercise so you can understand what it is...
  5. Replies
    26
    Views
    3,532

    Eman - OMG it worked! now I just need to put a...

    Eman - OMG it worked! now I just need to put a pause in so that I can see all of the answers. :)

    THANK YOU to everyone. For helping me, pointing out the syntax errors and how to call a function...
  6. Replies
    26
    Views
    3,532

    tabstop - can you please provide an example of...

    tabstop - can you please provide an example of what you are explaining? (in other words... I don't get it? lol)
  7. Replies
    26
    Views
    3,532

    FOR THE LOVE OF... SERIOUSLY!!!!! then why...

    FOR THE LOVE OF... SERIOUSLY!!!!!

    then why won't it work for me???? *pouts*

    does it actually ask all the questions and return all the information?
  8. Replies
    26
    Views
    3,532

    itsme86 - thank you for the clarification. I can...

    itsme86 - thank you for the clarification. I can now get the code to actually run... kinda lol
    when I go to debug the console actually comes up and askes me to put in a center point, then it hangs....
  9. Replies
    26
    Views
    3,532

    Eman- your right I didn't declare a variable of...

    Eman- your right I didn't declare a variable of radius. I will fix that :) Knowing that I can have more then one parameter helps. Thank you.

    Tater - Thank you for the good advice. I am just...
  10. Replies
    26
    Views
    3,532

    OMG that was like a little light buld went off.....

    OMG that was like a little light buld went off.. itsme86 , YOU ROCK. ok I will change that and see what happens.

    :D
  11. Replies
    26
    Views
    3,532

    ok changed some code so here is the big sha bang...

    ok changed some code so here is the big sha bang again..... :-P



    #include <iostream>
    #include <cmath>

    using namespace std;
  12. Replies
    26
    Views
    3,532

    I know I need to change my declarations but am...

    I know I need to change my declarations but am still totally frustrated as to why this isn't working. Is the code even close to being written correctly for calling the distance function?

    If I...
  13. Replies
    26
    Views
    3,532

    ok so if I create the following function: ...

    ok so if I create the following function:



    double distance (double x1, double y1, double x2, double y2) {
    double dx = x2 - x1;
    double dy = y2 - y1;
    double dsquared = dx*dx +...
  14. Replies
    26
    Views
    3,532

    I have changed the call of the function to match...

    I have changed the call of the function to match the function that has been declared and I receive the following errors:

    Error 6 error C2144: syntax error : 'int' should be preceded by ')' ...
  15. Replies
    26
    Views
    3,532

    So if the function is int distance( int...

    So if the function is



    int distance( int x1, int y1, int x2, int y2)


    then the call to the function should look the same...? Sorry functions have gotten me very confused.

    like this
  16. Replies
    26
    Views
    3,532

    Help with functions

    I am brand new to programming and am takinga class in C++. So far I have been able to successfully create the programs requested and get the needed output but this problem has got me stumped. The...
Results 1 to 16 of 16