String does not name a type?

Well this is an awkward error during compilation... I'll just let you look at the code, says the error occurs at line 14.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SIMPLE_LOAN_H
#define SIMPLE_LOAN_H
#include<string>
#include "loan.h"

class simple : public loan
{
	private:
		std::string type;
	
	public:
		simple();
		double monthly_payment();
		std::string get_type() {return type;}
};

#endif 
Can you please post the exact error message.
Topic archived. No new replies allowed.