Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 19-12-2010
Member
 
Join Date: Mar 2010
Posts: 515
Arrays in C++

Hello friends, I am very much confused in arrays in C++. I don?t what are the arrays in C++? Why it is used in C++? Why it supports object oriented programming? I don?t understand this term as it always confuses me? Can anyone please answer me all the queries which I am confused about?
Reply With Quote
  #2  
Old 19-12-2010
Member
 
Join Date: Apr 2009
Posts: 484
Re: Arrays in C++

Array is a assortment of comparable facts elements. To form more than one objects of a particular class the concept of array is used. The array of objects is created in very similar behavior as we are creating the array of any data types. Array of objects is formed at the end of class or in the main.
Reply With Quote
  #3  
Old 19-12-2010
Member
 
Join Date: May 2009
Posts: 532
Re: Arrays in C++

This can be exampled with help of example. For example
class Box
{
private : int l, h, w;

public :

void get_data()
{
cout<<?enter the length width and height of box?;
cin>>l>>h>>w;
}void display()
{
cout<<?the length of box is<<l;
cout<<?the height of box is<<h;
cout<<?the width of box is<<w;
}
};

main ()
{
Box b1[3]; //array of objects
}
Reply With Quote
  #4  
Old 19-12-2010
Member
 
Join Date: May 2009
Posts: 533
Re: Arrays in C++

Arrays in C++ also support object oriented programming. It supports in C, C++, and C #programming language. C++ is typically object oriented programming language. It supports mostly all the function of C++ which is very good. It is one the important feature of C++.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Arrays in C++"
Thread Thread Starter Forum Replies Last Post
Arrays in C# kavisg1 Software Development 3 07-10-2010 07:55 PM
Challenge with Arrays 3d 4d daniel_at_work Software Development 1 20-08-2010 10:31 AM
How to use an Arrays in PHP? Jacques25 Software Development 4 25-02-2010 01:24 AM
Arrays in C# DotNetUser Guides & Tutorials 2 03-12-2008 05:31 PM
Problem with arrays in C++ fellah Software Development 3 05-09-2008 04:45 PM


All times are GMT +5.5. The time now is 09:10 PM.