Arrays within a class, C/C++ Programming

Arrays within a class:

It is just declaring or constructing a derived type array inside the class.  It works similar

to regular array.

const int size=10;

class array

{int a[size]; Public:

void setval(void);

void display(void);

};

Posted Date: 9/20/2012 7:54:05 AM | Location : United States







Related Discussions:- Arrays within a class, Assignment Help, Ask Question on Arrays within a class, Get Answer, Expert's Help, Arrays within a class Discussions

Write discussion on Arrays within a class
Your posts are moderated
Related Questions

Destructor: The purpose of destructor is to free the memory when the compiler memory is reduced or not enough to execute certain program. Sometimes there may several objects op

Default Value Functions,  When declaring a function we can specify a default value for each parameter. This value will be used if that parameter is left blank when calling to the f


What if I cannot wrap the local in an artificial block? need help on Artificial Block in c++.

Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the

Draw a flowchart for a program that allows the user to enter 20 names along with their ages and their Social Security Numbers in three parallel arrays. Programs shou

I need help programing this... In this exercise, you will create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local comp

A: The simplest way is to use a stringstream: #include #include #include using namespace std; string itos(int i) // convert int to string { stringstream s;

Define the Int Data Type of C Language? The int is used to define integer numbers. The Integers are whole numbers with a range of values supported by a particular machine and t