Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  juk
Language: C/C++
Code:
#include<iostream.h>
#include<conio.h>
class integer
{
 int i;
 public:
        void get(int x);
}
void integer::get(int x)
{
 i=x;
if(i>0)
{
cout<<i<<"entered integer is positive";
}
else
{
 cout<<"entered integer is not positive":
}
};
int main()
{
 integer i1;
i1.get(6);
return 0;
getch();
}
          
          
Comments: