Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Doing object-oriented programming. Put a class in a separate header file. Keep getting error: string does not name a type. Already tried putting std::string does

Doing object-oriented programming. Put a class in a separate header file. Keep getting error: "string does not name a type". Already tried putting std::string does NOT work. Help please.image text in transcribed

#ifndef ACCOUNT H INCLUDED 2 3 define ACCOUNT H INCLUDED class Account private: int accountNumber; string ownerName double balance; 10 11 public 12 13 14 15 16 17 void setAccountNumber (int); void setownerName #endif // ACCOUNT H INCLUDED File Line Message C: \Users\ste... 8 C: \Users\ste... 13 C:\Users\ste..13 === Build: Debug in HW6-1-55 (compiler: GNU GCC Compiler) === error: 'string' does not name a type error: variable or field 'setOwnerName declared void error: expected 'at end of member declaration Build failed: 3 error(s), 0 warning (s) (0 minute (s), 0 second (s))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions