C++ Tutorial
Wednesday 7 August 2013
Name Return
#include<iostream.h>
#include<conio.h>
class mahi
{
public :
void getname(char *s)
{
cout<<"\n Name= "<<s;
}
};
void main()
{
clrscr();
mahi m1;
m1.getname("MaHi");
getch();
}
Here Is The Output :)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment