what am i missing or doing wrong with this .h file for c++ #ifndef Header_H #def
ID: 3770855 • Letter: W
Question
what am i missing or doing wrong with this .h file for c++
#ifndef Header_H
#define Header_H
#include <iostream>
#include <string>
using namespace std;
class Name{
private:
int nextName;
string CommonName[];
void findRecursive(string name, int low, int high);
public:
Name();
void addName(pair, CommonName);
void sorthName();
int findLinear(string name);
int findBinary(string name);
};
class CommonName{
private:
int newField;
string name;
public:
int gerOrdinal();
string getName();
CommonName(int ord, string aName);
};
Explanation / Answer
#ifndef Header_H
#define Header_H // you defined Header_H you did not give any value to it
#endif
#include <iostream.h>
#include <string.h>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.