태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.


댓글 하나가 운영자에겐 커다란 힘이 됩니다!

istream& getline ( istream& is, string& str, char delim );
istream& getline ( istream& is, string& str );


Get line from stream

Extracts characters from is and stores them into str until a delimitation character is found.

The delimiter character is delim for the first function version, and '\n' (newline character) for the second. The extraction also stops if the end of file is reached in is or if some other error occurs during the input operation.

If the delimiter is found, it is extracted and discarded, i.e. it is not stored and the next input operation will begin after it.

Notice that unlike the c-string versions of istream::getline, these string versions are implemented as global functions instead of members of the stream class.

자세히 보기

예>

위의 정보가 도움이 되셨나요? 그렇다면 댓글 하나만 남겨주세요.
댓글 하나가 운영자에겐 커다란 힘이 됩니다!

  1. LegendFinger

    | 2009/04/30 18:55 | PERMALINK | EDIT | REPLY |

    좋은정보감사^^ 펌감니다

Write your message and submit
« PREV : 1 : ... 57 : 58 : 59 : 60 : 61 : 62 : 63 : 64 : 65 : ... 432 : NEXT »