Hey guys, I'm new!

This is a discussion on Hey guys, I'm new! within the C++ Programming forums, part of the General Programming Boards category; Hey everyone, I'm a new member to this forum. I really like the interface, and I hope this forum can ...

  1. #1
    Registered User MrDoomMaster's Avatar
    Join Date
    Oct 2003
    Posts
    53

    Hey guys, I'm new!

    Hey everyone, I'm a new member to this forum. I really like the interface, and I hope this forum can be my #1 key to learning C++


    As far as the tutorials go, I'm currently reading them. But I might have questions along the way, so I hope no one minds me asking. I would also like to apologize if I seem to ask any specific questions in the future, because I like to know things 100%. I learn pretty fast, so you won't see the same question twice just as long as I get a good answer.

    I look forward to a great time in the forums, and I uphold much respect for those experienced programmers. You are definitely a role model for me. I hope to be a great programmer soon.


    To start things off, I give you my first question:

    Concerning header files (the ones you bring into the program at the start via #include), how do I know which ones I need? Would it be possible to get a function list along with their descriptions for each library file? I don't know about you guys, but I think a list of functions and detailed descriptions/examples for each is essential in learning the language and it's possibilities. This is how I learned TI-Basic, because the book had an index of available functions and examples and descriptions for each! Anyhow, I hope you guys can answer!

    Well, again, I really love the forum so far! Lots of useful information available to me! Thanks! Take it easy guys!
    --MrDoomMaster
    The kind of DooM that makes the MooD

  2. #2
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336
    Give me a bad reputation!!!

  3. #3
    ResurgentBarbecue UnclePunker's Avatar
    Join Date
    May 2002
    Posts
    128
    Hello MrDoomMaster, I am sure you will like this forum, people are cool and very knowledgeable you should find nearly everything you need here.

    As for the header files I don't reckon you need a list of each function or an explanation, you will know when you need a function in a program and when you know what you need you will be able to find out the name and subsequently find the name of the header file.

    Thats how I do it anyway.
    Compiler == Visual C++ 6.0
    "Come Out Fighting."

  4. #4
    Registered User MrDoomMaster's Avatar
    Join Date
    Oct 2003
    Posts
    53
    I was reading the Intro to C++ in the tutorial, and it should have talked about "using namespace", but I didn't see it. Where can I read about it?
    --MrDoomMaster
    The kind of DooM that makes the MooD

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    using namespaces prevents conflicts in naming.
    the most common is
    using namespace std;
    this tells you that you will be using functions from the standard template library otherwise you would have to use the :: scope resolution operator
    for instance std::cout << whatever;

  6. #6
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Hey, MrDoomMaster. Welcome to the C Board. I think I like you already. I'd suggest a programming book and if possible, a programming/CS course to complement what you learn online.
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  7. #7
    Registered User MrDoomMaster's Avatar
    Join Date
    Oct 2003
    Posts
    53
    well, I have a book... Visual C++ by some old guy, and it's REALLY way too thick, over 1500 pages... I don't have that much patience. I figure maybe I could learn it better if I just work with the code, and get information as it is needed. But, if you could recommend some less frustrating books, I would definitely consider them. For now, all I can rely on are the tutorials.

    Also, I tried running a test condition for an IF statement, and the code looks like this:

    if(test1 && test2 = 3)

    but, the compiler gives an error of:

    11 C:\Programming Projects\main.cpp
    non-lvalue in assignment


    I figured this would work, but it doesn't. Anyhow, thanks for replying everyone!



    PS: so from the description of Using Namespace, it's pretty much the same as #include? Hmm... a bit fuzzy right now, I'll continue reading the tutorials and maybe I'll find the answers sometime. Thanks anyway!
    --MrDoomMaster
    The kind of DooM that makes the MooD

  8. #8
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    One equals sign (=) is the assignment. Two equals sign(==) is the boolean equals sign.
    Code:
    x = y;
    // is very different from
    x==y;
    The former takes the value of y and assigns it to x. The latter checks to see if x equals y and returns true if they are and false otherwise.

    When I was learning the beginning concepts of C++, I read all of the "idiot," "dummy," and "in X days" books. I found that each of them lacked in some area, but reading all of them yields a rather comprehensive introduction to the language. Also, the repetition helps with remembering and clarity. I found all of those books at my local library. If you'd prefer one really good intro to C++ book, perform a seach of this board. You'll find plenty of threads in which members suggest such books. In any case, I'd suggest not starting with visual C++.
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  9. #9
    Registered User MrDoomMaster's Avatar
    Join Date
    Oct 2003
    Posts
    53
    Originally posted by joshdick
    One equals sign (=) is the assignment. Two equals sign(==) is the boolean equals sign.
    Code:
    x = y;
    // is very different from
    x==y;
    The former takes the value of y and assigns it to x. The latter checks to see if x equals y and returns true if they are and false otherwise.

    When I was learning the beginning concepts of C++, I read all of the "idiot," "dummy," and "in X days" books. I found that each of them lacked in some area, but reading all of them yields a rather comprehensive introduction to the language. Also, the repetition helps with remembering and clarity. I found all of those books at my local library. If you'd prefer one really good intro to C++ book, perform a seach of this board. You'll find plenty of threads in which members suggest such books. In any case, I'd suggest not starting with visual C++.

    I see... Yeah, I miss little thing sometimes like the == :P

    If only I had a good resource available to give explainations of all of these errors, I wouldn't have to ask about each of them.

    Thanks again!
    --MrDoomMaster
    The kind of DooM that makes the MooD

  10. #10
    Registered User
    Join Date
    Oct 2003
    Posts
    3

    none

    Your old statement was:

    if(test1 && test2 = 3)
    There is another possible problem with your if statement. While it will compile just fine if you change the '=' to '==' like someone suggested, what I think you meant your if statement to be would be this:

    Code:
    if (test1 == 3 && test2 == 3)
    Your old statement would basically check if test1 was equal to 'true', and test2 was equal to 3. If you actually meant to check if test1 and test2 are equal to 3, then you need to do it this way.

  11. #11
    Registered User
    Join Date
    Oct 2003
    Posts
    18

    if you get that list..

    if you get that list could you send me it because i'm learning c++ and i am new as well (been here about 2 days) and am really trying to learn c++ and that list could help you and me


    ^.^

    send it to my e-mail if you want,, nerdyneo@hotmail.com

    maybe we can help each other with code and stuff
    The woundeful Joseph Goss,,,
    e-mail me "nerdyneo@hotmail.com"
    if you want
    Ermmm,,... hello anyone there?
    i am 15

  12. #12
    Registered User MrDoomMaster's Avatar
    Join Date
    Oct 2003
    Posts
    53
    Can no one tell me how I can get explanations on compilation errors? Thanks!
    --MrDoomMaster
    The kind of DooM that makes the MooD

  13. #13
    Registered User
    Join Date
    Oct 2003
    Posts
    3
    It would depend on your compiler. If your compiler has a help section, search for the error. Also, you could try copying the error you received (the general part of the error) and pasting it in google and see if anything turns up. What I usually do is double click on the error message, and it takes me to the relevant line of code. Its usually not too hard to figure out from there.

    Originally posted by MrDoomMaster
    Can no one tell me how I can get explanations on compilation errors? Thanks!

  14. #14
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Can no one tell me how I can get explanations on compilation errors? Thanks!
    Boy how we all wish there were some explanations about the crazy errors we get from our compilers. Unfortunately the help files usually fall far short of ever helping you with them - most of it is trial and error and after that you start to get a 'feel' for the compiler. Then you start to understand why it yells at you sometimes.

    I started on Borland and the error messages were very easy - but in Microsoft Visual C++ this is not so. Error messages are quite convoluted and confusing. It sucks when you know you could fix the error if you could just understand the stupid message you are getting.

    Number one best friend for learning C/C++ or any langauge, programming topic, etc.: www.google.com

    We live and die by google.


  15. #15
    Registered User MrDoomMaster's Avatar
    Join Date
    Oct 2003
    Posts
    53
    LOL "we live and die by google"
    so true, so true!

    Well, I'm using the Bloodshed Dev compliler, I looked up compilers on GOOGLE () and found the best rated one! Well, I'll trial and error and see what these mean.

    Thanks for being so friendly guys, GOD I love this forum!

    Take care guys, you're all bad *** so far! Man, look at what I was missing when I was at the wc2campaign.com forums! The mods in THAT forum were ***holes!!

    Keep up the great work guys, 2 thumbs up!
    --MrDoomMaster
    The kind of DooM that makes the MooD

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hey guys, back again with a question
    By Velocity in forum C++ Programming
    Replies: 10
    Last Post: 10-19-2008, 02:27 PM
  2. Hey Guys! I Need Some Help Here!
    By Ruski in forum C++ Programming
    Replies: 6
    Last Post: 06-27-2002, 02:13 AM
  3. Hey Guys
    By D4050 in forum C Programming
    Replies: 0
    Last Post: 10-01-2001, 06:20 AM
  4. Tic Tac Toe -- Can you guys rate this please?
    By Estauns in forum Game Programming
    Replies: 2
    Last Post: 09-15-2001, 10:22 AM
  5. hello guys
    By lupi in forum C++ Programming
    Replies: 1
    Last Post: 09-09-2001, 01:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21