VS(비쥬얼 스튜디오, Visual Studio)사용시 가끔 접할 수 있는 문제.. 엄밀히 말하면 PCH(미리 컴파일된 헤더)는 에러는 아니구요.. 하지만 코딩하다보면 아래와 같은 문장을 가끔 볼 수 있죠. unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file 프로젝트를 생성할때 '미리 컴파일된 헤더'에 체크한 기억이 있으세요? 그것땜에 그렇습니다. 미리 컴파..
#include "stdafx.h" int *returnarray(int*); int _tmain(int argc, _TCHAR* argv[]) { int k[10] = {10,9,8,7,6,5,4,3,2,1}; int i; returnarray(k); for(i = 0;i < 10;i++) { printf("%d\n",i); } return 0; } int *returnarray(int a[]) { int i; for(i = 0;i < 10;i++) { a[i] = i; } return a; } int a[]로 선언한 배열에서.. a 라고만 적어주면 배열의 주소값을 의미합니다. 그래서.. 포인터형 함수인 returnarray가 return a를 해주면 a배열의 첫번째 주소를 반환합니다. 주소를 건드린 ..
- Total
- Today
- Yesterday
- algorithm
- Troubleshooting
- Cloud
- android
- 드라이버
- kering
- db
- C++
- AWS
- 프로그래밍
- driver
- 안드로이드
- C
- jni강좌
- 음악
- source
- Quiz
- gcc
- linux
- MFC
- Python
- database
- Visual C++
- winapi
- API
- 리눅스
- it
- java
- jni
- NDK
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |