Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Im new to C++ and my thing isn't working : (

$
0
0
Yeah it's not working, does anywon know how to fix it? im trying to make a test I guess.

#include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int sum;

    cout << "1 = true and 2 = false remember, 1+1 is true? \n";
    cin >> a;

    cout << "2+5=8? \n";
    cin >> b;

    if (a + b = 3) {
        cout << "You win";
    }



         return 0;
}

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>