이클립스(485)
-
Error-Unable to find vcvarsall.bat
에러 메시지 C:\Users\yuriyuri\git\study_Python\studyPython\ch11-C>python setup.py install running install running build running build_ext building 'text' extension error: Unable to find vcvarsall.bat python build version과 현재 설치되어 있는 compiler version이 달라서 발생 해결방법1 MinGW 다운로드 및 설치하기 http://codedragon.tistory.com/671 자동 빌드를 위해 distutils.cfg파일 수정 기본값은 distutils.cfg파일이 존재하지 않음로 새 파일을 생성하여 distutils.cfg로 저..
-
Ex08-상수를 기호화하여 변수처럼 이름이 있는 상수
상수를 기호화하여 변수처럼 이름이 있는 상수 const 키워드 이용하여 상수 정의하기 #define문 이용하여 상수 정의하기 소스코드 #include //#define문 이용하여 상수 정의하기 #define PI 3.14 #define NUM 100 #define FILE_SIZE 1024 #define BUFFER_SIZE 256 int main() { printf("%lf \n", PI); printf("%d \n", NUM); printf("%d \n", FILE_SIZE); printf("%d \n", BUFFER_SIZE); return 0; } 출력결과
-
Ex07- 상수를 기호화하여 변수처럼 이름이 있는 상수
상수를 기호화하여 변수처럼 이름이 있는 상수 const 키워드 이용하여 상수 정의하기 #define문 이용하여 상수 정의하기 소스코드 int main(void) { //const 키워드 이용하여 상수 정의하기 const int NUM = 10; // 심볼릭 상수의 선언과 동시에 초기화 const double PI = 3.14; // 심볼릭 상수의 선언과 동시에 초기화 //NUM = 20; //PI = 4.14; return 0; } 출력결과 const int NUM = 10; NUM = 20;
-
Python(파이썬) 장점
Python 장점 (파이썬이 좋은 이유) Free(공짜) 인간다운 언어 강력 간결 문법이 쉬워 빠르게 학습 프로그래밍이 재밌다 개발속도가 빠르다 Python으로 할수 있는 것 구분설명파이썬으로 할 수 있는 것 CanGUI(Graphic User Interface) 프로그램 CGI 프로그래밍 수치연산 프로그래밍 데이터베이스 프로그래밍 시스템 유틸리티 C/C++과의 결합파이썬으로 할 수 없는 것 Can't엄청난 횟수의 반복 연산을 필요하는 프로그램 하드웨어를 직접 제어하는 프로그램
-
Error-The container 'Android Dependencies' references non existing library 'C:\javanAndroid\workspace_android\appcompat_v7\bin\appcompat_v7.jar' - eclipse error
오류메시지 The container 'Android Dependencies' references non existing library 'C:\javanAndroid\workspace_android\appcompat_v7\bin\appcompat_v7.jar' Error-The container 'Android Dependencies' references non existing library 'C:\javanAndroid\workspace_android\appcompat_v7\bin\appcompat_v7.jar' 해결방법 1 Add JARs Appcompat_v7항목 확장 Android-support-v7-appcompat.jar 선택 > OK 추가확인 Eclipse: Project > Clean OK ..
-
은닉화 / 캡슐화- 12.html
은닉화 / 캡슐화 소스 코드 function Rectangle(width, height){ //지역변수는 외부에서 호출 불가(은닉화) var width = width; var height = height; this.getWidth = function(){ return width; }; this.getHeight = function(){ return height; }; this.setWidth = function(width){ //검증 if(width