I'm Very New to C++ .. Is It possible to..

This is a discussion on I'm Very New to C++ .. Is It possible to.. within the C++ Programming forums, part of the General Programming Boards category; Hey.. oviously you've read the subject.. thats why ur here lol. I just got C++ a few days ago and ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    4

    Question I'm Very New to C++ .. Is It possible to..

    Hey.. oviously you've read the subject.. thats why ur here lol.

    I just got C++ a few days ago and i dont have any big plans for it really... but i am an experienced coder and probly will be able to understand u guys.

    I hope u understand right.. I've made a application and put my images in and stuff.. and i have worked out how to get a button to open a new window !! Woo .. 3rd time lucky lol.
    But.. Now i've been searching for help and thought i'd stop here and ask if it was possible to...

    lets for example say 2 box's like username and password .. and when u click on the ok button... It e-mails to an e-mail address.

    Or.......

    I just thought of this idea like 5 seconds ago nd thought this might be easier... To make it that when u click on the ok button, it stores it in a table on a mySQL database.. .then i'l be able to get it from there onto a website.

    Please offer any help. Thanks!!!

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Yes, both of those are possible. What API are you using to code the GUI?
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    4
    Ha! lol... Sorry i really have no idea what u just said there

    *Googles API* .. Ahhh... .. I still have no idea lol..

    I hope this helps:-

    I'm using 'C++ Builder 6'
    err... and when i started it i clicked new... the just the one that says 'Application' .. lol

    umm.. it seems tht even if someone was to post some code, i wouldnt know where to put it am affraid ..
    I'd need like a tutorial or something lol...

    Cheers, Meee.

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    How can you write a program like the one you said yet not know where to put some code?

    Or do you mean you have written this code in some other language.

  5. #5
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Mmkay, I'd guess at the top of your source code you have something like:
    Code:
    #include <windows.h>
    ...correct?

    Anyway, if you really are that new to C++ you probably shouldn't be working graphically, yet. Pick up a book at a book store or a library and start to learn the basics of Procedural programming, and then Object Oriented programming. Once you understand Classes, Inheritance, and Polymorphism (the requirements for Object Oriented Programming) then you can start looking into a portable API like wxWidgets.

    In your first post, you said you're an "experienced coder". May I ask what your experience is? If we can get an idea of what you know, we can help find where to start with C++.
    Sent from my iPadŽ

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    4
    Well it's all just made up of images really.. The background is just a image of one colour, with images on top to make it look good.

    I have a tutorial on how to make a button open a window, and how to use the btbtn or something like that. With the 'kind' option for the OK button.

    and thats all i've done.

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Code:
    #include <iostream>
    
    void shout(const char*);
    
    int main() {
       shout("Hello World");
    
       return 0;
    };
    
    void shout(const char* str) {
       std::cout << str << "!" << std::endl;
    }
    Do you know what's going on in this code?
    Last edited by SlyMaelstrom; 05-04-2006 at 01:05 PM.
    Sent from my iPadŽ

  8. #8
    Registered User
    Join Date
    May 2006
    Posts
    4
    It's a WIN32 console application

    Code:
    #include <iostream>
    This is the file where the program stores data that is inputted.

    It'll open up and print 'Hello World'

    The caracter '!' is inputted and printed after the 'hello world' with the cout.

    Im guessing...


    I'm just experiences with HTML, Flash and mIRC.

    I have 'Learn C++ in 21 days' .. But i get distracted easily and it'll take me about 210 days to read it.

    Cheers.

  9. #9
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I would recommend Accellerated C++ whick is what I'm reading. If you're anything like me and have a short attention span than this is better because it skips long chapters on all the possible things you can do with the lower level structures like loops, pointers, et al and just mixes them in with the more advanced stuff like structures, the STL, functions, headers, and objects.

    I think I was a year in that C++ in 21 days.

  10. #10
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Quote Originally Posted by Qwertyip
    Im guessing...


    I'm just experiences with HTML, Flash and mIRC.

    I have 'Learn C++ in 21 days' .. But i get distracted easily and it'll take me about 210 days to read it.
    Mmkay, well you were pretty off and that was an extremely basic program.

    Check out the books in the Book Recommendation Sticky in this forum. This is your first real programming language, which means you're not only learning syntax, you're learning technique and logic. It's not going to be a quick process. Take your time, start from the beginning, and make sure you understand what you're learning before you move on.

    Unless you spend all day every day learning, then you won't be able to write the program you're talking about in the original post before many months from now. At least not nearly as well as it should be written.
    Sent from my iPadŽ

  11. #11
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by SlyMaelstrom
    Code:
    #include <iostream>
    
    void shout(const char*);
    
    int main()
    {
       shout("Hello World");
    
       return 0;
    }
    
    void shout(const char* str) {
       std::cout << str << "!" << std::endl;
    }
    Do you know what's going on in this code?
    I think that it needed one little correction.

  12. #12
    Registered User
    Join Date
    Feb 2006
    Posts
    312
    Quote Originally Posted by Qwertyip
    Code:
    #include <iostream>
    This is the file where the program stores data that is inputted.
    <iostream> is a header, it is part of the C++ standard library. the standard library is a collection of headers, altogether containing alot of useful tools which you can use to aid you writing programs.

    cout is an object which exists in the standard library, and is connected to the standard output buffer. on your system, it probably outputs to a Windows cmd.exe console.

    You really are better off starting out with a beginner's book. (Maybe not the SAMS 21 days.. there are far better books around than those)
    You can get book reviews here:
    ACCU Book Reviews (Beginners C++)

    This one in particular is worth a mention:
    (Book) You Can Do It - Francis Glassborow


    Getting a good quality book is certainly the best way to learn (short of taking a course) If you don't want to get a book, you will have a more difficult time - but, take a look at these sites anyway:
    http://www.cprogramming.com/tutorial.html
    http://www.parashift.com/c++-faq-lite/
    http://en.wikipedia.org/wiki/C_Plus_Plus

  13. #13
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Quote Originally Posted by indigo0086
    I think that it needed one little correction.
    Ah, hah. I must have not pressed the open brace key hard enough. Didn't even see that. Good eyes.
    Sent from my iPadŽ

  14. #14
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Borland Builder has some features that can make learning C++ harder! It's a great compiler/IDE. You just need to configure it for your needs. (Visual C++ has some similar features.)

    The Rapid Application Development (RAD) tools try to write the program for you. That makes it easier to write a program, but harder to learn.

    In order to learn, you need to start with a "blank page", and type-in ALL of the code yourself!

    I don't have Builder, so I don't know exactly how to bypass or deactivate the builder features. There might be an option to create a "New Blank Project", or something like that.

Popular pages Recent additions subscribe to a feed

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