Hi i need to Acess a variable "int Intval" in the below
mentioned code .How to Access it guys i am waiting for your
reply

Answer Posted / saikat ganguly

class val
{
int intval

public :
void func ()
{
print("\n Enter the value of intval);
scanf("%d",&intval);
}
};

void main()
{
val p
p.func();
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a manipulator in c++?

708


What is late binding c++?

536


What is the v-ptr?

631


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

3402


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

556






Can we specify variable field width in a scanf() format string? If possible how?

654


Explain how an exception handler is defined and invoked in a Program.

578


What is the importance of mutable keyword?

576


what is Member Functions in Classes?

608


What is function declaration in c++ with example?

538


Mention the storage classes in c++.

636


What is iostream in c++ used for?

543


What is oops in c++?

583


What are the various storage classes in C++?

641


Is c++ double?

555