Repl.it - String Error

Hi guys I use repl.it c++ online IDE to practice my coding. I have some issues.


1) When I include <string> the IDE does not let me use strings. Does anyone know why?


2) My main issue is I have a class. I am trying to initialize my class constructor using member initializer. I get an error with the std::string. Can anyone help me and explain why I get this error?

1
2
3
4
People::People(std::string name, Birthday obj) :
varname(name), vardob(obj)
{
}



Thanks
No idea.
https://ibb.co/bvFf7gz

But like I did, you can do the same.

You can always start a new side project with a simplified version of the problem to help you understand the problem.

Anybody else know? Or can provide more help please do
You'll get substantially better help if you provide a small, reproducible example of your problem.

For more information, please carefully read
http://sscce.org/
and
http://www.catb.org/~esr/faqs/smart-questions.html
Topic archived. No new replies allowed.