일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- SERIAL
- Encapusulation
- Android
- Pointer
- length
- Unity
- stream
- APP
- mfc
- preprocessing
- public
- Read
- file access
- UNO
- c++
- flutter
- memory
- sensor
- Class
- compare
- aduino
- Contour
- parameter
- wpf
- inheritance
- digitalRead
- atmega328
- 3D
- Barcode
- java
Archives
- Today
- Total
목록Code Style (1)
폴크(FOLC)

ㅁ. modern C++ (C++11 이후) 적극 활용하기auto, range-based for, smart pointers (unique_ptr, shared_ptr) 등 사용std::vector, std::map, std::optional 등 STL 적극 활용람다 표현식, constexpr, std::move 등도 성능과 코드 간결성에 도움ㅁ. RAII 패턴 따르기 (Resource Acquisition Is Initialization)자원(메모리, 파일, 락 등)은 객체에 맡기고 스코프를 벗어나면 자동으로 해제되게 설계예: std::lock_guard, std::unique_ptrㅁ. 메모리 관리 자동화하기new, delete 지양 → 스마트 포인터로 대체메모리 누수, 이중 해제 방지ㅁ. 코드 스타..
C, C++, MFC
2025. 4. 7. 19:35