New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C++

No Title

14 Views
Copy Code Show/Hide Line Numbers
#include<iostream>
#include<conio.h>
using namespace std;
 
class insan
{
      private:
              int yas;
              int boy;
      public:
            int degeral(int i,int j)
            {
                yas=i;
                boy=j;
            
                return yas,boy;
                }
            void degergoster()
            {
                 cout<<"Yasiniz:"<<yas<<endl;
                 cout<<"Boyunuz:"<<boy<<endl;
                 }
      };
 
int main()
{
    insan x;
    int a,b;
    cout<<"Yasinizi Giriniz:"<<endl; cin>>a;
    cout<<"Buyunuzu Giriniz:"<<endl; cin>>b;
    
    x.degeral(a,b);
    
    x.degergoster();
    
    
    getch();
    return 0;
    }
by CWRampi
  July 30, 2010 @ 11:32am

Add a comment


Report Abuse
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate