Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> About C And C++, Some body know?
saqib431
post Jul 23 2007, 05:22 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 15
Joined: 18-July 07
Member No.: 46,652



Hi there all.
Can somebody tell me about C and C++? I mean whats the difference between C language and C++? I have used C , but once i used C++
I am a little bit confused about there compilers. i hav'nt got any difference between them. But people says that they are different from each other.
Plz help me to get out of this confusion!
Waiting for your responce...
Go to the top of the page
 
+Quote Post
Tetraca
post Jul 23 2007, 04:39 PM
Post #2


Privileged Member
*********

Group: Members
Posts: 628
Joined: 20-May 06
Member No.: 23,968



C is the language that was created to help create UNIX. It is a language that is close to assembly, but not quite assembly - it's a medium level programming langauge. It's good for if you really want to get every last bit of performance out of your application without resorting to using assembly, but you'll end up having to juggle memory - great for making operating systems but sometimes tedious when trying to make applications. C++ is the language created based off of C. It is a higher level programming language and introduces object-oriented programming. Because of this, it is harder to create something like UNIX as it manages memory for you, but it's not completely impossible, as BeOS was written with C++.

I personally like C over C++ because I'm not an object-oriented programmer, and C seems less confusing and more uniform in syntax than C++. iostream.h just ticked me off because it uses completely different syntax to do simple tasks. Where did ">>" come from? If that is supposed to represent a Germanic double arrow quotation mark why do you still need to use English dash quotes? Why can't you just use the same simple function syntax from its predecessor?

Each compiler for the langauge is different - and have slightly different syntaxes to do the same thing if you are going outside ANSI standard libraries like stdio and stdlib. GNU GCC is more oriented towards *nix systems and so its syntax and libraries reflect that. It's free and tries to be as compliant as possible with standards. Visual C++ (also compiles C) has a syntax that is more in the Microsoft style of dumping standards and making their own - at least in some previous versions. I don't know if .NET is any less standards bending. Borland compilers are okay, though the DOS versions have bent syntax in order to speed up compiling time.
Go to the top of the page
 
+Quote Post
fffanatics
post Jul 23 2007, 09:24 PM
Post #3


Privileged Member
*********

Group: [HOSTED]
Posts: 937
Joined: 14-April 05
From: West Chester, PA
Member No.: 5,636



C and C++ are almost identical. The reason is the C++ is the newer extended version of C. C++, as already stated, is an object oriented langauge unlike C. The reason this is a good thing is that you can organize your programs more effectively and allow them to be updated without changing code for other "objects". This leads to less development costs for maintained a piece of software. If you are a beginner programmer, start out learning C and then the transition to more advanced topics in C++ will be much easier. I personally use C++ for all my development needs (which include writing personalized software and games) except for file parsing just because i like how java does this so easily.

As for compilers, there are different compilers for both C and C++. Most C programs can be compiled in C++ but it depends on what libraries and functions you are including. I use Visual C++ for my development since i am a windows user but when i am writing software for / on a linux pc, i use g++.
Go to the top of the page
 
+Quote Post
Codemaster Snake
post Aug 6 2007, 07:29 PM
Post #4


Member [Level 1]
****

Group: Members
Posts: 67
Joined: 13-January 07
From: New Delhi
Member No.: 37,091



C is structured , C++ is Object Oriented.

You can see C as a Subset of C++. C++ hosts every feature of C with some added freatures like:

* Classes
* OOP Features
* Better Error Handling
* More Data security

etc...
Go to the top of the page
 
+Quote Post
nirmaldaniel
post Aug 31 2007, 04:36 AM
Post #5


Premium Member
********

Group: [HOSTED]
Posts: 187
Joined: 7-June 07
From: India
Member No.: 44,356



hi friends this is the place where many of them get confused , regarding the diffrence between c and c++ , i want to make it clear to you. The main diffrence between c and c++ is that c is a procedural oriented programming where as c++ is an object oriented programming . in c++ we can also do procedural oriented programming, that means we can call that c++ is a procedural oriented programming as well as an object oriented programming. So almost all the professinals preffer c ++ because the Object oriented programming has its own advantages.The main advantage is reusablity. but no one should forget that C is the basic of c++ .
Hope you got to know the diffrences clearly friends.
Go to the top of the page
 
+Quote Post
sealence
post Sep 3 2007, 06:37 AM
Post #6


Newbie
*

Group: Members
Posts: 4
Joined: 30-August 07
Member No.: 49,053



c++ = c + Object oriented + ...

read the book <thinking in c++> and it will tell you more. happy.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Coffin(0)
  2. New Technology To Be Implanted To Human Body(36)
  3. Getting Rid Of That Little Pot Belly(0)
  4. Doing Push Ups?(23)
  5. Out-of-body Experience(1)
  6. Do You Know Body Acne?(0)
  7. Clothing Stains(3)
  8. A Very Useful Diet For The Autumn(1)
  9. Bmi (body Mass Index Calculator)(0)
  10. Magnetic Treatment Of Body(8)
  11. Body Art(12)
  12. What Is (your) Bmi - Body Mass Index ?(9)
  13. New Pill Tricks Body Into Burning Fat(7)
  14. Some Body Know, How Can I Get The Bean Tutorial?(1)
  15. Hellllllllllo Every Body!(5)
  1. Does Any Body Have A Xbox 360?(16)
  2. Ie5 Mac Does Not See My Site(11)
  3. Body Language(13)
  4. Css Body Marins(13)
  5. Html Body Background Tag Help(5)
  6. Milk Gift Sig Version 2(5)
  7. Mary's Body Not As Blessed As Christians Can Be(0)
  8. Body Building(6)
  9. Does Any Body Know Some Cool <scripts>?(6)
  10. Any body know how i can become part of the staff(6)
  11. Any Body Haerd Of Exeem(4)
  12. body worlds(12)
  13. Free E-books(7)
  14. body-building(0)


 



- Lo-Fi Version Time is now: 6th July 2008 - 08:49 PM