Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Ai
- 리눅스 오류
- 머신러닝
- torch
- conda: command not found
- anaconda오류
- 리눅스
- conda
- stm32f 시리즈를 이용한 arm cortex-m3/m4 구조와 응용
- pytorch tensor
- conda오류
- Tensor
- ML
- 일귀
- pyTorch
- Machine Learning
- 공부
- essential deep learning paper reading
- 텐서
Archives
- Today
- Total
목록2025/07/17 (1)
Embedded World
[C] C언어의 조건부 컴파일 지시자(#if #ifdef #ifndef #endif)
C는 값 또는 식을 기준으로 조건부 컴파일을 수행할 수 있다. #define #define은 을 로 치환해준다.#include #define PI 3.141592int mian(void){ print("%d\n", PI); return 0;}#if 이 참이면, #if와 #endif 사이의 코드를 컴파일한다. 이는 보통 중복 컴파일을 방지하기 위해 사용된다.#if 값 or 식코드#endif #if, #endif 는 전처리기 과정을 거치면 조건이 참인 코드만 남는다.#include #define PI 3.14int main(void){#if PI == 3.14 printf("PI는 3.14");#elif PI > 3.14 printf("PI값이 좀 이상한데?");#endif prinf("PI값..
소프트웨어/C
2025. 7. 17. 20:18