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 :)

 

Posted by MaHii Babariya at 02:39
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Posts

  • ▼  2013 (78)
    • ►  September (5)
    • ▼  August (26)
      • Character With Get() and Put()
      • String using write ♥♥♥
      • Overloading + Operator
      • Inheritance Example :)
      • Hybrid Inheritance :)
      • Strcat
      • Multiple Inheritance(6)
      • Constructor : Student Marks
      • Multiple Inheritance(5)
      • Write program of additon ♥♥♥
      • Name Return
      • Multiple Inheritance(4)
      • Multiple Inheritance(3)
      • Inheritance For Loop(2)
      • Inheritance For Loop(1)
      • Multiple Inheritance(2)
      • Multiple Inheritance :: Student Details
      • Multiplae Inheritance: Worker Details
      • Private Single Inheritance
      • Inheritance Example(3)
      • Constructor exp
      • Single Inheritance(2)
      • Single Inheritance: Public
      • Inheritance Example(2)
      • Inheritance example ♥
      • Randomize();
    • ►  July (47)
Picture Window theme. Powered by Blogger.