What am I doing Wrong with this C++ code? -


Sorry, forgot code

Here's the wrong code I'm trying to do this work , But not all logical operators work.

  #include & lt; Iostream & gt; #include & lt; String & gt; using namespace std; Repeat string; String repetition; String prompt = "| - [] - & gt;"; Int main () {string entry; Boole is running = true; While (running == true) {cout & lt; & Lt; "\ N"; Cout & lt; & Lt; Signal; Cin & gt; & Gt; enter; If (entry == "exit") 0; If (login == "help") cout & lt; & Lt; "Help: \ nA simple program, try input"; If (entry == "changeprint") {cout & lt; & Lt; "Do you want to change the prompt?:"; Cin & gt; & Gt; Signal; } If (entry == "repeat" || "repeat") {cout & lt; & Lt; "Do you want to repeat the string?:"; Cin & gt; & Gt; Repeat; Cout & lt; & Lt; "How often do you want to repeat" & lt; & Lt; Repeat & lt; & Lt; "(1- 9)?:"; Cin & gt; & Gt; Repeatnum; If (repeat & gt; 0) {}}} four f; Cin & gt; & Gt; F; Return 0; }   

Here's the error that I'm getting.

  Error: C: \ Users \ Packard Bell \ Desktop \ Test \ main.cpp || Function in 'int main ()': | C: \ Users \ Packard Bell \ Desktop \ Test \ main.cpp | 29 | Error: There is no match for 'operator'; 0 in 'repeat' || === Construction finished: 1 errors, 0 warnings === |    

Because in main.cpp you try in line 29 To do repeatnum & gt; 0 and repeats a overloaded operator & gt; is not.

Comments