tags:

views:

164

answers:

5

I'm developing a library in C# at the moment and recently bought a great book to help me out but the code snippets are in C++.

Does anyone have a link to a site/PDF that'll give me a crash course in C++? (mainly the syntax rather than pros/cons etc) because I'll be developing in C# but things like ->, ::, &, **, are giving me the shivers. Obviously the languages aren't 100% compatible but if I know what the C++ is doing from a 'theoretical' point of view I can make a stab at rewriting it in C#.

I've had a Google to find the answer but all the sites seem to be "Should I use C++ or C#?", which isn't any good to me.

Thanks in advance.

A: 

You mean you couldn't find anything at https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=c%2B%2B+tutorial to help you??

Noah Roberts
Well yea I could do that - but I didn't want a massive tutorial of all the ins and outs, but I appreciate the response
RichK
+3  A: 

May be too simple for you but http://www.cplusplus.com/doc/tutorial/ is a good place for people who have never seen code before to start.

This has always been a favorite of mine and I recommend it to friends that are starting out in C++ all the time.
jlafay
I downloaded the full PDF tutorial, there's some really useful stuff there
RichK
A: 

This might be useful: http://www.code2code.net/

Jesse J
+1  A: 

I would say that the best way is to look at some of the articles directed at C++ programmers so you can see the differences (I know you asked vice versa, but this will show you the mindset of C++ programmers). A good one is at:

http://msdn.microsoft.com/en-us/magazine/cc301520.aspx

And then pick up a cheat sheet like the one at

http://www.dreamincode.net/downloads/ref_sheets/cpp_reference_sheet.pdf

Between the article and the cheat sheet you should be well on your way.

Nate Noonen
Thanks, I like the cheat sheet
RichK
A: 

All you want is a quick way to familiarize yourself with C++ language so that you can read the code and re-implement it in C#. The "quick" however depends on how complex the c++ code is. Nevertheless a good book for someone trying to learn C++ for programmers experienced in newer and easier language is "Accelerated C++".

Gnu Engineer