Donghae Blog

Donghae Blog

  • Category (121)
    • Computer Science (28)
      • Computational thinking (7)
      • Algorithem (10)
      • Data structure (6)
      • Operating system (5)
    • Programming (25)
      • C (20)
      • Python (3)
      • SQL (2)
    • Data Engineering (3)
      • Linux (1)
      • Docker (1)
      • Apache Airflow (3)
      • Apache Spark (5)
      • BigQuery (5)
      • Datahub (1)
    • Problem Solving (26)
      • Baekjoon Online Judge (13)
      • Programmers (10)
      • CodeUp (2)
    • Conference (2)
    • Code States AI (4)
    • LIKELION 9th (12)
    • Writing (5)
  • 홈
  • 태그
  • 방명록
  • 글쓰기
RSS 피드
로그인
로그아웃 글쓰기 관리

Donghae Blog

컨텐츠 검색

태그

프로그래머스 장고 배열 cs50 스택 백준 알고리즘 부스트코스 파이썬 Django c언어 시간복잡도 bigquery 자료구조 코딩테스트 멋쟁이사자처럼 글또 네이버 문자열 포인터

최근글

댓글

공지사항

아카이브

문자열복사(1)

  • C 언어 | 문자열의 복사

    학습 목표문자열을 복사할 수 있다. 문자열의 복사문자열을 복사하는 코드를 만들어보자. #include #include #include int main(void){ string s = get_string("s: "); string t = s; t[0] = toupper(t[0]); printf("s: %s\n",s); printf("t: %s\n",t);} 사용자에게 입력값 s("emma")를 받고, t에 복사 후 첫 문자를 대문자로 바꾸는 프로그램을 만들고자 했다. 하지만 계획과 다르게 toupper()함수가 s와 t 모두에 영향을 주어 "Emma"가 출력되었다.* toupper() 함수를 사용하기 위해 ctype 라이브러리를 추가했다. 이유는 다음과 같다.cs5..

    2021.02.20
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바