Jump to content

Why would this code give an error.

Go to solution Solved by as96,

Then make sure you include string with "#include <string>" and unless you are using "using namespace std" you also have to use the scope for it, so std::string.

You are also missing a ; at the end

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×