int vPos == 1 ? cout << "Positive" << endl; : cout << "Negative" << endl;
int
(vPos == 1)? (cout << "Positive" << endl) : (cout << "Negative" << endl);
cout << ((vPos == 1)? "Positive" : "Negative") << endl;
12345678
int vPos; // create first cin >> vPos; // then initialize // finaly use it vPos > 0 ? cout << "Positive" << endl : cout << "Negative" << endl; // better approach with nested one: vPos > 0 ? cout << "Positive" : vPos < 0 ? cout << "Negative" : cout << "zerro";