Off Topic > Off Topic

Programming Megathread

Pages: << < (133/241) > >>

Ravencroft·:


--- Quote from: McJob on May 09, 2016, 05:53:25 PM ---Hey, quick note, could you append a '\n' or endl to the end of you cout input? Just that way it'll add a newline and the prompt won't run directly off your result.

--- End quote ---
That wasn't the actual program. It was just a test to see what the number was coming out to be, so I didn't really care how it looked.

Ravencroft·:

why wont the console output anything when i try to execute this?



McJob:

"A[ x ]        |      Anew[ x ]" is a literal string. It will straight up print that.

What you want is: "A[" << x << "]     |    Anew[" << x << "]";

Ravencroft·:


--- Quote from: McJob on May 09, 2016, 07:49:17 PM ---"A[ x ]        |      Anew[ x ]" is a literal string. It will straight up print that.

What you want is: "A[" << x << "]     |    Anew[" << x << "]";

--- End quote ---
oh right. i dont advise being under the influence programming at the same time

Ravencroft·:

still nothing in the console. just blank



Pages: << < (133/241) > >>

Go to full version