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
Answers were Sorted based on User's Feedback
Answer / vic
Write a getter method?
int val::getVal() {
return intval;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / ved prakash
using System;
class ved
{
public static void Main()
{
int x,y,z;
x=3;
y=6;
z=0;
z=x+y;
Console.WriteLine(z);
Console.ReadLine();
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
What is size of string in c++?
What is DlgProc?
What are virtual constructors/destructors?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What is std::move?
What is #include c++?
What is the two main roles of operating system?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
Is it possible for a member function to use delete this?
Is it possible to provide default values while overloading a binary operator?
What does count ++ do in c++?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?