char variables doesn't work with switch properly c++ : <p>I'm new to c++ and coding and having a problem trying to write a simple program based on switch-case instruction. I want to let the user set value for char variables and then compare them using switch-case instruction, but the problem is that when I enter values I need, the instruction do not recognize them and runs the default switch case. I have tried to fix this a lot, but  still don't know how to do it and what the problem is. I'm surely missing something very simple and will very appreciate if someone would explain the thing to me.</p>

<pre><code>#include &lt;iostream&gt; 
#include &lt;stdio.h&gt;

using namespace std;

void main(){
char original_currency_type[4], nedeed_currency_type[4];
float money_amount;
cout &lt;&lt; "Enter your currency type (choose between USD,EUR and RUB) \n";
cin &gt;&gt; original_currency_type;
cout &lt;&lt; "Ok, so now enter the currency type you need to convert your money to (choose between USD,EUR and RUB, again) \n";
cin &gt;&gt; nedeed_currency_type;
cout &lt;&lt; "Enter your money amount \n";
cin &gt;&gt; money_amount;
switch (original_currency_type[4]){
case ('RUB') :{
        if (nedeed_currency_type[4] = 'USD')
            cout &lt;&lt; money_amount &lt;&lt; " RUB is " &lt;&lt; money_amount*60 &lt;&lt; " USD";
        else
            cout &lt;&lt; money_amount &lt;&lt; " RUB is " &lt;&lt; money_amount*100 &lt;&lt; " EUR";
        break;
    }
case'USD':{
    if (nedeed_currency_type[4] = 'RUB')
        cout &lt;&lt; money_amount &lt;&lt; " USD is " &lt;&lt; money_amount/60 &lt;&lt; " RUB";
    else 
        cout &lt;&lt; money_amount &lt;&lt; " USD is " &lt;&lt; money_amount*1.2 &lt;&lt; " EUR";
            break;
            }
case 'EUR':{
    if (nedeed_currency_type[4] = 'RUB')
        cout &lt;&lt; money_amount &lt;&lt; " EUR is " &lt;&lt; money_amount/100 &lt;&lt; " RUB";
    else 
        cout &lt;&lt; money_amount &lt;&lt; " EUR is " &lt;&lt; money_amount/1,2 &lt;&lt; ' USD';

    break;
            }
default :{
    cout &lt;&lt; " You haven't been able to choose one of three options right \n";
    break;
              }
    }
}
</code></pre>
