Puzzling error


#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
int n;
cout << "Type your desired number in:";
cin >> "n";

int factor;
factor = 5 + 5;

int newnumber;
newnumber = n + factor;

cout << "your new number is:";
cout << newnumber << endl;

system("PAUSE");
return 0;

I have just recently started learning to code and I tried getting away with this program however my attempt was foiled and I got this error, also excuse me if I cant seem to place things in a certain format I'm new here :)

error: no match for 'operator>>' in 'std::cin >> "n"'|
closed account (1yR4jE8b)
You have quotation marks aroudn your n in that statment, if you want the cin to input into the variable named n, then remove the quotation marks.
Thanks! i got it working now!
Topic archived. No new replies allowed.