0
There is an error called no match for operator<<(std::basic_ostrem ). I want the below output. Can anyone help me with this ?
Day 1 Machine A ** Machine B ***** Machine C **** https://code.sololearn.com/c3T9lw45HFPl/?ref=app
3 Answers
+ 2
Jane Jorgia
In line 75,76,77
â You are trying to print the value that hasn't been returned by the void function PrintBar.
â PrintBar function is of type void which returns nothing ,so how can u print it by using cout <<,
â << NEEDS RETURN TYPE TO PRINT SOMETHING
âThat's why this error is coming..
Hope it helps u
0
Jane Jorgia instead you should do like below
cout<<"Machine A "<<GetProduction(value1,i+1); PrintBar(value1[i]);//executes and print "*"
0
HĂȘĆpâmÄ!Ä++đ„ș Yh it was really helpful. Thankyou so much. If u don't mind can you please tell me what i have to do in the code to get that output line by line.