I'm starting my studies in C ++, and I'm not able to split into different files if they can help me.
Primary code
#include <iostream>
#include "Celular.h"
using namespace std;
int main(int argc, char** argv)
{
Celular motorola();
motorola.ligar();
return 0;
}
My dot.h file
class Celular
{
public:
void ligar();
}
My cpp file, which implements the function
#include <iostream>
#include "Celular.h"
using namespace std;
Celular:: void ligar()
{
cout << "consegui" >>;
}
On the main main this error appears
All3filesareinthesamefolder