E D R , A S I H C RSS

Full text search for "IO"

IO


Search BackLinks only
Display context of search results
Case-sensitive searching
  • InvestMulti - 09.22 . . . . 42 matches
         nations={'KOREA':0 ,'JAPAN':700 , 'CHINA':300, 'INDIA':100}
          print '1. Current Nation states '
          print '3. Move to another Nation '
          print '4. Invest to this Nation '
          print 'Current Nation is : ',user[t2]
          t2 = t0+'nation'
         ID,MONEY,NATION,INVEST="","","",""
         nation={'KOREA':0 ,'JAPAN':0.8 , 'CHINA':0.3, 'INDIA':0.1}
          global user,ID,MONEY,NATION
          NATION = ID + 'nation'
          user[NATION] = 'KOREA'
          temp = ID + nation.keys()[i] + items.keys()[j]
          print '1. Current Nation states '
          print '3. Move to another Nation '
          print '4. Invest to this Nation '
          global ID,MONEY,NATION,user
          user[NATION] = 'JAPAN'
          user[NATION] = 'CHINA'
          user[NATION] = 'INDIA'
          print ' WELCOME TO ', user[NATION]
  • JavaNetworkProgramming . . . . 32 matches
          import java.io.IOException;
          public class AuthException extends IOException{ //사용자 예외를 정의할때 적당한 예외 클래스의 서브클래스가 되는것이 중요한데
          public AuthException(){ //네트워킹 코드에서는 IOException이 적당하다.
          } //당연한 얘기지만 IOException을 처리하는 다른 모든 코드에서 처리될수있다.
          public AuthException(String detail){
          *동기화(Synchronization) : 동기화란 여러 쓰레드가 동시에 작업할 떄 각 쓰레드의 작업 순서를 제어하기 위한 메커니즘이다.
          protected Thread execution;
          if(execution == null){
          execution = new Thread(this); //Runnable 인터페이스를 구현한 것을 넣어줌
          execution.setPriority(Thread.MIN_PRIORITY); //우선수위를 정함
          execution.start(); // 쓰레드시작
          if(execution !=null){
          execution.interrupt(); //stop()을 쓰는 것은 별로 바람직하지 않다 stop()은 쓰레드가 어떤 상황에 있더라도 쓰레드를 바로 멈추어 버리기 때문에,
          execution = null; //쓰레드가 크리티컬 섹션을 수행하는 도중 이 메소드가 호출되는 경우,중요한 데이터에 다른 쓰레드가 영영 접근할수 없는
          while(execution == myself){
          execution =null;
          *Thread 통지(notification)메소드 : 주의해야 할 점은, 이 메소드들 호출하는 쓰레들이 반드시 synchronized 블록으로 동기화 되어야 한다는 점이다.
          import java.io.*;
          public static void println(String msg) throws IOException{
          public static void main(String[] args) throws IOException {
  • MFC/CollectionClass . . . . 26 matches
         = Collection Class =
         '''컬렉션(Collection)'''은 특별한 방식으로 구성되어 있는 임의 개수의 데이터 항목의 집합을 뜻한다.
         = type-safe collection class =
         = Template Collection Class =
          || {{{~cpp AddHead()}}} || 리스트의 첫번째 요소에 객체를 추가한다.[[BR]]리턴형은 POSITION이다. ||
          || {{{~cpp AddTail()}}} || 리스트의 마지막 요소에 객체를 추가한다.[[BR]]리턴형은 POSITION이다. ||
          || {{{~cpp GetNext(POSITION)}}} || 전달된 위치 변수를 증가시킨다. 마지막 객체에서 사용될때에는 NULL을 리턴한다. ||
          || {{{~cpp InsertBefore(POSITION, ObjectType)}}} || 두번째 인자의 객체를 첫번째 인자의 위치의 앞부분에 삽입한다. ||
          || {{{~cpp InsertAfter(POSITION, ObjectType)}}} || 알아서 =.=;; ||
          || {{{~cpp SetAt(POSITION, ObjectType)}}} || 첫번째 인자의 위치에 두번재 인자의 객체를 할당한다. POSITION 의 유효성을 검사한후에 사용해야한다. ||
          || {{{~cpp GetHeadPosition()}}} || 리스트의 맨 처음에대한 POSITION값을 리턴한다. ||
          || {{{~cpp GetTailPosition()}}} || 리스트의 맨 마지막에대한 POSITION값을 리턴한다. ||
          || {{{~cpp Find(ObjectType)}}} || 인자로 받은 객체를 검색해서 그 위치의 POSITION값을 리턴한다. 어드레스 수준에서 비교가 행해진다. ||
          || {{{~cpp FindIndex()}}} || 인자로 받은 int 형의 색인값을 기준으로 그곳의 POSITION 형태의 값을 리턴한다. 최초 요소는 인덱스 0을 갖는다. ||
          || {{{~cpp RemoveAt(POSITION)}}} || 특정위치의 리스트 요소를 삭제 ||
          || {{{~cpp GetNext(POSITION)}}} || 레퍼런스 인수로 전달된 POSITION형식의 변수가 가ㅤㄹㅣㅋ미는 위치에 있는 포인터를 리턴한다. 끝에 도달하면 POSITION은 NULL로 할당. ||
          || {{{~cpp AddHead()}}} || 리스트의 첫번째 요소에 객체를 추가한다.[[BR]]리턴형은 POSITION이다. ||
          || {{{~cpp AddTail()}}} || 리스트의 마지막 요소에 객체를 추가한다.[[BR]]리턴형은 POSITION이다. ||
          || {{{~cpp GetHeadPosition()}}} || 리스트의 맨 처음에대한 POSITION값을 리턴한다. ||
          || {{{~cpp GetTailPosition()}}} || 리스트의 맨 마지막에대한 POSITION값을 리턴한다. ||
  • SolarSystem/상협 . . . . 18 matches
         #include <stdio.h>
         float lightPosition[] = {0.0f,0.0f,0.0f,1.0f};
          glMatrixMode(GL_PROJECTION);
          // Calculate The Aspect Ratio Of The Window
          glLightfv(GL_LIGHT0,GL_POSITION,lightPosition);
          glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
          gluQuadricOrientation(obj, GLU_OUTSIDE);
          MB_OK | MB_ICONINFORMATION);
          MB_OK | MB_ICONINFORMATION);
          MB_OK | MB_ICONINFORMATION);
          MB_OK | MB_ICONINFORMATION);
          MB_OK | MB_ICONINFORMATION);
          ,"ERROR",MB_OK|MB_ICONEXCLAMATION);
          MB_ICONEXCLAMATION)==IDYES){
          MessageBox(NULL,"Window Creation Error",
          "Error",MB_OK|MB_ICONEXCLAMATION);
          MessageBox(NULL,"Can't Creat A GL Device Context","ERROR",MB_OK|MB_ICONEXCLAMATION);
          ,"ERROR",MB_OK|MB_ICONEXCLAMATION);
          ,"ERROR",MB_OK|MB_ICONEXCLAMATION);
          ,"ERROR",MB_OK|MB_ICONEXCLAMATION);
  • ClassifyByAnagram/Passion . . . . 14 matches
         import java.io.BufferedOutputStream;
         import java.io.BufferedReader;
         import java.io.ByteArrayInputStream;
         import java.io.File;
         import java.io.FileInputStream;
         import java.io.FileNotFoundException;
         import java.io.FileOutputStream;
         import java.io.IOException;
         import java.io.InputStream;
         import java.io.InputStreamReader;
         import java.io.PrintStream;
         import java.util.Enumeration;
          public Parser(File file) throws FileNotFoundException {
          public void parse() throws IOException {
          public int getItemCount() throws IOException {
          private List getItemLines() throws IOException {
          Enumeration enum = result.elements();
          public static void main(String[] args) throws IOException
         import java.io.File;
         import java.io.FileInputStream;
  • 3DGraphicsFoundation/INSU/SolarSystem . . . . 13 matches
          1, // Version of this structure
          // Set Viewport to window dimensions
          // Calculate aspect ratio of the window
          glMatrixMode(GL_PROJECTION);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
          glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
  • DevelopmentinWindows/APIExample . . . . 12 matches
         //Microsoft Developer Studio generated resource script.
         #define APSTUDIO_READONLY_SYMBOLS
         #undef APSTUDIO_READONLY_SYMBOLS
         #ifdef APSTUDIO_INVOKED
         #endif // APSTUDIO_INVOKED
         STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
         CAPTION "About"
          LTEXT "API Windows Applicationnfor Development in Windows Seminar",
         #ifdef APSTUDIO_INVOKED
         #endif // APSTUDIO_INVOKED
         #ifndef APSTUDIO_INVOKED
         #endif // not APSTUDIO_INVOKED
         // Microsoft Developer Studio generated include file.
         #ifdef APSTUDIO_INVOKED
         #ifndef APSTUDIO_READONLY_SYMBOLS
  • RandomWalk/임인택 . . . . 12 matches
         #include <iostream>
         // move direction and board.
         int direction_x[]={-1,0,1,1,1,0,-1,-1};
         int direction_y[]={1,1,1,0,-1,-1,-1,0};
         const int DIRECTION = 8;
          k = rand()%DIRECTION;
          if(xPos+direction_x[k]<0 || xPos+direction_x[k]>sizeX-1
          || yPos+direction_y[k]<0 || yPos+direction_y[k]>sizeY-1)
          xPos += direction_x[k];
          yPos += direction_y[k];
         #include <iostream>
         #define DIRECTION 8
         // move direction and board.
         int direction_x[]={-1,0,1,1,1,0,-1,-1};
         int direction_y[]={1,1,1,0,-1,-1,-1,0};
          k = rand()%DIRECTION;
          if(xPos+direction_x[k]<0 || xPos+direction_x[k]>sizeX-1
          || yPos+direction_y[k]<0 || yPos+direction_y[k]>sizeY-1)
          xPos += direction_x[k];
          yPos += direction_y[k];
  • ClassifyByAnagram/김재우 . . . . 10 matches
         import StringIO
          self.assertEquals ( { 'abc' : ['abc'] }, a.getDictionary() )
          self.assertEquals ( { 'abc' : ['abc', 'cba'] }, a.getDictionary() )
          outStr = StringIO.StringIO()
          inStr = StringIO.StringIO()
          outStr = StringIO.StringIO()
          self.dictionary = {}
          self.dictionary.setdefault( self.sortChar( word ) ,[]).append( word )
          def getDictionary( self ):
          return self.dictionary
          for list in self.dictionary.values():
          /// Summary description for AnagramTest.
          Assertion.AssertEquals( "abc", "abc" );
          Assertion.AssertEquals( "abc", anagram.SortWord( "cba" ) );
          Assertion.AssertEquals( "ab", anagram.SortWord( "ba" ) );
          Assertion.AssertEquals( "aa", anagram.SortWord( "aa" ) );
          Assertion.AssertEquals( "-abc add abc", anagram.GetLog() );
          Assertion.AssertEquals( "-abc add abc-cba append abc", anagram.GetLog() );
          Assertion.AssertEquals( "-abc add abc-cba append abc-aa add aa", anagram.GetLog() );
         using System.Collections;
  • ComputerNetworkClass/Report2006/PacketAnalyzer . . . . 10 matches
         - 예, TCP connection 설정과정 분석
         = WSAIoctl =
         WSAIoctl 은 소켓이나 트랜스포트 계층 프로토콜, 통신 시스템의 구성과 관련된 사항을 설정하거나 설정값을 가져오기위해서 만들어졌다.
         WSA prefix 를 가진 함수의 경우 대부분 Winsock 2에서 제공 되기 시작한 것이며, 이 WSAIoctl 역시도 윈속 2에서 지원된다.
         네트워크의 3번째 프로젝트를 하기위해서는 SIO_RCVALL 라는 옵션을 설정하여 사용할 줄 알아야한다. 유사한 옵션으로는
         SIO_RCVALL_IGMPMCAST, SIO_RCVALL_MCAST 가있다.
         ※ 'SIO_RCVALL' : undeclared identifier 에러가 뜰 경우에 아래 코드를 추가 한다.
         #define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
          // This socket MUST be bound before calling the ioctl
          // Set the SIO_RCVALLxxx ioctl
          if (WSAIoctl(s, SIO_RCVALL, &optval, sizeof(optval),
          printf("WSAIotcl(%d) failed; %d\n", dwIoControlCode,
         상기와 같이 기존의 서버 프로그램과 다른 점은 별로 없다. (Listen과 accept가 없네요. WSAIoctrl에서 다 처리하는건지...) 단지 소켓을 ioctrl 로 조정해서 ip 수준에서 올라오는 패킷을 기존과 다르게 처리할 뿐이다.
         SIO_RCVALL 을 통해서 NIC를 통해 올라오는 모든 패킷의 캡쳐가 가능하다. NIC를 통해 나가는 패킷을 캡쳐하지 못하는 듯 하다.
         아마도 listen, accept 가 패킷 필터링을 하는 것으로 보이는데 dst 상관없이 무조겁 application 까지 올라오니깐 필요없는 것이 아닐까? 그런 생각하고 있음. -_- - [eternalbleu]
  • CSP . . . . 9 matches
          raise IOError, "ACK expected but got %s"%ack
          raise IOError, "short netstring read"
          raise IOError, "short netstring read"
          raise IOError, "short netstring read"
          raise IOError, "missing netstring terminator"
          raise IOError, "short netstring read"
          raise IOError, "short netstring read"
          raise IOError, "short netstring read"
          raise IOError, "missing netstring terminator"
  • Android/WallpaperChanger . . . . 8 matches
          * http://stackoverflow.com/questions/2169649/open-an-image-in-androids-built-in-gallery-app-programmatically
          //Intent i = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
          i.setAction(Intent.ACTION_GET_CONTENT);
          String[] projection = { MediaStore.Images.Media.DATA };
          Cursor cursor = managedQuery(uri, projection, null, null, null);
          * Wallpaper바꾸는데 Permission 필요하더라 (Androidmenifest.xml파일 수정 요함)
         import java.io.IOException;
          Toast.makeText(getApplicationContext(), "배경화면 지정 성공", 1).show();
          }catch(IOException e){
          Toast.makeText(getApplicationContext(), "배경화면 지정 실패", 1).show();
          * 또한 Service는 AndroidManifest.xml파일에 당연히 등록을 해야한다. (Application탭 -> Service등록)
         import java.io.IOException;
          private static final int TIMER_PERIOD = 2 * 1000;
          mHandler.postDelayed(this, TIMER_PERIOD);
          mHandler.postDelayed(this, TIMER_PERIOD);
          * enum의 iteration 가능
         객체의 생성은 결코 공짜가 아닙니다. 임시 객체들을 위해 쓰레드-당(per-thread) 할당 풀을 사용하는 세대형(generational) GC는 더 낮은 비용으로 할당 할 수 있지만, 메모리를 할당한다는 것은 메모리를 할당하지 않는 것 보다 언제나 더 높은 비용이 듭니다.
  • InsideCPU . . . . 8 matches
         ''' CAUTION :: 검증하기 않고 쓰인 부분이 있습니다. 수정해 주시면 감사하겠습니다 ''' [[BR]]
         1. 처음 컴퓨터를 키면 참조하는 메모리가 F000:FFF0 이라는 부분이다. 여기서 CPU는 ROM-BIOS를 적재하게 되고 제어권이 ROM-BIOS의 프로그램으로 넘어가게 된다.
         2. 이후 ROM-BIOS는 일련의 CHECK 프로그램을 실행 시킨다. 흔히 보는 하드웨어 CHECK와 메모리 CHECK가 여기에 속한다.
         3. 모든 CHECK가 끝나면 ROM-BIOS는 컴퓨터의 부팅 가능한 드라이브를 찾는다. 이 순위는 CMOS 셋업에서 바꿔 줄 수 있다.
         || offset || field description ||
         || 03h || OEM identification ||
         음...여기까지만..귀찮아서 못 적겠다.. 보통 플로피의 0번 섹터를 write하기 위해 rawrite.exe란 프로그램을 쓴다. 플로피의 데이타를 얻기 위해 BIOS의 인터럽트루틴을 사용한다. 이를 위한 인터럽트는 INT 13h가 된다.
         실모드는 컴퓨터를 키면 항상 실모드가 된다. 이는 하위 CPU에 대한 호환 정책으로 만들어진 것이며 열라 빠르게 움직이는 (펜티엄클럭) 8086이라고 보면 적당할 것이다. 또한 실모드에서는 메모리 어드레싱 방법이 8086과 동일한 20bit의 어드레스 비트를 가지고 있으며 즉 1MB 의 접근만을 허용한다. 또한 640KB의 base로 접근하고 384KB는 extends로 접근해야 하며 위의 메모리에는 ROM-BIOS와 Video Memory가 있다. 1MB를 접근하기 위해서는 16bit의 세그먼트와 16bit의 오프셋으로 구성된 물리적 접근이 있다.
         이를 위해 각각의 어드레스 접근에 privilege level을 두었고 이를 각각의 Application에 적용시켰다. 보호모드의 경우 멀티태스킹을 지원하기 위한 방법이다. 이는 지속적이고 반복적으로 일어나는 Context Switching 을 하드웨어적인 방법으로 만들어 소프트웨어적인 방법보다 빠른 Context Switching을 통해 하드웨어의 효율성을 높였다. 보호모드를 위한 레지스터와 방법들..
         = INT 13H - From BIOS - =
  • RandomWalk/영동 . . . . 8 matches
         #include<iostream.h>
         #include<iostream>
         const int DIRECTION=8;
         const int MOVE_X[DIRECTION]={0, 1, 1, 1, 0, -1, -1, -1};
         const int MOVE_Y[DIRECTION]={-1, -1, 0, 1, 1, 1, 0, -1};
         void askLocationOfBug(Bug & a_bug);
          askLocationOfBug(bug);
          a_bug.way=rand()%DIRECTION;
         void askLocationOfBug(Bug & a_bug)
         const int DIRECTION=8;
         const int MOVE_X[DIRECTION]={0, 1, 1, 1, 0, -1, -1, -1};
         const int MOVE_Y[DIRECTION]={-1, -1, 0, 1, 1, 1, 0, -1};
          void askLocationOfBug();
         #include<iostream.h>
         #include<iostream>
         void Bug::askLocationOfBug()
          way=rand()%DIRECTION;
         #include<iostream>
          bug.askLocationOfBug();
  • Garbage collector for C and C++ . . . . 7 matches
          * -DGC_OPERATOR_NEW_ARRAY -DJAVA_FINALIZATION 을 CFLAGS 에 추가.
         # objects should have been explicitly deallocated, and reports exceptions.
         # Finalization and the test program are not usable in this mode.
         # gc.h before performing thr_ or dl* or GC_ operations.)
         # -DALL_INTERIOR_POINTERS allows all pointers to the interior
         # Alternatively, GC_all_interior_pointers can be set at process
         # initialization time.
         # usually causing it to use less space in such situations.
         # Incremental collection no longer works in this case.
         # -DDONT_ADD_BYTE_AT_END is meaningful only with -DALL_INTERIOR_POINTERS or
         # GC_all_interior_pointers = 1. Normally -DALL_INTERIOR_POINTERS
         # implementations, and it sometimes has a significant performance
         # -DNO_EXECUTE_PERMISSION may cause some or all of the heap to not
         # have execute permission, i.e. it may be impossible to execute
         # since this may avoid some expensive cache synchronization.
         # with dummy source location information, but still results in
         # The former is occasionally useful for working around leaks in code
         # -DJAVA_FINALIZATION makes it somewhat safer to finalize objects out of
         # order by specifying a nonstandard finalization mark procedure (see
         # of GC_java_finalization variable.
  • BuildingWikiParserUsingPlex . . . . 6 matches
         import cStringIO, StringIO
          return cStringIO.StringIO(aText)
          imgExtensions = ("jpg", "png", "gif", "jpeg")
          extension = aFileUrl[aFileUrl.rfind(".")+1:]
          return extension in imgExtensions
          writer = StringIO.StringIO("")
  • Java2MicroEdition/MidpHttpConnectionExample . . . . 6 matches
         import javax.microedition.midlet.*;
         import javax.microedition.io.HttpConnection;
         import javax.microedition.lcdui.*;
          private HttpConnection httpConn;
          protected void startApp() throws MIDletStateChangeException {
          public void commandAction(Command c, Displayable d) {
         import java.io.DataInputStream;
         import java.io.IOException;
         import javax.microedition.io.Connector;
         import javax.microedition.io.HttpConnection;
          private HttpConnection httpConn;
          } catch(IOException ex) {
          private void init(String url) throws IOException {
          httpConn = (HttpConnection)Connector.open(url);
          httpConn.setRequestMethod(HttpConnection.GET);
          } catch(IOException ex) {
          } catch(IOException ex) {
          } catch(IOException ex) {
         Java2MicroEdition
  • MFC/MessageMap . . . . 6 matches
         in ''application_name.h''
          // ClassWizard generated virtual function overrides
         // Implementation
          // NOTE - the ClassWizard will add and remove member functions here.
         in ''application_name.cpp''
         in ''CAboutDlg implementation''
          // ClassWizard generated virtual function overrides
         // Implementation
         || control notification message || 컨트롤 폼과 같은 것으로 부터 부모 윈도우에게 전달되는 WM_COMMAND메시지이다. ||
          == SDI Application ==
          * application object
          == MDI Application ==
          * application object
         #define WM_QUERYENDSESSION 0x0011
         #define WM_ENDSESSION 0x0016
          POINT ptMaxPosition;
          * wParam for WM_POWER window message and DRV_POWER driver notification
         #define WM_IME_STARTCOMPOSITION 0x010D
         #define WM_IME_ENDCOMPOSITION 0x010E
         #define WM_IME_COMPOSITION 0x010F
  • MedusaCppStudy/재동 . . . . 6 matches
         #include <iostream>
         const int DIRECTION_ROW[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
         const int DIRECTION_COL[8] = {0, 1, 1, 1, 0, -1, -1, -1};
         void inputRoachPosition(sRoach& roach, const vector< vector<int> >& board);
          inputRoachPosition(roach, board);
          cout << "You must correct roach position!" << endl;
          roach.curRow += DIRECTION_ROW[dir];
          roach.curCol += DIRECTION_COL[dir];
          roach.curRow -= DIRECTION_ROW[dir];
          roach.curCol -= DIRECTION_COL[dir];
         void inputRoachPosition(sRoach& roach, const vector< vector<int> >& board)
          cout << "Enter roach initil position(ex: row, col): ";
          throw domain_error("Roach position is worng");
         #include <iostream>
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/변형진 . . . . 6 matches
         import java.io.BufferedReader;
         import java.io.FileReader;
         import java.io.IOException;
          public static void main(String[] args) throws IOException {
          } catch (IOException ex) {
         import java.io.BufferedReader;
         import java.io.FileReader;
         import java.io.IOException;
          public Trainer load() throws IOException {
          } catch (IOException ex) {
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/송지원 . . . . 6 matches
         import java.io.*;
          } catch(IOException e){
          } catch (IOException e) {
          } catch(IOException e){
         import java.io.BufferedReader;
         import java.io.FileReader;
         import java.io.FileWriter;
         import java.io.IOException;
          } catch (IOException e) {
          } catch (IOException e) {
  • 문자반대출력/김정현 . . . . 6 matches
         // FileIO.java 파일
         import java.io.*;
         public class FileIO
          catch(IOException ioException)
          catch(IOException ioException)
          FileIO test = new FileIO();
  • 위키에 코드컬러라이저 추가하기 . . . . 6 matches
         import string, sys, cStringIO
          buff = cStringIO.StringIO()
         import string, sys, cStringIO
          buff = cStringIO.StringIO()
  • ActiveTemplateLibrary . . . . 5 matches
         {{|The Active Template Library (ATL) is a set of template-based C++ classes that simplify the programming of Component Object Model (COM) objects. The COM support in Visual C++ allows developers to easily create a variety of COM objects, Automation servers, and ActiveX controls.
         ATL은 템플릿으로 이루어진 C++ 클래스 집합니다. 이 클래스들은 COM 객체를 프로그래밍하는 과정을 단순화시킨다. VisualC++에서 COM의 지원은 개발자들이 쉽게 다양한 COM객체, Automation 서버, ActiveX 컨트롤들을 생성하도록 해준다.
         === String Conversion ===
          * [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_atl_string_conversion_macros.asp ATL and MFC String Conversion Macros]
         ATL string의 형변환시에는 {{{~cpp USES_CONVERSION}}} macro를 형변환 전에 호출하여야함.
         CComQIPtr<IOleWindow> pOleWin(pUnk);
         IOleWinodow* pOleWin;
         pUnk->QueryInterface(IOleWindow, IID_IOleWindow, &pOleWin);
  • EffectiveC++ . . . . 5 matches
          #define ASPECT_RATIO 1.653
         ASPECT_RATIO는 소스코드가 컴파일로 들어가기 전에 전처리기에 의해 제거된다.[[BR]]
         define 된 ASPECT_RATIO 란 상수는 1.653으로 변경되기때문에 컴파일러는 ASPECT_RATIO 란것이 있다는 것을 모르고 symbol table 에?들어가지 않는다. 이는 debugging을 할때 문제가 발생할 수 있다. -인택
          const double ASPECT_RATIO = 1.653
         === Item 2: Prefer iostream to stdio.h ===
          * ''생성자 및 소멸자와 적절히 상호동작하기 때문에. they are clearly the superior choice.''
          * ''Initialization of the pointer in each of the constructors. If no memory is to be allocated to the pointer in a particular constructor, the pointer should be initialized to 0 (i.e., the null pointer). - 생성자 각각에서 포인터 초기화''
          * ''Deletion of the existing memory and assignment of new memory in the assignment operator. - 포인터 멤버에 다시 메모리를 할당할 경우 기존의 메모리 해제와 새로운 메모리의 할당''
          * ''Deletion of the pointer in the destructor. - 소멸자에서 포인터 삭제''
         === Item 7: Be prepared for out-of-memory conditions. ===
          memory = ::operator new(size); // allocation
          } // exception
         void noMoreMemory(); // decl. of function to
          // call if memory allocation
          // new-handling function
         X *px1 = new X; // if memory allocation
         string *ps = new string; // if memory allocation
          // new-handling function
          // new-handling function
         X *px2 = new X; // if memory allocation
  • ProjectTriunity . . . . 5 matches
         || Upload:ExternalSort_FileIO_1.zip || 이상규 || File I/O 라이브러리 버전 1 ||
         || Upload:ExternalSort_FileIO_2.zip || 이상규 || File I/O 라이브러리 버전 2 ||
         || Upload:ExternalSort_FileIO_3.zip || 이상규 || File I/O 라이브러리 버전 3 ||
         || Upload:ExternalSort_FileIO_4.zip || 이상규 || File I/O 라이브러리 버전 4 ||
         || Upload:ExternalSort_FileIO_5.zip || 이상규 || File I/O 라이브러리 버전 5 ||
  • SignatureSurvey . . . . 5 matches
         import StringIO
          writer = StringIO.StringIO("")
          surveyer = HtmlSigSurveyer(StringIO.StringIO(data))
         처음써봐서 완벽하게 확신이 들진 않지만, SignatureSurvey 를 사용하면 Duplication Code 를 찾는 방법으로 일반화를 시킬 수 있지 않을까 하는 상상을 해본다.
  • ZPBoard/AuthenticationBySession . . . . 5 matches
         Session 을 이용한 인증.
         === Session 이란 ===
         Session은 Cookie가 클라이언트 측에서 정보를 관리하는것과는 달리, 서버측에서 정보를 관리합니다. Session과 Cookie가 왜 나타났는지를 알려면 그 근원인 HTTP 프로토콜에 대한 약간의 이해가 필요합니다.
         '''HTTP 프로토콜'''은 stateless 프로토콜입니다. connectionless 프로토콜이라고도 합니다. 예를 들어, 웹브라우저를 통해 제로페이지에 접속한다고 봅시다. 클라이언트 입장에서는 자기 자신이 연속된 요청(게시물 보기나, 위키 사용등)을 보내는것을 알지만, 서버 입장에서는 매번 온 요청이 누구로부터 온 것인지를 알 방법이 없습니다. '''왜냐하면''' HTTP 프로토콜의 태생이 연결지향적이 아니고, 상태를 알 수 없기 때문입니다.
         클라이언트와 서버간에 지속적인 유대관계를 맺고 싶을때 사용하는 방법으로 Cookie와 Session이 등장하게 되었습니다. Cookie에 대한 이야기는 논외로 하고, Session을 살펴보면, 이는 흔히 ''세션아이디'' 또는 ''세션키''라 부르는(이하 세션아이디로 통일) 값을 쿠키에 설정해놓고, 클라이언트의 요청시 쿠키에서 세션아이디를 가져와서 내부적인 검토과정을 거치고, 이에따라 유효한 요청 또는 무효한 요청을 외치게(인증하게)됩니다.
         === Session 을 이용한 인증 ===
         session_start(); // Session 을 사용하기 위해서는 반드시 맨 처음에 이 함수를 호출해주어야 한다.
         // Auth 라는 Session 변수가 없다면 인증이 안된 경우 이므로...
         if(!isset($_SESSION[Auth]))
         // Auth 라는 Session 변수가 있다면 인증이 된 경우 이므로...
         login.php - 회원 인증 폼에서 ACTION 속성으로 사용
          $_SESSION[Auth] = "OK"; // Auth 라는 Session 변수를 만들어 준다.
         <script language = "JavaScript">window.location.replace("example.html");</script>
         logout.php - 로그 아웃 폼에서 ACTION 속성으로 사용
         unset($_SESSION[Auth]); // Auth 라는 Session 변수를 제거한다.
         <script language = "JavaScript">window.location.replace("example.html");</script>
          * Cookie와 Session의 차이를 이해했나요? 왜 Cookie를 놔두고 Session을 사용하려고 하는것이지요?
          * 보안상 Session이 더 좋다는 소리를 들어서요 --["상규"]
          * 어떤점에 있어서 보안상 Session이 더 좋은것일까요?
          * Cookie는 클라이언트에 있어서 조작이 가능할 수 있지만 Session은 서버에 있어서 조작하는게 힘들다고 들었습니다. --["상규"]
  • JollyJumpers/황재선 . . . . 4 matches
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          } catch (IOException e) {
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          } catch (IOException e) {
          public boolean isException() {
          if (j.isException())
  • LIB_3 . . . . 4 matches
          TCB[count].priority = NULL;
         void LIB_create_task (char *task_name,int priority,void (*task)(void),INT16U * Stack)
          if ( priority < LIB_MIN_PRIORITY || priority > LIB_MAX_PRIORITY ) return; <--------- 우선순위가 지랄 같으면 그냥 끝낸다.
          // Insert Prio Queue;
          pReady_heap[ready_tcb_ptr]->priority = priority;
          if ( pReady_heap[temp_count]->priority > pReady_heap[tree_parent(temp_count)]->priority ){
         void LIB_resume_task(INT16U priority ){
          if ( priority == 0 ) return;
          if ( pSuspend_heap[i]->priority == priority ) {
          LIB_VRAM_STRING(0,15,"CAUTION !!!",0x07);
          if ( pReady_heap[temp]->priority > pReady_heap[tree_parent(temp)]->priority ) {
         void LIB_suspend_task(INT16U priority){
          if ( pReady_heap[i]->priority == priority ){
          LIB_VRAM_STRING(0,15,"CAUTION !!!",0x07);
          if ( pReady_heap[tree_left(temp)]->priority > pReady_heap[temp]->priority ) {
          else if ( pReady_heap[tree_right(temp)]->priority > pReady_heap[temp]->priority ) {
          if ( pReady_heap[tree_left(temp_count)]->priority > pReady_heap[temp_count]->priority ){
         void LIB_resume_list(INT16U priority ){
          if ( pSuspend_heap[i]->priority == priority ) {
          if ( pReady_heap[temp]->priority > pReady_heap[tree_parent(temp)]->priority ) {
  • MoreEffectiveC++/Efficiency . . . . 4 matches
         == Item 17:Consider using lazy evaluation ==
          * Item 17:lazy evaluation의 쓰임에 대하여 생각해 보자.
         DeleteMe ) lazy evaluation이나 여러 용어가 마땅한 한글말이 없어서 이후 영문을 직접 쓴다. 전반적인 내용이 의미 설명을 하다. --상민
         이런 같은 관점을 이제 막 5년차 C++프로그래머에 대입 시켜본다. 컴퓨터 과학에서, 우리는 그러한 뒤로 미루기를 바로 ''''lazy evaluation''''(구지 해석하면 '''필요시 연산, (최)후 연산, 늦은 연산'''정도라 할수 있겠다.)이라고 말한다. 당신이 lazy evaluation을 사용하면 당신의 클래스들이 최종적으로 원하는 결과가 나올 시간까지 지연되는 그런 상태로 코딩을 해야 한다. 만약 결과값을 결국에는 요구하지 않는다면, 계산은 결코 수행되지 않아야 한다. 그리고 당신의 소프트웨어의 클라이언트들과 당신의 부모님은 더 현명하지 않아야 한다.( 무슨 소리냐 하면, 위의 방치우기 이야기 처럼 부모님이나 클라이언트들이 lazy evaluation기법의 일처리로 해결을 하지 않아도 작업에 대한 신경을 안써야 한다는 소리 )
         아마 당신은 내가 한 이야기들에 대하여 의문스로운 점이 있을것이다. 아마 다음의 예제들이 도움을 줄것이다. 자!, lazy evaluation은 어플리케이션 상에서 수많은 변화에 적용할수 있다. 그래서 다음과 같이 4가지를 제시한다.
         String 복사 생성자의 적용시, s2는 s1에 의하여 초기화 되어서 s1과 s2는 각각 "Hello"를 가지게된다. 그런 복사 생성자는 많은 비용 소모에 관계되어 있는데, 왜냐하면, s1의 값을 s1로 복사하면서 보통 heap 메모리 할당을 위해 new operator(Item 8참고)를 s1의 데이터를 s2로 복사하기 위해 strcpy를 호출하는 과정이 수행되기 때문이다. 이것은 ''''eager evaluation''''(구지 해석하면 '''즉시 연산''' 정도 일것이다.) 개념의 적용이다.:s1의 복사를 수행 하는 것과, s2에 그 데이터를 집어넣는 과정, 이유는 String의 복사 생성자가 호출되기 때문이다. 하지만 여기에는 s2가 쓰여진적이 없이 새로 생성되는 것이기 때문에 실제로 s2에 관해서 저런 일련의 복사와, 이동의 연산의 필요성이 없다.
         값의 공유에 관하여 좀더 자세하게 이 문제에 논의를 제공할 부분은 Item 29(모든 코드가 들어있다.)에 있다. 하지만 그 생각 역시 lazy evaluation이다.:결코 당신이 정말로 어떤것을 필요하기 전까지는 그것의 사본을 만드는 작업을 하지 않것. 일단 그보다 lazy 해져봐라.- 어떤이가 당신이 그것을 제거하기 전까지 같은 자원을 실컷 사용하는것. 몇몇 어플리케이션의 영역에서 당신은 종종 저러한 비합리적 복사의 과정을 영원히 제거해 버릴수 있을 것이다.
         reference-counting 을 토대로한 문자열의 구현 예제를 조금만 생각해 보면 곧 lazy evaluation의 방법중 우리를 돕는 두번째의 것을 만나게 된다. 다음 코드를 생각해 보자
         이것은 우리에게 적용 관점에서 상당히 난제이다. 우리가 원하는 것에 이르기 위하여 operator[] 안쪽에 각기 다른 작업을 하는 코드가 필요하다.(읽기와 쓰기에 따라서 따로 작동해야 한다.) 어떻게 우리는 operator[]가 읽기에 불리는지 쓰기에 불리는지 결정할수 있을까? 이런 잔인한 사실은 우리를 난감하게 한다. lazy evaluation의 사용과 Item 30에 언급된 proxy 클래스(위임 클래스, DP에서의 역할과 비슷할것이라 예상) 는 우리가 수정을 위하여 읽기나 쓰기 행동을 하는지의 결정을 연기하게 한다.
         lazy evaluation에서 다룰 세번째의 주제로, 당신이 많은 필드로 이루어진 큰 객체들을 사용하는 프로그램을 가지고 있다고 상상해 봐라. 그런 객체들은 반드시 프로그램이 실행때 유지되며, 나중에는 데이터 베이스 안에 저장된어진다. 각각의 객체는 각 객체를 알아볼수 있고, 유일성을 보장하는 데이터 베이스로 부터 객체를 불러올때 종류를 알아 볼수 있는, 식별자(identifier)를 가지고 있다.(OODB 인가.) :
          * Lazy Expression Evaluation ( 표현을 위한 게으른 연산 )
         lazy evaluation이 가지고 오는 마지막 예제로는 바로 숫치 연산 어플리케이션들이 문제를 가지고 왔다. 다음을 코드를 보자
         보통 operator+에 대한 구현은 아마 '''eager evaluation'''(즉시 연산) 이 될것이다.;이런 경우에 그것은 아마 m1과 m2의 리턴 값을 대상으로 한다. 이 계산(1,000,000 더하기)에 적당한 게산양과, 메모리 할당에 비용 이 모드것이 수행되어져야 함을 말한다.
         '''''lazy evaluaion''''' 방법에서는 저건 너무 엄청난 수행을 하는 방법이라 하고, 그래서 그것을 수행하지 않는다. 대신에 m3내부에 m1과 m2의 합을 했다는 것만을 기럭해 둔다. 그런 자료 구조는 아마도 m1과 m2나 그이상의 더하기를 하기 위한 포인터 외에는 아무런 정보를 유지할 필요가 없을 것이다. 명백히 이건 m1,m2에 대한 실제 더하기보다 훨씬 빠르고 말할것도 없이 훨씬 적은 메모리를 사용할 것이다.
         하지만, lazy evaluation이 치룬 시간이 오직 저런 상태일 뿐이라면, "엄청난 계산을 요구한다"라는 문제가 더 커질것이라고 생각하기는 어렵다.의 필요성이 좀더 일반적인 시나리오는 우리가 오직 계산에서의 ''일부''가 필요한 경우이다. 예를 들자면 우리가 m3를 m1과 m2의 합으로 초기화 했다고 가정하고 다음과 같은 코드가 있다면
         어떻게 행운이냐구? 행렬 계산의 분야에 대한 경험이 우리의 이러한 코드에 대한 노력에 가능성을 준다. 사실 lazy evaluation은 APL이라는 것에 기초하고 있다. APL은 1960년대에 상호 작용의(interactive) 쓰임을 위하여 행렬 계산이 필요한 사람들에 의하여 개발된 것이다. 현재보다 떨어진 수행능력을 가진 컴퓨터에서 APL은 더하고, 곱하고, 심지어 커다란 행렬을 직접 나눈는 것처럼 보이게 하였다. 그것에는 lazy evaluation이라는 방법이었다. 그 방법은 일반적으로 보통 효율적이었다. 왜냐하면 APL 사용자가 보통 더하고, 곱하고 나누는 것을 그것의 행렬의 조각들을 필요로 하고, 전체의 결과가 필요하기 전까지 수행하지 않는다. APL 은 lazy evaluation을 사용해서 행렬상의 결과를 정확히 알 필요가 있을때까지 게산을 지연시킨다. 그런 다음 오직 필요한 부분만을 계산한다. 실제로 이것은 과거 열악한 컴퓨터의 능력하에서 사용자들이 계산 집약적인(많은 행렬 계산을 요하는) 문제에 관하여 상호적으로(결과값과 수행 식간에 필요 값을 위해서 최대한 실제 연산을 줄여나가게) 수행된다.현재의 기계도 빨라졌지만, 데이터들이 커지고, 사용자들은 참을성이 줄어들기 때문에 요즘에도 이런 lazy evaluation의 장점을 이용한 행렬 연산 라이브러리를 사용한다.
         각 값 간의 의존성과,;데이터 구조의 유지를 위하여, 값들, 의존성이나 두가지의 결합 방법을 저장해야 한다.; 그리고 많은 수치 계산이 필요한 분야에서 복사, 더하기 할당, 같은 operator의 overload 것이 필요하다. 반면에 lazy evaluation의 적용은 프로그램 실행중에서 정말 많은 시간들과 많은 자원들을 아낄수 있다. 그래서 lazy evaluation의 존재를 정당화 시켜 줄것이다.
         이런 네가지의 예제는 lazy evaluation이 다양한 영역에서 활용될수 있음을 시사한다.:필요없는 객체의 복제 피하기, operator[]에 읽기와 쓰기를 구분하기, 데이터 베이스 상에서의 필요없는 자료 읽기를 피하기, 필요없는 수치 계산을 피하기. 그럼에도 불구하고 그것은 정말 훌륭한 생각만은 아니다. 단지 해치워야 할일을 미루어서 처리하는 것이기 때문에 만약에 당신의 부모가 계속 감시를 한다면 당신은 계속 그런 일들을 해주어야 한다. 마찬가지로 프로그램 상에서도 모든 연산들이 필요하다면 lazy evaluation은 어떠한 자원의 절약도 되지 않는다. 거기도 만약 당신의 모든 계산이 반드시 필요한 중요한 것들이라면, lazy evaluation은 아마 처음에 허상 데이터들과 의존 관계같은 것의 처리를 위하여, 실제보다 더 많은 연산을 하게되어 수행 속도를 느리게 할것이다. lazy evaluation은 오직 당신의 소프트웨어 상에서 피할수 있는 계산이 존재할 때만 유용히 쓰일수 있다.
         C++에 알맞는 lazy evaluation은 없다. 그러한 기술은 어떠한 프로그래밍 언어에도 적용 될수 있다. 그리고 몇몇 언어들-APL, 몇몇 특성화된 Lisp, 가상적으로 데이터 흐름을 나타내는 모든 언어들-는 언어의 한 중요한 부분이다. 그렇지만 주요 프로그래밍, C++같은 언어들은 eager evaluation를 기본으로 채용한다. C++에서는 사용자가 lazy evaluation의 적용을 위해 매우 적합하다. 왜냐하면 캡슐화는 클라이언트들을 꼭 알지 못해도 lazy evaluation의 적용을 가능하게 만들어 주기 때문이다.
         이제까지 언급했던 예제 코드들을 다시 한번 봐라 당신은 클래스 인터페이스만이 주어진다면 그것이 eager, lazy인지 알수는 없을 것이다. 그것의 의미는 eager evaluation도 역시 곧바로 적용 가능하고, 반대도 가능하다는 의미이다. 만약, 연구를 통해서 클래스의 구현에서 병목 현상을 보이는 부분이 보인다면, 당신은 lazy evaluation의 전략에 근거한 코드들을 적용 할수 있을 것이다. 당신의 클라이언트들은 이러한 변화가 성능의 향상으로 밖에 보이지 않는다. 고객(클라이언트들)들이 좋와하는 소프트웨어 향상의 방법, 당신이 자랑스로워하는 lazy가 될수 있다. (DeleteMe 모호)
  • MySQL 설치메뉴얼 . . . . 4 matches
         A more detailed version of the preceding description for installing a
         binary distribution follows:
          different versions of Unix, or they may have different names such
          2. Pick the directory under which you want to unpack the distribution
          and change location into it. In the following example, we unpack
          the distribution under `/usr/local'. (The instructions, therefore,
          assume that you have permission to create files and directories in
          installation as `root'.)
          3. Obtain a distribution file using the instructions in *Note
          getting-mysql::. For a given release, binary distributions for all
          platforms are built from the same MySQL source distribution.
          4. Unpack the distribution, which creates the installation directory.
          shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
          shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
          The `tar' command creates a directory named `mysql-VERSION-OS'.
          lets you refer more easily to the installation directory as
          With GNU `tar', no separate invocation of `gunzip' is necessary.
          command to uncompress and extract the distribution:
          shell> tar zxvf /PATH/TO/MYSQL-VERSION-OS.tar.gz
          5. Change location into the installation directory:
  • OpenGL스터디_실습 코드 . . . . 4 matches
         void TimerFunction(int value)
          //if rectangle collision to window x-axis wall, then reverse it's x-axis direction
          //if rectangle collision to window y-axis wall, then reverse it's y-axis direction
          glutTimerFunc(33, TimerFunction, 1);
          GLfloat aspectRatio;
          glMatrixMode(GL_PROJECTION);
          aspectRatio = (GLfloat)w/(GLfloat)h;
          windowHeight = 100/aspectRatio;
          windowWidth = 100*aspectRatio;
          glutTimerFunc(33, TimerFunction, 1);
          * 1. use up, down, left, right key in your key board. then its direction of viewpoint will be changed.
          // Restore transformations
         //change window size event function
          glMatrixMode(GL_PROJECTION);
         //menu event function
          //repaint by calling callback function
         //key event function
          //repaint by calling callback function
          // Set Viewport to window dimensions
          // Reset projection matrix stack
  • OurMajorLangIsCAndCPlusPlus/errno.h . . . . 4 matches
         ||5||int EIO||입출력 에러;언제나 물리적인 입출력 에러에 사용됨.||
         ||6||int ENXIO||그런 장치나 주소가 없음. 시스템이 당신이 파일에서 설정한 장치를 사용하고자 하나 그러한 장치 를 찾을 수 없었다. 이것은 장치파일이 잘못 인스톨되었거나, 물리적인 장치를 빠뜨렸거나 또는 컴 퓨터와 제대로 부합되지 않았음을 의미한다. ||
         || ||int EGREGIOUS||당신이 무엇을 했지?||
         || ||int EIEIO||집에가서 따뜻하고, 신선한 한잔의 우유를 마셔라||
  • SeminarHowToProgramIt/Pipe/VendingMachineParser.py . . . . 4 matches
         from cStringIO import StringIO
          def action(self):
          def action(self):
          def action(self):
          def action(self):
          def action(self):
          aStream=StringIO(aString)
          err=StringIO()
  • Temp/Parser . . . . 4 matches
         from cStringIO import StringIO
          aStream=StringIO(aString)
          err=StringIO()
  • TheJavaMan/스네이크바이트 . . . . 4 matches
         {{{~cpp import java.io.IOException;
          public void Move(Board bo) throws IOException
         import java.io.IOException;
          public static void main(String[] args) throws IOException{
          String direction= "";
          m3.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent e)
          if(e.getActionCommand()=="초보")
          else if(e.getActionCommand()=="중수")
          else if(e.getActionCommand()=="고수")
          System.out.println(e.getActionCommand());
          direction = KeyEvent.getKeyText(e.getKeyCode());
          public void Move(String direction){
          if(direction.equals("Right")) x+=20;
          else if(direction.equals("Left")) x-=20;
          else if(direction.equals("Down")) y+=20;
          else if(direction.equals("Up")) y-=20;
         import javax.swing.JOptionPane;
          public static void main(String[] args) throws InterruptedException{
          tSnake[0].Move(bo.direction);
  • VonNeumannAirport/1002 . . . . 4 matches
         #include <cppunit/extensions/HelperMacros.h>
         configuration 1,1 로 셋팅
          Configuration* conf = new Configuration (1,1);
         class Configuration {
          Configuration (int startCity, int endCity) {
          Configuration* conf = new Configuration (1,1);
          Configuration* conf = new Configuration (1,1);
         configuration 1,1 로 셋팅
         configuration {1,2},{1,2} 로 셋팅
          Configuration* conf = new Configuration (arrivalCitys, departureCitys);
          Configuration* conf = new Configuration (arrivalCitys, departureCitys);
         --------------------Configuration: AirportSec - Win32 Debug--------------------
         C:\User\reset\AirportSec\main.cpp(57) : error C2664: '__thiscall Configuration::Configuration(int,int)' : cannot convert parameter 1 from 'class std::vector<int,class std::allocator<int> >' to 'int'
          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
          Configuration (vector<int> startCity, vector<int> endCity) {
          Configuration* conf = new Configuration (arrivalCitys,depatureCitys);
         equality assertion failed
          Configuration* conf = new Configuration (arrivalCitys, departureCitys);
         -------------------Configuration: AirportSec - Win32 Debug--------------------
         C:\User\reset\AirportSec\main.cpp(84) : error C2660: 'getDistance' : function does not take 2 parameters
  • 데블스캠프2004/금요일 . . . . 4 matches
          * Run -> Run As -> Java Application
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          public static int inputInt() throws IOException {
          public static String inputString() throws IOException {
          } catch(IOException ex) {
          z1.getPosition()
          d1.getPosition()
          z1.getAttackTarget().getPosition()
  • 데블스캠프2006/목요일/winapi . . . . 4 matches
          wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
          "The Hello Program", // window caption
          CW_USEDEFAULT, // initial x position
          CW_USEDEFAULT, // initial y position
          NULL) ; // creation parameters
          wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
          "The Hello Program", // window caption
          CW_USEDEFAULT, // initial x position
          CW_USEDEFAULT, // initial y position
          NULL) ; // creation parameters
         #include <cstdio>
          wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
          wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
  • 미로찾기/영동 . . . . 4 matches
         #include<iostream>
         //Constant values about direction
         #define DIRECTION 4
         const int MOVE_X[DIRECTION]={0, 1, 0, -1};
         const int MOVE_Y[DIRECTION]={-1, 0, 1, 0};
         //Function about stack
          //Assign maze with file IO
          {//The next position is available
         {//Show the maze and current position
          cout<<"⊙";//Current Position
  • .bashrc . . . . 3 matches
         shopt -s no_empty_cmd_completion
         shopt -s extglob # programmable completion에 유용
         echo -e "${CYAN}This is BASH ${RED}${BASH_VERSION%.*}${CYAN} - DISPLAY on ${RED}$DISPLAY${NC}\n"
         function _exit() # 쉘에서 종료시 실행할 함수
         function fastprompt()
         function powerprompt()
         function xtitle ()
         function man ()
         function ll(){ ls -l "$@"| egrep "^d" ; ls -lXB "$@" 2>&-| egrep -v "^d|total "; }
         function xemacs() { { command xemacs -private $* 2>&- & } && disown ;}
         function te() # xemacs/gnuserv 래퍼
         function ff() { find . -name '*'$1'*' ; } # 파일 찾기
         function fe() { find . -name '*'$1'*' -exec $2 {} \; ; } # 파일을 찾아서 $2 의 인자로 실행
         function fstr() # 여러 파일중에서 문자열 찾기
         function cuttail() # 파일에서 끝의 n 줄을 잘라냄. 기본값은 10
         function lowercase() # 파일이름을 소문자로 변경
         function swap() # 파일이름 두개를 서로 바꿈
         function my_ps() { ps $@ -u $USER -o pid,%cpu,%mem,bsdtime,command ; }
         function pp() { my_ps f | awk '!/awk/ && $0~var' var=${1:-".*"} ; }
         function killps() # 프로세스 이름으로 kill
  • 1002/Journal . . . . 3 matches
          * normalization
          * 구체적인 action plan 에 대해서는 추후 궁리.
         솔직하지 못하게 될 수 있다. 자신의 일을 미화할 수도 있다. NoSmok:TunnelVision 에 빠진 사람은 '보고싶은 것만' 보이게 된다. NoSmok:YouSeeWhatYouWantToSee
          반론 : 그러면, 보안이 유지되는 다른 곳에 apache authorization 등을 걸고, 해당 글을 링크걸면 어떨런지?
         그림을 보고 나니, Inheritance 나 Delegation 이 필요없이 이루어진 부분이 있다는 점 (KeywordGenerator 클래스나 BookSearcher, HttpSpider 등) Information Hiding 이 제대로 지켜지지 않은것 같다는 점, (Book 과 관련된 데이터를 얻고, 검색하여 리스트를 만들어내는 것은 BookMapper 에서 통일되게 이루어져야 한다.) 레이어를 침범한것 (각각의 Service 클래스들이 해당 로직객체를 직접 이용하는것은 그리 보기 좋은 모양새가 아닌듯 하다. 클래스 관계가 복잡해지니까. 그리고 지금 Service 가 서블릿에 비종속적인 Command Pattern 은 아니다. 그리고 AdvancedSearchService 와 SimpleSearchService 가 BookMapper 에 촛점을 맞추지 않고 Searcher 클래스들을 이용한 것은 현명한 선택이 아니다.)
         실제 Database 를 이용하는 테스트에 대해 하나만 실행했을때는 잘 되더니, Suite 에 묶으니까 테스트에서 이용하는 Connection 이 NULL 이 되어버린다. Connection POOL 의 문제인듯. 필요없는 곳에 Connection 열어놓은 것을 하나만 이용했더니 해결.
         Service 와 Controller 가 거의 Composition 이고, 그로 인해 Controller 는 Mapper, Recommender 들이 줄줄히 의존성을 가졌다. 각각의 Mapper, Recommender 들이 DB 를 쓰므로 이를 Mock Object 를 쓸까 하다가, 어차피 현재 작성하는 부분이 AcceptanceTest 의 일부이므로 실제 객체를 그냥 이용해도 좋겠다고 판단, 그대로 이용하고 작성.
         Refactoring 을 하기전 Todo 리스트를 정리하는데만 1시간정도를 쓰고 실제 작업을 들어가지 못했다. 왜 오래걸렸을까 생각해보면 Refactoring 을 하기에 충분히 Coverage Test 코드가 없다 라는 점이다. 현재의 UnitTest 85개들은 제대로 돌아가지만, AcceptanceTest 의 경우 함부로 돌릴 수가 없다. 왜냐하면 현재 Release 되어있는 이전 버전에 영향을 끼치기 때문이다. 이 부분을 보면서 왜 JuNe 이 DB 에 대해 세 부분으로 관리가 필요하다고 이야기했는지 깨닫게 되었다. 즉, DB 와 관련하여 개인 UnitTest 를 위한 개발자 컴퓨터 내 로컬 DB, 그리고 Integration Test 를 위한 DB, 그리고 릴리즈 된 제품을 위한 DB 가 필요하다. ("버전업을 위해 기존에 작성한 데이터들을 날립니다" 라고 서비스 업체가 이야기 한다면 얼마나 황당한가.; 버전 패치를 위한, 통합 테스트를 위한 DB 는 따로 필요하다.)
         그리고, 이전에 ProjectPrometheus 작업할때엔 서블릿 테스팅 방법을 몰랐다. 그래서 지금 ProjectPrometheus 코드를 보면 서블릿 부분에 대해 테스트가 없다. WEB Tier 에 대한 테스팅을 전적으로 AT 에 의존한다. 이번에 기사를 쓸때 마틴 파울러의 글을 인용, "WIMP Application 에 대해서 WIMP 코드를 한줄도 복사하지 않고 Console Application 을 만들수 있어야 한다" 라고 이야기했지만, 이는 WEB 에서도 다를 바가 없다고 생각한다.
         2 (월): ProjectPrometheus 소스 리뷰 & 리팩토링. audio book MP3 뜨기
         '''Composition 의 문제점'''
         이전에 Delegation 하는 클래스를 해당 클래스 내에 멤버로 두었는데. 예를 들면 이런식으로
          throws ProtocolException, IOException {
          throws ProtocolException, IOException {
         해당 클래스 내에서 생성하는 디자인은 그 클래스를 교체해줄 수가 없으니 유연한 디자인이 아니다. 그렇다고 setter 를 두는 것도 좋은 디자인은 아닌것 같고. (프로그래밍 실행 중간에 Delegation 하는 객체를 교체할 일은 드물다. State Pattern 이나 Strategy Pattern 이 아닌이상.) 아마 처음에 Mock Object 를 이용하여 BookMapper 를 만들었었다면 Connection 을 직접 이용하거나, Library 객체를 내부적으로 직접 인스턴스를 생성하여 이용하는 디자인은 하지 않았을 것이란 생각이 든다.
         사실 {{{~cpp LoD}}} 관점에서 보면 자기가 만든 객체에는 메세지를 보내도 된다. 하지만 세밀한 테스트를 하려면 좀더 엄격한 룰을 적용해야할 필요를 느끼기도 한다. 니가 말하는 걸 Inversion of Control이라고 한다. 그런데 그렇게 Constructor에 parameter로 계속 전달해 주기를 하다보면 parameter list가 길어지기도 하고, 각 parameter간에 cohesion과 consistency가 떨어지기도 한다. 별 상관없어 보이는 리스트가 되는 것이지.
          throws ProtocolException, IOException {
         audio book
         적고 나니까.. 몇달전에 '해야지 해야지' 했었던 것들, 몇년전에 '해야지 해야지' 했던 것들이 Work Queue 에서 기다리고 있다. 멀리로는 Smalltalk 코드 제대로 읽을 줄 안뒤 SBPP 공부한다고 했었던 것이랑, Functional Language 하나 익혀둔다고 했었던 것이랑, 가까운 것으로 치면 기존에 만들어놓은 소스들 리팩토링 하면서 라이브러리 추출한다고 했었던 것들 등등.
         지금 이전 노래방 프로그램 만들때 이용했었던 Audio Compression Manager 부분 이용하라고 하면 아마 다시 어떻게 API를 이용하는지 회상하는데 2일쯤 걸릴것이다. DX Media SDK 부분을 다시 이용하라고 하면 아마 하루정도 Spike 가 다시 필요할 것이다. 즉, 이전에 만들어놓은 소스가 있다고 그 지식이 현재 나의 일부라고 하기엔 문제가 있다.
  • Button/영동 . . . . 3 matches
         public class JOptionPaneTest extends JFrame implements ActionListener {
          public JOptionPaneTest() {
          super("JOptionPaneTest");
          버튼1.addActionListener(this);
          버튼2.addActionListener(this);
          public void actionPerformed(ActionEvent ae) {
          JOptionPane.showMessageDialog(
          JOptionPane.YES_NO_OPTION,
          JOptionPane.showInputDialog(
          JOptionPane.QUESTION_MESSAGE,
          JOptionPane.showMessageDialog(
          JOptionPane.INFORMATION_MESSAGE,
          JFrame f = new JOptionPaneTest();
         ["JavaStudyInVacation/진행상황"]
  • CivaProject . . . . 3 matches
         namespace civa { namespace io {
         }} // namespace civa::io
         == civa.io.Serializable ==
         #ifndef CIVA_IO_SERIALIZABLE_INCLUDED
         #define CIVA_IO_SERIALIZABLE_INCLUDED
         namespace civa { namespace io {
         }} // namespace civa::io
         #endif // CIVA_IO_SERIALIZABLE_INCLUDED
          void wait(long timeout) throw() {/*차후 추가*/} //InterruptedException
          void wait(long timeout, int nanos) throw() { //InterruptedException
          throw ;//new IllegalArgumentException("timeout value is negative");
          throw ;//new IllegalArgumentException("nanosecond timeout value out of range");
          void wait() throw() { //InterruptedException
          throw ; //CloneNotSupportedException
         #include "../io/Serializable.h"
         : public Object, civa::io::Serializable, Comparable, CharSequence {
  • ConvertAppIntoApplet/영동 . . . . 3 matches
         public class AppletTest extends JApplet implements ActionListener {
          버튼1.addActionListener(this);
          버튼2.addActionListener(this);
          public void actionPerformed(ActionEvent ae) {
          JOptionPane.showMessageDialog(
          JOptionPane.YES_NO_OPTION,
          JOptionPane.showInputDialog(
          JOptionPane.QUESTION_MESSAGE,
          JOptionPane.showMessageDialog(
          JOptionPane.INFORMATION_MESSAGE,
         ["JavaStudyInVacation/진행상황"]
  • DirectDraw/Example . . . . 3 matches
         // SimpleDX.cpp : Defines the entry point for the application.
         // Foward declarations of functions included in this code module:
          // Perform application initialization:
         // FUNCTION: MyRegisterClass()
         // This function and its usage is only necessary if you want this code
         // to be compatible with Win32 systems prior to the 'RegisterClassEx'
         // function that was added to Windows 95. It is important to call this function
         // so that the application will get 'well formed' small icons associated
         // FUNCTION: InitInstance(HANDLE, int)
         // In this function, we save the instance handle in a global variable and
         // FUNCTION: WndProc(HWND, unsigned, WORD, LONG)
         // WM_COMMAND - process the application menu
          // Parse the menu selections:
  • IpscLoadBalancing . . . . 3 matches
         from cStringIO import StringIO
          stream=StringIO(aString)
         class BalancingImpossibleException(Exception):
          raise BalancingImpossibleException
          except BalancingImpossibleException:
  • JavaHTMLParsing/2011년프로젝트 . . . . 3 matches
          import java.net.URLConnection;
          import java.net.MalformedURLException;
          import java.io.InputStream;
          import java.io.InputStreamReader;
          import java.io.BufferedReader;
          import java.io.IOException;
          URLConnection connection;//URL접속을 가지는 객체
          connection = url.openConnection();
          is = connection.getInputStream();
          }catch(MalformedURLException mue){
          }catch(IOException ioe){
          System.err.println("IOException " + ioe);
          ioe.printStackTrace();
  • Linux/필수명령어/용법 . . . . 3 matches
         - Editing information for new user [blade]
         디렉토리 이름과 cd 명령 사이에 반드시 공백이 있어야 한다. 디렉토리 이름을 주지 않고 수행하면 사용자의 홈 디렉토리로 이동한다. 자신이 이동하고자 하는 디렉토리는 자신에게 실행 권한(execution permission)이 있어야 한다.
         파일의 모드를 바꾼다. 파일의 모드는 권한(permission) 을 제어한다.
         -perm 모드 : 파일 권한(permission)이 일치되는 것을 찾는다. 원하는 권한은 ls로 볼 수 있는 형태와 같이 지정한다.
         -5) SIGTRAP 6) SIGIOT 7) SIGBUS 8) SIGPPE
         -26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO
         -l 옵션을 사용하여 볼 수 있는 정보 중 권한(permission) 정보 앞에 있는 파일 형태에 대한 기호는 다음과 같다.
         -d : 사전(dictionary)과 같은 순서대로 정렬한다. 단어 정렬 순서에는 문자, 숫자, 공백 문자만이 사용된다.
         - audio system
         - audio system
         현재 시스템 디스크의 IO 버퍼에 있는 디스크 이미지를 하드 디스크로 기록한다.
         파일을 생성할 때 현재 사용되고 있는 권한(permission)값의 마스크가 무엇인지 알려주거나 그것을 새로 지정할 때 사용된다.
         -v : 오퍼레이팅 시스템의 버전(version) 번호를 알려준다.
  • MFCStudy_2001/MMTimer . . . . 3 matches
         MMRESULT timeSetEvent(UINT uDelay, UINT uResolution, LPTIMECALLBACK lpTimeProc, DWORD_PTR dwUser, UINT fuEvent);
          * uResolution : 대개 0을 넣습니다만... 정확도 같다고 합니다.
          * TIME_PERIODIC : uDelay시간이 지날 때마다 CALLBACK함수가 실행됩니다.
         m_TimerID=timeSetEvent(20,1,&TimerProc,(DWORD)this,TIME_PERIODIC);
         m_nTimerID = timeSetEvent(5, 0, (LPTIMECALLBACK)timeproc, (DWORD)this, TIME_PERIODIC);
          - Applications should not call any system-defined functions from inside a callback function, except for PostMessage, timeGetSystemTime, timeGetTime, timeSetEvent, timeKillEvent, midiOutShortMsg, midiOutLongMsg, and OutputDebugString.[[BR]]
          - 어플리케이션은 콜백 함수 내부로부터 다음 함수를 제외하고는 시스템 정의 함수를 부를 수가 없다. : PostMessage, timeGetSystemTime, timeGetTime, timeSetEvent, timeKillEvent, midiOutShortMsg, midiOutLongMsg, and OutputDebugString.[[BR]]
  • SpiralArray/영동 . . . . 3 matches
         #include<iostream>
         const int DIRECTION=4;//이동 가능한 총 방향수
         const int MOVE_X[DIRECTION]={1, 0, -1, 0};
         const int MOVE_Y[DIRECTION]={0, 1, 0, -1};
          int currentDirection;//현재 이동 방향
          currentDirection=RIGHT;
         void changeDirection(Mover * aMover);//방향을 바꾼다
         bool needToChangeDirection(Mover * aMover, int aBoard[][MAX_X]);//방향을 바꿀 필요가 있는지 검사
          if(needToChangeDirection(&mover, board))
          changeDirection(&mover);//방향을 바꿀 필요가 있으면 바꿔줌
         void changeDirection(Mover * aMover)
          if(aMover->currentDirection+1>UP)
          aMover->currentDirection=RIGHT;
          aMover->currentDirection+=1;
          aMover->currentX=aMover->currentX+MOVE_X[aMover->currentDirection];
          aMover->currentY=aMover->currentY+MOVE_Y[aMover->currentDirection];
         bool needToChangeDirection(Mover * aMover, int aBoard[][MAX_X])
          if(aMover->currentX+MOVE_X[aMover->currentDirection]>=MAX_X)
          if(aMover->currentY+MOVE_Y[aMover->currentDirection]>=MAX_Y)
          if(aMover->currentX+MOVE_X[aMover->currentDirection]<0)
  • WinSock . . . . 3 matches
         일반적인 버클리 소켓 스타일과 Windows 자체 스타일의 비동기소켓 (윈도우 메세지를 이용하는 방법, IOCP) API 를 제공해준다.
         #include <stdio.h>
          ioctlsocket (socketClient, FIONREAD, &dwDataReaded);
         #include <stdio.h>
          ioctlsocket (socketClient, FIONREAD, &dwDataReaded);
  • 그래픽스세미나/5주차 . . . . 3 matches
         *COMMENT "AsciiExport Version 2.00 - Mon Mar 31 12:46:45 2003"
          *PROP_MOTIONBLUR 0
          *PROP_MOTIONBLUR 0
          *PROP_MOTIONBLUR 0
  • 코바예제/시계 . . . . 3 matches
         == 구현 객체(implementation object) 생성 ==
         public String getTime() throws SystemException {
         } catch(SystemException e) {
         위의 서버 코드를 컴파일하고 실행하게 되면 문자열화된 IOR을 반환할 것이다. 이것은 단지 인수 전달용으로 사용된다.
         ["IOR"] : 00000012346121112444232....(상당히 긴 숫자임.)
         클라이언트 구현은 기본적으로 다음 세 가지 단계를 통해 이루어진다. 먼저 CORBA 환경, 즉 ORB를 초기화한다. ORB를 초기화한다는 것은 ORB 의사 객체(pseudo-object)에 대한 객체 레퍼런스를 얻게 된다는 것을 의미한다. ORB가 '의사 객체'라 불리는 이유는 그 메소드가 런타임 시스템과의 통신을 통해 라이브러리의 형태로 제공되며, 의사 객체 레퍼런스는 CORBA 인터페이스 오퍼레이션에 대한 파라미터로 전달될 수 없기 때문이다. 그 다음 단계는 객체 레퍼런스를 얻는 것이다. 객체 레퍼런스는 불투명한 데이터 구조이다. 그러나 객체 레퍼런스를 문자열로 바꿈으로써 지속성을 가지게 될 수 있다. 이것은 '객체 레퍼런스의 문자열화'라 불리며, 그 결과 얻어지는 문자열을 일컬어 '문자열화 객체 레퍼런스'라고 한다.(IOR) 이 문자열화 객체 레퍼런스는 원래의 "유효한" 객체 레퍼런스로 다시 바뀔 수 있다. 이 과정은 CORBA, 즉 ORB 인터페이스에서 정의된 두 가지 오퍼레이션 object_to_string()과 string_to_object()를 이용하여 이루어진다. 모든 CORBA 2.0 호환 ORB는 상호 운용 가능한 문자열화 객체 레퍼런스를 실제 돌아가는 객체 레퍼런스로 바꿀 수 있다. 적절한 타입으로 객체의 범위를 줄이면 그러한 결과를 얻을 수 있다. 이러한 오퍼레이션을 'narrow'라 한다. ORB를 초기화하고 객체 레퍼런스를 얻은 후에야 CORBA 프로그래밍은 원래 의도한 표준 객체 지향 프로그래밍처럼 동작하게 된다. 클라언트가 객체의 메소드를 호출하게 되면, 실제로 그 메소드는 원격 객체와 함께 동작하지만 클라이언트가 보기에는 지역 객체와 함께 동작하는 것처럼 보인다.
         import java.io.*;
         } catch(SystemException e) {
  • 프로그래밍/장보기 . . . . 3 matches
         import java.io.BufferedReader;
         import java.io.FileNotFoundException;
         import java.io.FileReader;
         import java.io.IOException;
          } catch (IOException e) {
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
  • 2005Fall수업 . . . . 2 matches
         자바 IO & NIO 네트워크 프로그래밍
  • 5인용C++스터디/타이머보충 . . . . 2 matches
         #include <afxext.h> // MFC extensions
         #include <afxdisp.h> // MFC Automation classes
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
          m_TimerID = timeSetEvent(1, 0, TimerProc, (DWORD)this, TIME_PERIODIC);
         // Generated message map functions
  • ACM_ICPC . . . . 2 matches
         = ACM International Collegiate Programming Contest =
          * [http://icpckorea.org/2015/REGIONAL/scoreboard.html 2015년 스탠딩] - 1Accepted1Chicken Rank 42 (CAU - Rank 18, including Abroad team)
          * [http://icpckorea.org/2016/REGIONAL/scoreboard.html 2016년 스탠딩] - Zaranara murymury Rank 31 (CAU - Rank 13, including Abroad team)
          * [http://icpckorea.org/2017/regional/scoreboard/ 2017년 스탠딩] - NoMonk, Rank 62 (CAU - Rank 35, including Abraod team)
          * [http://icpckorea.org/2018/regional/scoreboard/ 2018년 스탠딩] - ZzikMukMan Rank 50 (CAU - Rank 28, including Abroad team)
          * [http://icpckorea.org/2019/regional/scoreboard/ 2019년 스탠딩] - TheOathOfThePeachGarden Rank 81(CAU - Rank 52, including Abroad team)
          * [http://static.icpckorea.net/2020/scoreboard_terpin/ 2020년 스탠딩] - Decentralization Rank 54(CAU - Rank 35)
          * [http://static.icpckorea.net/2021/scoreboard_regional/ 2021년 스탠딩]
         == Asia Regional Contest - Seoul (몇년도?) ==
         == 2011 ACM/ICPC Asia Regional - Daejeon ==
         == 2012 ACM/ICPC Asia Regional - Daejeon ==
          * 2012 ACM_ICPC Daejeon Regional 대회 출전
         == 2013 ACM/ICPC Asia Regional - Daejeon ==
          * 2013 ACM_ICPC Daejeon Regional 대회 출전
          * team 'AttackOnKoala' 본선 HM(Honorable Mention, 순위권밖) : [강성현], [정진경], [정의정]
         == 2014 ACM/ICPC Asia-Daejeon Regional ==
          * 2014 ACM_ICPC Daejeon Regional 대회 출전
         == 2015 ACM/ICPC Asia-Daejeon Regional ==
          * 2015 ACM_ICPC Daejeon Regional 대회 출전
         == 2016 ACM/ICPC Asia-Daejeon Regional ==
  • AseParserByJhs . . . . 2 matches
         #define OBJECT_ANI "*TM_ANIMATION"
         // texture information for the model
         // static function
         // static function
          glGetFloatv (GL_PROJECTION_MATRIX, mat_mv);
         // static function
         // static function
          // animation - rotate sampling
          // animation - position sampling
  • Button/상욱 . . . . 2 matches
         public class Test extends JFrame implements ActionListener
          button1.addActionListener(this);
          button2.addActionListener(this);
          public void actionPerformed(ActionEvent ae) {
          JOptionPane.showMessageDialog(this, "Dialog 1", "1",
          JOptionPane.YES_NO_OPTION,null);
          JOptionPane.showMessageDialog(this, "Dialog 2", "2",
          JOptionPane.YES_NO_OPTION,null);
         ["JavaStudyInVacation/진행상황"]
  • CPP_Study_2005_1/BasicBusSimulation/남상협 . . . . 2 matches
         = CPP_Study_2005_1/BasicBusSimulation/남상협 =
         //Simulation.cpp
         #include <iostream>
         #include "BusSimulation.h"
          BusSimulation busSimulation(fin);
          busSimulation.readBusData();
          busSimulation.readTimeInput(cin,cout);
          busSimulation.printResult(cout);
         //BusSimulation.h
         #ifndef _BUS_SIMULATION_H_
         #define _BUS_SIMULATION_H_
         #include <iostream>
         class BusSimulation {
          BusSimulation(ifstream &fin) : m_fin(fin) {}
         //BusSimulation.cpp
         #include <iostream>
         #include "BusSimulation.h"
         void BusSimulation::readBusData()
         void BusSimulation::increaseTime(int time)
         ostream& BusSimulation::printResult(ostream &out)
  • CppUnit . . . . 2 matches
          a. Tools -> Options -> Directories -> Include files 에서 해당 cppunit
          * Tools -> Options -> Directories -> Library files 에서 역시 lib
          a. Project -> Settings -> C/C++ -> Preprocessor -> Additional include directories
          a. Project -> Settings -> Link -> Input -> Additional Library directories
          * Project Setting - Code Generation - Use Run-Time library 를 다음으로 맞춰준다.
         #include <cppunit/extensions/testfactoryregistry.h>
         #include <cppunit/extensions/HelperMacros.h>
         CPPUNIT_TEST_SUITE_REGISTRATION( ExampleTestCase ); // TestSuite 를 등록하기. TestRunner::addTest 가 필요없다.
         #include <iostream>
         #include <cppunit/extensions/HelperMacros.h>
         #include <cppunit/extensions/TestFactoryRegistry.h>
         #include <cppunit/extensions/HelperMacros.h>
         CPPUNIT_TEST_SUITE_REGISTRATION (SimpleTestCase);
         2) Questions related to Microsoft Visual VC++
         2.1) Why does my application crash when I use CppUnit?
          You probably forgot to enable RTTI in your project/configuration. RTTI are disabled by default.
          Enable RTTI in Projects/Settings.../C++/C++ Language. Make sure to do so for all configurations.
          In Release configuration, CppUnit use "Mulithreaded DLL".
          In Debug configurations, CppUnit use "Debug Multihreaded DLL".
          Check that Projects/Settings.../C++/Code Generation is indeed using the correct library.
  • GDBUsage . . . . 2 matches
         #include <stdio.h>
         Copyright 2005 Free Software Foundation, Inc.
         welcome to change it and/or distribute copies of it under certain conditions.
         Type "show copying" to see the conditions.
         1 #include <stdio.h>
         Edit specified file or function.
          FUNCTION, to edit at the beginning of that function,
          FILE:FUNCTION, to distinguish among like-named static functions.
         With no arguments, run an inferior shell.
         = documentation =
         [http://sources.redhat.com/gdb/current/onlinedocs/gdb.html gdb documentation]
  • GDG . . . . 2 matches
          * 2014년 1월 25일 Std.IO 단체 결성과 Hello, World! 행사 진행으로 인해 가능성이 더 높아짐.
          * 큰 행사는 GDG를 설립하지 않고도 Std.IO로 진행할 수 있음
  • Gnutella-MoreFree . . . . 2 matches
         1. Protocol Specification
          {{{~cpp Connection String : GNUTELLA CONNECTION/<version>/nn}}}
          {{{~cpp Response Connection : GNUTELLA OKnn}}}
          Connection:Keep-Alivern
          Content-type:application/binaryrn
          Connection:Keep-Alivern
         3. Gnucleus Technical Description
         POSITION pos = m_lstResults.GetFirstSelectedItemPosition();
         void CGnuDownloadShell::Start() 로 다운로드가 시작이 되고 실제적인 다운로드는 CGnuDownload에서 이루어지면 쉘에서는 Timer()에서 CheckCompletion()로 완료 되었는 지 확인을 하게 되고 AttachChunk2Chunk 와 AttachChunk2Partial로 부분부분 완료된 Chunk들을 결합해 주는 역활을 하게 된다.
         이어 받기를 할때에는 파일의 끝에서 -4096만큼 얻고 m_Verification 블럭의 4096크기 만큼 비교를 한 후에 이어받기를 시작한다.
          * [http://www.0bin.net/moniwiki/wiki.php/Specification/gnutella_protocol] : 정리 문서
  • Gof/FactoryMethod . . . . 2 matches
         == Motivation : 동기 ==
         여러 문서를 사용자에게 보여줄수 있는 어플리케이션에 대한 Framework에 대하여 생각해 보자. 이러한 Framework에서 두가지의 추상화에 대한 요점은, Application과 Document클래스 일것이다. 이 두 클래스다 추상적이고, 클라이언트는 그들의 Application에 알맞게 명세 사항을 구현해야 한다. 예를들어서 Drawing Application을 만들려면 우리는 DrawingApplication 과 DrawingDocument 클래스를 구현해야 한다. Application클래스는 Document 클래스를 관리한다. 그리고 사용자가 Open이나 New를 메뉴에서 선택하였을때 이들을 생성한다.
         Application(클래스가 아님)만들때 요구되는 특별한 Document에 대한 Sub 클래스 구현때문에, Application 클래스는 Doment의 Sub 클래스에 대한 내용을 예측할수가 없다. Application 클래스는 오직 새로운 ''종류'' Document가 만들어 질때가 아니라, 새로운 Document 클래스가 만들어 질때만 이를 다룰수 있는 것이다. 이런 생성은 딜레마이다.:Framework는 반드시 클래스에 관해서 명시해야 되지만, 실제의 쓰임을 표현할수 없고 오직 추상화된 내용 밖에 다를수 없다.
         Application의 Sub 클래스는 Application상에서 추상적인 CreateDocument 수행을 재정의 하고, Document sub클래스에게 접근할수 있게 한다. Aplication의 sub클래스는 한번 구현된다. 그런 다음 그것은 Application에 알맞은 Document에 대하여 그들에 클래스가 특별히 알 필요 없이 구현할수 있다. 우리는 CreateDocument를 호출한다. 왜냐하면 객체의 생성에 대하여 관여하기 위해서 이다.
          * Creator (Application)
          * ConcreteCreator (MyApplication)
         == Collaborations : 협력 ==
         Factory method는 당신의 코드에서 만들어야한 Application이 요구하는 클래스에 대한 기능과 Framework가 묶여야할 필요성을 제거한다. 그 코드는 오직 Product의 인터페이스 만을 정의한다.; 그래서 어떠한 ConcreteProduct의 클래스라도 정의할수 있게 하여 준다.
         A potential disadvantage of factory methods is that clients might have to subclass the Creator class just to create a particular ConcreteProduct object. Subclassing is fine when the client has to subclass the Creator class anyway, but otherwise the client now must deal with another point of evolution.
         Here are two additional consequences of the Factory Method pattern:
          Ducument에제에서 Document클래스는 factory method에 해당하는, 자료를 열람하기 위한 기본 파일 다이얼로그를 생성하는 CreateFileDialog이 호출을 정의할수 있다. 그리고 Document sub클래스는 이러한 factory method를 오버 라이딩해서 만들고자 하는 application에 특화된 파일 다이얼로그를 정의할수 있다. 이러한 경우에 factory method는 추상적이지 않다. 하지만 올바른 기본 구현을 제공한다.
         == Implementation : 구현, 적용 ==
          2. ''Parameterized factory methods''(그대로 쓴다.) Factory Method패턴에서 또 다른 변수라면 다양한 종류의 product를 사용할때 이다. factory method는 생성된 객체의 종류를 확인하는 인자를 가지고 있다. 모든 객체에 대하여 factory method는 아마 Product 인터페이스를 공유할 것이다. Document예제에서, Application은 아마도 다양한 종류의 Document를 지원해야 한다. 당신은 CreateDocument에게 document생성시 종류를 판별하는 인자 하나를 넘긴다.
          Smalltalk 버전의 Document 예제는 documentClass 메소드를 Application상에 정의할수 있다. documentClass 메소드는 자료를 표현하기 위한 적당한 Document 클래스를 반환한다. MyApplication에서 documentClass의 구현은 MyDocument 클래스를 반환하는 것이다. 그래서 Application상의 클래스는 이렇게 생겼고
         MyApplication 클래스는 MyDocument클래스를 반환하는 것으로 구현된다.
         더 유연한 접근 방식은 비슷하게 parameterized factory method Application의 클래스의 변수들과 같이 생성되어지는 클래스를 보관하는 것이다.그러한 방식은 product를 변경하는 Application을 반드시 감싸야 한다.
         You can avoid this by being careful to access products solely through accessor operations that create the product on demand. Instead of creating the concrete product in the constructor, the constructor merely initializes it to 0. The accessor returns the product. But first it checks to make sure the product exists, and if it doesn't, the accessor creates it. This technique is sometimes called lazy initialization. The following code shows a typical implementation:
          4. Using templates to avoid subclassing. As we've mentioned, another potential problem with factory methods is that they might force you to subclass just to create the appropriate Product objects. Another way to get around this in C++ is to provide a template subclass of Creator that's parameterized by the Product
          5. Naming conventions. It's good practice to use naming conventions that make it clear you're using factory methods. For example, the MacApp Macintosh application framework [App89] always declares the abstract operation that defines the factory method as Class* DoMakeClass(), where Class is the Product class.
         The function CreateMaze (page 84) builds and returns a maze. One problem with this function is that it hard-codes the classes of maze, rooms, doors, and walls. We'll introduce factory methods to let subclasses choose these components.
  • Gof/Singleton . . . . 2 matches
         === Motivation ===
          * Instance operation (클래스의 메소드)을 정의한다. Instance 는 클라이언트에게 해당 Singleton의 유일한 인스턴스를 접근할 수 있도록 해준다.
         === Collaborations ===
          * 클라이언트는 오직 Singleton의 Instance operation으로만 Singleton 인스턴스에 접근할 수 있다.
          4. 여러개의 인스턴스를 허용한다. 프로그래머의 마음에 따라 쉽게 Singleton class의 인스턴스를 하나이상을 둘 수도 있도록 할 수 있다. 게다가 어플리케이션이 사용하는 인스턴스들을 제어하기 위해 동일한 접근방법을 취할 수 있다. 단지 Singleton 인스턴스에 접근하는 것을 보장하는 operation만 수정하면 된다.
          5. class operation 보다 더 유연하다. 패키지에서 Singleton의 기능을 수행하기위한 또다른 방법은 class operation들을 사용하는 것이다. (C++에서의 static 함수나 Smalltalk에서의 class method 등등) 하지만, 이러한 언어적인 테크닉들은 여러개의 인스턴스를 허용하는 디자인으로 바꾸기 힘들어진다. 게다가 C++에서의 static method는 virtual이 될 수 없으므로, subclass들이 override 할 수 없다.
         === Implementation ===
         1. unique instance임을 보증하는 것. SingletonPattern의 경우도 일반 클래스와 마찬가지로 인스턴스를 생성하는 방법은 같다. 하지만 클래스는 늘 단일 인스턴스가 유지되도록 프로그래밍된다. 이를 구현하는 일반적인 방법은 인스턴스를 만드는 operation을 class operations으로 두는 것이다. (static member function이거나 class method) 이 operation은 unique instance를 가지고 있는 변수에 접근하며 이때 이 변수의 값 (인스턴스)를 리턴하기 전에 이 변수가 unique instance로 초기화 되어지는 것을 보장한다. 이러한 접근은 singleton이 처음 사용되어지 전에 만들어지고 초기화됨으로서 보장된다.
         다음의 예를 보라. C++ 프로그래머는 Singleton class의 Instance operation을 static member function으로 정의한다. Singleton 또한 static member 변수인 _instance를 정의한다. _instance는 Singleton의 유일한 인스턴스를 가리키는 포인터이다.
         클래스를 사용하는 Client는 singleton을 Instance operation을 통해 접근한다. _instance 는 0로 초기화되고, static member function 인 Instance는 단일 인스턴스 _Instance를 리턴한다. 만일 _instance가 0인 경우 unique instance로 초기화시키면서 리턴한다. Instance는 lazy-initalization을 이용한다. (Instance operation이 최초로 호출되어전까지는 리턴할 unique instance는 생성되지 않는다.)
         더 나아가, _instance 는 Singleton 객체의 포인터이므로, Instance member function은 이 포인터로 하여금 Singleton 의 subclass를 가리키도록 할 수 있다.
          * (b) 모든 singleton들이 static initialization time 대 인스턴스되기 위한 충분한 정보를 가지고 있지 않을수도 있다. singleton은 프로그램이 실행될 때 그러한 정보를 얻을 수 있다.
          * (c) C++ 은 global 객체의 생성자가 translation unit를 통하면서 호출될때의 순서를 정의하지 않는다[ES90]. 이러한 사실은 singleton 들 간에는 어떠한 의존성도 존재할 수 없음을 의미한다. 만일 그럴 수 있다면, 에러를 피할 수 없다.
         약간 첨언을 하면, global/static 객체의 접근은 singleton들이 사용되건 사용되지 않건 간에 모든 singleton이 만들어지도록 한다는 것이다. static member function 를 사용함으로서 이러한 모든 문제들을 피할 수 있다.
         Smalltalk에서 unique instance를 리턴하는 functiond은 Singleton 클래스의 class method로 구현된다. 단일 인스턴스가 만들어지는 것을 보장하기 위해서 new operation을 override한다. The resulting Singleton class might have the following two class methods, where SoleInstance is a class variable that is not used anywhere else:
         2. Singleton class를 subclassing 하기 관련. 주된 주제는 클라이언트가 singleton 의 subclass를 이용할 수 있도록 subclass들의 unique instance를 설정하는 부분에 있다. 필수적으로, singleton 인스턴스를 참조하는 변수는 반드시 subclass의 인스턴스로 초기화되어져야 한다. 가장 단순한 기술은 Singleton의 Instance operation에 사용하기 원하는 singleton을 정해놓는 것이다. Sample Code에는 환경변수들을 가지고 이 기술을 어떻게 구현하는지 보여준다.
         더욱더 유연한 접근 방법으로 '''registry of singletons''' 이 있다. 가능한 Singleton class들의 집합을 정의하는 Instance operation을 가지는 것 대신, Singleton class들을 잘 알려진 registry 에 그들의 singleton instance를 등록하는 것이다.
         registry 는 string name 과 singletons 을 mapping 한다. singleton의 instance가 필요한 경우, registry에 string name으로 해당 singleton 을 요청한다. registry는 대응하는 singleton을 찾아서 (만일 존재한다면) 리턴한다. 이러한 접근방법은 모든 가능한 Singleton class들이나 instance들을 Instance operation이 알 필요가 없도록 한다. 필요한 것은 registry에 등록될 모든 Singleton class들을 위한 일반적인 interface이다.
         Register operation은 주어진 string name으로 Singleton instance를 등록한다. registry를 단순화시키기 위해 우리는 NameSingletonPair 객체의 리스트에 instance를 저장할 것이다. 각 NameSingletonPair는 name과 instance를 mapping한다. Lookup operation은 주어진 이름을 가지고 singleton을 찾는다. 우리는 다음의 코드에서 environment variable이 원하는 singleton의 이름을 명시하고 있음을 생각할 수 있다.
         미로를 만드는 MazeFactory 클래스를 정의했다고 하자. MazeFactory 는 미로의 각각 다른 부분들을 만드는 interface를 정의한다. subclass들은 더 특별화된 product class들의 instance들을 리턴하기 위한 opeation들을 재정의할 수 있다. 예를 들면 BombedWall 객체는 일반적인 Wall객체를 대신한다.
  • HelloWorld . . . . 2 matches
         === C version ===
         #include <stdio.h>
         === C++ version ===
         #include <iostream>
         === Python version ===
         === Perl version ===
         === Ruby version ===
         === Ruby version (OOP) ===
         === Java version ===
         === PHP Web version ===
         === PHP Web - Template version ===
         === Windows API version ===
         === Scheme version ===
         === C# version ===
         === VB.NET version ===
         === J# version ===
         === Managed Extension C++ version ===
         === Ada version ===
         with Ada.Text_IO;
          Ada.Text_IO.Put_Line("Hello World!");
  • JSP/SearchAgency . . . . 2 matches
         import="java.util.*, java.io.BufferedReader, java.io.InputStreamReader, java.io.FileReader,
          java.io.IOException, java.util.Date,
          out.write("<form method=post action=SearchAgency.jsp>");
          public byte[] norms(String field) throws IOException {
         <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          <meta http-equiv="description" content="This is my page">
  • JollyJumpers/iruril . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          catch(IOException e) {
  • JollyJumpers/신재동 . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          } catch (IOException e) {
  • Kongulo . . . . 2 matches
         # Redistribution and use in source and binary forms, with or without
         # modification, are permitted provided that the following conditions are
         # * Redistributions of source code must retain the above copyright
         # notice, this list of conditions and the following disclaimer.
         # * Redistributions in binary form must reproduce the above
         # copyright notice, this list of conditions and the following disclaimer
         # in the documentation and/or other materials provided with the
         # distribution.
         # this software without specific prior written permission.
         # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
          - Knows basic and digest HTTP authentication
          - Can loop, recrawling over previously crawled pages every X minutes
         For usage instructions, run with -h flag.
         Requires Python 2.4 and the win32all extensions for Python 2.4 on Windows.
         class NoExceptionHandler(urllib2.BaseHandler):
          '''An exception handler for HTTP that never throws an exception for various
          as exceptions.'''
          # We check error codes explicitly so we don't want an exception
          def Populate(self, options):
          '''Given an options object as used by Kongulo, ask the user for the
  • LIB_1 . . . . 2 matches
         // Task 0 is Highest Task :: priority 63
          char *sen3 = "Task Name Priority StackSize Running \n";
         // Task 1 :: priority 60
          // semaphore section
          LIB_create_task("StatTask\n",LIB_IDLE_PRIORITY + 1,LIB_TASK_CPU_STAT,&OSStack[256]); // 상태를 알아보는 태스크를 만든다.
          LIB_create_task("IdleTask\n",LIB_IDLE_PRIORITY,idle_task,&TaskStack3[256]); // 유휴상태일때 돌아가는 idle태스크를 만든다.
  • LinkedList/학생관리프로그램 . . . . 2 matches
          (option-파일에 쓰고 읽는 부분 첨가)
         #include <stdio.h>
         #define DELETIONSEARCH 1
         int Menu(int aPopulation);//메뉴선택
         int Process(int aMenu, int aPopulation, Student* aListPointer[]);
         int AddStudent(int aPopulation, Student* aListPointer[]);//새로운 학생 추가
         int DelStudent(int aPopulation, Student* aListPointer[]);//찾아서 지우기
          int population = 0;//등록된 학생수
          population = Process(Menu(population), population, listPointer);
          }while(population != -1);//프로그램 종료 조건
         int Menu(int aPopulation){
          if(aPopulation){//등록된 학생이 있으면
         int Process(int aMenu, int aPopulation, Student* aListPointer[]){
          aPopulation = AddStudent(aPopulation, aListPointer);
          aPopulation = -1;
          else if(aPopulation){//등록된 학생이 있으면
          aPopulation = DelStudent(aPopulation, aListPointer);
          return aPopulation;
         int AddStudent(int aPopulation, Student* aListPointer[]){
          if(!aPopulation){//첫 등록인 경우
  • MatrixAndQuaternionsFaq . . . . 2 matches
         == The Matrix and Quaternions FAQ ==
         Version 1.2 2nd September 1997
         This FAQ is maintained by "hexapod@netcom.com". Any additional suggestions or related questions are welcome. Just send E-mail to the above address.
         Contributions
          Introduction I1: steve@mred.bgm.link.com
         Questions
         Q20. How do I calculate the inverse of a rotation matrix?
         Q25. How do I calculate the inverse of a matrix using linear equations?
         Q26. What is a rotation matrix?
         Q27. How do I generate a rotation matrix in the X-axis?
         Q28. How do I generate a rotation matrix in the Y-axis?
         Q29. How do I generate a rotation matrix in the Z-axis?
         Q32. How do I combine rotation matrices?
         Q34. What is the correct way to combine rotation matrices?
         Q35. How do I generate a rotation matrix from Euler angles?
         Q36. How do I generate Euler angles from a rotation matrix?
         Q37. How do I generate a rotation matrix for a selected axis and angle?
         Q38. How do I generate a rotation matrix to map one vector onto another?
         Q39. What is a translation matrix?
         Q42. How do I perform linear interpolation between two matrices?
  • MineSweeper/황재선 . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          } catch (IOException e) {
          public String[][] findPosition() {
          m.findPosition();
          arr = m.findPosition();
  • NeoCoin/Server . . . . 2 matches
         5. 커널 버전에 문자열을 덧붙이려면 APPEND_TO_VERSION 환경변수를 쓴다.
         export APPEND_TO_VERSION=-jfs-crypto
         V : old version
         v : new version
         cdrecord -v -dao -audio -pad -useinfo speed=<배속> dev=<...> <wav file>..
         text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput
  • PHP Programming/HtmlTag . . . . 2 matches
          *<FORM ACTION = "url" METHOD = "method"> ..... </FORM>
          *ACTION=".." - 사용자의 입력정보를 받아서 처리하는 서버에 담김 CGI프로그램의 위치
  • PrimaryArithmetic/sun . . . . 2 matches
          if( number < 0 ) throw new ArithmeticException( "0 또는 그 이상의 정수만 가능합니다: " + number );
          throw new ArithmeticException( "We expected " + expected + ", but was " + result + " (num1=" + num1 + ", num2=" + num2 + ")" );
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          public static void main( String [] args ) throws IOException {
          System.out.println( occurs + " carry operation" + postfix + "." );
  • ProjectGaia/계획설계 . . . . 2 matches
          2. 페이지가 IO의 기본 단위이다.
          1. 페이지ID, 페이지 위치, 첫{{{~cpp RecordID}}}를 찾거나 가는데 IO 수행이 너무 많이 필요하다.
  • ProjectPrometheus/CookBook . . . . 2 matches
         === java regular expression ===
         regular expression 패턴을 정의하기 위해서 ["Komodo"] 를 이용할 수도 있다. 또는 Seminar:TddRegularExpression 을 시도해보는 것도 좋다. ["1002"] 는 Python Interpreter 를 이용, 표현식을 찾아냈다.
          protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
         Java 에서는 HttpURLConnection 을 이용한다. 관련 코드는 http://www.javafaq.nu/tips/servlets/index.shtml 를 참조.
         Connection.setRequestProperty("Content-Type", "text/plain");
         === HttpUrlConnection 에서 GET,POST 넘길때 주의사항 ===
          throws ServletException, IOException {
          <init-param max-connections="20"/>
          <init-param enable-transaction="false"/>
          3. Data Source 를 근거로 Connection 얻고 Connection 을 이용.
          4. Connection 객체로 Statement 객체를 얻고
          conn = source.getConnection();
  • Refactoring/OrganizingData . . . . 2 matches
          * You have a data item that needs additional data or behavior. [[BR]] ''Turn the data item into an object.''
         == Change Unidirectional Association to Bidirectional p197 ==
         http://zeropage.org/~reset/zb/data/ChangeUnidirectionalAssociationToBidirectional.gif
         == Change Bidirectional Association to Unidirectional p200 ==
          * You have a two-way associational but one class no longer needs features from the other. [[BR]]''Drop the unneeded end of the association.''
         http://zeropage.org/~reset/zb/data/ChangeBidirectionAssociationToUnidirectional.gif
          return mass * GRAVITATION_CONSTNAT * height;
          static final double GRAVITATIONAL_CONSTANT = 9,81;
         == Encapsulate Collection p208 ==
          * A method return a collection. [[BR]] ''Make it return a read-only view and provide add/remove methods.''
         http://zeropage.org/~reset/zb/data/EncapsulateCollection.gif
          * You need to interface with a record structure in a traditional programming environment. [[BR]]''Make a dumb data object for the record.''
          * A class has a numeric type code that does not affect its behavior. [[BR]] ''Replace the number with a new class.''
          * You have an immutable type code that affects the bahavior of a class. [[BR]] ''Replace the type code with subclasses.''
          * You have a type code that affects the behavior of a class, but you cannot use subclassing. [[BR]] ''REplace the type code with a state object.''
  • RubyLanguage/InputOutput . . . . 2 matches
         = Standard IO =
          * IO클래스
  • ScheduledWalk/임인택 . . . . 2 matches
         import java.io.DataInputStream;
         import java.io.File;
         import java.io.FileInputStream;
         import java.io.IOException;
          goWithScheduledDirection();
          private void goWithScheduledDirection() {
          } catch (IOException e) {
  • Server&Client/상욱 . . . . 2 matches
         import java.io.*;
          public ServerSocketTest() throws IOException {
          } catch (IOException ioe) {
          ioe.printStackTrace();
          } catch (Exception e) {
         import java.io.*;
          public static void main(String[] args) throws Exception {
         ["JavaStudyInVacation/진행상황"]
  • Server&Client/영동 . . . . 2 matches
         import java.io.*;
          public static void main(String[] args) throws IOException
         import java.io.*;
          public static void main(String[] args) throws IOException
         ["JavaStudyInVacation/진행상황"]
  • TheJavaMan . . . . 2 matches
         [http://www.yes24.com/home/pd.asp?SID=G4JaiuIvSpuwzia6CMCpwdLN6ycFuMHPjStWSgEBltChZEnIOvC8UAlza&AK=67883&TABID=1 Core JAVA 코아 자바 2: 제1권 : 기초편]
         [http://www.yes24.com/home/pd.asp?SID=G4JaiuIvSpuwzia6CMCpwdLN6ycFuMHPjStWSgEBltChZEnIOvC8UAlza&AK=376933&TABID=1 Thinking in Java]
  • TheTrip/황재선 . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
          } catch (IOException e) {
  • WERTYU/Celfin . . . . 2 matches
         #include <iostream>
         char str[3][48]={"1234567890-=WERTYUIOP[]\\SDFGHJKL;'XCVBNM,./","`1234567890-QWERTYUIOP[]ASDFGHJKL;ZXCVBNM,."};
  • WOWAddOn/2011년프로젝트/초성퀴즈 . . . . 2 matches
         import java.io.UnsupportedEncodingException;
         <UI xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui">
         function HelloWoW_ShowMessage()
         WoW API function을 lua에 넣어준적은 없지만 자동으로 되나보다.
         또한 Widget과 LuaFunction의 사용정보를 볼수 있다.
         function HelloWoW_ShowMessage()
         function HelloWoW_ShowMessage()
         function charLen(str)
         function samplingFirst(str)
         function cstc(len, str)
         function makingTable(str)
         function HelloWoW_OnLoad(self)
          SlashCmdList["HelloWoW"] = function (msg)
         function HelloWoWF(msg, editbox) -- 4.
         {{{SlashCmdList["애드온명"]}}} = function(msg) 를 하고
         WOW에서 '/명칭' 명령어는 msg를 들고 function으로 들어가게 된다.
         function HelloWoW_ShowMessage()
          SlashCmdList["HelloWoW"] = function (msg)
         function HelloWoWF(msg, editbox)
         Frame 타입에 따라 생성되는게 달라진다 "EditBox","Button"등 UIObject를 String 타입으로 넣어 설정해주면 타입이 결정된다
  • XMLStudy_2002/Start . . . . 2 matches
         <?xml version="1.0" encoding="KSC5601"?>
          1. Processing Instructions(Optional) : XML문서를 어떻게 처리해야 할지를 기술해 주는 부분
          2. DTD(Optional) : DTD를 사용하는 경우에는 어떤 DTD를 사용할지를 선언한 내용또는 DTD가 포함
          3. Comments(Optional)
         === Processing Instructions(PI) ===
         <?xml version="1.0" standalone="yes" encoding="KSC5601"?>
          *version : XML문서가 준수하는 XML 스펙의 버전 번호
          *DTD 또는 문서 선언부에서 선언하는 방식(Entity Declaration)
         <?xml version="1.0" encoding="KSC5601"?>
         <CHAPTER_TITLE>Chapter1.Instruction</CHAPTER_TITLE>
         <?xml version="1.0" encoding="KSC5601"?>
         4. 그다음 공백뒤에 나오는 것이 이 오브젝트에대한 description
         <?xml version="1.0" encoding="KSC5601"?>
         === NOTATION ===
          *NOTATION은 Unparsed Entity를 처리하기 위한 방법이나 아직은 브라우저에서 지원이 안됨
  • ZeroPage . . . . 2 matches
          * 2016 ACM_ICPC Daejeon Regional 대회 동상 수상!
          * 1회 Hello World - Std.IO 행사 공동 주최 [https://sites.google.com/site/2014stdiohelloworld/home Std.IO]
          * 2014 ACM_ICPC Daejeon Regional 대회 출전
          * 2013 ACM_ICPC Daejeon Regional 대회 출전
          * 11회 중앙대학교 프로그래밍 경진대회(Programming Championship)
          * 장려상(4등) : 안드로이드 컨트롤러 Application - [이원희]
          * 2012 ACM_ICPC Daejeon Regional 대회 출전
          * 2011 ACM_ICPC Daejeon Regional 대회 출전
  • ZeroPageServer/set2005_88 . . . . 2 matches
          * SubVersion, apache dav subversion 모듈 설치
          * 커널 2.6으로 업데이트 후 네트워크 반응속도 향상. 신규 하드의 IO성능 향상. (2.4 커널의 장치 드라이버 문제로 느린 IO를 보였던 것으로 추정)
          * Version Control System
          SubVersion 1.2 : /home/SVN
  • 논문검색 . . . . 2 matches
          * [http://pubs.acs.org/ ACS PUBLICATION]
          * [http://ndsl.or.kr/ NATIONAL DIGITAL SCI. LIB.]
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/강성현 . . . . 2 matches
         import java.io.FileInputStream;
         import java.io.FileNotFoundException;
         import java.io.InputStreamReader;
         import java.io.UnsupportedEncodingException;
          public FileData(String filename) throws FileNotFoundException, UnsupportedEncodingException {
         import java.io.FileNotFoundException;
         import java.io.FileOutputStream;
         import java.io.PrintWriter;
         import java.io.UnsupportedEncodingException;
          } catch (FileNotFoundException e) {
          } catch (UnsupportedEncodingException e) {
          private static void writeCsv(String filename) throws FileNotFoundException {
         import java.io.FileInputStream;
         import java.io.FileNotFoundException;
         import java.io.IOException;
         import java.io.InputStreamReader;
         import java.io.UnsupportedEncodingException;
          } catch (UnsupportedEncodingException e) {
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
  • 만년달력/영동 . . . . 2 matches
          int dYear=Integer.parseInt(JOptionPane.showInputDialog(null, "알고 싶은 연도 입력:", "만년달력", JOptionPane.QUESTION_MESSAGE));
          int dMonth=Integer.parseInt(JOptionPane.showInputDialog(null, "알고 싶은 월 입력:", "만년달력", JOptionPane.QUESTION_MESSAGE));
  • 송지원 . . . . 2 matches
          * MIOS
          * 2007년 : 새터 기획단 및 OT 공연 / Curseware 회장 / MIOS 명예부장 / 회탐지기
  • 영호의바이러스공부페이지 . . . . 2 matches
         Introduction -
         004...........................Simple encryption techniques and Leprosy-B
          Editior, Technical Consultant - Hellraiser
          Co-Editor, Theory Consultant - Bionic Slasher
          Detection Method: ViruScan V64+, VirexPC, F-Prot 1.12+, NAV, IBM Scan 2.00+
          Removal Instructions: Scan/D, F-Prot 1.12+, or Delete infected
          infection occurred. Infected files will also always end with this
          smallest MS-DOS virus known as of its isolation date.
         what the virus does is use the DOS 4Eh function to find the firsy COM file
         found it compares the virus id string (the virus jump instruction) to the
         functions to infect.
         INT 21h Function 42h
         If there is an error in executing this function the carry flag will be set,
         The second (and most) important function used by any virus is
         INT 21h Function 40h
         An example of Function 40h is ----
          mov ah,40h ;set function
         This function is used by 98% of all MS-DOS viruses to copy itself to a
         lower versions) PCTOOLS Hex Editor will work too but it takes more work.
         Write down the locations in the file where these strings are. Ex 0100h etc..
  • 토이/메일주소셀렉터/김정현 . . . . 2 matches
          FileIo io= new FileIo();
          io.insertDeleteList(deleteList);
          io.insertSpace(true);
          io.write("result.txt", io.getRemadeFromFile(input));
         import java.io.*;
         public class FileIo {
          public FileIo() {
          } catch (IOException e) {
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
  • 프로그래밍/DigitGenerator . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.FileNotFoundException;
         import java.io.FileReader;
         import java.io.IOException;
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
  • 프로그래밍/Pinary . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.FileNotFoundException;
         import java.io.FileReader;
         import java.io.IOException;
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
  • 프로그래밍/Score . . . . 2 matches
         import java.io.BufferedReader;
         import java.io.FileNotFoundException;
         import java.io.FileReader;
         import java.io.IOException;
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
  • 2dInDirect3d/Chapter1 . . . . 1 match
          == Initialization Step ==
          UINT SDKVersion;
          1. [IN] 유일한 인자인 SDKVersion에는 SDK의 버전을 넣어준다. 8.0 이렇게 집어넣는 것이 아니라 지정되어있는 매크로가 있다. 사용하는 방법은 단 한가지뿐이다.
         pd3d = Direct3DCreate8( D3D_SDK_VERSION ); // 이렇게 생성한다.
          Description : 어댑터의 설명
          DriverVersion : 드라이버의 버전
          VendorID, DeviceID, SubSysID, Revision : 칩셋마다 틀려요
          == Enumeration Display Mode ==
  • 5인용C++스터디/버튼과체크박스 . . . . 1 match
         // Create a radio button.
         myButton2.Create(_T("라디오 버튼"), WS_CHILD|WS_VISIBLE|BS_RADIOBUTTON,
  • 5인용C++스터디/윈도우에그림그리기 . . . . 1 match
          wc.hIcon=LoadIcon(NULL,IDI_APPLICATION);
  • 5인용C++스터디/키보드및마우스의입출력 . . . . 1 match
          WndClass.hIcon=LoadIcon(NULL,IDI_APPLICATION);
  • API/WindowsAPI . . . . 1 match
          WndClass.hIcon=LoadIcon(NULL,IDI_APPLICATION);
  • Algorithm/DynamicProgramming . . . . 1 match
         Introduction To Algorithm 에도 이에 대한 설명이 있습니다.
         [http://mat.gsia.cmu.edu/classes/dynamic/node5.html#SECTION00050000000000000000]
  • AnEasyProblem/권순의 . . . . 1 match
         #include <IOStream>
  • BasicJAVA2005/실습1/조현태 . . . . 1 match
         import java.io.BufferedReader;
         import java.io.IOException;
         import java.io.InputStreamReader;
  • BasicJava2005/3주차 . . . . 1 match
         } catch(IOException e) {
  • CeeThreadProgramming . . . . 1 match
         = Critical Section =
         #include <stdio.h>
         CRITICAL_SECTION cs;
         unsigned __stdcall ThreadedFunction( void* pArguments )
          EnterCriticalSection(&cs);
          LeaveCriticalSection(&cs);
          hThread = (HANDLE)_beginthreadex( NULL, 0, &ThreadedFunction, NULL, 0, &threadID );
          hThread2 = (HANDLE)_beginthreadex( NULL, 0, &ThreadedFunction, NULL, 0, &threadID2 );
          InitializeCriticalSection(&cs);
          DeleteCriticalSection(&cs);
         #include <stdio.h>
         void *print_message_function( void *ptr );
         /* Create independent threads each of which will execute function */
         iret1 = pthread_create( &thread1, NULL, print_message_function, (voi d*) message1);
         iret2 = pthread_create( &thread2, NULL, print_message_function, (voi d*) message2);
         void *print_message_function( void *ptr )
  • CodeRace/20060105/민경선호재선 . . . . 1 match
         import java.io.*;
          } catch (FileNotFoundException e) {
          } catch (IOException e) {
          Collections.sort(list, new DataComparator());
  • ComputerNetworkClass/Exam2006_2 . . . . 1 match
         인터넷 보안 관련된 문제에서 문제로 출제 될 만하다고 생각했던 부분인 Authencation Protocol (3-way-handshake, keberos, using RSA)에 대한 내용역시 미출제되었음. 덕분에 시험 난이도는 낮아졌지만, PEM 의 구조에 대한 설명이 들어갔기 때문에 따로 관심을 가지고 공부한 사람이 아니면 약간 어려웠을지도 모르겠음.
         secrecy(interception -> DES, RSA)
         authenticate(fabrication -> 3-way handshake, keberos, using RSA)
         integrigy(modification -> keyed MD5)
         availability(interruption, DoS, Jamming -> Firewall, Proxy-base Network System)에 대한 설명과 수업때 배운 보안기술들을 분류하고 설명하는 문제임.
          SSRC, CSRC, Contribution Count, timestamp, sequence number, Version etc 에대한 내용을 적고 해설
          Integrated Service(flow-based), Differentiated Service(service-based) 에대한 전반적인 이해를 하는 문제. 해당 기법에 WFQ를 적용하는 방법에 대한 이해를 묻는 문제로 약간 응용해서 적으란 것으로 보임. 책에 DS에 대한 설명은 WRED, RIO에 대한 설명만 되어있었고, 이 방식은 Queuing 에 의한 WFQ의 사후 처리가 아닌 사전 체리에 관련된 내용이었음. 솔직히 WFQ 왜 냈는지 모르겠음. -_-;;
  • ComputerNetworkClass/Report2006/BuildingWebServer . . . . 1 match
          * [http://msdn.microsoft.com/library/en-us/winsock/winsock/winsock_functions.asp Winsock Functions]
         * 제작 작성해본 결과 HTTP Application 의 기본적인 사항은 에코서버의 연장선에 있습니다. RFC1945 를 확인하면 아주 단순한 형태의 구현만으로도 충분히 간단한 웹 서버의 동작을 구현하는 것이 가능합니다. (물론 이는 웹 브라우저가 RFC1945 의 HTTP-message BNF 의 가장 단순한 형태를 지원한다는 가정하에서 입니다.) CGI, 로드밸런싱을 이용할 수 있을 정도의 구현이 아닌이상 이는 단순한 에코서버의 연장선과 크게 다르지 않습니다. (어쩌면 모든 네트웍 프로그램이 에코서버일지도 -_-;)
         최초 작성하시는 분들은 우선 자신이 구현하려고 하는 웹 서버의 동작의 기본적인 구조(멀티쓰레드, 멀티프로세스, IO멀티플렉싱 등)를 결정하시고, 해당 방식으로 구현된 에코서버를 작성 혹은 소스를 구하신 후 웹브라우저의 HTTP request 를 읽어 분석한뒤, 알맞는 파일을 브라우저의 소켓으로 보내는 형태로 작성하시길 권합니다.
  • DirectDraw . . . . 1 match
         Visual C++ -> Tools -> Options -> Directories에서 [[BR]]
         hb = (HBITMAP) LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP), IMAGE_BITMAP, cxDesire, cyDesire, LR_CREATEDIBSECTION);
  • DirectDraw/APIBasisSource . . . . 1 match
          wc.hIcon = LoadIcon( NULL, IDI_APPLICATION );
  • Django스터디2006 . . . . 1 match
         || 9/21 || Django 환경 구축 + POST, GET , SESSION, COOKIE 에 대한 설명, Django로 만들고 싶은것에 대한 논의(과제 확인, 웹서버 부분 못들은 사람 물어봐서 했는지 체크) || 상협, 지훈, 우용, 준석, 지원 ||
          * [http://biohackers.net/wiki/DjangoOnFramework2.1 블러그만드는참고자료]
  • FileInputOutput . . . . 1 match
         catch (IOException e)
  • IDL . . . . 1 match
         [CORBA] 의 경우 분산된 네트워크상에 따로 위치한 객체 간의 투명한 접근을 제공하는 서로 간의 약속이 필요하다. 이런 약속을 정의할 때 특정 언어([C], [C++], [Java] 등)에 의존하지 않는 인터페이스 정의 언어가 필요하게 되었는데, 그것이 바로 IDL(Interface Definition Language)이다. 서버와 클라이언트가 서로 통신을 하기 위해서 서버는 클라이언트에게 제공하는 서비스 인터페이스를 IDL 로 정의하게 되며, 클라이언트는 이런 인터페이스 정보를 활용하여 서비스를 활용하게 되는 것이다. CORBA 프로그램을 개발하기 위해서는 가장 먼저 IDL 을 정의해야 하는데, IDL 은 구현에 대한 정보는 포함하고 있지 않아 정의된 IDL 을 원하는 언어로
         물론, 인터페이스를 정의하는 방법이 IDL 만 있는 것은 아니다. [Visibroker] 의 경우 [Caffeine] 이라는 것을 이용하면 IDL 을 사용하지 않아도 되며, Java 의 RMI 나 RMI-IIOP 를 이용해면 IDL 을 몰라도 인터페이스를 정의할 수 있다. 하지만, IDL 은 OMG에서 규정하고 있는 인터페이스 정의 언어의 표준이고 개발자가 익히기에 어렵지 않은 만큼 CORBA 프로그램을 할 때는 꼭 IDL 을 사용하도록 하자.
  • JavaStudy2002/입출력관련문제 . . . . 1 match
         import java.io.*;
          } catch (IOException e) {
  • JosephYoder방한번개모임 . . . . 1 match
          * [https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=1pibLA94VQ8Z1cckW8IOsedbQ9joDuCwwafH93jHDgv3l-ASNn_QW2rGhxrWT&hl=en_US Refactoring Testing and Patterns]
         강조했던것은 Agile과 Refactoring의 상관관계였는데 둘다 얽히면 굉장한 시너지를 내기 때문에 목적은 달라도 병행해서 쓰면 좋다고했다. Agile을 지금 쓰는 사람 있냐고 물어봤는데 손들기는 뭐했다. Face-to-Face, pair 프로그래밍. Communication 만세다! Agile기법에 대해 Refactoring에 대해 자신의 이념, 이상이 들어간 코드를 만드는 프로그래머가 반대를 한다면 Pair프로그래밍을 통해 '너만의'코드가 아닌 '우리'의 코드라는것을 인식시켜주는게 좋다고 했다. 근데 그런사람이 있을까? 여튼 경험에 우러나온 대답같았다.
          * External behavior
  • ListCtrl . . . . 1 match
          // TODO: Add your control notification handler code here
          POSITION pos = m_ctrlBlockList.GetFirstSelectedItemPosition();
  • MedusaCppStudy/석우 . . . . 1 match
         #include <iostream>
         #include <iostream>
         #include <iostream>
         #include <iostream>
         #include <iostream>
          int direction = rand() % 8;
          roach.row += r[direction];
          roach.col += c[direction];
          roach.row -= r[direction];
          roach.col -= c[direction];
         #include <IOSTREAM>
         void calculation(vector<Words>& sentence, Words& word);
         void deleteperiod(Words& word);
          calculation(sentence, word);
         void calculation(vector<Words>& sentence, Words& word)
          deleteperiod(word);
         void deleteperiod(Words& word)
         #include <iostream>
  • Memo . . . . 1 match
         RFC 793 Transmission Control Protocol
         #include <stdio.h>
          unsigned char VerIHL; //Version and IP Header Length
          //unsigned long Options_and_Padding;
          if (WSAIoctl(Sock, SIO_RCVALL, &I, sizeof(I), NULL, NULL, &BytesReturned, NULL, NULL) == SOCKET_ERROR)
          printf("WSAIoctl() failed.n");
         #include <stdio.h>
          char question[200];
          queslen = recv( server_sock, question, sizeof(question), 0);
          question[queslen] = '';
          printf( "I have to answer the next question. %sn", question);
  • MobileJavaStudy/SnakeBite/FinalSource . . . . 1 match
         import java.io.*;
         import javax.microedition.midlet.*;
         import javax.microedition.lcdui.*;
          } catch(IOException e) {
          private int direction;
          direction = Snake.RIGHT;
          public int getDirection() {
          return direction;
          public void setDirection(int direction) {
          this.direction = direction;
          if(direction == Snake.LEFT)
          else if(direction == Snake.RIGHT)
          else if(direction == Snake.UP)
          else if(direction == Snake.DOWN)
          int gameAction = getGameAction(keyCode);
          int direction = snake.getDirection();
          if(gameAction == Canvas.LEFT && direction != Snake.RIGHT)
          snake.setDirection(Snake.LEFT);
          else if(gameAction == Canvas.RIGHT && direction != Snake.LEFT)
          snake.setDirection(Snake.RIGHT);
  • MobileJavaStudy/Tip . . . . 1 match
         import javax.microedition.midlet.MIDlet;
          public void destroyApp(boolean unconditional) {
          catch (IOException e) {
         == destoryApp 메소드의 unconditional에 대하여... ==
         {{{~cpp destoryApp}}} 메소드에는 {{{~cpp unconditional}}} 이라는 {{{~cpp boolean}}} 값이 있다. {{{~cpp MIDlet}}}이 더 이상 필요하지 않거나 종료되어야 할 때 {{{~cpp DestoryApp}}} 메소드가 호출되고 {{{~cpp MIDlet}}}이 {{{~cpp Destroyed}}} 상태로 들어가게 되는데, 만약 {{{~cpp MIDlet}}}이 중요한 과정을 수행중이라면 {{{~cpp MIDletStateChangeException}}}을 발생시켜 그 과정이 끝날때까지 {{{~cpp Destroyed}}} 상태로 가는 것을 막을 수 있다. 하지만 이런 요청도 상황에 따라 받아들여지지 않을 수 있는데, {{{~cpp unconditional}}} 이라는 값이 그 상황을 알려준다. {{{~cpp unconditional}}}이 {{{~cpp true}}} 인 경우에는
         {{{~cpp MIDletStateChangeException}}}을 발생해도 무시되는 상황이고, {{{~cpp false}}} 인 경우에는 {{{~cpp MIDletStateChangeException}}}을 발생하면 {{{~cpp Destroyed}}} 상태로 가는 것을 잠시 막을 수 있다.
         그러므로 {{{~cpp destroyApp}}} 메소드를 만들 때 {{{~cpp MIDletStateChangeException}}}을 사용해야 하게 된다면 {{{~cpp unconditional}}} 값에 따라 이 값이 {{{~cpp false}}}인 경우에만 {{{~cpp MIDletStatChangeException}}}을 사용하고 {{{~cpp true}}}인 경우는 무조건 {{{~cpp Destroyed}}} 상태로 가야하는 상황이므로 그 상황에 맞게 처리해 주면 된다.
  • MoreEffectiveC++/Miscellany . . . . 1 match
         "변화한다.", 험난한 소프트웨어의 발전에 잘 견디는 클래스를 작성하라. (원문:Given that things will change, writeclasses that can withstand the rough-and-tumble world of software evolution.) "demand-paged"의 가상 함수를 피하라. 다른 이가 만들어 놓지 않으면, 너도 만들 방법이 없는 그런 경우를 피하라.(모호, 원문:Avoid "demand-paged" virtual functions, whereby you make no functions virtual unless somebody comes along and demands that you do it) 대신에 함수의 ''meaning''을 결정하고, 유도된 클래스에서 새롭게 정의할 것인지 판단하라. 그렇게 되면, 가상(virtual)으로 선언해라, 어떤 이라도 재정의 못할지라도 말이다. 그렇지 않다면, 비가상(nonvirtual)으로 선언해라, 그리고 차후에 그것을 바꾸어라 왜냐하면 그것은 다른사람을 편하게 하기 때문이다.;전체 클래스의 목적에서 변화를 유지하는지 확신을 해라.
         이러한 변환 과정에서 처음의 값은 추상 추상 클래스 A 를 확인하게 만든다. C1과 C2는 아마 보통 몇가지를 가지고 있다.:그것은 그들이 public 상속이 되는 이유이다. 이 변환으로 당신은 반드시 그 가지고있는 어떻것을 확인해야 한다. 게다가 C++에서 클래스로 모호한 부분에 대하여 명확하게 해주어야 한다. 그것은 보통 추상화(abstraction)가 추구해야 하는 것이고 잘 정의된 멤버 함수와 확실한 문법으로 구현된다.
         여기에서 우리가 생각해볼 관점은 총 네가지가 필요하다.:name mangling, initialization of statics, dynamic memory allocation, and data structure compatibility.
         당신도 알다 시피, name mangling(이름 조정:이후 name mangling로 씀) 당신의 C++ 컴파일러가 당신의 프로그램상에서 각 함수에 유일한 이름을 부여하는 작업이다. C에서 이러한 작업은 필요가 없었다. 왜냐하면, 당신은 함수 이름을 오버로드(overload)할수가 없었기 때문이다. 그렇지만 C++ 프로그래머들은 최소한 몇개 함수에 같은 이름을 쓴다.(예를들어서, iostream 라이브러리를 생각해보자. 여기에는 몇가지 버전이나 operator<< 와 operator>>가 있다. ) 오버로딩(overloading)은 대부분의 링커들에게 불편한 존재이다. 왜냐하면 링커들은 일반적으로 같은 이름으로 된 다양한 함수들에 대하여 어두운 시각을 가진다. name magling은 링커들의 진실성의 승인이다.;특별히 링커들이 보통 모든 함수 이름에 대하여 유일하다는 사실에 대하여
         extern "C" void simulate (int iterations);
          void simulate(int iterations);
          void simulate(int iterations);
          === Initialization of statics : static 인자의 초기화 ===
         일단 name mangle에 관한 내용을 익혔다면, C++코드에서 main 이전과 이후에 많은 코드들이 수행된다는 사실에 관해서 생각해볼 필요가 있다. 특별히, 전역 이름 공간, 파일 영역상의 정적(static) 클래스 객체는 보통 main 보다 먼저 실행된다. 이 과정이 ''static initialization'' 이라고 알려져 있다. 이는 프로그램의 실행시점 간에 C와 C++ 프로그램에 대한 방법으로 완전히 다른 방향을 취한다. 비슷하게, static initialization으로 만들어진 객체는 반드시 그들의 파괴자를 static destruct 동안에 불러주어야 한다.;그러한 과정은 일반적으로 main 이후에 진행된다.
         main이 수행되기 전에 객체가 생성되야 하는 필요성이 있지만, main이 가장 처음 불려야 하는것으로 가정되는 딜레마의 해결을 위해서, 많은 컴파일러 들이 특별한 컴파일러가 작성하는 함수를 main의 시작단에 넣는다. 그리고 이 특별한 한수는 static initialization 을 한다. 비슷하게 컴파얼러는 종종 main의 끝에 특별한 함수를 넣어서 static 객체의 삭제를 수행한다. main 에 대해 작성되는 코드는 종종 main 이 엃게 작성되는 것처럼 보인다.
          performStaticInitialization(); // main이 넣는다고 가정하는 함수
          performStaticDestruction(); // main이 넣는다고 가정하는 함수
         이렇게 의미 그대로는 아니다. performStaticInitialization 과 performStaticDestruction 은 보통 훨씬 난해한 이름이고, 그들은 inline 으로 우리의 객체 파일에서 어떠한 함수로 알아볼수 있게 작성되어 있다. 중요한 점은 이것이다.:만약 C++ 컴파일러가 정적(static) 객체의 초기화(initialization)와 파괴(destruction)를 이러한 방법으로 적용하면, C++에서 main이 작성되지 않았다면, 초기화와 파괴가 수행되지 않을 것이다. 정적 초기화, 파괴에 대한 이러한 접근이 일반적이기 때문에, 만약 C++에서 소프트웨어 시스템의 어떤 부분을 작성할때 main을 작성하도록 노력해야 할것이다.
         만약 C++에서 main을 작성할수 없다면 문제가 된다. 왜냐하면, 정적(static) 객체 호출을 위한 생성자, 파괴자에 대하여 이식성에 확신을 줄수 없기 때문이다. 이것은 모든것을 잃는다는 의미는 아니다. 단지 좀더 할일이 많아 진다는 것을 의미한다. 컴파일러 밴더들은 이러한 문제를 잘 알고 있다. 그래서 거의 대부분의 벤더들은 static initialization, destruction을 위해서 몇가지의 언어와 관계없는 기술을 제공한다. 이에 관한 정보는 당신의 컴파일러의 문서를 참조하거나, 벤더들에게 문의해라
          === Dynamic memory allocation : 동적 메모리 할당 ===
         동적 메모리 할당(dynamic memory allocation:이하 동적 메모리 할당)에 관한 문제가 우리에게 주어진다. 일반적인 규칙은 간단하다.:C++ 에서 new, delete 부분 (Item 8참고) 그리고 C 프로그래밍 에서는 malloc(그리고 그것의 변수들) 과 free이다. malloc으로 얻은건 free로, new로 얻은건 delete로 해재하는한 모든 것이 올바르다. 그렇지만, new로 할당된 메모리 영역을 가리키는 포인터를 free로 해제 시키는 호출은 예측 못하는 수행을 가지고 온다. 마찬가지로 malloc로 얻은 것을 delete로 해제하는 것도 예측할수 없다. 그렇다면, 이를 기억하기 위한 방법은 new와 delete, malloc와 free를 엄격하게 구분해야 하는 것이다.
          * '''예외 핸들링의 재정의''' : 예외 스팩은 현재 컴파일 중에 더욱더 엄격하게 검사 된다. 그리고 예측할수 없는 함수는 아마도 bad_exception 예외 객체를 던진다.
         ''The Design and Evolution of C++''에 거의 모든 변화가 언급되어 있다. 현재 C++ 참고서(1994년 이후에 쓰여진것들)도 이 내용을 포함하고 있을 것이다. (만약 당신이 찾지 못하면 그거 버려라) 덧붙여 ''More Effective C++''(이책이다.)는 이러한 새로운 부분에 관한 대부분의 사용 방법이 언급되어 있다. 만약 당신이 이것에 리스트를 알고 싶다면, 이 책의 인덱스를 살펴보아라.
         표준 라이브러리에 일어나는 것들에 대한것에서 C++의 정확한 규정의 변화가 있다. 개다가 표준 라이브러리의 개선은 언어의 표준 만큼이나 알려지지 않는다. 예를 들어서 ''The Design and Evolution of C++'' 거의 표준 라이브러리에 관한 언급이 거의 없다. 그 책의 라이브러리에 과한 논의라면 때때로 있는 데이터의 출력이다. 왜냐하면, 라이브러리는 1994년에 실질적으로 변화되었기 때문이다.
          * '''지역화(localization)에 대한 지원'''. 다른 문화에서는 다른 글자를 써야하고, 화면에 표현되는 날짜, 시간, 문자열 정렬, 돈을 세는 단위 etc 그 문화의 편의에 따라야 한다. 표준 라이브러리에 의한 지역화(localization)은 각 문화적 차이에 적합하도록 프로그램의 개발을 한다.
  • NSIS . . . . 1 match
          * http://forums.winamp.com/forumdisplay.php?forumid=65 - nsis discussion
          * /NOCONFIG - nsisconfi.nsi 을 포함하지 않는다. 이 파라메터가 없는 경우, 인스톨러는 기본적으로 nsisconf.nsi 로부터 기본설정이 세팅된다. (NSIS Configuration File 참조)
         NSIS 는 인스톨하고 난 뒤에는 오른쪽버튼 shell-extension 에 해당 확장자 컴파일이 등록된다. 하지만 command 로 수동으로 옵션을 설정하면서 입력해주는 것이 더 편하다.
          MessageBox MB_YESNO|MB_ICONQUESTION \
         File /r `.\AdditionalDLL\*.dll`
         Section "ThisNameIsIgnoredSoWhyBother?"
         SectionEnd ; section 완료
         ;Inside the -Post section
         ;And Inside the Uninstall Section
         할 일 : 1. 'Uninstall' Section 을 만든다. 2. WriteInstaller 를 이용해준다.
         ;Uninstaller Section
         Section "Uninstall"
         ;Remove the installation directory
         "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}"
         SectionEnd
         Section ""
         ;write uninstall information to the registry
         "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}"
         "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}"
         SectionEnd
  • NUnit/C#예제 . . . . 1 match
         using System.IO;
          Assertion.AssertEquals(expected,actual);
          Assertion.Assert(actual == expected);
          Assertion.AssertNotNull(activeArray);
          Assertion.AssertNull(nullArray);
          Assertion.AssertEquals(5,3+4);
          Assertion.Assert(fileInfo.Exists);
  • OurMajorLangIsCAndCPlusPlus/ctype.h . . . . 1 match
         == 함수 (FUNCTIONS) ==
  • OurMajorLangIsCAndCPlusPlus/math.h . . . . 1 match
         == 함수 (FUNCTIONS) ==
  • OurMajorLangIsCAndCPlusPlus/setjmp.c . . . . 1 match
         // Redistribution and use in source and binary forms, with or without
         // modification, are permitted provided that the following conditions
         // 1. Redistributions of source code must retain the above copyright
         // notice, this list of conditions and the following disclaimer.
         // 2. Redistributions in binary form must reproduce the above copyright
         // notice, this list of conditions and the following disclaimer in the
         // documentation and/or other materials provided with the distribution.
         // without specific prior written permission.
         // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
          mov esp, OFS_ESP[edx] // Switch to new stack position
  • STL/VectorCapacityAndReserve . . . . 1 match
         #include <iostream>
         See Also ["Java/CapacityIsChangedByDataIO"]
  • Star . . . . 1 match
         [[https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1100 원문보기]]
         입력된 각 줄에 대해 주어진 판에 들어있는 숫자 총합의 최소 값과 최대 값을 출력한다. 이 두 값은 같은 줄에 출력해야 하며, 두 숫자 사이에는 딱 한 개의 스페이스를 출력한다. 풀이가 없는 경우에는 "NO SOLUTION"이라고 출력해야 한다.
  • Star/조현태 . . . . 1 match
         #include <iostream>
          cout << "NO SOLUTION" << endl;
  • Temp/Commander . . . . 1 match
         import cmd, cStringIO
  • VMWare/OSImplementationTest . . . . 1 match
         [BITS 16] ; We need 16-bit intructions for Real
         [ORG 0x7C00] ; The BIOS loads the boot sector into memory location
          mov bx, 0h ; Destination address = 0000:1000
         [BITS 32] ; We now need 32-bit instructions
         input file %s. Aborting operation...", args[i]);
         starting function
         먼저 Win32 Console Application으로 간단히 프로젝트를 생성합니다.
         --------------------Configuration: testos - Win32 Release--------------------
          Upload:zeropage:VMWareOSImplementationTest01.gif
          Upload:zeropage:VMWareOSImplementationTest02.gif
          Upload:zeropage:VMWareOSImplementationTest03.gif
          Upload:zeropage:VMWareOSImplementationTest04.gif
          Upload:zeropage:VMWareOSImplementationTest05.gif
  • WERTYU/1002 . . . . 1 match
          dicStrs= """`1234567890-=QWERTYUIOP[]\ASDFGHJKL;'ZXCVBNM,./"""
  • WERTYU/문보창 . . . . 1 match
         #include <iostream>
          char diction[] = "`1234567890-=QWERTYUIOP[] ASDFGHJKL;'ZXCVBNM,./";
          diction[25] = 92; // ASCII 92 IS ''
          len_dic = strlen(diction);
          if (str[i] == diction[j])
          str[i] = diction[j-1];
  • WERTYU/허아영 . . . . 1 match
         #include <iostream>
          char data[] = {"1234567890-=QWERTYUIOP[]\ASDFGHJKL;'ZXCVBNM,./ "};
  • WinAPI/2011년스터디 . . . . 1 match
         ||WS_CAPTION||10.타이틀바를 가짐. 11을 포함 ||
  • ZP도서관 . . . . 1 match
         || Applications for Windows Fourth Edition || Jeffrey Richter || MS Press || ["1002"] || 원서 ||
         || DesignPatternSmalltalkCompanion || Alpert, Brown, Woolf || Addison Wesley || ["1002"],보솨 || 원서 ||
         || Essential System Administration || AEeen Frisch ||O'Reilly || ["혀뉘"], ["ddori"] || 원서 ||
         || Flash Action 액션스크립트 활용사전 || 장동화 환재현 || 정보문화사 || [이승한] || 이것도 프로그래밍 ||
         || XML APPLICATIONS ||.||.||["erunc0"]||한서||
         || Operating Systems Design and Implemenation || TANENBAUM ||.|| ["fnwinter"] || 원서 ||
         || The Art of Assembly 2nd Edition || Randall Hyde || Not printed yet || http://webster.cs.ucr.edu/ || 프로그래밍언어 ||
  • Zeropage/Staff/회의_2006_03_04 . . . . 1 match
          http://zerowiki.dnip.net/~namsangboy/temp/AIOmok.avi
  • biblio.xsl . . . . 1 match
         <?xml version="1.0" encoding="ISO-8859-1"?>
         <xsl:stylesheet version="1.0"
          <!-- BIBLIOGRAPHY ================================================-->
          <xsl:template match="bibliography">
          XSL <xsl:value-of select="system-property('xsl:version')"/> /
  • callusedHand . . . . 1 match
          * 최근 관심있는 밴드: LASSE LINDH, MANDALAY, PEDRO THE LION
  • fnwinter . . . . 1 match
          [IOCP]
  • 김민재 . . . . 1 match
          * [정모/2012.7.18] - OMS "DEP(Data Execute Prevention)" 진행
          * Hello, World! - Std.IO 행사 T.F 스태프 및 ZeroPage 소개 발표자
  • 나를만든책장/서지혜 . . . . 1 match
          * THE PRINCETON COMPANION TO Mathematics 1
  • 데블스캠프2009/목요일/연습문제/MFC/송지원 . . . . 1 match
         // Construction
          // ClassWizard generated virtual function overrides
         // Implementation
          // Generated message map functions
          afx_msg void operation();
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         // testDlg.cpp : implementation file
          // ClassWizard generated virtual function overrides
         // Implementation
          // when the application's main window is not a dialog
          // TODO: Add extra initialization here
         // to draw the icon. For MFC applications using the document/view model,
         void CTestDlg::operation(){
          operation();
          // send this notification unless you override the CDialog::OnInitDialog()
          // function and call CRichEditCtrl().SetEventMask()
          // TODO: Add your control notification handler code here
          operation();
  • 데블스캠프2011/넷째날/Android/송지원 . . . . 1 match
         import android.view.MotionEvent;
          public boolean onTouchEvent(MotionEvent event){
          if(event.getAction() == MotionEvent.ACTION_DOWN){
         <?xml version="1.0" encoding="utf-8"?>
          android:orientation="vertical"
          android:orientation="horizontal"
  • 데블스캠프2013/셋째날/머신러닝 . . . . 1 match
         using System.Collections.Generic;
         using System.IO;
         #include <iostream>
         #include <stdio.h>
         #include <iostream>
         #include <cstdio>
         import java.io.File;
         import java.io.FileInputStream;
         import java.io.PrintWriter;
          public static void main(String[] args) throws Exception {
         #include <iostream>
         #include <stdio.h>
         #include <iostream>
         #include <iostream>
         #include <cstdio>
  • 레밍즈프로젝트/다이어그램 . . . . 1 match
         비슷한 기능을 하던 ITEM, ACTION를 ActionManager로 합쳤다.
  • 변준원 . . . . 1 match
         #include<iostream>
         #include<iostream>
         #include<iostream>
         #include <iostream>
          wc.hIcon = LoadIcon( NULL, IDI_APPLICATION );
         #include<iostream>
  • 상협/인공지능/오목 . . . . 1 match
         || 2002.2.3 || [http://165.194.17.15/~namsangboy/AIOmok.zip AI오목] ||
  • 새싹교실/2012/세싹 . . . . 1 match
          * 새싹교실이 ZeroPage에서 시행되는만큼 4F([ThreeFs] + Future Action Plan)에 맞게 feedback을 작성합니다.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Network_Programing/AdvancedComm/SocketOption
         #include <winioctl.h>
         #include <stdio.h>
          AttributeStandardInformation = 0x10,
          AttributeVolumeInformation = 0x70,
          AttributeIndexAllocation = 0xA0,
          AttributeEAInformation = 0xD0,
          U32 PartitionOffset;
          - http://technet.microsoft.com/en-us/library/cc750583.aspx#XSLTsection124121120120
          http://www.winapi.co.kr/reference/Function/CreateFile.htm
          http://www.winapi.co.kr/reference/Function/ReadFile.htm
          자세한 내용은 http://stackoverflow.com/questions/3783842/converting-a-string-to-lpcwstr-for-createfile-to-address-a-serial-port
          case 0x10://$STANDARD_INFORMATION
          printf("Attribute type : Standard Information\n");
          * http://lioler.blog.me/20051109234
  • 새싹교실/2012/주먹밥/이소라때리기게임 . . . . 1 match
         #include<stdio.h>
         " IMM7=IOOO$?: :8M$ 7M7 ~MZ ",
  • 오목/곽세환,조재화 . . . . 1 match
         protected: // create from serialization only
         // Operations
          // ClassWizard generated virtual function overrides
         // Implementation
         // Generated message map functions
         #ifndef _DEBUG // debug version in ohbokView.cpp
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         // ohbokView.cpp : implementation of the COhbokView class
         // COhbokView construction/destruction
          // TODO: add construction code here
          // default preparation
          // TODO: add extra initialization before printing
         COhbokDoc* COhbokView::GetDocument() // non-debug version is inline
  • 오목/민수민 . . . . 1 match
         protected: // create from serialization only
         // Operations
          // ClassWizard generated virtual function overrides
         // Implementation
         // Generated message map functions
         #ifndef _DEBUG // debug version in sampleView.cpp
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         // sampleView.cpp : implementation of the CSampleView class
         // CSampleView construction/destruction
          // TODO: add construction code here
          // default preparation
          // TODO: add extra initialization before printing
         CSampleDoc* CSampleView::GetDocument() // non-debug version is inline
  • 오목/재니형준원 . . . . 1 match
         protected: // create from serialization only
         // Operations
          // ClassWizard generated virtual function overrides
         // Implementation
         // Generated message map functions
         #ifndef _DEBUG // debug version in OmokView.cpp
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         // omokView.cpp : implementation of the COmokView class
         // COmokView construction/destruction
          // default preparation
          // TODO: add extra initialization before printing
         COmokDoc* COmokView::GetDocument() // non-debug version is inline
  • 오목/재선,동일 . . . . 1 match
         protected: // create from serialization only
         // Operations
          // ClassWizard generated virtual function overrides
         // Implementation
         // Generated message map functions
         #ifndef _DEBUG // debug version in singleView.cpp
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         // singleView.cpp : implementation of the CSingleView class
         // CSingleView construction/destruction
          // TODO: add construction code here
          // default preparation
          // TODO: add extra initialization before printing
         CSingleDoc* CSingleView::GetDocument() // non-debug version is inline
  • 오목/진훈,원명 . . . . 1 match
         protected: // create from serialization only
         // Operations
          // ClassWizard generated virtual function overrides
         // Implementation
         // Generated message map functions
         #ifndef _DEBUG // debug version in OmokView.cpp
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         // OmokView.cpp : implementation of the COmokView class
         // COmokView construction/destruction
          // TODO: add construction code here
          // default preparation
          // TODO: add extra initialization before printing
         COmokDoc* COmokView::GetDocument() // non-debug version is inline
  • 오목/휘동, 희경 . . . . 1 match
         protected: // create from serialization only
         // Operations
          // ClassWizard generated virtual function overrides
         // Implementation
         // Generated message map functions
         #ifndef _DEBUG // debug version in grimView.cpp
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  • 정모/2013.5.6/CodeRace . . . . 1 match
          * 프레젠테이션 : http://intra.zeropage.org:4000/CodeRace?presentation
         #include <stdio.h>
         using System.IO;
         #include<stdio.h>
         #include <stdio.h>
         #include<stdio.h>
         #include <stdio.h>
         #include <stdio.h>
         #include <stdio.h>
         #include<stdio.h>
  • 조영준/CodeRace/130506 . . . . 1 match
         using System.IO;
         using System.Collections.Generic;
  • 중위수구하기/김태훈zyint . . . . 1 match
         <FORM METHOD=POST ACTION="<?=$PHP_SELF?>">
         <INPUT TYPE="hidden" name=mode value=action><INPUT TYPE="submit" name=submit value=전송>
         if($_POST['mode'] == 'action')
  • 큐와 스택/문원명 . . . . 1 match
         #include <iostream>
         cin 이 string을 입력 받는 코드는 {{{~cpp C:\Program Files\Microsoft Visual Studio\VC98\Include\istream}}} 에 정의 되어 있습니다. 궁금하시면, Debug 모드로 따라가 보세요.
          _TRY_IO_BEGIN // 예외 처리 시작
         #include <iostream>
  • 프로그래밍/ACM . . . . 1 match
          * BigInteger, String.split, 대부분의 io 라이브러리 등 제한
          catch (IOException e)
Found 169 matching pages out of 7540 total pages (5000 pages are searched)

You can also click here to search title.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
Processing time 0.2926 sec