일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 가고싶은데
- 청청구역
- 빅데이터분석기사후기
- 예쁜곳
- 크롤링
- 호주
- 색상변경
- 데이터전처리
- 파이썬
- 멜버른
- 사각형변형
- 유니코드 제거
- 오류
- 갈자신이없다
- 애니메이션
- 빅데이터분석기사
- 마우스클릭
- 보라카이
- selenium
- 필기후기
- 정말
- 빅데이터분석기사필기
- BeautifulSoup
- 방향변경
- 언제또가보지
- 너무오래됐다
- OpenGL
- Today
- Total
목록전체보기 (93)
wisdiom 아니고 wisdom
#include #include #include GLvoid drawScene(GLvoid); GLvoid Reshape(int w, int h); void main() { srand((unsigned)time(NULL)); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(100, 100); glutInitWindowSize(800, 600); glutCreateWindow("Example2"); glutDisplayFunc(drawScene); glutReshapeFunc(Reshape); glutMainLoop(); } GLvoid drawScene(GLvoid) { int width, height; int count = 0;..
#include #include #include GLvoid drawScene(GLvoid); GLvoid Reshape(int w, int h); void main() { srand((unsigned)time(NULL)); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(100, 100); glutInitWindowSize(800, 800); glutCreateWindow("Example2"); glutDisplayFunc(drawScene); glutReshapeFunc(Reshape); glutMainLoop(); } GLvoid drawScene(GLvoid) { int num = rand() % 6 + 3; i..
#include GLvoid drawScene(GLvoid); GLvoid reshape(int, int); void main() { glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); // 디스플레이 모드 설정 glutInitWindowPosition(100, 100); // 윈도우의 위치 지정 glutInitWindowSize(800, 600); // 윈도우의 크기 지정 glutCreateWindow("Example1"); //윈도우 생성(이름) glutDisplayFunc(drawScene); // 출력 함수의 지정 glutReshapeFunc(reshape); // 다시 그리기 함수 지정 glutMainLoop(); // 이벤트 처리 시작 } GLvoid draw..
int P369(int n) { int num; // n이 3의 배수일 때 if (!(n % 3)) return 1; // 일의 자리의 369가 올 때 if ((n % 10 )== 3 || (n % 10) == 6 || (n % 10) == 9) return 1; // 두자리의 369가 올 때 = 십의 자리에 369가 올 때 or 일의 자리에 369가 올 때 num = n / 10; if ((num == 3) || (num == 6) || (num == 9) || (num % 10) == 3 || (num % 10) == 6 || (num % 10) == 9) return 1; // 백의 자리에 369가 올 때 num = n / 100; if (!(num % 3) || !(num % 6) || !(num..
📌 데이터가 입력될 때마다 이전 데이터와 비교하여 최고의 연비 정보만 저장한다. 📌 속도 정보를 대신해 '-1'이 입력되면, 데이터의 입력이 완료된 것으로 간주해 종료. #include double Effc(double km, double liter) { return km / liter; } int main() { double bestSp = 0; double bestOil = 0; double move; double oil; double sp; while (1) { printf("속도(km/h), 이동거리(km), 오일 사용량(liter) 입력: "); scanf("%lf", &sp); if (sp == -1) break; scanf("%lf %lf", &move, &oil); if (bestOil <..
#include int Fact(int n) { int num = 1; //★ for (int i = 1; i
🔍 사용자로부터 입력 받은 두 수 사이에 존재하는 소수를 출력하는 프로그램을 작성해 보자. #include int IsPriNum(int num) { for (int i = 2; i n2) { s = n2; e = n1; } else { s = n1; e = n2; } printf("소수: "); for (int i = s; i
🔍 프로그램 사용자로부터 두 개의 정수를 입력 받아서 최대 공약수(GCM)와 최소 공배수(LCM)를 계산하여 출력하는 프로그램을 작성하자. (자연수만 입력된다고 가정) #include // 공약수 중 가장 큰 수를 찾는다. int SimpleGCM(int num1, int num2) /* 최대 공약수 반환 */ { int i; for (i = num1; i >= 1; i--) { /* i는 num1의 약수인가? */ if (!(num1%i)) { /* i는 num2의 약수도 되는가? */ if (!(num2%i)) break; // 최대공약수를 찾으면 for문 탈출 } } return i; } // 공배수 중 가장 작은 수를 찾는다. int SimpleLCM(int num1, int num2) /* 최소..