Search:

Type: Posts; User: Magi

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    4,661

    Never mind, I fixed it. Thank you so much for all...

    Never mind, I fixed it. Thank you so much for all your help. Sorry I disappeared from that first thread, I had a small crisis at home. I really appreciate the info, I learned a lot.
  2. Replies
    16
    Views
    4,661

    It's still not increasing the pay.

    It's still not increasing the pay.
  3. Replies
    16
    Views
    4,661

    That's absolutely fantastic thank you, one final...

    That's absolutely fantastic thank you, one final question. My person class return of monthly pay isnt properly increasing the pay by 50.00 dollars, what can I do to fix that?
  4. Replies
    16
    Views
    4,661

    When I do this it just prints out the last first...

    When I do this it just prints out the last first name and monthly pay from the person.dat file.

    }catch(int error){
    std::cerr <<"an error occured" << error <<std::endl;
    }
    }
    std::ofstream stream...
  5. Replies
    16
    Views
    4,661

    so something like this? if (!input) {throw...

    so something like this?


    if (!input) {throw 4;}
    }catch(int error){
    std::cerr <<"an error occured" << error <<std::endl;
    }
    std::ofstream stream ("output.dat");
    stream << in.last_name <<"," <<...
  6. Replies
    16
    Views
    4,661

    I made a slight change to the code, but right now...

    I made a slight change to the code, but right now it is exiting with code 0. The output file is only containing one line (the last line of person.dat) and it isn't getting the 50 dollar increase as...
  7. Replies
    16
    Views
    4,661

    You're right, I did have a similar thread but...

    You're right, I did have a similar thread but something came up and I was unable to access the thread for a while. Since then I changed the code some, and am having different problems.
  8. Replies
    16
    Views
    4,661

    File Input and Output with error checking

    I am a beginner C++ programmer and I am having a lot of difficulty with this assignment for my class. I am inputing file data from person.dat and outputting to output.dat. I have to have error...
  9. Replies
    4
    Views
    2,758

    right now the program is exiting with code 1,...

    right now the program is exiting with code 1, cannot open file. How can I change that


    #include <iostream>
    #include <fstream>
    #include <string>
    #include "person class.h"


    int main() {
  10. Replies
    4
    Views
    2,758

    I have the error checking in there because it is...

    I have the error checking in there because it is part of my assignment. If there are errors then I have to return some kind of error code. I know it makes it more messy but I have to have it in there.
  11. Replies
    4
    Views
    2,758

    File input and Output help

    Hello all, I am having a really tough time figuring out how to structure the input of one .dat file and outputting into another one. I have to loop through a file structured "doe, john, 1500", check...
  12. Replies
    4
    Views
    7,397

    Awesome!! Doing the '&' in front of the...

    Awesome!! Doing the '&' in front of the variables actually did the trick. Thank you for your help, I have been surprised in the subtle differences between c and c++; I really apreciate the help.
  13. Replies
    4
    Views
    7,397

    Ya I know the conversion isn't very helpful. This...

    Ya I know the conversion isn't very helpful. This is for a school project and it specifically asks for this conversion. Weird I know. I made the change but it is still not compiling correctly ...
  14. Replies
    4
    Views
    7,397

    Unit conversion with 3 functions

    Hello I am a very new to C++. I am trying to convert a given number of meters and centimeters into feet and inches using three function. I think that I am close but since i am new I am having a hard...
  15. Replies
    7
    Views
    2,245

    Awesome thank you, I think earlier my brain was...

    Awesome thank you, I think earlier my brain was all jumbled up and I couldn't process the guidance. So thank you Matticus for the great guidance and thanks camel-man for the help with the function :D
  16. Replies
    7
    Views
    2,245

    Thanks for your help calling the function, I am...

    Thanks for your help calling the function, I am however not sure what you mean about the incrementation of the variables in the loops. Sorry I just have been trying to get this to go correctly and...
  17. Replies
    7
    Views
    2,245

    Passing structures to a function

    Hello all, there are two main problems I am having with this program. The first is that I am not sure how to pass the two structure variables (date tom, and date mom) into the function and then have...
  18. Replies
    9
    Views
    2,446

    #include #define max 1 struct...

    #include <stdio.h>
    #define max 1




    struct date
    {
    int month;
    int day;
  19. Replies
    9
    Views
    2,446

    Well the main issue is that it wont compile...

    Well the main issue is that it wont compile giving me an error on the line with the brackets closing out some of the if statements. I'm just not sure if using if statements is the best way to go, or...
  20. Replies
    9
    Views
    2,446

    Hopefully you may be able to help me out with...

    Hopefully you may be able to help me out with something else, I am trying to set up this sequence using an if else chain or while statements whichever will work but I keep having problems with it,...
  21. Replies
    9
    Views
    2,446

    Wow thank you, I can't believe I forgot the...

    Wow thank you, I can't believe I forgot the braces :tongue: It's been a long morning
  22. Replies
    9
    Views
    2,446

    Using Structures to produce Report

    Hello all I am needing to get this program to print off a report listing the data entered and then at the end put each employees total pay and then the overall total pay of everyone. It doesn't have...
  23. Replies
    6
    Views
    13,585

    Thank you all so much, I learned alot about the...

    Thank you all so much, I learned alot about the different options for setting up scanf statements. Thanks all!! :D
  24. Replies
    6
    Views
    13,585

    Sorry for the late reply, I made some changes...

    Sorry for the late reply, I made some changes suggested but the program is producing a result like: if the user enters '11 14 83' then the program prints 11/1/32. This is the code I have right now...
  25. Replies
    6
    Views
    13,585

    Determining next date using structures

    Hello all, I am trying to construct a c program that accepts a user entered date and then prints the following day. Eventually I need to get it so it is accurate to the month that it is in, but as a...
Results 1 to 25 of 43
Page 1 of 2 1 2