so currently I am trying to output a string and to keep my code clutter to a minimum it's a conditional
cout << ((maxam>=c) ? "Fuse was blown." : "Fuse was not blown.\nMaximum used current was [variable] A") << endl;
now I seem to remember from somewhere that you can have a value in the string without exiting the string. Something like "my variable is \%" Does anybody know of this?
I know that I could output it like
cout << "beginning of string " << variable << "end of string" << endl;
or
MyStr = "beginning" + variable + "end";
cout << MyStr << endl;
but I was curios about the ""\%""-method.