Welcome Guest.

1Answers

c++ Why did the text I typed print a number, the beginner solves! ! Thank you

Asked by: Shirley Davies 169 views IT October 11, 2018

c++ Why did the text I typed print a number, the beginner solves! ! Thank you

1 Answers

  1. +1Votes  

    String cannot be input/output with %d, use %s

    In addition, the %s of scanf_s should be followed by the length. So your program should be correct

    Elizabeth- October 12, 2018 |