VC++ not allowing cin of all variables in a class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #31
    Originally posted by Banfa
    Well there is your problem, if you have put half the effort into writing the code you appear to have put into trying to find a pre-written solution then you would probably have a working program by now.

    The answers you are getting here may not seem to be very satisfactory but that would be because all the experts here trying to help you are shackled by the fact you have fail to describe your problem fully.

    You have described the symptom, that is what you see happening on the screen and provided a snippet of the code. But that snippet is rather lacking, it does not even go as far as fully describing all the variables it is using (as I hinted in my reply) or what input you gave that caused the error.

    And despite the small size of you code example it is quite clear that you are not even attempting a solution to your original question.
    Banfa-

    Some of that is my fault. I snipped the code because it was answer for an obvious homework assignment that he had posted, and would be indexed in Google. He did create a full and working class with ints going into cin, properly declared, etc, except he had his main as void instead of int (and no return 0). I should have made that clear in the code post, that's my fault. I don't believe I changed anything else in any of the OP's posts.

    (And as I have said before, I have the original code, as I ran it because I couldn't see anything wrong with it.)

    Comment

    • Jul
      New Member
      • Jul 2007
      • 15

      #32
      Originally posted by sicarie
      Banfa-

      Some of that is my fault. I snipped the code because it was answer for an obvious homework assignment that he had posted, and would be indexed in Google. He did create a full and working class with ints going into cin, properly declared, etc, except he had his main as void instead of int (and no return 0). I should have made that clear in the code post, that's my fault. I don't believe I changed anything else in any of the OP's posts.

      (And as I have said before, I have the original code, as I ran it because I couldn't see anything wrong with it.)
      Please copy and change the code where the desired output of the program. I need them as a reference. And by the way what is the keyword to search for the code in Google? I just can't find any codes related to the program.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #33
        Originally posted by Jul
        Please copy and change the code where the desired output of the program. I need them as a reference. And by the way what is the keyword to search for the code in Google? I just can't find any codes related to the program.
        I'm not sure what you want done with the copied and changed code, but I am not going to do it for you. Not only have you insulted me and the people on this site (who give up their free time to help), but I've already told you what to do at least three times.

        Read through the posts again and try to do what they say. If you can't understand it, try Googling it. But I'm not willing to help anyone who won't help themselves.

        Comment

        • Jul
          New Member
          • Jul 2007
          • 15

          #34
          Originally posted by sicarie
          I'm not sure what you want done with the copied and changed code, but I am not going to do it for you. Not only have you insulted me and the people on this site (who give up their free time to help), but I've already told you what to do at least three times.

          Read through the posts again and try to do what they say. If you can't understand it, try Googling it. But I'm not willing to help anyone who won't help themselves.
          I've tried all the ways stated above, and it doesn't help at all. The outcome of the program doesn't tally with the desired program outcome. Please don't waste your time posting when you don't want to help in the 1st place.

          Comment

          • Banfa
            Recognized Expert Expert
            • Feb 2006
            • 9067

            #35
            Originally posted by Jul
            I've tried all the ways stated above, and it doesn't help at all. The outcome of the program doesn't tally with the desired program outcome. Please don't waste your time posting when you don't want to help in the 1st place.
            Are you saying that you still don't get an opportunity to input values for all six variables?

            It would still help if you provided the information on exactly what you are inputting to your program.

            Comment

            Working...