강의

멘토링

커뮤니티

Inflearn Community Q&A

culrry's profile image
culrry

asked

[MMORPG Game Development with C++ and Unreal Series] Part 1: Introduction to C++ Programming

TextRPG #1

텍스트 포맷팅

Written on

·

306

0

갑자기 강의를 듣다 궁금해진건데 c++에는 

"{0}, {1}, {2}", a, b, c 와 비슷한 형식으로 텍스트를 포맷팅 하는 방법이 없나요??

C++

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

유사한 방법으로 오래된 C 함수인 printf를 사용할 수 있습니다..

printf("%d, %d, %d", a, b, c);
%d : 10진수 int
%s : 문자열
%f : float 

등등

culrry's profile image
culrry

asked

Ask a question