Aller au contenu

Photo

C++ anyone offer a good tutorial site that is reliable?


  • Veuillez vous connecter pour répondre
14 réponses à ce sujet

#1
Naughty Bear

Naughty Bear
  • Members
  • 5 209 messages
As the title suggests, I need to download C++, I got told it is used mainly for gaming so I'm hoping to pick up a trick or two.

Also, what is the difference between C++ and Dev-C++? I need to download Dev-C++ from Bloodshed.

Modifié par Naughty Bear, 03 octobre 2013 - 06:09 .


#2
RainyDayLover

RainyDayLover
  • Members
  • 1 331 messages
Do NOT jump right into C++ if you're only just starting out programming for the first time. I've known so many people to do this, and then give up in frustration because it can become quite overwhelming.

Start out with C. Once you have a solid understanding of it, you'll have much easier time learning the new concepts introduced in C++ because it is a natural extension of C. Which means they have the same syntax, and you can write C programs in C++. This way you'll also come to appreciate just why C++ is more powerful rather than taking its power for granted. And it'll make you a better programmer.

I've never used Dev-C++ before, but from what I understand, it's an IDE for C/C++.

For C books, check out: http://stackoverflow...-guide-and-list

BTW, I'm a 4th year CS major with experience in C, C++, and C# among other languages... so I know what I'm talking about.

#3
Splinter Cell 108

Splinter Cell 108
  • Members
  • 3 254 messages

Naughty Bear wrote...

As the title suggests, I need to download C++, I got told it is used mainly for gaming so I'm hoping to pick up a trick or two.

Also, what is the difference between C++ and Dev-C++? I need to download Dev-C++ from Bloodshed.


You can't download C++, its a language not exactly an application. What you can download is an IDE(Integrated Development Environment, and Dev C++ is one of those) and with that IDE program C++, most IDEs I know allow you to program C++, NetBeans, Eclipse, Visual Studio, Code Blocks etc. Although you have to be careful with which one you use, for example NetBeans and Eclipse do not program the same way Visual Studio does with C++, and you need compilers for both of them to work with C++ unlike Visual Studio. \\

Visual Studio is a pain in the ass though, as most M$ things are with programming anyway, because whatever you do there doesn't work anywhere else unless its another M$ thing and even then Visual Studio adds and does a lot of crap that is unnecesary. Dev C++ is another IDE for C++, but from what I remember it has not been update for a while and I think it has been abandoned as well. I'd say Visual is the best at least from what I've used, but it is also too expensive just like all the Microsoft crap anyway.  

As for C++ itself, it is annoying and mainly because it is old so it doesn't have all the other fancy things that facilitate programming in other languages. If I were you, I'd start something that is easier like Python or something like that. Games do use C++ a lot but not always and learning C++ doesn't mean you'll be able to automatically start making games either, I know that some developers create their "own" language by mixing different language, for example Fallout uses its own thing. Learning different languages isn't all that difficult anyway, most things are the same except that they are done differently anyway. 

Modifié par Splinter Cell 108, 04 octobre 2013 - 01:02 .


#4
Guest_JujuSamedi_*

Guest_JujuSamedi_*
  • Guests

Naughty Bear wrote...

As the title suggests, I need to download C++, I got told it is used mainly for gaming so I'm hoping to pick up a trick or two.

Also, what is the difference between C++ and Dev-C++? I need to download Dev-C++ from Bloodshed.


C++ is a tough language to get into if you want to have a good grasp of programming. My advice is to be patient start on python or java and then move onto these languages otherwise it might be difficult for you. Diving headfirst into C++  is usually tricky because the layer of abstraction is usually thin.

Here are some introductory things to start off with

Java

Discrete Mathematics will help you

Good place to see examples

Python

However if you need this for curiousity I would recommend doing C programming first(procedural language) and then moving onto c++.

Classic

A few reference manuals here and there

The C++ book I learned from
A little bit of openGL would not hurt

#5
Guest_JujuSamedi_*

Guest_JujuSamedi_*
  • Guests

RainyDayLover wrote...

Do NOT jump right into C++ if you're only just starting out programming for the first time. I've known so many people to do this, and then give up in frustration because it can become quite overwhelming.

Start out with C. Once you have a solid understanding of it, you'll have much easier time learning the new concepts introduced in C++ because it is a natural extension of C. Which means they have the same syntax, and you can write C programs in C++. This way you'll also come to appreciate just why C++ is more powerful rather than taking its power for granted. And it'll make you a better programmer.

I've never used Dev-C++ before, but from what I understand, it's an IDE for C/C++.

For C books, check out: http://stackoverflow...-guide-and-list

BTW, I'm a 4th year CS major with experience in C, C++, and C# among other languages... so I know what I'm talking about.


I would recommend he starts with Java as it hides a lot of the details in the background for him. After he has got a grasp of simple programming constructs he can then start to learn what the compiler does in the background.

#6
RainyDayLover

RainyDayLover
  • Members
  • 1 331 messages

TipsLeFedora wrote...

RainyDayLover wrote...

Do NOT jump right into C++ if you're only just starting out programming for the first time. I've known so many people to do this, and then give up in frustration because it can become quite overwhelming.

Start out with C. Once you have a solid understanding of it, you'll have much easier time learning the new concepts introduced in C++ because it is a natural extension of C. Which means they have the same syntax, and you can write C programs in C++. This way you'll also come to appreciate just why C++ is more powerful rather than taking its power for granted. And it'll make you a better programmer.

I've never used Dev-C++ before, but from what I understand, it's an IDE for C/C++.

