Hello I have a problem:
include <iostream>
using namespace
class varios;
int main()
{
cuerpo.hola();
cin.get();
return 0;
}
class varios
{
public:
void hola();
}cuerpo;
void class::hola()
{
cout<<"Este es un ejemplo";
}
I am declaring a prototype class, but I don't know how to declare the object so that the main recognizes it
Do not define variables at the end of the class declaration.
Simply use the class name as if it were a standard type: