Adding input into existing integer variable

What I am trying to do is add an integer from 'cin' into an already defined integer variable. I feel like there is a very simple answer to this question, but I cannot figure out how to word it so that a search will yield the correct tutorial page.
I know that I can accomplish this by declaring a second variable and simply adding the two together, but this is not what I want to do.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
  //This is the basic gist:
  
  #include<iostream>
  using namespace std;

  int main()
{
  int value = 0;

cout << "Give me a number\n";
cin >> //This is the input I would like to add to variable 'value'

...


Thanks in advance,
-Foeniculum
closed account (2UD8vCM9)
I believe you need a second integer.
Topic archived. No new replies allowed.