concatenation - Concatenate character to a sentence c -
how add char sentence.
for example have player1 , add player1 beginning of sentence " please enter how many times shuffle deck.
i'm used java can add + concatenate variable , string(s)
i have far doesn't of have typed:
printf(&player1 + " please enter how many times shuffle deck: "); int numshuf; scanf("%i", &numshuf);
any appreciated
try this:
printf("%s please enter how many times shuffle deck: ", player1);
printf
means print formatted, can format want print , add variables in arguments.
Comments
Post a Comment