User Profile
Collapse
-
-
simritsaini1982 started a topic What is difference between functions in main() and functions in a classin CWhat is difference between functions in main() and functions in a class
Hello..
Can anybody explain that how member functions of a class has direct access to the data members of the class vidout any need to declare them locally in the function body.
As in main() we need to declare local variables inside the body of the function.
as given below:-
main()
{
int a;
void display()
{
cout<<"enter value of a";
cin>>a;
... -
error is exactly as I said before..
that..
Linker Error:ABC.exe File not foundLeave a comment:
-
how to remove a linker error .exe file not found
hello..
Can anybody tell me how to remove the linker error as mentioned above..
i have created a simple program in C++ as given below
Code:#include<iostream.h> #include<conio.h> class ABC { private: int a; public: void show() { cout<<"enter value of a:"; cin>>a; cout<<"a="<<a;
Last edited by Frinavale; Feb 14 '17, 09:26 PM.
No activity results to display
Show More
Leave a comment: