인프런 영문 브랜드 로고
인프런 영문 브랜드 로고
BEST
Programming

/

Algorithm & Data Structure

10-week C++ coding test | Algorithm coding test

The best coding test lecture that will help you pass the coding tests of Naver, Kakao, and Samsung in just 10 weeks!

(4.8) 248 reviews

4,068 students

Coding Test
C++
Thumbnail
kundol님의 프로필 이미지

Edited

Lesson update v23.01.24: getline description supplemented

Hello students, haha

The description of getline in the textbook has been improved.

Student provemyself99 gave feedback. Thank you so much for the feedback :)

Those who printed it out can just read the explanation below and skip it. Those who downloaded it and read it, please download it again.

The revised part is as follows: p24 getline description

However, there are situations where you set cin to receive T getlines and T getline inputs come in. In that case, you need to flush the buffer based on a specific string and receive it.

The reason is that when cin receives input, it receives input up to the line break character, and because of this, \n remains in the buffer in the middle. To remove this, you need to use getline(cin, bufferflush).


For reference, line breaks refer to single space or single line spacing.

 

thank you

Instructor lifts a big stone.


Comment