Ok I've figured out how to make a string variable. How do I get it to have a value? This little code down here produces errors at the user input line:
#include <iostream.h>
#include <string>
using namespace std;
int main()
{
string stupid;
cout << "Please type your name here:"...
Ok I am a beginner in C++ and I have one problem that is halting my learning. I have #include <string> already on, but I can't use string identifier at all. something like:
string stupid1, stupid2;
gives me errors on that particular line. What's up with this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.