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 |
Why is the function main() special?
Explain the concept of friend function in c++?
What is the first name of c++?
Explain binary search.
Should I learn c++ c?
What is the best c++ book for beginners?
Does there exist any other function which can be used to convert an integer or a float to a string?
How does a C++ structure differ from a C++ class?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Explain selection sorting. Also write an example.
What are manipulators in c++ with example?
Define the operators that can be used with a pointer.