For C books, check out: http://stackoverflow...-guide-and-list

BTW, I'm a 4th year CS major with experience in C, C++, and C# among other languages... so I know what I'm talking about.


I would recommend he starts with Java as it hides a lot of the details in the background for him. After he has got a grasp of simple programming constructs he can then start to learn what the compiler does in the background.

:blink:
Java is even worse than C++ for beginners. And it's exactly because it hides a lot of the details. It doesn't help that it's a very verbose language-- it requires a lot of unexplained syntax just to run a simple program. Any experienced programmer or a CS major will tell you it's the worse language for starting out.
He doesn't have to know what the compiler does in the background to learn C. It will introduce him to very simple programming constructs like selection, iteration, data types, structures, recursion, and pointers (though this one may seem non-trivial at first) using as few syntax as possible. Brevity is key when starting out. Every single statement in C is intuitive, and can be explained away right away. Once you learn to write simple programs in C, C++ becomes easy because A) the syntax is the exact same and B) the new constructs in C++, namely the OOP concepts, stand out. 

Once you master C/C++, you can pick up any programming language in the world.

But honestly, an even better approach to learning (and mastering) ANY programming language (and it's the approach utilized in many schools now) is to first start out with a functional language like Lisp (or one of its dialects like Scheme) and Haskell where every program you write is done using mathematical functions. And then transition into C, and finally into C++. This route may seem a lot of work, but you're never discouraged along the way, and you never have to sweep any details under the rug.

#7
Maverick827

Maverick827
  • Members
  • 3 193 messages

RainyDayLover wrote...

Any experienced programmer or a CS major will tell you it's the worse language for starting out.

As an experienced programmer, and someone who's first language was C, I'd rather have started with Java.

#8
RainyDayLover

RainyDayLover
  • Members
  • 1 331 messages

Maverick827 wrote...

RainyDayLover wrote...

Any experienced programmer or a CS major will tell you it's the worse language for starting out.

As an experienced programmer, and someone who's first language was C, I'd rather have started with Java.

Why?

#9
Guest_JujuSamedi_*

Guest_JujuSamedi_*
  • Guests

Maverick827 wrote...

RainyDayLover wrote...

Any experienced programmer or a CS major will tell you it's the worse language for starting out.

As an experienced programmer, and someone who's first language was C, I'd rather have started with Java.


I am also an experienced programmer. Java or python are good languages to start with. Keep in mind that he is not a comp sci major with any background but someone that is just looking to learn. If he does not have a slight idea of how memory management works he will have a hard time pictuing pointers. A c programming language would teach him but a recommended path is to learn the constructs then move on to understanding concept. C programming is powerful with pointers and pointers to functions but it is too soon for a beginner. Keep in mind that the methodology is disjoint from the language. He can write procedural code in an object oriented language

#10
Guest_JujuSamedi_*

Guest_JujuSamedi_*
  • Guests
I should mention that c programming is my favourite language.

while(1)
printf("yay");

#11
Naughty Bear

Naughty Bear
  • Members
  • 5 209 messages

RainyDayLover wrote...

Do NOT jump right into C++ if you're only just starting out programming for the first time. I've known so many people to do this, and then give up in frustration because it can become quite overwhelming.

Start out with C. Once you have a solid understanding of it, you'll have much easier time learning the new concepts introduced in C++ because it is a natural extension of C. Which means they have the same syntax, and you can write C programs in C++. This way you'll also come to appreciate just why C++ is more powerful rather than taking its power for granted. And it'll make you a better programmer.

I've never used Dev-C++ before, but from what I understand, it's an IDE for C/C++.

For C books, check out: http://stackoverflow...-guide-and-list

BTW, I'm a 4th year CS major with experience in C, C++, and C# among other languages... so I know what I'm talking about.



I'm not jumping into it, my tutor says my entire class have to download it as we will be using it for this year for lessons, but Java next year.

What's an IDE?

Modifié par Naughty Bear, 04 octobre 2013 - 12:52 .


#12
bEVEsthda

bEVEsthda
  • Members
  • 3 615 messages
Learn C first.
Then learn Java.
Then program C++ as if it was Java. (by then there's not much to learn about C++ which you don't already know, just remember to make and use destructors).

Modifié par bEVEsthda, 04 octobre 2013 - 01:38 .


#13
Volus Warlord

Volus Warlord
  • Members
  • 10 697 messages
Use Alice (lol!)

#14
Splinter Cell 108

Splinter Cell 108
  • Members
  • 3 254 messages

Naughty Bear wrote...

I'm not jumping into it, my tutor says my entire class have to download it as we will be using it for this year for lessons, but Java next year.

What's an IDE?


Integrated Development Environment, it is where you make your code. You don't download the language, that's not something you can do, you download the IDE and program with the language. 

Some IDEs that can be used for C++:
NetBeans
Eclipse
M$ Visual Studio (insert year here)
Dev C++  (its old and outdated like I said before)
Code Blocks

A word of warning though, if you decide to use NetBeans or Eclipse for C++, you'll need a compiler and although its not really that hard to find one, it is an extra and those two do not work the same way as other C++ IDEs. I'd also like to say that understanding pointers is a pain in the ass, nobody in College bothered to explain that to us when we were looking at Python, understanding it with C++ was really difficult, I'm not a major or in Programming not just yet, it is my first year after all but I'm basically learning Java and C++ right now. 

Here's a picture of what an IDE looks like:

Image IPB

#15
Kaiser Arian XVII

Kaiser Arian XVII
  • Members
  • 17 289 messages
Listen to TipsLeFedora. He is the one.