Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Moving from C# to C++

Moving from C# to C++

Scheduled Pinned Locked Moved The Lounge
csharpc++questionlearning
108 Posts 36 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dave Parker

    Really? I've been looking for a C++ gig for ages but everywhere seems to me to be after C#, VB.NET, VB6, Delphi, PHP and / or Java. Or even worse, Sharepoint.

    K Offline
    K Offline
    Kevin McFarlane
    wrote on last edited by
    #64

    The problem these days, especially in the Microsoft world is that you'll struggle to find pure C++ roles. It will be C++ and some .NET-based technology. Don't know what it's like in the *nix world though. Maybe C++ + Java + some scripting language?

    Kevin

    D 1 Reply Last reply
    0
    • T TpB

      C++ From The Ground Up (Third Addition) by Herbert Schildt, Osborne Publications If you are developing for Windows, read up on MFC until you get board and then study with Win32 and Win64 API's. There are several API Bibles available - all read about he same.

      K Offline
      K Offline
      Kevin McFarlane
      wrote on last edited by
      #65

      Not read Schildt myself but (although popular) he's widely detested by C++ gurus.

      Kevin

      C 1 Reply Last reply
      0
      • D dboone

        "C++ FAQ" by Cline, Lomow, and Girou, second edition. Herb Sutter's books, "Exceptional C++", "More Exceptional C++", and "C++ Coding Standards" The "C++ FAQ" is excellent about explaining why things work the way they do in C++ so you'll get the subtle differences. "C++ Coding Style" is also excellent in the 'Do it this way because that way is going to hurt.' The Exceptional * books are more advanced, deeper dives into specific features.

        K Offline
        K Offline
        Kevin McFarlane
        wrote on last edited by
        #66

        dboone wrote:

        "C++ FAQ" by Cline, Lomow, and Girou, second edition.

        I'd forgotten about that! I don't own it but used to see it lying around offices and would dip into it. There's also the online C++ FAQ Lite.

        Kevin

        1 Reply Last reply
        0
        • C c2423

          I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris

          M Offline
          M Offline
          Melvin Holt
          wrote on last edited by
          #67

          I like "Thinking in C++" by Bruce Eckel. He assumess a reader working from C to C++, so it might be pedantic on OO concepts, but at least it won't spend much time on fundamental C syntax.

          C 1 Reply Last reply
          0
          • A Anna Jayne Metcalfe

            It was quite something, that's for sure! :laugh:

            Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

            D Offline
            D Offline
            Drozzy
            wrote on last edited by
            #68

            Youtube link or it didn't happen! X|

            A 1 Reply Last reply
            0
            • D Drozzy

              Youtube link or it didn't happen! X|

              A Offline
              A Offline
              Anna Jayne Metcalfe
              wrote on last edited by
              #69

              Yeah, right. We all too busy enjoying the event to muck about with camcorders! Next you'll be telling me that nobody gets Lakosed at the ACCU Conference because no-one is sober enough to record and post it...:doh:

              Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

              1 Reply Last reply
              0
              • A Anna Jayne Metcalfe

                If you're beyond the basics of C++ I'd strongly recommend you read Meyers Effective C++[^]. Once you've that under your belt you will be in a far better position to work out what to read next... I'd also recomend that you join the accu-general mailing list[^]. It's free to join (ACCU membership isn't required for that particular list) and you'll get access to some of the best C++ minds on the web (including some of the Standards Committee...). They're a friendly bunch, and always willing to answer questions or indulge in a spot of mentoring. :)

                Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                C Offline
                C Offline
                CDMTJX
                wrote on last edited by
                #70

                I 2nd the Meyers books. They were required in an Advanced C++ class, and really helped me get past C thinking. I like Lippman for C++ reference, although the title does say "Primer", so it may be more basic than you want.

                A 1 Reply Last reply
                0
                • C c2423

                  I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris

                  K Offline
                  K Offline
                  Karen Saxby
                  wrote on last edited by
                  #71

                  you could try : www.freecomputerbooks.com/langCppBooks.html

                  C 1 Reply Last reply
                  0
                  • C c2423

                    Thanks for the reccomendation - I just had a look at the contents on Amazon, and it does seem like a very good book for me to read! I'm not sure I'm quite that good at C++ yet but it looks like it will be very helpful when I get to that point. Thanks, Chris

                    C Offline
                    C Offline
                    Carlosian
                    wrote on last edited by
                    #72

                    I'll third the Meyers book(s). They are on the shelves of every good C++ programmer I know. If you already know C# well I would go ahead and get the Meyers books whether you think you are ready or not. Then as you read them and if he talks about a topic you don't understand in C++, go back to a C++ reference to understand it. By the time you are done you will have a much deeper understanding of how to use the language than if you just read a primer etc. For a comprehensive reference I like the C++ In a Nutshell O'Reilly book by Ray Lischner.

                    C 1 Reply Last reply
                    0
                    • N Nickolay Karnaukhov

                      Ahh... These crappy pointers :-( This is a real barrier between managed/interpreted languages and real ones. I'm double technology guy with strong PHP and .NET knowledge but when I tried to fix some issues with C module for Apache I stuck on these stars and ampersands. C/C++ is awesome languages - but you need to feel a taste of it. As soon as you feel it - everything will go smooth.

                      ------------------------------------------------------------ Want to be happy - do what you like!

                      D Offline
                      D Offline
                      Drozzy
                      wrote on last edited by
                      #73

                      "between managed/interpreted languages and real ones" Oh wow, that one made me chuckle in the office. do enlighten us about those real languages pleaaase! :^)

                      N 1 Reply Last reply
                      0
                      • C c2423

                        I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris

                        S Offline
                        S Offline
                        SteveL12234
                        wrote on last edited by
                        #74

                        If you want something more advanced, an option are Herb Sutters books. A lot of the material from those books comes from http://www.gotw.ca/gotw/[^] Also if you want to read more than you ever cared about templates, C++ Templates The Complete Guide by Vandevoorde and Josuttis. To see how far templates can be taken, read Modern C++ Design, by Andrei Alexandrescu.

                        C 1 Reply Last reply
                        0
                        • C c2423

                          I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris

                          J Offline
                          J Offline
                          jjjm
                          wrote on last edited by
                          #75

                          I suggest C++ Primer by Lippman & Lajoie. It should be about the right level.

                          C 1 Reply Last reply
                          0
                          • C CDMTJX

                            I 2nd the Meyers books. They were required in an Advanced C++ class, and really helped me get past C thinking. I like Lippman for C++ reference, although the title does say "Primer", so it may be more basic than you want.

                            A Offline
                            A Offline
                            Anna Jayne Metcalfe
                            wrote on last edited by
                            #76

                            I used Lippman when I was first learning the language in the mid-90s, but haven't opened a copy since then. If it hasn't been updated since then, it won't include important things like the STL, so something like "Modern C++" or "Imperfect C++" may be more useful (though somewhat more advanced).

                            Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                            C 1 Reply Last reply
                            0
                            • A Anna Jayne Metcalfe

                              I used Lippman when I was first learning the language in the mid-90s, but haven't opened a copy since then. If it hasn't been updated since then, it won't include important things like the STL, so something like "Modern C++" or "Imperfect C++" may be more useful (though somewhat more advanced).

                              Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                              C Offline
                              C Offline
                              CDMTJX
                              wrote on last edited by
                              #77

                              Interesting. I just looked and my OLD copy is in the office. I don't use C++ much any more, but I want the more recent copy here that has STL, etc.. Amazon shows the cover I recognize and says it was updated 2005...

                              1 Reply Last reply
                              0
                              • D Drozzy

                                "between managed/interpreted languages and real ones" Oh wow, that one made me chuckle in the office. do enlighten us about those real languages pleaaase! :^)

                                N Offline
                                N Offline
                                Nickolay Karnaukhov
                                wrote on last edited by
                                #78

                                It's easy - real languages are based on the endless struggle between flexibility and efficiency. In this case C, C++ is real languages. As long as Perl, PHP, Basic, Pascal, etc... All these languages were developed by developers for developers of students who are willing to be developers. In most cases these languages are developed by one, two or three bearded guys in old shabby jeans like Stroustrop, Richie or Wirth. They were (and are) scientists acted for good and with all good in their minds. In other hand we have not real languages - build by marketing departments with all these wise guys with one thing in their mind - "Attract as much developers as possible". This languages are designed by companies and their software frameworks. There's no soul in these languages as they weren't built by one, two or three bearded scientists. And in this list we have Java and C#. Javascrip, Actionscript could also be listed here as they are only some kind of derivatives designed for specific purpose. So final idea is - if something is designed by one bearded scientist - it will live much longer than shaved greedy hired servant. You can treat it in any way you want - it is joke and truth same time. Now you've got definition!

                                ------------------------------------------------------------ Want to be happy - do what you like!

                                D 1 Reply Last reply
                                0
                                • K Kevin McFarlane

                                  Nickolay Karnaukhov wrote:

                                  Books - are only books. Books are just reference and "swap storage". Most important is to start real project, join any opensource for example, and get all that experience.

                                  But it's also important, especially with C++, to learn good practice which you will get from the better books.

                                  Kevin

                                  N Offline
                                  N Offline
                                  Nickolay Karnaukhov
                                  wrote on last edited by
                                  #79

                                  Kevin McFarlane wrote:

                                  But it's also important, especially with C++, to learn good practice which you will get from the better books.

                                  Sure it is! And you're absolutely right!

                                  ------------------------------------------------------------ Want to be happy - do what you like!

                                  1 Reply Last reply
                                  0
                                  • C c2423

                                    I already know C# and I'm trying to learn C++ (it seems to be more required by employers.) All the reference material I have on C++ is geared to learning from absolute basics and I get tired of reading about the difference between ++x and x++ etc (I still read it in case there happens to be something subtle that I wouldn't already know.) So can anybody recommend any good resources that are comprehensive, but won't re-cover stuff thats the same in C#? Thanks, Chris

                                    M Offline
                                    M Offline
                                    Mike Corley
                                    wrote on last edited by
                                    #80

                                    Hi Chris - Those are some good responses you received. Effective C++ by Meyers is indeed excellent! Also an excellent book along those same lines is the "C++ Coding Standards" by Andrei Alexandrecu and Herb Sutter. The critical component is understanding the object model differences. C++ is based on deep copy (value model) semantics. Implies user defined object conbstruction, copy and assignment semantics (implies object identity preservation). C#/java is based on shallow reference semantics (everything is a reference to an object on the managed heap -- object identity is lost). C++ carries its servers type information "#includes" for compilation which affects how you structure code using well known OOD principles (Interface Segregation), (Dependency Inversion) so on an do forth which make use of object factories or whatever. c# uses metadata for compilation which is great. c++ uses rich memory model, static, stack, heap etc. i.e you determine object lifetime C# uses a more spartan model... all objects reside on managed heap... lifetime is non-deterministic. There's more of course... but in short, don't try to write C++ the C#/Java way because you'll get frustrated. Check out the following link for good content and book information: http://www.ecs.syr.edu/faculty/fawcett/handouts/webpages/CSE687.htm good luck, Mike

                                    C 1 Reply Last reply
                                    0
                                    • A AmazingMo

                                      Essential C++ by Stan Lippman.

                                      C Offline
                                      C Offline
                                      c2423
                                      wrote on last edited by
                                      #81

                                      Thanks, I'll be sure to check that out!

                                      1 Reply Last reply
                                      0
                                      • Z Zamaro

                                        The best one that I found is http://msdn.microsoft.com/pt-br/library/ms235630.aspx#MtViewDropDownText have fun! :laugh:

                                        Zamaro .: http://anothernetprogrammer.spaces.live.com

                                        C Offline
                                        C Offline
                                        c2423
                                        wrote on last edited by
                                        #82

                                        Not sure my foreign languages are up to reading 100% of it, but the English version looks good! Thanks.

                                        1 Reply Last reply
                                        0
                                        • T TpB

                                          C++ From The Ground Up (Third Addition) by Herbert Schildt, Osborne Publications If you are developing for Windows, read up on MFC until you get board and then study with Win32 and Win64 API's. There are several API Bibles available - all read about he same.

                                          C Offline
                                          C Offline
                                          c2423
                                          wrote on last edited by
                                          #83

                                          Sounds worth a look - thanks!

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups