1,105,177 Community Members

c or c++

Member Avatar
khajvah
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

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.

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
1
 

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++

Member Avatar
khajvah
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
-1
 

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

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
1
 

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? :)

Member Avatar
khajvah
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
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 ;)

Member Avatar
mike_2000_17
21st Century Viking
4,063 posts since Jul 2010
Reputation Points: 2,244 [?]
Q&As Helped to Solve: 795 [?]
Skill Endorsements: 71 [?]
Moderator
Featured
Sponsor
 
2
 

>>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).

Member Avatar
Tumlee
Posting Whiz in Training
203 posts since Oct 2011
Reputation Points: 42 [?]
Q&As Helped to Solve: 41 [?]
Skill Endorsements: 4 [?]
 
0
 

C++ and C are just as capable as any other language when it comes to using the internet, networking, etc. There are all sorts of libraries out there to do that sort of thing. Even C can have, for example, a game that uses UDP that can be used for online play.

However! C++ and C are not designed for making webpages, or browser-based games.

Member Avatar
stereomatching
Posting Whiz in Training
263 posts since Sep 2010
Reputation Points: 17 [?]
Q&As Helped to Solve: 10 [?]
Skill Endorsements: 0 [?]
 
0
 

Here's a link to a read me thread in the Computer Science forum

The opinions are pretty good, but there are some things about C++
I don't agree with.

>C++ is an Object Oriented Programming (or OOP)
C++ is an multi-paradigms language

>Programs can be slightly larger and slower than those programmed in C
This is same as C, since C++ could generate same binary codes as C
The quality of the programs are depend on the coders

The mysteries about C++ is an OO language and higher abstraction will(not "may")
make the codes become slower and fatter are always lingering within
the world of programming.At first I thought this is because the other
tools don't have a "Turing completeness" macro and template like C++ do.
But recently, I find out that even many programmers of C++ believe in this
kind of mysteries.

C++ and a lot of techniques(not only template) already prove that "higher
abstraction do not equal to slower, fatter codes" many years, yet there are
still many programmers(even some professors of colleges) still believe
these kind of myths, how could this happen?

Member Avatar
mike_2000_17
21st Century Viking
4,063 posts since Jul 2010
Reputation Points: 2,244 [?]
Q&As Helped to Solve: 795 [?]
Skill Endorsements: 71 [?]
Moderator
Featured
Sponsor
 
0
 

@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.

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
0
 

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

Question Answered as of 2 Years Ago by zeroliken, mike_2000_17, stereomatching and 1 other
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: