Error(s) found: '1'

  • Unable to perform the query 'UPDATE cpp_code SET clickthru=clickthru+1 WHERE fid=26'. Table 'cpp_code' is read only.

  • C++ MADE EASY
    Code About Us Tutorial




       
     

    Home > myCode > class implementation

    December 1, 2009 7:43 am

       

    class implementation


    Posted on: 2002-01-19 09:06:27
    Number of times viewed: 295

     
     
    class stud
    {
    char name;
    int age;
    public:
    void getdata();
    void dispdata();
    };
    stud::getdata()
    {
    cin>>name>>age;
    }
    stud::dispdata()
    {
    cout<<name<<age;
    }
    main()
    {
    stud obj;
    obj.getdata();
    obj.dispdata();
    getch();
    }
    

    Please Rate this Code:



     «12039» THINKQUEST TEAM C0111571 © 2001. All Rights Reserved.