?
Solved

C and C++

Posted on 1997-11-12
1
Medium Priority
?
191 Views
Last Modified: 2010-04-10
1. Basic instruction for C and C++ languages.
2. What's the same between C and C++, including examples between this two.
3. What is pseudocode?
4. What's the different C and C++ algorithm?
thanx..
0
Comment
Question by:norisha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 300 total points
ID: 1173105
First c++ comprises c but have more features c doesn't have.
Base unit of c++ is class, The nature of class as follows. First 32 bits are pointer to virtual table(vtable).Each element of the vtable is pointer to virtual function. When one class derived from another derived class is built so that first goes pointer to vtable then base class data and then derived class data. Derived class uses the same pointer to vtable but can replace some elements(pointers to virtual functions) so overwrite these functions. This is main advance of c++ - inheritance and polimorphism which leads to ability to write reusable code.
c++ is object oriented language but c is procedural oriented language. c++ class which describes the object defines its data as public which are accesible by outside world and represent object to outside world, protected which are restricted data and private used by object itself only. c structure has public members only. In c you create eachprocedure for each action in c++ you create each class for each object inhereting such class from similar objects thus reusing features which are common to these objects.  
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question