본문 바로가기 메뉴 바로가기

개발과 음악 블로깅

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발과 음악 블로깅

검색하기 폼
  • 분류 전체보기 (3)
    • 음악 (1)
    • 개발 (2)
      • openCV (0)
      • C++ (2)
      • Linux (0)
      • Computer Vision (0)
  • 방명록

개발 (2)
Type Casting

Casting의 종류는 크게 2가지로 나눌수 있다. - implicit cast (compiler가 자동으로 type을 변경)- explicit cast (programer가 type 변경) * implicit cast(묵시적 변환)- numeric promotiontype casting시 더 높은 자료형의 값으로 변경ex) double dValue = 1.3f ; (float -> double) - numeric conversion서로 다른 type의 변환 (type이 달라 해당 data의 값이 손실이 될 수 있음) ex) int nValue = 3.4; (3.4 -> 3으로 변경 / data 손실 발생)char ch = 355; (char data value range : -128 ~ 127 / 35..

개발/C++ 2020. 12. 30. 13:34
기본 파일 입출력

Header File : #include 파일 쓰기 : ofstream 객체명("파일 이름");파일 읽기 : instream 객체명("파일 이름"); [CODE] int main(void) {// 파일 쓰기ofstream fout("out.txt"); //project 폴더에 생성됨. for (int i = 0; i< 10; i++) {fout

개발/C++ 2016. 9. 13. 12:02
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • )
  • 2am
  • 임슬옹
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바