전공 과목 시험정리/C 프로그래밍
C와 C++ 동시사용
kcrong
2015. 5. 10. 13:12
1 2 3 4 5 6 7 8 9 10 | #include <stdio.h> #include <iostream> using namespace std; int main() { printf("test\n"); cout << "test\n" << endl; } | cs |
전처리기를 이용해서 따로 컴파일 해줘야 하는 줄 알았더니 확장자를 cpp 로 해줬더니 컴파일이 된다.