I am working on a C++ program and am having a problem comparing a string. I need to be able to compare a string in two different ways.
if (stringvariable == "laptop")
I am having a problem with the brackets, it will not allow me to compare with the brackets.
stringvariable = "1stlaptop";
if (stringvariable == "*laptop")
so when I need to compare a partial name.
I need to be able to do both types of comparisons in LINUX.