Ok im trying to compile and keep getting this error: 38 ISO C++ forbids declaration of `string' with no type. Not sure what im doing wrong. Here is my code:
my header file:
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
using namespace std;
class MyString
{
public:
int find(const string& str);
};
#endif
My functions file:
#include "Player.h"
int MyString::find(const string& str)
{
}
my main:
#include "Player.h"
int main()
{}
Any suggestions? Sorry new to c++