본문 바로가기
728x90

IT/프로그래밍175

윈도우즈 API 정복 4-2장 예제 소스코드 API와 운영체제를 통해 알고리즘과 논리력을 키울 수 있도록 쓰여진 책입니다. 초급 프로그래머는 그래픽 환경에 쉽게 적응하여 탄탄한 기본기를 다질 수 있으며 중급 프로그래머는 운영체제의 내부 구조와 동작을 이해함으로써 진정한 응용력을 키울 수 있다. #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("MyTimer"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; .. 2021. 5. 22.
윈도우즈 API 정복 4장 예제 소스코드 API와 운영체제를 통해 알고리즘과 논리력을 키울 수 있도록 쓰여진 책입니다. 초급 프로그래머는 그래픽 환경에 쉽게 적응하여 탄탄한 기본기를 다질 수 있으며 중급 프로그래머는 운영체제의 내부 구조와 동작을 이해함으로써 진정한 응용력을 키울 수 있다. #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("Callback"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass;.. 2021. 5. 22.
윈도우즈 API 정복 3장 예제 소스코드 API와 운영체제를 통해 알고리즘과 논리력을 키울 수 있도록 쓰여진 책입니다. 초급 프로그래머는 그래픽 환경에 쉽게 적응하여 탄탄한 기본기를 다질 수 있으며 중급 프로그래머는 운영체제의 내부 구조와 동작을 이해함으로써 진정한 응용력을 키울 수 있다. #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("DrawText"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass;.. 2021. 5. 22.
윈도우즈 API 정복 2장 예제 소스코드 API와 운영체제를 통해 알고리즘과 논리력을 키울 수 있도록 쓰여진 책입니다. 초급 프로그래머는 그래픽 환경에 쉽게 적응하여 탄탄한 기본기를 다질 수 있으며 중급 프로그래머는 운영체제의 내부 구조와 동작을 이해함으로써 진정한 응용력을 키울 수 있다. #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("First"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_.. 2021. 5. 22.
JAVA 프로그래밍 기초부터 활용까지 11~14장 소스코드 //예제03-11 ArrayTest.java package ch03; import javax.swing.JOptionPane; public class ArrayTest { public static void main( String args[] ) { String output = ""; int n[]; n = new int[ 10 ]; output += "첨자 | 값\n"; for ( int i = 0; i < n.length; i++ ) output +=+ i + " | " + n[ i ] + "\n"; JOptionPane.showMessageDialog( null, output ); System.exit( 0 ); } } // 예제03-12 InitialListArrayTest.java package .. 2021. 5. 22.
JAVA 프로그래밍 기초부터 활용까지 4~10장 소스코드 //예제03-04 SwitchTest.java package ch03; import javax.swing.JOptionPane; public class SwitchTest{ public static void main(String args[]){ int x; String a; String str1; a=JOptionPane.showInputDialog("1-4사이의 값을 입력하시오."); x=Integer.parseInt(a); switch(x){ case 1: str1="1 입니다."; break; case 2: str1="2 입니다."; break; case 3: str1="3 입니다."; break; case 4: str1="4 입니다."; break; default: str1="해당값이 없습니다.".. 2021. 5. 22.
JAVA 프로그래밍 기초부터 활용까지 3-2장 소스코드 // 예제03-08 DoWhileTest.java package ch03; import javax.swing.JOptionPane; public class DoWhileTest { public static void main( String args[] ) { int count=11; int s=0; do{ s=s+count; count++; }while(count 2021. 5. 22.
JAVA 프로그래밍 기초부터 활용까지 3장 소스코드 //예제03-01 IFTest.java package ch03; import javax.swing.JOptionPane; public class IFTest{ public static void main(String args[]){ int x; String a; a=JOptionPane.showInputDialog("수를 입력하시오"); x=Integer.parseInt(a); if(x0) str1="양수"; else if(x==0) str1="영"; else str1="음수"; JOptionPane.showMessageDialog( null,str1); System.exit(0); } } //예제03-04 SwitchTest.java package ch03; import javax.swing.JOptio.. 2021. 5. 22.
JAVA 프로그래밍 기초부터 활용까지 2-2장 소스코드 //예제02-09 InitialTestMember.java class InitialTestMember { static boolean y; public static void main(String args[]) { boolean x=true; System.out.println(x); System.out.println(y); } } //예제02-10 ArguProduct.java public class ArguProduct { public static void main( String args[] ) { int x; int y; int sum; if(args.length==2){ x = Integer.parseInt( args[0] ); y = Integer.parseInt( args[1] ); }else{ x.. 2021. 5. 22.
728x90