error when compiling


i keep getting the same error for every line of code that has an = sign on it. i have tried everything i know...help please...

the code is,

cout << endl << " The sum of neuron 1 is: ";
cout << endl << SNE1 = (( IP1 * WA ) + ( IP2 * WB ));

and the error is,

no match for 'operator=' in '(+(&std::cout)->std::basic_ostream<_CharT, _Traits>::operator<< [with _CharT = char, _Traits = std::char_traits<char>](std::endl [with _CharT = char, _Traits = std::char_traits<char>]))->std::basic_ostream<_CharT, _Traits>::operator<< [with _CharT = char, _Traits = std::char_traits<char>](SNE1) = ((IP1 * WA) + (IP2 * WB))'
closed account (z05DSL3A)
Maybe:
1
2
3
    SNE1 = (( IP1 * WA ) + ( IP2 * WB ));
    cout << endl << " The sum of neuron 1 is: "; 
    cout << endl << SNE1 ;
Last edited on
Topic archived. No new replies allowed.