C++ memset()

Jmnote (토론 | 기여)님의 2024년 1월 2일 (화) 14:02 판 (→‎참고)

1 개요

C++memset()
#include <iostream>
#include <cstring>
using namespace std;

int main() {
    char str[] = "hello world";
    memset(str, '*', 5);
    cout << str; // ***** world
}

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}