#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int x, y;
int main()
{
cout << "Please give me a number:";
int x = (cin, x);
cout << "Please give me another number:";
int y = (cin, y);
cout << "The sum of " << x;
cout << "and " << y;
cout << "is " << x+y;
}
Can anyone tell me why(as simple as it is) this doesn't add? I'm not really sure how to return user input for numbers and the like. Just started learning this.