Witam. Mam problem gdy chce skompilować pliki to main wywala mi błąd:
Choose.h: no such file or directory
MAIN
#include <iostream>
#include <fstream>
#include <string.h>
#include "ShowFile.h"
#include <windows.h>
#include "Choose.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
Choose w1;
w1.opcja();
return 0;
}
CHOOSE.H
#include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
#ifndef CHOOSE_H
#define CHOOSE_H
class Choose
{
public:
void opcja();
};
#endif
CHOOSE.CPP
#include "Choose.h"
#include "ShowFile.h"
#include <iostream>
#include <fstream>
#include <string.h>
#include <windows.h>
using namespace std;
void Choose::opcja()
{
int wybor;
cout<<"Co chcesz zrobic?"<<endl;
cout<<"1. Utworzyc nowy plik"<<endl;
cout<<"1. Edytowac plik"<<endl;
switch(wybor)
{
case 1:
ShowFile f1;
f1.write_name();
break;
}
}