#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;
}
#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;
}
#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;
}
struct person{
unsigned byte age;
string name;
};
person TheUberFail;
TheUberFail.age = 17;
TheUberFail.name= "TheUberFail";
person *pointer;
pointer->age = 9999;
pointer->name = "God";
Copyright © 2024, NextGenUpdate.
All Rights Reserved.