Programmer Question
I'm writing a game in MIPS and I take in a player's name. When I try to print something like:
li $v0, 4
la $a0, playerName
syscall
li $v0, 4
la $a0, strEnd #strEnd = ("'s Hand: ")
syscall
So I want it to display:
"playerName's Hand: "
Everything doesn't appear on the same line. I instead get:
"playerName
's Hand: "
My question is how can I strip the new line character from the name I took in? Thanks
Find the answer here
No comments:
Post a Comment