Question:
should i learn c++ or c or both?
anonymous
2009-07-15 22:06:07 UTC
i want to learn one of the two. would i benifit from learning c then c++? or would that be a waste and i should just skip to c++.

also free compilers would be nice,

and possibly a FASM tutorial... kind of irrelavent to the question but i need one
Seven answers:
Black Rose
2009-07-15 22:45:47 UTC
I would recommend start whit c that will give you a very solid base in programming and make learning any other programming language whether c++ / Java / or .Net very easy..



Free C/C++ compilers: http://msdn.microsoft.com/en-us/visualc/download-visual-c.aspx
supercalifragilisticexpialidocio
2009-07-15 22:15:32 UTC
well...

it depends on what u want to do





* C does not have any classes or objects. It is procedure and function driven. There is no concept of access through objects and structures are the only place where there is a access through a compacted variable. c++ is object oriented.





* C structures have a different behaviour compared to c++ structures. Structures in c do not accept functions as their parts.





* C input/output is based on library and the processes are carried out by including functions. C++ i/o is made through console commands cin and cout.





* C functions do not support overloading. Operator overloading is a process in which the same function has two or more different behaviours based on the data input by the user.





* C does not support new or delete commands. The memory operations to free or allocate memory in c are carried out by malloc() and free().





* Undeclared functions in c++ are not allowed. The function has to have a prototype defined before the main() before use in c++ although in c the functions can be declared at the point of use.





* After declaring structures and enumerators in c we cannot declare the variable for the structure right after the end of the structure as in c++.





* For an int main() in c++ we may not write a return statement but the return is mandatory in c if we are using int main().





* In C++ identifiers are not allowed to contain two or more consecutive underscores in any position. C identifiers cannot start with two or more consecutive underscores, but may contain them in other positions.





* C has a top down approach whereas c++ has a bottom up approach.





* In c a character constant is automatically elevated to an integer whereas in c++ this is not the case.





* In c declaring the global variable several times is allowed but this is not allowed in c++.





if u have a PC u can get Bloodshed Dev C++ at http://sourceforge.net/projects/dev-cpp/files/Binaries/devcpp-4.9.9.2_setup.exe/download
tbshmkr
2009-07-15 22:46:18 UTC
C++ == You will learn C on the side

=

Tutorials online:

http://www.cprogramming.com/tutorial.html

http://www.cplusplus.com/doc/tutorial/

=

Code::Blocks == open source free C/C++ IDE

http://www.codeblocks.org/downloads/5

codeblocks-8.02mingw-setup.exe

=

Free Electronic Books

=

Thinking in C++ 2nd Edition by Bruce Eckel

Volume 1 & Volume 2

http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

=

C

=

http://www.crasseux.com/books/ctutorial/index.html#Top
Rancid
2009-07-15 22:17:44 UTC
I would recommend going straight to C++. The answer to this question really depends on what you want to do with your programming knowledge.



If you intend to tinker with linux, learn C first. If you are more into windows programming or game programming go with C++.



If you are programming for microsoft windows, don't bother with C or C++ go with C# or another .net language.



At this point in time, unless you have a really good reason to learn C, you should just learn C++.
Spearfish
2009-07-15 22:21:51 UTC
I'd say C++... after all, that was C with a bit more thought put into it, along with OOP support.



And as for a compiler... try the GCC (Gnu C Compiler), though I'm not sure if it works with C++.
Bob
2009-07-15 22:12:49 UTC
Try this if statement:



If it's your first language to learn go with vb.NET

Else if you want something powerfull for like 3d games go with C++

Else go with C

End
XeroDaSparx
2009-07-16 11:56:30 UTC
you should just do me instead hehe


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...