#include <iostream>
#include <cstdlib>
using namespace std;
// Classes Done by Curtis.
class object
{
public:
int object1;
void objects();
};
void object:bjects()
{
if (object1 > 100 )
{
cout << "Negative, number bigger than 100\n";
exit(1);
}
if (object1 < 0)
{
cout << "Negative, you have entered a number smaller than 0\n";
}
else
{
cout << "You have entered " << object1;
}
}
int main()
{
cout << " Classes!\n\n";
object obj;
cin >> obj.object1;
obj.objects();
return 0;
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.