CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    Join Date
    Mar 2009
    Posts
    14

    Talking Re: C++ Error...IDK what is wrong!

    thank you guys...you have been a great help..with the code and encouragement

  2. #17
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Error...IDK what is wrong!

    I think your missing the point.

    You will overcome me when you read that book, become a good student and then a good programmer.

    Now, you have a long trek ahead my little padwan and when you overcome me I will be in the prolly b in the nursing home or my grave...but definitely retired. You can dance on my grave or you can square dance with me in the nursing home. I don't care, but you are wasting time when you could be learning. I wont tell you how to do this stuff, because you havent made the first effort to learn it.

    You haven't even remembered to save your program, so I know you aren't thinking hard about this stuff. You just want somebody to do it all for ya. Dont ya. You think thats us.

    Now go forth and learn!
    ahoodin
    To keep the plot moving, that's why.

  3. #18
    Join Date
    Jun 2004
    Posts
    1,352

    Re: C++ Error...IDK what is wrong!

    Come on man lay off the guy. At least he made an effort to get here.

    He needs to study more, but we should motivate him not make him feel bad for asking a question. If he knew he wouldn't be here.


    ..... how many times have you used a var or pointer without intilizing it??? It happens to the best of us!!!
    Rate this post if it helped you.

  4. #19
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Error...IDK what is wrong!

    whatever
    ahoodin
    To keep the plot moving, that's why.

  5. #20
    Join Date
    Jun 2004
    Posts
    1,352

    Re: C++ Error...IDK what is wrong!

    Rate this post if it helped you.

  6. #21
    Join Date
    Mar 2009
    Posts
    14

    Smile Re: C++ Error...IDK what is wrong!

    i know...i was kidding about the whole 'overcoming' thing...my friend has a giant book on c++ im gonna use. i'd say by the end of this year i'll have a good bit of knowlege in my head...don't criticize me for my unexpected burst of strange optimism

  7. #22
    Join Date
    Mar 2009
    Posts
    14

    Re: C++ Error...IDK what is wrong!

    ty . i'll get right on it

  8. #23
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Error...IDK what is wrong!

    autism.
    ahoodin
    To keep the plot moving, that's why.

  9. #24
    Join Date
    Mar 2009
    Posts
    14

    Talking Re: C++ Error...IDK what is wrong!

    i'm getting off now but that second link is awesome...i wanted to learn about makingwindows...ty for all the help..ill probably end up talking to one of u guys again...bye

  10. #25
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: C++ Error...IDK what is wrong!

    Quote Originally Posted by Frederick Lenz View Post
    i understand now... you cant set a variable like 'a' to equal 'b' and 'b' to equal 'c'...i wanted to make a chain ~ where they all equaled 2...but i guess u can't
    Actually, you can.

    a = b = c = d = e = 2;

    will set everything to 2.

  11. #26
    Join Date
    Mar 2009
    Posts
    14

    Red face Re: C++ Error...IDK what is wrong!

    yes, i know you can do it like that...

    i meant like this

    if a = 2
    a =b
    b = c
    c = d
    d = e
    then e =

  12. #27
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Error...IDK what is wrong!

    Unfortunately all those variables will be of undefined value the way you have it. The code following that would crash horribly. That is why you honestly need to make an effort read and learn.
    ahoodin
    To keep the plot moving, that's why.

  13. #28
    Join Date
    May 2009
    Posts
    2

    Re: C++ Error...IDK what is wrong!

    Actually your chain is a bit too "quick". Instead of
    a = 2;
    a = b;
    b = c;
    c = d;
    d = e;
    you should do
    a = 2;
    b = a;
    c = b;
    d = c;
    e = d;
    which of course is the same as
    a=b=c=d=e=2;
    Of course I won't write you to read a good book on the subject, because it has been said quite a few times Good luck

  14. #29
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: C++ Error...IDK what is wrong!

    Quote Originally Posted by TomekL View Post
    Actually your chain is a bit too "quick". Instead of
    a = 2;
    a = b;
    b = c;
    c = d;
    d = e;
    you should do
    a = 2;
    b = a;
    c = b;
    d = c;
    e = d;
    which of course is the same as
    a=b=c=d=e=2;
    Of course I won't write you to read a good book on the subject, because it has been said quite a few times Good luck
    Welcome to the board, but why bump a two month old post?

  15. #30
    Join Date
    May 2009
    Posts
    2

    Re: C++ Error...IDK what is wrong!

    Quote Originally Posted by GCDEF View Post
    Welcome to the board, but why bump a two month old post?
    Hi,
    sorry, I haven't noticed the date. After registration I just clicked a thread on a main page to see what's going on. Now it appears it was "Hottest CodeGuru Threads" section and it's "hottest" in a rather big time span. My bad.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured