Hello everybody I'm new in c++ programming and i have a problem with strings.Actually I'm trying to do this:
I need to create a string called countryOfOrigin
double basicPrice
and double importPrice
and double overallPrice;
and if the countryOfOrigin is Yugoslavia the importprice will be 0;
else the importPrice is 5000 and it's added to overallPrice;
#include<iostream>
#include <string>
using namespace std;
int main(){
double basicPrice;
double importPrice;
string countryOfOrigin;
basicPrice=15000;
and now i need to do this
if the countryOfOrigin is Yugoslavia the importPrice will be 0;
else the importPrice is 5000 and it's added to overallPrice;
I really can't fix this problem can anybody show me how to check that countryOfOrigin is Yugoslavia or not.
Best regards