c or c++
Hello people
I heard, that c++ is more powerful than c and i want to learn one of them. I want to know if it is better idea to start with C or with C++ without learning C. I know a bit of C# (i can make some basic games and programs, like snake game)...
Thanks for your attention.
khajvah
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 10
Solved Threads: 4
Skill Endorsements: 0
Here's a link to a read me thread in the Computer Science forum
Programming FAQ
There's topic there concerning c and c++
(i can make some basic games and programs, like snake game)
For basic console games I suggest c
Though if you want to create complicated games(3d) I suggest c++
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14
No, i don't want to make games like snake. It was just easiest thing for noobs. I want to make programs connected with internet.
Thanks for the link
khajvah
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 10
Solved Threads: 4
Skill Endorsements: 0
No, i don't want to make games. It was just easiest thing for noobs.
What applications do you want to make?
Did you check the link I posted It might help you clarify some things between c and c++
Edit: sorry just saw your edit of your previous post
I want to make programs connected with internet.
what kind of program? its purpose? :)
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14
I still cant say. :) More likely some applications that will work with internet and may connect computers. I still dont know but one thing i can say for sure that it will work with internet(chat clients, maybe online games(not complicated)).
BTW your link helped me a lot and i am now thinking about Java.
khajvah
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 10
Solved Threads: 4
Skill Endorsements: 0
I still cant say. :) More likely some applications that will work with internet and may connect computers. I still dont know but one thing i can say for sure that it will work with internet(chat clients, maybe online games(not complicated)).
BTW your link helped me a lot and i am now thinking about Java.
Good Luck Then ;)
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14
>>i can say for sure that it will work with internet
That's pretty vague. Surely, for internet-related programming, C/C++ aren't good choices. Although I am of the opinion that no education in programming is complete without being at least functional in C++ programming (because it is so central to the entire programming world), I have to say that if you have a particular area of work in mind and if the central aspect of that area is "the internet" than C/C++ are not very likely to be the languages you will end up using in that area of work.
You have to understand that there are three main lines of programming work in "the internet". First, you can do "networking", like programming servers, routing algorithms, and similar programs which are generally running on some server (and some clients) and works "under-the-hood" to manage data transfers and synchronizations and so on. For these types of applications, be prepared to work in UNIX environments (or Linux, or Solaris), and the more likely candidate languages to learn are Perl and Python, with some basics in C and then some web-scripting languages. Second, you have "internet applications" in the sense of desktop applications that makes heavy use of some underlying internet (and often also a database) connection with a server. For these applications, languages like Java and C# are the ones you will be most comfortable with and are most likely to encounter in that line of work. Finally, you have "web applications" in the sense of things that are basically meant to run inside a web browser or within a flash application and so on. For these, you will be better off learning the appropriate web-scripting languages like PHP, ASP, and so on (I can't say more, I don't know this area so much, I think zeroliken is a better reference in this area).
mike_2000_17
21st Century Viking
3,136 posts since Jul 2010
Reputation Points: 2,050
Solved Threads: 625
Skill Endorsements: 41
@stereomatching:
I totally agree.
Definitely, there are big myths about C++ circulating. So, reiterating for the record:
- C++ is NOT an object-oriented programming language (whatever that means), it is a language with direct, native support for multiple programming paradigms.
- C++ is NOT necessarily slower or fatter than C, benchmarks have proven that fact, for example here where C and C++ performance are usually within each other's error margins (and at the top or near the top, alongside Fortran and Ada).
As for the programming FAQ thread linked above, well, the author repeats these myths mostly as a symptom of his pure-OOP / Java biased judgement. Be indulgent to the fact that Java programmers live in a bizarro world where pure-OOP is the holy-grail of programming style, where only an OOP solution can be the best solution to a problem (or the new trend of AOP), where C++ only matters in so far as it compares (defavorably according to them) to Java/C# which is a comparison that can only be made if you assume that good C++ code has to stick to pure OOP and thus, pay a senseless performance and/or code-bloat price just for the ideological satisfaction of having written the purest OOP code possible. I pity those who are brainwashed in that way.
A simple way to summarise the philosophy of C++ is this (which I often repeat):
In C++, you pay for what you _get_,
but you only have to pay for what you _need_.
Meaning that you have to know what you _want_
and _how_ to get it,
and that's the hard part.
mike_2000_17
21st Century Viking
3,136 posts since Jul 2010
Reputation Points: 2,050
Solved Threads: 625
Skill Endorsements: 41
Definitely, there are big myths about C++ circulating. So, reiterating for the record:
- C++ is NOT an object-oriented programming language (whatever that means), it is a language with direct, native support for multiple programming paradigms.
Most of the people I talked to keeps saying that c++ is object oriented as they often compare it to java
Thanks for enlightening me... at least now I have a vivid Idea about this topic
The opinions are pretty good, but there are some things about C++
I don't agree with.
well that computer science read me thread is outdated(2005) and the info is mostly based from a couple of programmers perspective
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14
Question Answered as of 1 Year Ago by
zeroliken,
mike_2000_17,
stereomatching
and 1 other