U E D R , A S I H C RSS

Full text search for "데블스캠프2005/Socket Programming in Unix/WordIndex"

데블스캠프2005/Socket Programming in Unix/Word Index


Search BackLinks only
Display context of search results
Case-sensitive searching
  • VendingMachine/세연/1002 . . . . 785 matches
         void printMenu () {
         bool isEndMenu (int choice) {
          printMenu ();
          cin >> choice;
         bool isEndMenu (int choice) {
          MENU_INSERT_DRINK
          VendingMachine.GetMoney();
          VendingMachine.Buy();
          VendingMachine.TakeBackMoney();
          case MENU_INSERT_DRINK:
          VendingMachine.InsertDrink();
         bool isValidMenu (int choice) {
         bool isValidMenu (int choice) {
          return choice >= MENU_END && choice <= MENU_INSERT_DRINK;
          MENU_INSERT_DRINK,
          MENU_END = MENU_INSERT_DRINK
         bool isEndMenu (int choice) {
         bool isValidMenu (int choice) {
          VendingMachine.EndMachine();
          VendingMachine.PrintErrorMessage ();
  • MatrixAndQuaternionsFaq . . . . 640 matches
         This FAQ is maintained by "hexapod@netcom.com". Any additional suggestions or related questions are welcome. Just send E-mail to the above address.
          Introduction I1: steve@mred.bgm.link.com
         I1. Important note relating to OpenGL and this document
         Q3. How do I represent a matrix using the C/C++ programming languages?
         Q4. What are the advantages of using matrices?
         Q5. How do matrices relate to coordinate systems?
         DETERMINANTS AND INVERSES
         Q14. What is the determinant of a matrix?
         Q15. How do I calculate the determinant of a matrix?
         Q17. What is the inverse of a matrix?
         Q18. How do I calculate the inverse of an arbitary matrix?
         Q19. How do I calculate the inverse of an identity matrix?
         Q20. How do I calculate the inverse of a rotation matrix?
         Q21. How do I calculate the inverse of a matrix using Kramer's rule?
         Q22. How do I calculate the inverse of a 2x2 matrix?
         Q23. How do I calculate the inverse of a 3x3 matrix?
         Q24. How do I calculate the inverse of a 4x4 matrix?
         Q25. How do I calculate the inverse of a matrix using linear equations?
         Q27. How do I generate a rotation matrix in the X-axis?
         Q28. How do I generate a rotation matrix in the Y-axis?
  • 데블스캠프2013/셋째날/머신러닝 . . . . 582 matches
         = Machine Learning =
          * 데이터 및 강의자료 [http://zeropage.org/index.php?mid=seminar&document_srl=91554 링크]
         using System;
         using System.Collections.Generic;
         using System.Linq;
         using System.Text;
         using System.Threading.Tasks;
         using System.IO;
          public int[] words;
          public int category;
          const int SIZEBIG = 8165;
          const int SIZESMALL = 20;
          static void Main(string[] args)
          for (int i = 0; i < 11293; i++)
          sampleNews[i].words = new int[SIZEBIG];
          for (int i = 0; i < 7528; i++)
          testNews[i].words = new int[SIZEBIG];
          int count = 0;
          string[] temp1 = new string[SIZEBIG];
          StreamReader reader = new StreamReader(@"C:\ZPDC2013\train_data11293x8165");
  • MoniWikiPo . . . . 497 matches
         # Copyright (C) 2003-2006 Free Software Foundation, Inc.
         "Content-Type: text/plain; charset=UTF-8\n"
         "Content-Transfer-Encoding: 8bit\n"
         #: ../plugin/Attachment.php:41 ../plugin/Attachment.php:121
         #: ../plugin/Attachment.php:124
         #: ../plugin/BabelFish.php:16
         #: ../plugin/BabelFish.php:29
         #: ../plugin/Blog.php:86 ../plugin/blog2.php:87
         #: ../plugin/Blog.php:110 ../plugin/blog2.php:111
         #: ../plugin/Blog.php:115 ../plugin/blog2.php:116
         #: ../plugin/Blog.php:155 ../plugin/blog2.php:156
         #: ../plugin/Blog.php:163 ../plugin/Comment.php:135 ../plugin/blog2.php:164
         #: ../plugin/Blog.php:180 ../plugin/blog2.php:181
         #: ../plugin/Blog.php:183 ../plugin/blog2.php:184
         #: ../plugin/Blog.php:220 ../plugin/blog2.php:221
         #: ../plugin/Blog.php:222 ../plugin/blog2.php:223
         #: ../plugin/Blog.php:236 ../plugin/Blog.php:292 ../plugin/Comment.php:50
         #: ../plugin/blog2.php:237 ../plugin/blog2.php:293
         #: ../plugin/Blog.php:240 ../plugin/Blog.php:293 ../plugin/blog2.php:241
         #: ../plugin/blog2.php:294
  • WikiTextFormattingTestPage . . . . 394 matches
         Revised 1/05/01, 5:45 PM EST -- adding "test" links in double square brackets, as TWiki allows.
         This page originated on Wiki:WardsWiki, and the most up-to-date copy resides there. This page has been copied here in order to make a quick visual determination of which TextFormattingRules work for this wiki. Currently it primarily determines how text formatted using the original Wiki:WardsWiki text formatting rules is displayed. See http://www.c2.com/cgi/wiki?WikiOriginalTextFormattingRules.
         If you want to see how this text appears in the original Wiki:WardsWiki, see http://www.c2.com/cgi/wiki?WikiEngineReviewTextFormattingTest
         People reviewing this wiki from the original Wiki:WardsWiki will be referred to this page. If you want to see the review, go to http://www.c2.com/cgi/wiki?WikiEngineReview.
          * CLUG Wiki (older version of WardsWiki, modified by JimWeirich) -- http://www.clug.org/cgi/wiki.cgi?WikiEngineReviewTextFormattingTest
          * MoinMoin (MoinMoin 0.5) -- http://www.encrypted.net/~jh/moinmoin/moin.cgi/WikiTextFormattingTestPage
          * Kit-T-Wiki (TWiki 01) -- http://kit.sourceforge.net/cgi-bin/view/Main/WikiReviewTextFormattingTest
          * TWiki (TWiki 03) -- http://twiki.sourceforge.net/cgi-bin/view/TWiki/WikiReviewTextFormattingTest
         http://narasimha.tangentially.com/cgi-bin/n.exe?twiky%20editWiki(%22WikiEngineReviewTextFormattingTest%22)
          * UseMod wiki (UseMod 0.88) -- http://www.usemod.com/cgi-bin/wiki.pl?WikiEngineReviewTextFormattingTest
         This page contains sample marked up text to make a quick visual determination as to which Wiki:TextFormattingRules work for a given wiki. To use the page, copy the text from the edit window, and paste it in the wiki under test. Then read it.
         And, the next logical thing to do is put a page like this on a public wiki running each Wiki:WikiEngine, and link to it from the appropriate Wiki:WikiReview page, as has been done in some cases -- see above.
         The next line (4 dashes) should show up as a horizontal rule. In a few wikis, the width of the rule is controlled by the number of dashes. That will be tested in a later section of this test page.
         '''Wiki:WikiOriginalTextFormattingRules'''
         This first section will test the Wiki:WikiOriginalTextFormattingRules.
         If a wiki properly interprets the Wiki:WikiOriginalTextFormattingRules, the text will appear as described here.
         This should appear as plain variable width text, not bold or italic.
         The original Wiki:WardsWiki text formatting rules make no provision for headings. They can be simulated by applying emphasis. See the next several lines.
         'This text, enclosed within in 1 set of single quotes, should appear as normal text surrounded by 1 set of single quotes.'
         ''This text, enclosed within in 2 sets of single quotes, should appear in italics.''
  • BusSimulation/조현태 . . . . 375 matches
          === main.cpp ===
         #include "bus_and_man.h"
         #include <iostream>
         using namespace std;
         void main()
          for (register int i=1; i<20; ++i)
          for (register int j=0; j<5; ++j)
         #include <iostream>
         #include <stdlib.h>
         #include <time.h>
         #include "bus_and_man.h"
         using namespace std;
         const int MOVE=1;
         const int STOP=0;
         man::man(int input_from, int input_to)
          from=input_from;
          to=input_to;
         int man::where_go()
         station::station(int input_station_number, char *input_name, int input_percent, int input_size )
          strcpy(name,input_name);
  • MoreEffectiveC++/Techniques1of3 . . . . 356 matches
         == Item 25: Virtualizing constructors and non-member functions ==
         http://zeropage.org/~neocoin/data/MoreEffectiveC++_124_1.gif
         list 클래스는 STL로 이루어져 있는데, Item 35를 참고하면 정보를 얻을수 있다. 단순히 이중 연결 리스크(double linked list)라고 생각하면 무리가 없을 것이다.
          for (list<NLComponent*>::constiterator it = rhs.components.begin();
          === Making Non-Member Functions Act Virtual : 비멤버 함수를 가상 함수처럼 동작하게 하기 ===
          virtual ostream& print(ostream& s) const = 0;
          virtual ostream& print(ostream& s) const;
          virtual ostream& print(ostream& s) const;
         inline
          return c.print(s);
         가상 함수의 역할을 비멤버(non-member)함수로 구현한 사례이다. 비 멤버 함수이지만 inline을 통해서 가상 함수와의 직접 연결 통로를 만들었다.
         == Item 26: Limiting the number of objects of a class ==
          * 작성자주 : 이 부분은 Singleton 패턴과 연관해서 생각하면 재미있을 것 같다. Singleton 패턴이 DP에 논의될때 이것을 감안 안한것이 아쉽다. 1995년에 발간이라 STL도 제대로 다루지 않았고, C++의 기본적인 문법을 이용해 구현하였다. MEC++는 Techniques 부분은 C++의 문법과 개념을 극한으로 쓴다는 느낌이 든다.
          === Allowing Zero or One Objects : 0 혹은 하나의 객체 만을 허용하는 방법 ===
         class CantBeInstantiated {
          CantBeInstantiated();
          CantBeInstantiated(const CantBeInstantiated&);
         class PrintJob; // 미리 선언, 프린터 작업에 쓰이는 객체. 참고 Effective C++ Item 34
         class Printer {
          void submitJob(const PrintJob& job);
  • 영호의해킹공부페이지 . . . . 284 matches
          1. Access to computers-and anything which might teach you something
          2. All information should be free.
          4. Hackers should be judged by their hacking, not bogus criteria such
          Principles of Buffer Overflow explained by Jus
         This article is an attempt to quickly and simply explain everyone's favourite
         manner of exploiting daemons - The Buffer Overflow.
         The remote buffer overflow is a very commonly found and exploited bug in badly
         coded daemons - by overflowing the stack one can cause the software to execute
         many are, a root shell will be spawned, giving full remote access.
         A buffer is a block of computer memory that holds many instances of the same
         data type - an array. Arrays can be static and dynamic, static being allocated
         at load time and dynamic being allocated dynamically at run time. We will be
         looking at dynamic buffers, or stack-based buffers, and overflowing, filling
         up over the top, or breaking their boundaries.
         A stack has the property of a queue of objects being placed one on top of the
         removed. This is called LIFO - or last in first out. An element can be added
         which are pushed when calling a function in code and popped when returning it.
         The stack pointer (SP) always points to the top of the stack, the bottom of it
         addresses, or up them. This means that one could address variables in the
         stack by giving their offsets from SP, but as POP's and PUSH's occur these
  • VonNeumannAirport/1002 . . . . 269 matches
         문제는 암튼 이해했고 (Input 에 대한 Output 이 머릿속에서 어떻게 해야 할지 연결이 된 상태) 가장 간단하게 테스트할 수 있는 방법에 대해 생각해야 하겠군요.
         Sample Input 을 보니 뒤의 것이 간단해 보이는군요.
         #include <cppunit/TestCase.h>
         #include <cppunit/extensions/HelperMacros.h>
         #include <cppunit/Ui/Text/TestRunner.h>
         int main ()
          int startCity;
          int endCity;
          Configuration (int startCity, int endCity) {
          void movePeople (int startCity, int endCity, int people) {
          int getTraffic () {
          void movePeople (int startCity, int endCity, int people) {
          int getTraffic () {
         여기까진 통과..~ test code 를 Refactoring 해봅니다.
          int dataset [3][3] = {{1,1,1}, {1,1,1}, {1,1,100}};
          int expectedSet[3] = {1,2,102};
          for (int i=0;i<3;i++) {
          int arrivalCitys[] = {1,2};
          int departureCitys[] = {1,2};
          vector <int> arrivalCitys;
  • EffectiveC++ . . . . 268 matches
         == Shifting from C to C++ ==
         === Item1: Prefer const and inline to #define ===
         DeleteMe #define(preprocessor)문에 대해 const와 inline을(compile)의 이용을 추천한다. --상민
         [#define -> const][[BR]]
          #define ASPECT_RATIO 1.653
         instead of upper..
         define 된 ASPECT_RATIO 란 상수는 1.653으로 변경되기때문에 컴파일러는 ASPECT_RATIO 란것이 있다는 것을 모르고 symbol table 에?들어가지 않는다. 이는 debugging을 할때 문제가 발생할 수 있다. -인택
         1. 상수 포인터(constant pointer)를 정의하기가 다소 까다로워 진다는 것.
          static const int NUM_TURNS = 5; // 상수 선언! (선언만 한것임)
          int scores[NUM_TURNS]; // 상수의 사용.
          const int GamePlayer::NUM_TURNS; // 정의를 꼭해주어야 한다.
         #define -> inline (매크로 사용시)
          * inline: 함수 호출로 인한 오버헤드를 줄일수 있는.. 거시기. 궁금하면 책찾아보세요.
          #define max(a,b) ((a) > (b) ? (a) : (b))
          // #define 을 inline으로..
          inline int max(int a, int b) { return a > b ? a : b; } // int형으로만 제한 되어있네..
          inline const T& max (const T& a, const T& b) { return a > b ? a : b; }
         const와 inline을 쓰자는 얘기였습니다. --; 왜 그런지는 아시는 분께서 글좀 남기시구요. ^^[[BR]]
         #define 문을 const와 inline으로 대체해서 써도, #ifdef/#ifndef - #endif 등.. 이와 유사한 것들은 [[BR]]
          매크로는 말 그대로 치환이기 때문에 버그 발생할 확률이 높음. 상수선언이나 함수선언같은 경우는 가급적 const 나 inline으로 대체하는게 좋겠지. (으.. 그래도 실제로 짤때는 상수 선언할때는 #define 남용 경향이..[[BR]]
  • CompleteTreeLabeling/조현태 . . . . 265 matches
         #include <stdio.h>
         #include <iostream>
          int number;
          int deep;
          int maximum;
         int get_number_nodes(int , int);
         void change(int*,int*);
         block* create_block(int, int, int, int, block**, block*);
         void process_block(int* , int , int , int , int , block** );
         void main()
          int degree, deep, number_nodes, answer_number;
          block** line;
          printf("트리의 분기계수를 입력하세요.n>>");
          printf("트리의 깊이를 입력하세요.n>>");
          line=(block**)malloc(sizeof(block*)*number_nodes);
          create_block(0, 1, deep, degree, line, NULL);
          process_block(&answer_number, 0, number_nodes, degree, deep, line);
          printf("결과 : %dn",answer_number);
          for (register int i=0; i<number_nodes; ++i)
          free(line[i]->next);
  • Gof/Singleton . . . . 263 matches
         == Singleton ==
         === Intent ===
         더 좋은 방법은 클래스 자신으로 하여금 자기자신의 단일 인스턴스를 유지하도록 만드는 것이다. 이 클래스는 인스턴스가 생성될 때 요청을 가로챔으로서 단일 인스턴스로 만들어지는 것은 보증한다. 또한, 인스턴스에 접근하는 방법도 제공한다. 이것이 바로 SingletonPattern이다.
         SingletonPattern은 다음과 같은 경우에 사용한다.
         http://zeropage.org/~reset/zb/data/singl014.gif
          * Singleton
          * Instance operation (클래스의 메소드)을 정의한다. Instance 는 클라이언트에게 해당 Singleton의 유일한 인스턴스를 접근할 수 있도록 해준다.
          * Singleton 자신의 유일한 인스턴스를 생성하는 책임을 가진다.
          * 클라이언트는 오직 Singleton의 Instance operation으로만 Singleton 인스턴스에 접근할 수 있다.
         SingletonPattern은 여러가지 장점을 가진다.
          1. 클래스에 대한 접근이 오직 하나의 인스턴스에게로 제한된다. Singleton 클래스는 자기 자신의 단일 인스턴스를 캡슐화하기 때문에, 클라이언트가 언제, 어떻게 접근하던지 그 접근이 엄격하게 제어된다.
          2. namespace를 줄인다. SingletonPattern은 global variable을 줄임으로서 global variable로 인한 namespace의 낭비를 줄인다.
          3. 명령어와 표현을 확장시킬 수 있다. Singleton class는 subclass될 수 있고, 이 확장된 클래스의 인스턴스를 가지고 어플리케이션을 설정하는 것은 쉽다. run-time중에 필요한 경우에도 가능하다.
          4. 여러개의 인스턴스를 허용한다. 프로그래머의 마음에 따라 쉽게 Singleton class의 인스턴스를 하나이상을 둘 수도 있도록 할 수 있다. 게다가 어플리케이션이 사용하는 인스턴스들을 제어하기 위해 동일한 접근방법을 취할 수 있다. 단지 Singleton 인스턴스에 접근하는 것을 보장하는 operation만 수정하면 된다.
          5. class operation 보다 더 유연하다. 패키지에서 Singleton의 기능을 수행하기위한 또다른 방법은 class operation들을 사용하는 것이다. (C++에서의 static 함수나 Smalltalk에서의 class method 등등) 하지만, 이러한 언어적인 테크닉들은 여러개의 인스턴스를 허용하는 디자인으로 바꾸기 힘들어진다. 게다가 C++에서의 static method는 virtual이 될 수 없으므로, subclass들이 override 할 수 없다.
         SingletonPattern 을 사용할 때 고려해야 할 사항들이 있다.
         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의 유일한 인스턴스를 가리키는 포인터이다.
         Singleton class는 다음과 같이 선언된다.
         class Singleton {
  • MoreEffectiveC++/Appendix . . . . 262 matches
         == Recommended Reading ==
         So your appetite for information on C++ remains unsated. Fear not, there's more — much more. In the sections that follow, I put forth my recommendations for further reading on C++. It goes without saying that such recommendations are both subjective and selective, but in view of the litigious age in which we live, it's probably a good idea to say it anyway. ¤ MEC++ Rec Reading, P2
         There are hundreds — possibly thousands — of books on C++, and new contenders join the fray with great frequency. I haven't seen all these books, much less read them, but my experience has been that while some books are very good, some of them, well, some of them aren't. ¤ MEC++ Rec Reading, P4
         What follows is the list of books I find myself consulting when I have questions about software development in C++. Other good books are available, I'm sure, but these are the ones I use, the ones I can truly recommend. ¤ MEC++ Rec Reading, P5
         A good place to begin is with the books that describe the language itself. Unless you are crucially dependent on the nuances of the °official standards documents, I suggest you do, too. ¤ MEC++ Rec Reading, P6
          * '''''The Annotated C++ Reference Manual''''', Margaret A. Ellis and Bjarne Stroustrup, Addison-Wesley, 1990, ISBN 0-201-51459-1. ¤ MEC++ Rec Reading, P7
          * '''''The Design and Evolution of C++''''', Bjarne Stroustrup, Addison-Wesley, 1994, ISBN 0-201-54330-3. ¤ MEC++ Rec Reading, P8
         These books contain not just a description of what's in the language, they also explain the rationale behind the design decisions — something you won't find in the official standard documents. The Annotated C++ Reference Manual is now incomplete (several language features have been added since it was published — see Item 35) and is in some cases out of date, but it is still the best reference for the core parts of the language, including templates and exceptions. The Design and Evolution of C++ covers most of what's missing in The Annotated C++ Reference Manual; the only thing it lacks is a discussion of the Standard Template Library (again, see Item 35). These books are not tutorials, they're references, but you can't truly understand C++ unless you understand the material in these books
         For a more general reference on the language, the standard library, and how to apply it, there is no better place to look than the book by the man responsible for C++ in the first place: ¤ MEC++ Rec Reading, P10
          * '''''The C++ Programming Language (Third Edition)''''', Bjarne Stroustrup, Addison-Wesley, 1997, ISBN 0-201-88954-4. ¤ MEC++ Rec Reading, P11
         Stroustrup has been intimately involved in the language's design, implementation, application, and standardization since its inception, and he probably knows more about it than anybody else does. His descriptions of language features make for dense reading, but that's primarily because they contain so much information. The chapters on the standard C++ library provide a good introduction to this crucial aspect of modern C++. ¤ MEC++ Rec Reading, P12
         If you're ready to move beyond the language itself and are interested in how to apply it effectively, you might consider my other book on the subject: ¤ MEC++ Rec Reading, P13
          * '''''Effective C++''''', Second Edition: 50 Specific Ways to Improve Your Programs and Designs, Scott Meyers, Addison-Wesley, 1998, ISBN 0-201-92488-9. ¤ MEC++ Rec Reading, P14
         That book is organized similarly to this one, but it covers different (arguably more fundamental) material. ¤ MEC++ Rec Reading, P15
         A book pitched at roughly the same level as my Effective C++ books, but covering different topics, is ¤ MEC++ Rec Reading, P16
          * '''''C++ Strategies and Tactics''''', Robert Murray, Addison-Wesley, 1993, ISBN 0-201-56382-7. ¤ MEC++ Rec Reading, P17
         Murray's book is especially strong on the fundamentals of template design, a topic to which he devotes two chapters. He also includes a chapter on the important topic of migrating from C development to C++ development. Much of my discussion on reference counting (see Item 29) is based on the ideas in C++ Strategies and Tactics.
         If you're the kind of person who likes to learn proper programming technique by reading code, the book for you is ¤ MEC++ Rec Reading, P19
          * '''''C++ Programming Style''''', Tom Cargill, Addison-Wesley, 1992, ISBN 0-201-56365-7. ¤ MEC++ Rec Reading, P20
         Each chapter in this book starts with some C++ software that has been published as an example of how to do something correctly. Cargill then proceeds to dissect — nay, vivisect — each program, identifying likely trouble spots, poor design choices, brittle implementation decisions, and things that are just plain wrong. He then iteratively rewrites each example to eliminate the weaknesses, and by the time he's done, he's produced code that is more robust, more maintainable, more efficient, and more portable, and it still fulfills the original problem specification. Anybody programming in C++ would do well to heed the lessons of this book, but it is especially important for those involved in code inspections. ¤ MEC++ Rec Reading, P21
  • 윤종하/지뢰찾기 . . . . 250 matches
         /* mine.c: 지뢰찾기 소스 파일(TUI)
         종류: win32 console program
         #include<stdio.h>
         #include<stdlib.h>
         #include<time.h>
         #include<conio.h>
         #include<windows.h>
         #define TRUE 1
         #define FALSE 0
         //#define NO_STATE 3
          int iIsRevealed;
          int iIsMine;
          int iNumOfMine;//주변에 있는 지뢰의 개수
          int iIsUnknown;
          int iIsFined;
         COORD* make_mine_map(CELL** map,COORD size,int iNumOfMine);
         void print_map(CELL** map,COORD size,int iNumOfMine,int iCurrentFindedMine);
         int click_cell(CELL** map,COORD size,int *iNumOfLeftCell);
         void one_right_click_cell(CELL** map,COORD size,COORD *cPosOfMine,int iNumOfMine,int *iFindedRealMine);
         void find_mine(CELL** map,COORD size,COORD pos,int *iNumOfLeftCell);
  • 새싹교실/2012/AClass/5회차 . . . . 247 matches
         #include<stdio.h>
         int main()
          int r,e,c;
          printf("advertise\n");
          printf("do not advertise\n");
          printf("does not matter\n");
         #include<stdio.h>
         #include<math.h>
         int main()
         int a,b,c;
          printf("%g ",x1);
          printf("%g %g",x1,x2);
          printf("%g %g",x2,x1);
         #include<stdio.h>
         int main(){
          int a;
          int sum=0;
          printf("%d",sum+1);
         #include<stdio.h>
         int main(){
  • MoreEffectiveC++/Miscellany . . . . 245 matches
         == Item 32: Program in the Future tense ==
         원문:As software developers, we may not know much, but we do know that things will change. We don't necessarily know what will change, how the changes will be brought about, when the changes will occur, or why they will take place, but we do know this: things will change.
         좋은 소프트웨어는 변화를 잘 수용한다. 새로운 기능을 수용하고, 새로운 플랫폼에 잘 적용되고, 새로운 요구를 잘 받아 들이며, 새로운 입력을 잘 잡는다. 이런 소프트웨어는 유연하고, 강하고, 신뢰성있고, 돌발 상황(사고)에 의해 죽지 않는다. 이런 소프트웨어는 미래에 필요한 요소를 예상하고, 오늘날 구현시에 포함시키는 프로그래머들에 의해서 디자인된다. 이러한 종류의 소프트웨어는-우아하게 변화하는 소프트웨어- ''program in the future tens''(매래의 프로그램:이하 영문 직접 사용)을 감안하는 사람들이 작성한다.
         ''program in future tense''는, 변화의 수용하고, 준비한다. 라이브러에 추가될 새로운 함수, 앞으로 일어날 새로운 오버로딩(overloading)을 알고, 잠재적으로 모호성을 가진 함수들의 결과를 예측한다. 새로운 클래스가 상속 계층에 추가될 것을 알고, 이러한 가능성에 대하여 준비한다. 새로운 어플리케이션에서 코드가 쓰이고, 그래서 새로운 목적으로 함수가 호출되고, 그런 함수들이 정확히 동작을 유지한다. 프로그래머들이 유지 보수를 할때, 일반적으로 원래의 개발자의 영역이 아닌, 유지 보수의 몫을 안다. 그러므로, 다른 사람에 의해서 소프트웨어는 이해, 수정, 발전의 관점에서 구현하고 디자인된다.
         "변화한다.", 험난한 소프트웨어의 발전에 잘 견디는 클래스를 작성하라. (원문: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)으로 선언해라, 그리고 차후에 그것을 바꾸어라 왜냐하면 그것은 다른사람을 편하게 하기 때문이다.;전체 클래스의 목적에서 변화를 유지하는지 확신을 해라.
         원리를 구현하기 위해 특이하게 하지 마라.:연산자와 함수를 자연스럽고 명시적인 문법으로 제공하라. built-in(기본 자료) 형으로 구현하라:의심될때는 int로 하라
         당신의 코드를 변화가 필요할때, 그 효과를 지역화(지역화:localized) 시키도록 디자인 해라. 가능한한 캡슐화 하여라:구체적인 구현은 private 하라. 광범위하게 적용해야 할곳이 있다면 이름없는(unamed) namespace나, file-static객체 나 함수(Item 31참고)를 사용하라. 가상 기초 클래스가 주도하는 디자인은 피하라. 왜냐하면 그러한 클래스는 그들로 부터 유도된 모든 클래스가 초기화 해야만 한다. - 그들이 직접적으로 유도되지 않은 경우도(Item 4참고) if-than-else을 개단식으로 사용한 RTTI 기반의 디자인을 피하라.(Item 31참고) 항상 클래스의 계층은 변화한다. 각 코드들은 업데이트 되어야만 한다. 그리고 만약 하나를 읽어 버린다면, 당신의 컴파일러로 부터 아무런 warning를 받을수 없을 것이다.
         class String {
          ~string();
          string name;
         상업용 클래스 라이브러리(C++표준 라이브러리 상의 string 스펙의 날짜를 앞당기려는 회사)는 가상 파괴자를 가지고 있지 않은 sting클래스를 포함한다. 그 벤더의 설명은?
          * 우리는 가상 파괴자를 만들지 않는다. 왜냐하면, String가 vtbl을 가지기를 원하지 않기 때문이다. 우리는 String*를 가지게할 의도는 없다. 그래서 이는 문제가 되지 않는다. 우리는 이것이 수반하는 어려움에 대하여 생각하지 않는다.
         확실히 vtbl 문제는 합법적인 접근이다. (Item 24참고) 대다수 String클래스의 구현에서 오직 하나의 char*를 각각의 String 객체가 가지고 있다. 그래서 각 String객체에 추가되는 vptr도 두배의 양을 차지한다. 허용하지 않으려는 이유는 이해하기 쉽다. String같은 클래스를 무겁게 사용하면 눈에 띠는 성능 저하가 있다. 앞서 언급한 경우 클래스당 성능 저하는 약 20%정도를 가지고 온다. (Item 16참고)
         어떤 것이 더 많은 문제를 일으키는 것으로, 밴더들의 주목을 받고 있을까? "우리는 String*을 사용하는 목적을 가지지 않는다. 그래서 이는 별 문제가 되지 않는다." 그건 아마 사실일 것이다. 하지만 그들의 String클래스는 수많은 개발자들이 사용가능한 것이다. 수많은 개발자들이 C++의 수준이 제각각이다. 이러한 개발자들이 String상에서의 비가상 파괴자(no virtual destructor)를 이해할까? 그들이 비가상 파괴자를 가진 String때문에 String으로 유도된 새로운 클래스가 모험 비슷한 것을 알고 있을까? 이런 벤더들은 그들의 클라이언트들이 가상 파괴자가 없는 상태에서 String*를 통하여 삭제가 올바르게 작동하지 않고, RTTI와 String에 대한 참조가 아마 부정확한 정보를 반환한다는걸 확신시킬까? 이 클래스가 정확히 쓰기 쉬운 클래스일까? 부정확하게 쓰기 어려운 클래스일까?
         이 벤더는 물론 String클래스에 관한 유도해서는 안되도록 디자인 된 문서들을 제공할 것이다. 하지만, 프로그래머들이 문서를 보는 도중에 그 부분을 놓쳤다면 어떻게 하겠는가?
         대안으로 C++을 사용할때 유도를 제한해 버리는 것이다. Item 26에서 어떻게 객체를 heap에 만들거고 auto_ptr객체로 heap객체를 조정하는 방법에 관해서 언급하였다. String을 위한 인터페이스 생성은 아마 독특하고 불편한 다음과 같은 문법 을 요구한다.
         auto_ptr<String> ps(String::makeString("Future tense C++"));
         String s("Future tense C++");
         하지만 정확하지 않게 동작하는 유도된 클래스의 사용을 억제하는 것은 문법적으로 상당히 불편함을 낳는다. (String에서 이런 문법적으로 불편한 면이 그리 강조되지 않다. 그렇지만 다른 클래스에서 이러한 문법적인 불편함을 따지는 면이 중요하다.)
         물론, 필요하다면 현재 감안하는 생각으로 접근한다. 당신이 개발중인 소프트웨어는 현재의 컴파일러에서 동작해야만 한다.;당신은 최신의 언어가 해당 기능을 구현할때까지 기다리지 못한다. 당신의 현재 가지고 있는 언어에서 동작해야 하고. 그래서 당신의 클라이언트에서 사용 가능해야 한다.;당신의 고객에게 그들의 시스템을 업그레이드 하거나, 수행 환경을(operating environment) 바꾸게 하지는 못할것이다. 그건은 '''지금''' 수행함을 보증해야 한다.;좀더 작은, 좀더 빠른 프로그램에 대한 약속은 라이프 사이클을 줄이고, 고객에게 기대감을 부풀릴 것이다. 그리고 당신이 만드는 프로그램은 '''곧''' 작동해야만 한다. 이는 종종 "최신의 과거"를 만들어 버린다. 이는 중요한 속박이다. 당신은 이를 무시할수 없다.
  • 새싹교실/2011/데미안반 . . . . 230 matches
         #include <stdio.h>
         int main(void)
          printf("Hello, World!\n");
          * ; 는 문장의 끝을 나타내므로, printf("Hello World"); 처럼 어디까지 내용이 있다 나타내는 것처럼 빈 공간도 빈 공간 그대로 인식이 되지 않았나 싶어요.
          * printf를 왜 제일 처음 배우나요?
          * A언어 : ALGOL을 말합니다. 고급 프로그래밍 언어(어셈블리나 기계어를 저급 프로그래밍 언어라고 합니다)로 각광받던 포트란ForTran에 대항하기 위해 유럽을 중심으로 개발된 프로그래밍 언어입니다. ALGOL은 Algorithm Language의 약자로서, 이름 그대로 알고리즘 연구개발을 위해 만들어졌습니다. 하지만 ALGOL은 특정한 프로그래밍 언어를 지칭하기 보다는 C언어나 파스칼과 같이 구조화된 프로그래밍 언어를 지칭하는 말(ALGOL-like programming language)로 쓰입니다. [http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=1040101&docId=68855131&qb=Q+yWuOyWtCBC7Ja47Ja0IEHslrjslrQ=&enc=utf8§ion=kin&rank=1&search_sort=0&spq=0&pid=ghtBIz331ywssZ%2BbORVssv--324794&sid=TYBj6x1TgE0AAE@GUeM 출처 링크! 클릭하세요:)]
          * 입, 출력 함수 - printf, scanf
         #include <stdio.h> //printf 함수 사용
         int main(void)
          int val1 = 4;
          int val2 = 2;
          printf("두 수의 덧셈: %d\n", val1+val2);
          printf("두 수의 뺄셈: %d\n", val1-val2);
         #include <assert.h> //assert 함수 사용
         int main(void)
          int val1 = 4, val2 = 2;
         #include <assert.h> //assert 함수 사용
         int main(void)
          int val = 10;
         #include <assert.h> //assert 함수 사용
  • 새싹교실/2012/세싹 . . . . 225 matches
          * 수업과목: everything you want
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 참고로 ZeroWiki는 MoniWiki Engine을 사용하며 Google Chrome이나 Mozila Firefox, Safari보다는 Internet Explorer에서 가장 잘 돌아가는 것 같습니다.
          3) Virtualbox실행 -> 새로 만들기 -> 운영체제 : Linux 버전 : Ubuntu -> 메모리1024MB로 설정하고 나머지 디폴트 설치
          4) terminal 실행 -> .c 파일이 있는 경로로 이동 (ls와 cd를 이용합니다.)
          1) virtual box로 linux 설치 후 hello world 작성하고 컴파일하여 스크린샷을 강사 메일로 보내주세요.
          2) linux의 다양한 명령어 검색해보기
          - link : 노드와 노드간에 데이터를 주고받는 역할을 합니다. 스위치, 브릿지등이 포함됩니다.
          - 인터넷 소켓(Internet socket, socket' 혹은 network socket 라고 부르기도 한다)은 네트워크로 연결되어 있는 컴퓨터의 통신의 접점에 위치한 통신 객체다.
          5) 자세한 사항은 http://forum.falinux.com/zbxe/?document_srl=441104 를 참고하세요.
          * 오피에서 숙제를 했습니다. VS로 하려니까 뭔가 막 오류가 나는데 고치지는 못하겠고 그래서 우분투를 깔아서 시도를 했네요. 용어가 익숙하지 않아서 그런지 함수 설명을 봐도 한번에 와닿지 않아서 힘들었습니다. 아 그리고 숙제를 하다가 생긴 문제인데요. 서버 프로그램을 처음 실행했을 때는 괜찮은데 두 번째로 실행했을 때는 Bind에러가 나네요. 그래서 매번 실행할 때마다 포트값을 수정해야했습니다. 왜 이런 문제가 생긴걸까요? - [권영기]
          * [권영기] 학생이 맞닥트린 bind 오류는, 해당 포트에 내가 가서 눌러앉으려고(bind하려고) 가 보니까 다른 놈이 이미 차지하고 있어서 bind하지 못했다는 오류입니다. 프로그램에서 bind한 후 다 쓰고 나서 bind를 해제하지 않으면 이런 일이 발생합니다. bind 해제 코드를 꼭 넣도록 하세요. - [황현]
          * 자세한 해결 방법입니다. 소켓을 생성하고나서 바로 setsockopt(mySocket, SOL_SOCKET, SO_REUSEADDR, &anyIntegerVariableThatContainsNonZero, sizeof(anyIntegerVariableThatContainsNonZero)); 함수를 호출하면 이 소켓의 생명이 다하는 순간 해당 포트에 자리가 나게 됩니다. - [황현]
          - 양방향 통신중 한쪽이 off-line상태인 경우에도 메시지의 전송과 수령이 가능하도록
          - terminal을 여러개 실행시켜 실험을 진행해 보세요.
          * http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/2/recv
          * http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/2/read
          * 소캣 옵션 참고 사이트 (close시 bind 해제 설정)
          * http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Network_Programing/AdvancedComm/SocketOption
          - 자세한 내용은 링크를 참조. http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Thread/Beginning/WhatThread
  • AseParserByJhs . . . . 212 matches
         //#define OBJECT_BEGIN "*NODE_TM"
         #define OBJECT_BEGIN "*GEOMOBJECT"
         #define OBJECT_NAME "*NODE_NAME"
         #define OBJECT_POS "*TM_POS"
         #define NUM_VERTEX "*MESH_NUMVERTEX"
         #define NUM_FACES "*MESH_NUMFACES"
         #define NUM_TVERTEX "*MESH_NUMTVERTEX"
         #define NUM_TFACES "*MESH_NUMTVFACES"
         #define NUM_TEXTURE "*MATERIAL_COUNT"
         #define VERTEX_LIST "*MESH_VERTEX_LIST"
         #define VERTEX "*MESH_VERTEX"
         #define FACE_LIST "*MESH_FACE_LIST"
         #define FACE "*MESH_FACE"
         #define NORMALS "*MESH_NORMALS"
         #define FACE_NORMAL "*MESH_FACENORMAL"
         #define NVERTEX "*MESH_VERTEXNORMAL"
         #define TVERTEX "*MESH_TVERT"
         #define TFACE "*MESH_TFACE"
         #define TEXTURE "*BITMAP"
         #define TEXTURE_ID "*MATERIAL_REF"
  • 오목/진훈,원명 . . . . 204 matches
         // OmokView.h : interface of the COmokView class
         #if !defined(AFX_OMOKVIEW_H__5E50035A_B51D_11D7_8B86_00105A0D3B05__INCLUDED_)
         #define AFX_OMOKVIEW_H__5E50035A_B51D_11D7_8B86_00105A0D3B05__INCLUDED_
          virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
          virtual void OnInitialUpdate();
          virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
          virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
          virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
          afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
          int movecnt;
          int Count;
          int turn;
          int putX;
          int putY;
          int board[9][9];
         #ifndef _DEBUG // debug version in OmokView.cpp
         inline COmokDoc* COmokView::GetDocument()
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         #endif // !defined(AFX_OMOKVIEW_H__5E50035A_B51D_11D7_8B86_00105A0D3B05__INCLUDED_)
  • AcceleratedC++/Chapter13 . . . . 202 matches
         = Chapter 13 Using inheritance and dynamic binding =
         == 13.1 Inheritance ==
         '''상속(inheritance)'''
          std::string name() const;
          std::string n;
          double midterm, final;
         class Grad:public Core { // 구현(implementation)의 일부가 아닌 인터페이스(interface)의 일부로서 상속받는다는 것을 나타냄.
         Grad 클래스는 Core로 부터 파생되었다(Derived from), 상속받았다(inherits from), 혹은 Core는 Grad의 base class 이다 라는 표현을 사용한다.
          std::string name() const;
          double midterm, final;
          std::string n;
         string Core::name() const { return n; }
          return ::grade(midterm. final, homework);
         istream& Core::read_common(istream& in) {
          in>>n>>midterm>>final;
          return in;
         istream& Core::read(istream& in) {
          read_common(in);
          read_hw(in, homework);
          return in;
  • 몸짱프로젝트/CrossReference . . . . 197 matches
         import string
         ## def __init__(self, aRoot):
         ## def find(self, aRoot, aWord):
         ## elif string.lower(aRoot.getWord()) > aWord and aRoot.left != None:
         ## return self.find(aRoot.left, aWord)
         ## elif string.lower(aRoot.getWord()) < aWord and aRoot.right != None:
         ## return self.find(aRoot.right, aWord)
          elif string.lower(aRoot.getWord()) > aWord:
          elif string.lower(aRoot.getWord()) < aWord:
          def setNode(self, aRoot, aWord, aLine = '1'):
          node.increaseCount()
          node.addLines(aLine)
          '''Twas brilling and the slithy toves did gtre and gimble in the wabe'''
          for l in wordList:
          print 'Word\t\tCount\t\tLines'
          self.inorder(root)
          def inorder(self, aRoot):
         ## print 'start'
         ## print 'left'
          self.inorder(aRoot.left)
  • WinampPluginProgramming/DSP . . . . 193 matches
         winamp SDK 를 받으면 sample 로 있는 dspecho 에 대한 분석.
         // Winamp test dsp library 0.9 for Winamp 2
         // Copyright (C) 1997, Justin Frankel/Nullsoft
         // Feel free to base any plugins on this "framework"...
         #include <windows.h>
         #include <commctrl.h>
         #include "dsp.h"
         #include "resource.h"
         // avoid stupid CRT silliness
         BOOL WINAPI _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
         int g_pitch=100;
         int delta = 1;
         // pitch control window
         // auxilary pitch buffer (for resampling from)
         int pitch_buffer_len=0;
         int quit_pitch=0;
         winampDSPModule *getModule(int which);
         void config(struct winampDSPModule *this_mod);
         int init(struct winampDSPModule *this_mod);
         void quit(struct winampDSPModule *this_mod);
  • Robbery/조현태 . . . . 181 matches
          경우의 수가 여러가지 나오는 경우를 어떻게 처리할까 고민했는데.. 못찾은 걸로 할까? 아니면 답으로 간주해서 출력할까? 하다가, 이 경우는 못찾은 걸로 처리하였다. ( "Nothing known." 으로 출력된다. )
         #include <iostream>
         #include <Windows.h>
         #include <vector>
         #include <algorithm>
         #include <atltypes.h>
         using namespace std;
         #define CAN_MOVE_POINT 0
         #define DONT_MOVE_POINT 1
         vector< vector< vector<int> > > g_cityMap;
         vector< vector<POINT> > g_canMovePoints;
         vector<int> g_saveMessageTime;
         vector< vector<POINT> > g_maxPoints;
         void InitCityMap(int cityWidth, int cityHeight, int keepTime)
          g_maxPoints.clear();
          g_canMovePoints.clear();
          g_canMovePoints.resize(keepTime);
          for (register int i = 0; i < (int)g_cityMap.size(); ++i)
          for(register int j = 0; j < (int)g_cityMap[i].size(); ++j)
         void SetMessagePoints(int receiveTime, int left, int top, int right, int bottom)
  • 새싹교실/2012/AClass/4회차 . . . . 181 matches
          11.이번시간에 배웠던 내용을 바탕으로, int* a; int b; int **c;로 선언했을때 &c,c,*c,&a,a에 관해서 각각 설명하고, 어떤 것이 어떤 것과 일치하는 것인지를 이해할 수 있도록 쉬운말로 정리해보세요.
          int* a;
         int b=5;
         int** c;
          printf("%d %d",*c,**c);
         -해설 : 우선 int형 자료형을 가진 데이터의 주소를 가리키는 포인터로 a지정, b의 값에 5를 지정, 포인터의 주소를 가리키는 c를 지정하였다. a의 주소를 이중 포인터 c에 주었다. b의 주소는 포인터 a에 할당하였다. 그리고 이중포인터c에 값을 9로 주었다. 이것은 원래의 a의 주소값을 갖고 있던 c에 9를 대체해준 것이다. 따라서 프린트 *c,**c를 하면 a의 주소와 9가 출력이 된다.
         - c언어에서는 char,int,float 와 같은 많은 수의 기본 데이터 형과 배열, 포인터, 구조체 등의 유도된 데이터형으로부터 새로운 데이터형을 만들 수 있는데, 사용자 측면에서 새로운 데이터 형을 정의 할 수 있도록 typedef선언을 제공한다. typedef은 #define과 달리 이미 존재하는 c언어의 데이터 형만을 취하여 정의하고 typedef은 프리프로세서에 의해 처리되는 것이 아니라 c컴파일러에 의해 처리된다. 또한 #define보다 다양한 형태의 치환이 가능하다.
         #include <stdio.h>
         void main()
          printf("name=%s \n",name);
          printf("color=%s \n",color);
          구조체 내부에 char 배열을 사용해서 이름을 넣어도 좋고, 학번을 int형으로 넣어도 좋다.
         #include<stdio.h>
         int age;
         int main()
         int i;
         printf("age : %d\n name : %s \n",stu[i].age,stu[i].name);
         {{{#include <stdio.h>
         int main()
          int a[6][6];
  • Garbage collector for C and C++ . . . . 175 matches
          * 유닉스나 리눅스에서는 "./configure --prefix=<dir>; make; make check; make install" 으로 인스톨 할수 있다.
          * GNU-win32 에서는 기본으로 있는 Makefile 을 사용하면된다.
          * win32 쓰레드를 지원하려면 NT_THREADS_MAKEFILE 을 사용한다. (gc.mak 도 같은 파일 이다.)
          * 예) nmake /F ".gc.mak" CFG="gctest - Win32 Release"
          * WinXP, MinGW, Msys
          * -DGC_OPERATOR_NEW_ARRAY -DJAVA_FINALIZATION 을 CFLAGS 에 추가.
          * Windows NT 나 Windows 2000 에서 문제가 발생한다면 -DUSE_GLOBAL_ALLOC 나 -DUSE_MUNMAP 옵션을 사용하여 컴파일 한다.
         # -DSILENT disables statistics printing, and improves performance.
         # -DFIND_LEAK causes GC_find_leak to be initially set.
         # This causes the collector to assume that all inaccessible
         # Finalization and the test program are not usable in this mode.
         # (Clients should also define GC_SOLARIS_THREADS and then include
         # gc.h before performing thr_ or dl* or GC_ operations.)
         # Must also define -D_REENTRANT.
         # (Internally this define GC_SOLARIS_THREADS as well.)
         # -DGC_LINUX_THREADS enables support for Xavier Leroy's Linux threads.
         # see README.linux. -D_REENTRANT may also be required.
         # Appeared to run into some underlying thread problems.
         # -DALL_INTERIOR_POINTERS allows all pointers to the interior
         # Alternatively, GC_all_interior_pointers can be set at process
  • MineFinder . . . . 173 matches
          * 이름 : Mine Finder
          * 시스템 : 듀론 1G 256RAM WIN 2000
          * '눈' 해당 부분 - 지뢰찾기 프로그램으로부터 비트맵을 얻어 데이터로 변환하는 루틴 관련부. 현재 bitmap 1:1 matching 부분이 가장 부하가 많이 걸리는 부분으로 확인됨에 따라, 가장 개선해야 할 부분.
          * 추후 DP 로 확장된다면 StrategyPattern 과 StatePattern 등이 이용될 것 같지만. 이는 추후 ["Refactoring"] 해 나가면서 생각해볼 사항. 프로그램이 좀 더 커지고 ["Refactoring"] 이 이루어진다면 DLL 부분으로 빠져나올 수 있을듯. ('빠져나와야 할 상황이 생길듯' 이 더 정확하지만. -_-a)
          * Main Design, Algorithm 1차 완성. 어느정도 Refactoring의 추구.
          * Begineer mode 최고기록 1초, 평균 4-7초.
         [해성] 오오.. Artificial Intelligence.. -_- 근데 저 스펠링이 맞나..[[BR]]
         == Opening ==
          * 기본적으로는 Begineer Mode 만을 지원한다.
          * CppUnit - 이번 플밍때 윈도우 메세지 관련 처리에 대해서는 코드를 작성못했다. (이 부분에 대해서는 전통적인 Manual Test방법을 쓸 수 밖에. GUI Testing 관련 글을 더 읽어봐야 겠다. 아직 더 지식이 필요하다.) 단, 나중에 비트맵 분석부분 & Refactoring 시에 TFP 를 할 수 있게 되었다.
         지뢰찾기 프로그램의 윈도우클래스 이름이 '지뢰 찾기' 였다. 윈도우 OS 의 특징상 해당 윈도우 핸들간 메세지의 발생에 따라 해당 윈도우프로시저에서 처리가 된다. 해당 윈도우 핸들은 윈도우 클래스 이름을 아는 이상 FindWindow 함수를 이용해서 찾으면 될 것이다.
         beginner 에 해당하는 메뉴클릭시 발생하는 메세지는 WM_COMMAND 이고, ID는 wParam 으로 521이 날라간다. 즉, 해당 메뉴의 ID가 521 인 것이다. (우리는 컨트롤 아이디를 쓰지만 이는 resource.h 에서 알 수 있듯 전부 #define 매크로 정의이다.) 각각 찾아본 결과, 521,522,523 이였다.
          * [http://zeropage.org/~reset/zb/download.php?id=KDP_board_image&page=1&page_num=20&category=&sn=&ss=on&sc=on&keyword=&prev_no=&select_arrange=headnum&desc=&no=57&filenum=1 1차일부분코드] - 손과 눈에 해당하는 부분 코드를 위한 간단한 예제코드들 모음. 그리고 지뢰찾기 프로그램을 제어하는 부분들에 대해 Delegation 시도. (CMinerControler 클래스는 처음 '막 짠' 코드로부터 지뢰찾기 제어부분 함수들을 클래스화한것임)
         == User Story & Engineering Task ==
          * 기본적으로는 Begineer Mode 만을 지원한다.
          * 유의 : 이때는 Windows ME, Windows 2000 이상에서만 실행가능하다. (지뢰찾기 비트맵이 98과 다르다)
         || CMinerBitmapAnalyzer || 비트맵을 분석, 데이터화한다. ||
         || CMinerController || 지뢰찾기 프로그램에 대한 화면 캡쳐, 모드변환, 버튼 클릭 등의 제어를 한다 ||
         || CMineSweeper || 실질적인 두뇌에 해당되는 부분. CMinerController 와 CMinerBitampAnalyzer 를 멤버로 가지며, 이를 이용하여 게임상황분석, 지뢰찾기관련 판단 등을 한다 ||
         일종의 애니메이션을 하는 캐릭터와 같다. 타이머가 Key Frame 에 대한 이벤트를 주기적으로 걸어주고, 해당 Key Frame 에는 현재 상태에 대한 판단을 한뒤 동작을 한다. 여기서는 1초마다 MineSweeper 의 동작을 수행하게 된다.
  • ErdosNumbers/조현태 . . . . 172 matches
          === main.cpp ===
         #include <iostream>
         #include "class.h"
         using namespace std;
         void main()
          int simulation;
          cin >> simulation;
          int number_books, number_writers;
          cin >> number_books >> number_writers;
          for (int i=0; i<number_books; ++i)
          fflush(stdin);
          cin.getline(temp,256);
          for (int i=0; i<number_writers; ++i)
          fflush(stdin);
          cin.getline(temp,256);
          int score=datas->get_score(temp);
          cout << temp << " infinity\n";
         #define NULL 0
          int score;
          int tuched;
  • AcceleratedC++/Chapter9 . . . . 168 matches
         = Chapter 9 Defining new types =
         || 기본 타입 || char, int, double 등 기본언어의 일부 ||
         || 클래스 타입 || string, vector, istream 등 기본언어를 가지고 구현된 타입 ||
         == 9.1 Student_info revisited ==
         4.2.1절 Student_info 구조체를 다루는 함수를 작성하고, 이를 한개의 헤더파일로 통합을 하는 것은 일관된 방법을 제공하지 않기 때문에 문제가 발생한다.
         struct Student_info {
          std::string name;
          double midterm, final;
         프로그래머는 구조체를 다루기 위해서 구조체의 각 멤버를 다루는 함수를 이용해야한다. (Student_info 를 인자로 갖는 함수는 없기 때문에)
         '''왜 using-선언문을 사용하지 않는가?'''
         string, vector 와 같은 것들은 Student_info의 내부 구현시에 필요한 사항이기 때문에 Student_info를 사용하는 프로그램의 또다른 프로그래머에게까지 vector, string을 std::에 존재하는 것으로 쓰기를 강요하는 것은 옳지않다.
          '''상기의 구조체안에 Student_info 를 다룰 수 있는 멤버함수를 추가한 것'''
         struct Student_info {
          std::string name;
          double midterm, final;
          * s:Student_info 라면 멤버함수를 호출하기 위해서는 s.read(cin), s.grade() 와 같이 함수를 사용하면서 그 함수가 속해있는 객체를 지정해야함. 암묵적으로 특정객체가 그 함수의 인자로 전달되어 그 객체의 데이터로 접근이 가능하게 된다.
         istream & Student_info::read(istream& in)
          in>>name>>midterm>>final;
          read_hw(in, homework);
          return in;
  • InvestMulti - 09.22 . . . . 168 matches
         nations={'KOREA':0 ,'JAPAN':700 , 'CHINA':300, 'INDIA':100}
         items={'INT':400 , 'DOUBLE':800}
          print '*'*25
          print '1. Current Nation states '
          print '2. My business '
          print '3. Move to another Nation '
          print '4. Invest to this Nation '
          print '5. View Ranking '
          print '6. Earn Money '
          print '*'*25
          print '*'*10
          print '1. JAPAN '
          print '2. CHINA '
          print '3. INDIA '
          print '*'*10
          select = input('Select Menu -->')
          user[t2] = 'CHINA'
          user[t2] = 'INDIA'
         def Invest():
          print 'Current Nation is : ',user[t2]
  • MoreEffectiveC++/Efficiency . . . . 166 matches
         '''80-20 규칙''' 이란? 프로그램의 80%의 리소스가 20%의 코드에서 쓰여진다.:실행 시간의 80%가 대략 20%의 코드를 소모한다;80%의 메모리는 어떤 20%의 코드에서 쓴다.;80%의 disk 접근은 20%의 코드에서 이루어진다.:80%의 소프트웨어 유지의 노력은(maintenance effort)는 20%의 코드에 쏟아 부어진다.[[BR]]
         80-20 규칙은 수많은 기계에서, 운영체제(Operating System)에서, 그리고 어플리케이션에서 적용된다. 80-20 규칙은 단지 재미있는 표현보다 더 많은 의미가 있다.;그것은 광범위하고, 실질적인 개념이 필요한 시스템의 성능(능률)에 개선 대한 기준점을 제시한다.
         이런 결과들을 막는데 최선책은 당신의 소프트웨어에 가능한한 많은 데이터 들에게 프로파일을 시도하는것이다. 게다가 당신은 각 데이터들이 소프트웨어가 그것의 클라이언트들(혹은 최소한 가장 중요한 클라인트들에게라도)에게 사용방식을 잘 보여주도록 확신할수 있어야만 한다. 잘표현되는 데이터들은 얻기가 용이하다 왜냐하면 프로파일링 중에는 당신이 그들의 데이터를 사용할수 있기때문에 많은 클라이언트들이 좋기 때문이다. (뭔소리야. --;) 당신은 당신의 소프트웨어를 그들과 만나면서 조정(tuning)을 할것이고, 그것이 오직 당신이나 클라이언트들 양쪽에게 좋은 방법이다.
         == Item 17:Consider using lazy evaluation ==
         능률(efficiency)의 관점에서 최고의 계산은 결코 아무것도 수행하지 않는것이다. 말이 좀 이상한가? 생각해 봐라 당신이 어떤 일도 필요없을때 이건 맞는거다. 왜 당신은 당신의 프로그램안에서 가장 처음에 그것을 수행하려 하는가? 그리고 만약 당신이 어떤 일을 수행하기를 원할때 당신은 그 코드의 실행(excuting)을 피할수는 없을까?
          === Reference Counting (참조 세기) ===
          class String { ... }; // 문자열 클래스 (이건 밑의 언급과 같이 표준 스트링 타입과
          String s1 = "Hello";
          String s2 = s1; // String 복사 생성자를 부른다.
         String 복사 생성자의 적용시, s2는 s1에 의하여 초기화 되어서 s1과 s2는 각각 "Hello"를 가지게된다. 그런 복사 생성자는 많은 비용 소모에 관계되어 있는데, 왜냐하면, s1의 값을 s1로 복사하면서 보통 heap 메모리 할당을 위해 new operator(Item 8참고)를 s1의 데이터를 s2로 복사하기 위해 strcpy를 호출하는 과정이 수행되기 때문이다. 이것은 ''''eager evaluation''''(구지 해석하면 '''즉시 연산''' 정도 일것이다.) 개념의 적용이다.:s1의 복사를 수행 하는 것과, s2에 그 데이터를 집어넣는 과정, 이유는 String의 복사 생성자가 호출되기 때문이다. 하지만 여기에는 s2가 쓰여진적이 없이 새로 생성되는 것이기 때문에 실제로 s2에 관해서 저런 일련의 복사와, 이동의 연산의 필요성이 없다.
         이와 같은 구문의 사용으로, String의 convertToUpperCase 함수를 적용하면, s2의 값의 복사본을 만들어야 하고, 수정되기전에 s2에 그걸 s2의 종속되는 데이터로 만들어야 한다. convertToUpperCase 내부에 우리는 lazy 상태가 더이상 지속되지 않도록 하는 코드를 넣어야 한다.:s2가 마음대로 다룰수 있도록 s2의 공유된 값의 사본을 복사해야 한다. 반면에 만약 s2가 결코 수정되지 않을 것이라면, 이러한 s2만의 값을 복사하는 일련의 과정이 필요 없을 것이다. 그리고 s2가 존재하는 만큼 값도 계속 존재해야 한다. 만약 더 좋게, s2가 앞으로 결코 변하지 않는다면, 우리는 결코 그것의 값에 대한 노력을 할필요가 없을 것이다.
          === Distinguishing Read from Writes ( 읽기와 쓰기의 구분 ) ===
         reference-counting 을 토대로한 문자열의 구현 예제를 조금만 생각해 보면 곧 lazy evaluation의 방법중 우리를 돕는 두번째의 것을 만나게 된다. 다음 코드를 생각해 보자
          String s = "Homer's Iliad"; // 다음 문자열이 reference-counting으로
         첫번째 operator[]는 문자열을 읽는 부분이다,하지만 두번째 operator[]는 쓰기를 수행하는 기능을 호출하는 부분이다. 여기에서 '''읽기와 쓰기를 구분'''할수 있어야 한다.(distinguish the read all from the write) 왜냐하면 읽기는 refernce-counting 구현 문자열로서 자원(실행시간 역시) 지불 비용이 낮고, 아마 저렇게 스트링의 쓰기는 새로운 복사본을 만들기 위해서 쓰기에 앞서 문자열 값을 조각내어야 하는 작업이 필요할 것이다.
          === Lazy Fetching ( 늦은 가져오기) ===
          cosnt string& field1() const; // 필드상의 값1
          int field2() const; // 필드상의 값2
          const string& field4() const;
          const string& field5() const;
  • [Lovely]boy^_^/EnglishGrammer/PresentAndPast . . . . 164 matches
         == Unit 1. Present Continuous (I am doing) 현재 진행형 ==
          A. Am/is/are + ~ing : Present Continuous
          ex) Ann is in her car. She is on her way to work. she is driving to work.
          This means) She is driving now, at the time of speaking. The action is not finished.
          B. I am doing something = I'm in the middle of doing something; I've started doing it and I haven't finished yet.
          Often the action is happening at the time of speaking.
          ex) Let's go out now. It isn't raining anymore.
          But the action is not necessarily happening at the time of speaking.
          ex) I'm reading an interesting book at the moment. I'll lend it to you when I've finished it.
          This means) Tom is not reading the book at the time of speaking.
          He means that he has started it but has not finished it yet. He is in the middle of reading it.
          C. We use the present continuous when we talk about things happening in a period around now. (today / this week / tonight, etc..)
          ex) "Is Sarah working this week?"
          We use the present contunuous when we talk about changes happening now or around now.
          ex) The population of the world is rising very fast.
          A. ex) Alex is a bus driver, but now he is in bed asleep.
          This Means) He is not driving a bus. but He drives a bus.
          B. We use the simple present to talk about things in general. We use it to say that something happens all the time
          or repeateldy or that something is true in general. It is not important whether the action is happening at the time of speaking
          In the following examples do is also the main verb( do가 메인 동사로 쓰일때도 있다. )
  • ClassifyByAnagram/sun . . . . 161 matches
          * 실행: java anagram.FindAnagram < 입력파일> 출력파일
          * genKey() 메소드의 성능 개선. qsort2([http://www.cs.bell-labs.com/cm/cs/pearls/sortanim.html ProgrammingPerals 참고]) 이용.
          * 실행: java anagram.FindAnagram < 입력파일> 출력파일
          * 실행: java anagram.FindAnagram 출력파일 < 입력파일
          * String 객체의 생성을 줄임.(대략 300ms 정도 줄어듬) : 마이크로 튜닝으로 넘어갈수록 노력 대비 결과가 크지 않음.
          * Class, method 이름 refactoring
          * Profiling
          InputStream in = null;
          for( int i=0; i<10000; i++ ) {
          anagram.add( "aahing" );
          repaint();
          public void paint( Graphics g )
          g.drawString( "JVM info:", 10, 20 );
          g.drawString( "....vendor : " + System.getProperty( "java.vm.vendor"), 10, 35 );
          g.drawString( "....version: " + System.getProperty( "java.vm.version"), 10, 50 );
          g.drawString( "....name: " + System.getProperty( "java.vm.name"), 10, 65 );
          g.drawString( "Estimated power: " + String.valueOf(elapsed), 10, 90 );
          public void add( String str )
          private Object genKey( String str )
          private void swap( int i, int j )
  • CSP . . . . 160 matches
         import threading, thread
         import netstring, socket
          def __init__(self):
          def __init__(self,processes):
          Process.__init__(self)
          for each in self.ps:
          threads.append(threading.Thread(target=each.run))
          for each in threads:
          for each in threads:
          each.join()
          def __init__(self,processes):
          Process.__init__(self)
          for each in self.ps:
          def __init__(self,buffer=1):
          def __init__(self,socket):
          v=loads(netstring.readns(self.s)) #block
          netstring.writens(self.s,"ACK")
          netstring.writens(self.s,dumps(v))
          ack=netstring.readns(self.s) #block
          def __init__(self,addr,outstream):
  • 새싹교실/2012/startLine . . . . 158 matches
         = 새싹교실/startLine =
          * 입, 출력 함수(printf, scanf)와 테스트 함수(assert).
         int main()
          int num1 , num2 = 1, num3, num4 = 2;
          printf("별을 위해서 숫자를 입력해주세요\n");
          printf("*");
          printf("\n");
          * 서민관 - 제어문의 사용에 대한 수업(if문법, switch.. for...) 몇몇 제어문에서 주의해야 할 점들(switch에서의 break, 반복문의 종료조건등..) 그리고 중간중간에 쉬면서 환희가 약간 관심을 보인 부분들에 대해서 설명(윈도우 프로그래밍, python, 다른 c함수들) 저번에 생각보다 진행이 매끄럽지 않아서 이번에도 진행에 대한 걱정을 했는데 1:1이라 그런지 비교적 진행이 편했다. 그리고 환희가 생각보다 다양한 부분에 관심을 가지고 질문을 하는 것 같아서 보기 좋았다. 새내기들이 C를 배우기가 꽤 힘들지 않을까 했는데 의외로 if문이나 for문에서 문법의 이해가 빠른 것 같아서 좀 놀랐다. printf, scanf나 기타 헷갈리기 쉬운 c의 기본문법을 잘 알고 있어서 간단한 실습을 하기에 편했다.
          * 간단한 이전 시간(if문, 반복문)의 복습과 배열의 사용에 대해 알아보았다. 그리고 이번 시간에 주로 한 내용은 함수가 왜 필요한지와 함수를 만드는 법, 함수를 사용하는 법 등이었다. 개인적으로는 함수를 꽤 중요하게 생각하는 만큼 함수의 필요성을 잘 캐치해 줬으면 좋겠다. 그리고 새삼 드는 생각이지만 환희의 질문이 중요한 부분을 잘 찌른다는 생각이 든다. 별다른 언급도 없었는데 함수 내에서 변수의 scope나 함수 내부의 이름 겹침 등에 대한 질문이 있었다. 그리고 중간에 함수 사용의 예제로 printf문을 약간 이상하게 쓴 코드를 보여줬는데 의외로 감을 잘 잡은 것 같았다. 현재 진행상황으로는 다음에 포인터를 다뤄야 할텐데 함수를 쓰는 것을 조금 더 연습을 시킬지 바로 포인터를 나갈지 고민이다. 당장 포인터를 했다가 어려워하지 않을까 모르겠다. - [서민관]
          * 포인터의 정의, 포인터 변수의 정의, malloc 함수, fflush() 함수, getchar() 함수, 메모리의 heap과 stack 영역, (int)a와 *(*(int a))의 차이, 포인터의 OS별 크기(DWORD 크기를 따라간다. 32bit/64bit),
         void reverseArr(int **arr, int arrLen);
         int arr[10];
          Pointer와 배열 = 둘은 결국 같다.
          * 포인터 2회차. 포인터 변수에 대해서 잠깐 리뷰를 하고 그 후에 구조체와 typedef에 대해서 다루었다. 그리고 구조체를 인자로 받는 함수에 대해서도 다루었다. 그 후에 typedef int* SOMETHING이라는 표현을 써서 이중 포인터에 대해서 이야기를 해 봤는데, 이쪽은 역시 약간 난이도가 있는 것 같다. 특히 int **twoDim에서 twoDim[0]에 다시 malloc을 해 줘야 한다는 부분이 어려운 것 같다. 차근차근 해보자. 개인적으로 성훈이가 가르친 부분들을 잘 따라오려고 한다는 것을 (*s).age에서 느꼈다. ->연산자가 아니라 *연산자 후에 .연산자로 내용물을 참조한다는 것은 나름대로 메모리의 구조를 생각하려고 애를 썼다는 얘기다. 좀 고마웠다. - [서민관]
          * 함수 만들기 실습(isPrime, isPalindromePrime 등).
         int reverse(int number);
          * winapi.co.kr
          * Callback(winapi 이야기하면서) + winapi.co.kr
         void printCalender(int nameOfDay, int year, int month);
         void printDate(int nameOfDay, int endDayOfMonth);
  • 문제풀이/1회 . . . . 153 matches
         print 'problem 1-1'
         print 'type 3 values'
         v1 = input()
         v2 = input()
         v3 = input()
         print 'max=',max(v1, v2, v3)
         print 'min=',min(v1, v2, v3)
         print 'problem 1-2'
         print 'type 10 values '
         vv1 = input()
         vv2 = input()
         vv3 = input()
         vv4 = input()
         vv5 = input()
         vv6 = input()
         vv7 = input()
         vv8 = input()
         vv9 = input()
         vv10 = input()
         print 'max=',max(vv1,vv2,vv3,vv4,vv5,vv6,vv7,vv8,vv9,vv10)
  • MobileJavaStudy/SnakeBite/FinalSource . . . . 152 matches
          public void paint(Graphics g) {
          e.printStackTrace();
          public int x;
          public int y;
          public SnakeCell(int x, int y) {
          public static final int LEFT = 1;
          public static final int RIGHT = 2;
          public static final int UP = 3;
          public static final int DOWN = 4;
          private final int xRange;
          private final int yRange;
          private int headIndex;
          private int direction;
          private boolean growing;
          public Snake(int length, int xRange, int yRange) {
          for(int i = length ; i >= 1 ; i--)
          headIndex = 0;
          growing = false;
          public int length() {
          public SnakeCell getSnakeCell(int index) {
  • UnixSocketProgrammingAndWindowsImplementation . . . . 151 matches
         페이지의 컨텐츠를 보아하니, 따로 페이지를 뽑아내도 될것 같아 [문서구조조정] 하였습니다. 원래 페이지 이름은 '''데블스캠프2005/Socket Programming in Unix/Windows Implementation'''였습니다. - [임인택]
         주제 : Socket Programming의 기초적인 부분을 알아본다.
         #include <sys/types.h>
         #include <sys/socket.h>
         int socket(int domain, int type, int protocol);
         === domain: ===
         PF_INET : 인터넷 프로토콜 체계 사용
         PF_INET6 IPv6 : 프로토콜 체계 사용
         PF대신 AF를 사용해도 무방. (ex. PF_INET -> AF_INET)
         main(){
         int sockfd;
          sockfd = socket(AF_INET, SOCK_STREAM, 0);
          fprintf(stderr, "socket 함수에서 에러"), exit(1);
         struct sockaddr_in {
         short sin_family; // 주소 체계를 나타낸다.
         u_short sin_port; // port 번호
         struct in_addr sin_addr; // ip 주소
         char sin_zero[8]; // 쓰지 않는 주소
          ※ 왜 sockaddr과 sockaddr_in의 structure가 같을까?
         === sin_family: // 주소체계 ===
  • 미로찾기/상욱&인수 . . . . 150 matches
         import java.awt.Point;
          public int boardMatrix[][];
          public static int WALL = 0;
          public static int PATH = 1;
          public static int END = 2;
          public static int BLOCK = 3;
          public MazeBoard(int boardMatrix[][]) {
          int x = boardMatrix[0].length;
          int y = boardMatrix.length;
          this.boardMatrix = new int[y+2][x+2];
          for(int i = 0 ; i < x ; ++i)
          for(int j = 0 ; j < y ; ++j)
          public boolean isEndPoint(Point point) {
          return getBoardSymbol(point) == END;
          public boolean isOpened(Point pt) {
          public int getBoardSymbol(Point pt) {
         import java.awt.Point;
          public static final int E = 0;
          public static final int S = 1;
          public static final int W = 2;
  • 새싹교실/2012/주먹밥 . . . . 149 matches
          * Linux에서 GCC를 사용한 컴파일 시범
          * 박도건 : 캡스톤설계실(208-216)에서 김준석 선배님과, 한원표, 용상훈 동기들과 같이 3월 21일 PM6시에 gcc, Linux, android example, wiki작성법 등을 배웠다. 나랑 비슷해보이는 친구가 있어서 같이 프로젝트 할 수 있을것 같다.
          * 이소라 때리기 게임을 Linux gedit를 사용해 코딩을 시켜봄.
          * printf(), scanf()어떻게 쓰는지 알죠?
          * int, char, float, long, double 변수는 무슨 표현을 위해 만들어졌는지 알려주었습니다. 정수, 문자, 실수. 알죠?
          * #define 선언문의 사용법에 대해 알려주었습니다. #define으로 매크로를 선언해놓으면 편하게 선언 단어를 만들음으로 쓸수있지용? 그 응용에 대해서는 다음에 기회가 되면 알려주겠습니다.
         {{{#!plain cpp
         #include<stdio.h>
         int main() {
         int a,b,c,d;
         printf("%d %d %d",a,b,c);
         #include <stdio.h>
         int main(void)
          int num;
          printf("Input integer.");
          printf("Leap");
          printf("Leap");
          printf("Normal");
         #include<stdio.h>
         int main()
  • RandomWalk2/재동 . . . . 148 matches
          def testStartPoint(self):
          self.assertEquals((0,0),self.reader.getStartPoint())
          self.board.initializeBoard()
          self.board.initializeBoard()
          for i in range(3):
          self.board.initializeBoard()
          file = open(os.path.join(TXT))
          self.data = file.readlines()
          rowLength = int(self.data[0].split()[0])
          colLength = int(self.data[0].split()[1])
          def getStartPoint(self):
          row = int(self.data[1].split()[0])
          col = int(self.data[1].split()[1])
          path.append(int(self.data[2][i]))
          def __init__(self):
          def initializeBoard(self):
          self.board = [[0 for i in range(self.col)] for j in range(self.row)]
          def printBoard(self):
          for row in range(self.row):
          for col in range(self.col):
  • 빵페이지/도형그리기 . . . . 144 matches
         #include <iostream.h>
         void main()
          int num;
          cin >> num;
          for (int i = 1; i < num + 1; i++)
          for (int j = 0; j < i; j++)
          for (int a = num + 1; a > i; a--)
          for (int k = 1; k < num + 1; k++)
          for (int l = num + 1; l > k; l--)
          for (int b = 0; b < k; b++)
          for (int m = 1; m < num + 1; m++)
          for (int n = num; n > m; n--)
          for (int o = 0; o < m; o++)
          for (int p = 1; p < num + 1; p++)
          for (int q = 1; q < p; q++)
          for (int r = num + 1; r > p; r--)
         #include <iostream.h>
         void main()
          int num;
          cin >> num;
  • 경시대회준비반/BigInteger . . . . 143 matches
         C++ 용 BigInteger 클래스로 거의 모든 연산을 지원한다. UVA 사이트의 구식(?) 컴파일러에도 문제없이 통과할 뿐 아니라, 성능또한 훌륭하다. 고정도 정수 연산을 하는 문제의 경우, 고정도 연산을 하는 라이브러리를 본인이 직접 짜거나, 이 클래스를 이용하면 된다. 몇 일동안 삽질한 결과 후자가 낫다는 판단이 선다. 되게 잘 짜여진 코드다. 시간 내서 분석해봐야 겠다.
         * BigInteger Class
         * provided that the above copyright notice appear in all copies and
         * in supporting documentation. Mahbub Murshed Suman makes no
         #include <iostream>
         #include <cstdlib>
         #include <cstdio>
         #include <cctype>
         #include <malloc.h>
         #include <cmath>
         #include <cstring>
         #include <ctime>
         #include <strstream>
         #include <string>
         #include <stdexcept>
         using namespace std;
          enum BigMathERROR { BigMathMEM = 1 , BigMathOVERFLOW , BigMathUNDERFLOW, BigMathINVALIDINTEGER, BigMathDIVIDEBYZERO,BigMathDomain};
          const char *BigIntErrDes[] = { "Allocation Failed", "Overflow","Underflow", "Invalid Integer", "Divide by Zero" ,"Domain Error"};
          const char BigIntPROGRAMNAME[] = { "BigInteger" };
          const int BigIntMajorVersion = 6;
  • 데블스캠프2012/넷째날/묻지마Csharp/Mission3/김수경 . . . . 138 matches
         using System;
         using System.Collections.Generic;
         using System.ComponentModel;
         using System.Data;
         using System.Drawing;
         using System.Linq;
         using System.Text;
         using System.Windows.Forms;
          InitializeComponent();
          public int hour;
          public int minute;
          public int second;
          public int milli;
          tickMinute();
          private void tickMinute()
          if (++minute == 60)
          minute = 0;
          hour.Text = string.Format("{0:D2}", time.hour);
          minute.Text = string.Format("{0:D2}", time.minute);
          second.Text = string.Format("{0:D2}", time.second);
  • Star/조현태 . . . . 136 matches
         <embed src="http://zerowiki.dnip.net/~undinekr/lunia_ost1.mp3">
         [DeadLink]
         #include <iostream>
         #include <map>
         #include <vector>
         #include <algorithm>
         using namespace std;
         #define FALSE 0
         #define TRUE 1
         struct SavePoint{
          int x;
          int y;
          int z;
          SavePoint(int inputX, int inputY, int inputZ)
          x = inputX;
          y = inputY;
          z = inputZ;
          bool operator == (const SavePoint& target) const
          bool operator < (const SavePoint& target) const
         map<SavePoint, int>points;
  • 새싹교실/2012/AClass . . . . 133 matches
          * 5주차(6/6) - C++ 기초, String + Linked list (쉬는 날도 진행)
          1. 컴파일(Compile), 빌드(Build), 링크(Linking)에 대해 책에서 찾아보고 써 주세요.
          1. #include, 전처리과정이 무엇인지 쓰고, include의 예를 들어주세요.
          1. #define이 무엇을 의미하는지 쓰고, 이것을 사용한 '간단한' 프로그램을 하나 작성해보세요.
          1. 혜림이누나, 상희누나 과제를 for문을 각각 3개, 4개만 써서 해보세요.(hint 2*n-1)
          2.#include란?
         #include <stdio.h>
          int main(){
          int a;
          printf("%d",a*a);
          printf("%d",2*a);
          #include <stdio.h>
          int main(void)
          int i;
          int j;
          int n;
          int k;
          printf(" ");
          printf("*");
          printf("\n");
  • CppStudy_2002_1/과제1/상협 . . . . 132 matches
         #include <iostream>
         using namespace std;
         void Print(char *in,int i=0);
         int main()
          Print(ex);
          Print(ex,0);
          Print(ex,10);
          Print(ex2,100);
         void Print(char *in,int i)
          static int count=0;
          cout<<in<<"\t"<<count<<"\n";
          int tempcount=count;
          cout<<in<<"\t"<<count<<"\n";
         //Programming8_2.cpp
         #include <iostream>
         using namespace std;
          int Calory;
         void StructFunction(CandyBar &in, char *brand="Millennium Munch",
          double weight=2.85,int calory=350);
         int main()
  • RSSAndAtomCompared . . . . 128 matches
         The RSS 2.0 specification is copyrighted by Harvard University and is frozen. No significant changes can be made and it is intended that future work be done under a different name; Atom is one example of such work.
         The Atom 1.0 specification (in the course of becoming an
         [http://www.ietf.org/html.charters/atompub-charter.html Atompub Working Group]
         within the [http://www.ietf.org/ IETF], as reviewed and approved by the IETF community and the
         [http://www.ietf.org/iesg.html Internet Engineering Steering Group]. The specification is structured in such a way that the IETF could conceivably issue further versions or revisions of this specification without breaking existing deployments, although there is no commitment, nor currently expressed interest, in doing so.
         See the Extensibility section below for how each can be extended without changing the specifications themselves.
         === Publishing Protocols ===
         [http://www.bblfish.net/blog/page7.html#2005/06/20/22-28-18-208 reports] of problems with interoperability and feature shortcomings.
         The Atompub working group is in the late stages of developing the
         [http://ietfreport.isoc.org/idref/draft-ietf-atompub-protocol/ Atom Publishing Protocol], which is closely integrated with the Atom feed format and is based on the experience with the existing protocols.
         RSS 2.0 requires feed-level title, link, and description. RSS 2.0 does not require that any of the fields of individual items in a feed be present.
         Atom 1.0 requires that both feeds and entries include a title (which may be empty), a unique identifier, and a last-updated timestamp.
         RSS 2.0 may contain either plain text or escaped HTML, with no way to indicate which of the two is provided. Escaped HTML is ugly (for example, the string AT&T would be expressed as “AT&amp;T”) and has been a source of difficulty for implementors. RSS 2.0 cannot contain actual well-formed XML markup, which reduces the re-usability of content.
         Atom has a carefully-designed payload container. Content may be explicitly labeled as any one of:
          * plain text, with no markup (the default)
          * some other XML vocabulary (There is no guarantee that the recipient will be able to do anything useful with such content)
          * base64-encoded binary content (again, no guarantee)
          * a pointer to Web content not included in the feed
         RSS 2.0 has a “description” element which is commonly used to contain either the full text of an entry or just a synopsis (sometimes in the same feed), and which sometimes is absent. There is no built-in way to signal whether the contents are complete.
         Atom has separate “summary” and “content” elements. The summary is encouraged for accessibility reasons if the content is non-textual (e.g. audio) or non-local (i.e. identified by pointer).
  • VendingMachine/세연/재동 . . . . 128 matches
         #include <iostream>
         using namespace std;
         struct drink
          int price, amount;
         class VendingMachine
          int _money;
          int _selectMoney;
          int _insertAmount;
          int _maxNum;
          drink s_drink[5];
          VendingMachine();
          void insertMoney();
          void buyDrink();
          void insertDrink();
          void showMainMenu();
          void showDrinkMenu();
          bool isMoney(int arg);
          bool isBuyableDrink(int arg);
          bool isSelectableDrink(int arg);
         VendingMachine::VendingMachine()
  • ACM_ICPC/PrepareAsiaRegionalContest . . . . 125 matches
          === at On-line Preliminary Contest(Oct. 2, 2004) ===
         ==== Solution of Problem C. Mine Sweeper ====
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin;
          fin.open("C.in");
          int nTest;
          fin >> nTest;
          int nMine;
          for ( int t = 0 ; t < nTest ; t++ ){
          fin >> nMine;
          const int MAX = 1001;
          static int workspace[MAX][MAX];
          for ( int i = 0 ; i < MAX ; i++ )
          for ( int j = 0 ; j < MAX ; j++ )
          int x, y;
          for ( int m = 0 ; m < nMine ; m++ ){
          fin >> x >> y;
  • MoreEffectiveC++/Exception . . . . 125 matches
         여기에서 재미있는 기법을 이야기 해본다. 차차 소개될 smart pointer와 더불어 Standard C++ 라이브러리에 포함되어 있는 auto_ptr template 클래스를 이용한 해결책인데 auto_prt은 이렇게 생겼다.
          void displayIntoInfo(const Information& info)
          WINDOW_HANDLE w(createWindow());
          display info in window corresponding to w;
          destroyWindow(w);
         일반적으로 C의 개념으로 짜여진 프로그램들은 createWindow and destroyWindow와 같이 관리한다. 그렇지만 이것 역시 destroyWindow(w)에 도달전에 예외 발생시 자원이 세는 경우가 생긴다. 그렇다면 다음과 같이 바꾸어서 해본다.
          WindowHandle(WINDOW_HANDLE handle) : w(handle) {}
          ~WindowHandle() {destroyWindow(w); }
          operator WINDOW_HANDLE() {return w;}
          WINDOW_HANDLE w;
          WindowHandle(const WindowHandle&);
          WindowHandle& operator=(const WindowHandle);
          void displayIntoInfo(const Information& info)
          WINDOW_HANDLE w(createWindow());
          display info in window corresponding to w;
         == Item 10: Prevent resource leaks in constructors. ==
          Image(const string& imageDataFileName);
          AudioClip(const string& audioDataFileName);
          BookEntry(const string& name,
          const string& address = "",
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/김동준 . . . . 124 matches
         Describe 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/김동준 here
         Train.java
         package org.zeropage.machinelearn;
         class Trainer {
          private Map<String,Integer> sectionWord;
          private int sectionWordNum;
          private int sectionArticleNum;
          private boolean isSkipData(String inputStr) {
          if(inputStr.length() == 1 || inputStr.equals("http") || inputStr.equals("blog") || inputStr.equals("com") ||
          inputStr.equals("naver") || inputStr.equals("empas") || inputStr.equals("daum") || inputStr.equals("yahoo") ||
          inputStr.equals("tistory") || inputStr.equals("co") || inputStr.equals("kr") || inputStr.equals("www") || inputStr.equals("ohmynews") ||
          inputStr.equals("//") || inputStr.equals("블로그")) {
          public Trainer(File f) {
          public void TrainData() {
          this.sectionWord = new HashMap<String,Integer>();
          while(sectionLearn.hasNextLine()) {
          String[] a = sectionLearn.nextLine().split("\\s+");
          for(String wordTmp:a) {
          if(isSkipData(wordTmp)) {continue;} // 1글자Data, 사이트, 블로그, 페이지 주소의 경우 연관성및 신뢰성이 떨어지므로 검색에서 제외
          e.printStackTrace();
  • 비행기게임/BasisSource . . . . 120 matches
          file = os.path.join('data',file)
          for file in files:
          def __init__(self):
          pygame.sprite.Sprite.__init__(self,self.containers)
          self.reloading = 0;
          self.timing = 0;
          def __init__(self, pos, kind, speedy=0) :
          pygame.sprite.Sprite.__init__(self, self.containers)
          self.image = self.images[kind]
          patientOfInducement = 50
          speedIncreaseRateOfY = 0.1
          def __init__(self, pos, playerPosY) :
          pygame.sprite.Sprite.__init__(self, self.containers)
          if self.rect.centery<(self.playerPosY-self.patientOfInducement):
          self.speedy+=self.speedIncreaseRateOfY
          elif self.rect.centery>(self.playerPosY+self.patientOfInducement):
          self.speedy-=self.speedIncreaseRateOfY
          def __init__(self):
          def setContainers(self,arg):
          self.containers = arg
  • DPSCChapter1 . . . . 119 matches
         == Introduction ==
         Welcome to ''The Design Patterns Smalltalk Companion'' , a companion volume to ''Design Patterns Elements of Reusable Object-Oriented Software'' by Erich Gamma, Richard Helm, Ralph Johnson, and Jogn Vlissides(Gamma, 1995). While the earlier book was not the first publication on design patterns, it has fostered a minor revolution in the software engineering world.Designers are now speaking in the language of design patterns, and we have seen a proliferation of workshops, publications, and World Wide Web sites concerning design patterns. Design patterns are now a dominant theme in object-oriented programming research and development, and a new design patterns community has emerged.
         ''The Design Patterns Smalltalk Companion'' 의 세계에 오신걸 환영합니다. 이 책은 ''Design Patterns Elements of Reusable Object-Oriented Software''(이하 DP) Erich Gamma, Richard Helm, Ralph Johnson, and Jogn Vlissides(Gamma, 1995). 의 편람(companion, 보기에 편리하도록 간명하게 만든 책) 입니다. 앞서 출간된 책(DP)이 디자인 패턴에 관련한 책에 최초의 책은 아니지만, DP는 소프트웨어 엔지니어링의 세계에 작은 혁명을 일으켰습니다. 이제 디자이너들은 디자인 패턴의 언어로 이야기 하며, 우리는 디자인 패턴과 관련한 수많은 workshop, 출판물, 그리고 웹사이트들이 폭팔적으로 늘어나는걸 보아왔습니다. 디자인 패턴은 객체지향 프로그래밍의 연구와 개발에 있어서 중요한 위치를 가지며, 그에 따라 새로운 디자인 패턴 커뮤니티들이 등장하고 있습니다.(emerge 를 come up or out into view 또는 come to light 정도로 해석하는게 맞지 않을까. ''이제 디자인 패턴은 객체지향 프로그래밍의 연구와 개발에 있어서 중요한 위치를 가지고 있으며, 디자인 패턴 커뮤니티들이 새로이 등장하고 있는 추세입니다.'' 그래도 좀 어색하군. -_-; -- 석천 바꿔봤는데 어때? -상민 -- DeleteMe)gogo..~ 나중에 정리시 현재 부연 붙은 글 삭제하던지, 따로 밑에 빼놓도록 합시다.
         ''Design Patterns'' describes 23 design patterns for applications implemented in an object-oriented programming language. Of course, these 23 patterns do not capture ''all'' the design knowledge an object-oriented designer will ever need. Nonetheless, the patterns from the "Gang of Four"(Gamma et al.) are a well-founded starting point. They are a design-level analog to the base class libraries found in Smalltalk development environments. They do not solve all problems but provide a foundation for learning environments. They do not solve all problems but provide a foundation for learning about design patterns in general and finding specific useful architectures that can be incorporated into the solutions for a wide variety of real-world design problems. They capture an expert level of design knowledge and provide the foundation required for building elegant, maintainable, extensible object-oriented programs.
         In the Smalltalk Companion, we do not add to this "base library" of patterns;rather, we present them for the Smalltalk designer and programmer, at times interpreting and expanding on the patterns where this special perspective demands it. Our goal is not to replace Design Patterns; you should read the Smalltalk Companion with Design Patterns, not instead of it. We have tried not to repeat information that is already well documented by the Gang of Four book. Instead, we refer to it requently;you should too.
         Learning an object-oriented language after programming in another paradigm, such as the traditional procedural style, is difficult. Learning to program and compose application in Smalltalk requires a complex set of new skills and new ways of thinking about problems(e.g Rosson & Carroll, 1990; Singley, & Alpert, 1991). Climbing the "Smalltalk Mountain" learning curve is cetainly nontrivial. Once you have reached that plateau where you feel comfortable building simple Smalltalk applications, there is still a significant distance to the expert peak.
         다른 이론적인 테두리안에서 프로그램(''전통적인 절차식 스타일'')을 한 후 객체 지향 언어를 배우는 것은 어렵다. Smalltalk 안에서 복합된 응용 프로그램 하는 것을 배우는 것은 복잡한 새로운 기술과 문제에 대한 새로운 사고 방식을 요구한다.(" e.g Rosson & Carroll, 1990; Singley, & Alpert, 1991") "Smalltalk" 라는 산을 오르는 것은 확실히 사소한 것이 아니다. 일단 당신이 간단한 Smalltalk 응용 프로그램을 만드는 데 자신이 있는 경지에 닿았다고 해도, 아직 전문가의 경지와는 분명한 차이가 있다.
         Smalltalk experts know many things that novices do not, at various abstraction levels and across a wide spectrum of programming and design knowledge and skills:
          * What is available in the form of classes, methods, and functionality in the existing base class libraries
          * How to use the specific tools of the Smalltalk interactive development environment to find and reuse existing functionality for new problems, as well as understanding programs from both static and runtime perspective
          * How to define and implement behavior in new classes and where these classes ought to reside in the existing class hierarchy
          * Recurring patterns of object configurations and interactions and the sorts of problems for which these cooperating objects provide (at least partial) solutions
         Smalltalk 전문가들은 여러가지 다양한 추상적 단계와 폭넓은 programming과 design에 대한 지식과 기술면에서 초심자들이 알지 못하는 많은 것을 알고 있다.
         This is by no means an exhaustive list, and even novices understand and use much of the knowledge. But some items, especially the last -- recurring patterns of software design, or design patterns -- are the province of design expert.
         A '''design pattern''' is a reusable implementation model or architecture that can be applied to solve a particular recurring class of problem. The pattern sometimes describes how methods in a single class or subhierarchy of classes work together; more often, it shows how multiple classes and their instances collaborate. It turns out that particular architectures reappear in different applications and systems to the extent that a generic pattern template emerges, one that experts reapply and customize to new application - and domain-specific problems. Hence, experts know how to apply design patterns to new problems to implement elegant and extensible solutions.
         In general, designers -- in numerous domains, not just software -- apply their experience with past problems and solution to new, similar problems. As Duego and Benson(1996) point out, expert designers apply what is known in cognitive psychology and artificial intelligence as '''case-based reasoning''', remembering past cases and applying what they learned there. This is the sort of reasoning that chess masters, doctors, lawyers, and architects empoly to solve new problems. Now, design patterns allow software designers to learn from and apply the experiences of other designers as well. As in other domains, a literature of proven patterns has emerged. As a result, we can "stand on the shoulders of giants" to get us closer to the expert peak. As John Vlissies (1997) asserts, design patterns "capture expertise and make it accessible to non-experts" (p. 32).
         Design patterns also provide a succinct vocabulary with which to describe new designs and retrospectively explain existing ones. Patterns let us understand a design at a high level before drilling down to focus on details. They allow us to envision entire configurations of objects and classes at a large grain size and communicate these ideas to other designers by name. We can say, "Implement the database access object as a Singleton," rather than, "Let's make sure the database access class has just one instance. The class should include a class variable to keep track of the singl instance. The class should make the instance globally available but control access to it. The class should control when the instance is created and ..." Which would you prefer?
         Christopher Alexander and his colleagues have written extensively on the use of design patterns for living and working spaces-homes, buildings, communal areas, towns. Their work is considered the inspiration for the notion of software design patterns. In ''The Timeless Way of Building''(1979) Alexander asserts, "Sometimes there are version of the same pattern, slightly different, in different cultures" (p.276). C++ and Smalltalk are different languages, different environments, different cultures-although the same basic pattern may be viable in both languages, each culture may give rise to different versions.
         Christopher Alexander와 그의 친구, 동료들은 디자인 패턴이 공간활용과, 건축, 공동체의 구성방법 까지 확장되는 것에 관한 글을 써왔다. 여기에서 그들이 추구하는 바는 이런 분야에 적용을 통하여, 소프트웨어 디자인 패턴을 위한 또 다른 새로운 창조적 생각 즉, 영감을 얻기위한 일련의 작업(궁리)이다. ''The Timeless Way of Building''(1979) 에?? Alexander는 "때로는 서로다른 문화권에서 아주 약간은 다르게 같은 패턴의 버전들이 존재하걸 볼수 있다"(p.276) 라고 언급한다. C++과 Samlltalk는 비록 같은 기본적인 패턴에서의 출발을 해도 다른 언어, 다른 개발환경, 다른 문화로 말미암아 각자 다른 모양새를 보여준다.
         The Gang of Four's ''Design Patterns'' presents design issues and solutions from a C+ perspective. It illustrates patterns for the most part with C++ code and considers issues germane to a C++ implementation. Those issue are important for C++ developres, but they also make the patterns more difficult to understand and apply for developers using other languages.
  • CppStudy_2002_1/과제1/Yggdrasil . . . . 117 matches
         #include<iostream.h>
         int count=0;//함수가 호출된 횟수를 셈
         void say(char *, int);
         void main()
          int input;//원하는 횟수만큼 호출하기 위해 입력을 받음
          char string[20]="hahahaha\n";
          char *p=string;
          cin>>input;
          for(int i=0;i<input;i++)
         void say(char * str, int n)
         #include<iostream.h>
          int cal;
         int temp3;
         CandyBar input(CandyBar &, char *company="Millenium Munch", double weight=2.85, int
         void main()
          candy=input(candy);
          cin>>temp1;
          cin>>temp2;
          cin>>temp3;
          candy=input(candy, temp1, temp2, temp3);
  • WinampPlugin을이용한프로그래밍 . . . . 117 matches
         winamp 의 plugin 을 이용한 프로그래밍
         winamp 의 경우 다양한 plugin 를 지원한다.
         input plugin은 해당 화일을 읽어드리고 output plugin 으로의 출력을 소스를 제공한다. output plugin 은 출력 소스를 사운드카드나 하드 디스크로의 출력을 관장한다. 이 중간에 DSP 와 Visual plugin 이 callback 으로 결과물을 받은뒤 변수들을 이용한다.
         컴파일하려면 in2.h 와 Out.h 가 필요하다. 이는 http://www.winamp.com/nsdn/ 에서 Winamp SDK를 다운받는다.
         http://download.nullsoft.com/winamp/client/wa502_sdk.zip
         #include <windows.h>
         #include <stdio.h>
         #include "in2.h"
         // define procedures, that'll be found in a .DLL
         typedef In_Module* (*INHDRPROC)(void);
         int dsp_donothing(short int *, int cnt, int, int, int) {
         int dsp_isactive() {
         void SAVSAInit(int maxlatency_in_ms, int srate){
         void SAVSADeInit(){
         void SAAddPCMData(void *PCMData, int nch, int bps, int timestamp){
         // printf ("%d,%d,%d\n", nch,bps,timestamp);
         int SAGetMode(){
         void SAAdd(void *data, int timestamp, int csa){
         void VSAAddPCMData(void *PCMData, int nch, int bps, int timestamp){
         // printf ("%d,%d,%d\n", nch,bps,timestamp);
  • WikiSlide . . . . 115 matches
          * a technology for collaborative creation of internet and intranet pages
         === Principles ===
          * '''Fast''' - fast editing, communicating and easy to learn
          * '''Open''' - everybody may read ''and'' edit everything
          * '''Uncomplicated''' - everything works in a standard browser
          * '''Secure''' - every change is archived, nothing gets lost
          * '''Interlinked''' - Links between pages are easy to make
          * Personal Information Management, Knowledgebases, Brainstorming
          * Collaboration, Coordination and Communication platform
          * Creating documentation and slide shows ;)
          * Email address for subscribing to page change emails and retrieving a lost login/password
          * Link with User-ID ( (!) ''in any case, put a bookmark on that'')
          * Navigation: Quicklinks, Icons link to system actions (HelpOnNavigation)
         Searching and Navigation:
          * Backlinks (click on title)
          * SiteNavigation: A list of the different indices of the Wiki
          * FindPage: Searching the Wiki by various methods
          * TitleIndex: A list of all pages in the Wiki
          * WordIndex: A list of all words in page titles (i.e. a list of keywords/concepts in the Wiki)
         == Using the Editor ==
  • 오목/재선,동일 . . . . 115 matches
         // singleView.h : interface of the CSingleView class
         #if !defined(AFX_SINGLEVIEW_H__E826914F_AE74_11D7_8B87_000102915DD4__INCLUDED_)
         #define AFX_SINGLEVIEW_H__E826914F_AE74_11D7_8B87_000102915DD4__INCLUDED_
         class CSingleView : public CView
          int arr[100][100];
          int i,j;
          int x,y;
          int a,b;
          int count,count1,count2;
          CSingleView();
          DECLARE_DYNCREATE(CSingleView)
          CSingleDoc* GetDocument();
          //{{AFX_VIRTUAL(CSingleView)
          virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
          virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
          virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
          virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
          virtual ~CSingleView();
          //{{AFX_MSG(CSingleView)
          afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  • 변준원 . . . . 113 matches
         (define (f x)
          (when (< x 10) (begin (print 2) (print *)(print x) (print =)(print (* 2 x)) (newline) (f (+ x 1)))))
         (define (f y)
          (when (< y 10) (begin
          (define (f x) (when (< x 10) (begin (print y)
          (print *)
          (print x)
          (print =)
          (print (* 2 x))
          (newline)
         #include<iostream>
         #include<ctime>
         using namespace std;
         int move();
         int check();
         int x,y;
         int number=0;
         int matrix[5][5];
         int main()
          const int max=5;
  • 덜덜덜/숙제제출페이지 . . . . 111 matches
         #include <stdio.h>
         void main()
          int a,b;
          printf("구구단입니다.n");
          printf("숫자를입력하세요 :n");
          printf("%d * %d = %dn", a, b, a*b);
         #include <stdio.h>
         void main()
          int a; /* 단 */
          int b; /* 하나씩 증가된다. */
          printf("원하는게 뭐요 : ");
          printf("%d * %d = %dn", a, b, a*b);
         {{{~cpp #include <stdio.h>
         void main()
          int b;
          int a;
          printf("뭐 : ");
          printf("%d * %d = %dn", b, a, b*a);
         #include <stdio.h>
         void main ()
  • BabyStepsSafely . . . . 110 matches
         Introduction
         This article outlines the refactoring of an algorithm that generate the prime numbers up to a user specified maximum. This algorithm is called the Sieve of Eratosthenes. This article demonstrates that the granularity of the changes made to the source code are very small and rely completely on the ability to recompile and test the code after every change no matter how small. The step where the code is tested insures that each step is done safely. It is important to note that the execution of tests do not actually guarantee that the code is correct. The execution of the tests just guarantees that it isn't any worse that it used to db, prior to the change. This is good enough for the purposes of refactoring since we are tring to not damage anything thay may have worked before Therefore for each change in the code we will be recompilling the code and running the tests.
         The code that is to be refactored has existed in the system for awhile. It has undergone a couple of transformations. Initially it returned an array of int variables that are the prime numbers. When the new collection library was introduced in Java2 the interface was changed to return a List of Integer objects. Going forward the method that returns a List is the preferred method, so the method that returns an array has been marked as being deprecated for the last couple of releases. During this release the array member function will be removed. Listing1, "Class GeneratePrimes," contains the source code for both methods.
         The algorithm is quite simple. Given an array of integers starting at 2.Cross out all multiples of 2. Find the next uncrossed integer, and cross out all of its multiples. Repeat until you have passed the square root of the maximum value. This algorithm is implemented in the method generatePrimes() in Listing1. "Class GeneratePrimes,".
         inport java.util.*;
          public static List primes(int maxValue)
          LinkedList result = new LinkedList();
          int [] primes = generatePrimes(maxValue);
          for(int i = 0; i <primes.length; ++i)
          result.add(new Integer(primes[i]));
          public static int [] generatePrimes(int maxValue)
          int s = maxValue+1; // size of array
          int i;
          // initialize array to true.
          int j;
          int count = 0;
          int [] primes = new int[count];
          // move the primes into the result
          return new int[0]; return null array if bad input.
         The test cases for the GeneratePrimes class are implemented using the JUnit testing framework. The tests are contained in class called TestGeneratePrames. There are a 5 tests for each return type (array and List), which appear to be similiar. Our first step to insure보증하다, 책임지다 that we are starting from a stable base is to make sure what we have works.
  • MobileJavaStudy/SnakeBite/Spec3Source . . . . 110 matches
          public int x;
          public int y;
          public SnakeCell(int x, int y) {
          public static final int LEFT = 1;
          public static final int RIGHT = 2;
          public static final int UP = 3;
          public static final int DOWN = 4;
          private final int xRange;
          private final int yRange;
          private int headIndex;
          private int direction;
          public Snake(int length, int xRange, int yRange) {
          for(int i = length ; i >= 1 ; i--)
          headIndex = 0;
          public int length() {
          public SnakeCell getSnakeCell(int index) {
          return (SnakeCell)cellVector.elementAt((headIndex + index) % length());
          public int getDirection() {
          public void setDirection(int direction) {
          int length = length();
  • NSIS/예제2 . . . . 108 matches
         InstallDir $PROGRAMFILES\Example2
         InstallDirRegKey HKLM SOFTWARE\NSIS_Example2 "Install_Dir"
         ComponentText "This will install the less simple example2 on your computer. Select which optional things you want installed."
         DirText "Choose a directory to install in to:"
          ; Set output path to the installation directory.
          SetOutPath $INSTDIR
          File "C:\winnt\notepad.exe"
          WriteRegStr HKLM SOFTWARE\NSIS_Example2 "Install_Dir" "$INSTDIR"
          ; 윈도우를 위한 Uninstall key를 레지스트리에 저장
          WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "DisplayName" "NSIS Example2 (remove only)"
          WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "UninstallString" '"$INSTDIR\uninstall.exe"'
          WriteUninstaller "uninstall.exe"
          CreateShortCut "$SMPROGRAMS\Example2\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
          CreateShortCut "$SMPROGRAMS\Example2\Example2 (notepad).lnk" "$INSTDIR\notepad.exe" "" "$INSTDIR\notepad.exe" 0
         InstallDir $PROGRAMFILES\Example2
         DirText "Choose a directory to install in to:"
          WriteRegStr HKLM SOFTWARE\NSIS_Example2 "Install_Dir" "$INSTDIR"
          ; 윈도우를 위한 Uninstall key를 레지스트리에 저장
          WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "DisplayName" "NSIS Example2 (remove only)"
          WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "UninstallString" '"$INSTDIR\uninstall.exe"'
  • whiteblue/파일읽어오기 . . . . 106 matches
         #include <iostream>
         #include <fstream>
         #include <cmath>
         #include <string>
         using namespace std;
         #include <vector>
         class UserInfo
          string szName; // User's name
          unsigned int nSchoolNumber; // User's school number
          UserInfo() {}
          UserInfo( string szN, unsigned int nSN )
          unsigned int getSchoolNumber() { return nSchoolNumber; }
          string getName() { return szName; }
         class BookInfo
          int nBookNumber;
          string szBookName;
          string szWriter;
          string szPublishingCompany;
          UserInfo * pLendPeople;
          BookInfo() {}
  • MineSweeper/황재선 . . . . 105 matches
         == MineSweeper ==
         === {{{~cpp MineSweeper.java}}} ===
         import java.io.InputStreamReader;
          * Window - Preferences - Java - Code Style - Code Templates
         public class MineSweeper {
          String [][] mineArr;
          public int [] inputSize() {
          String input = input();
          String [] array = input.split(" ");
          int len = array.length;
          int [] intArray = new int[len];
          for (int i = 0; i < len; i++)
          intArray[i] = Integer.parseInt(array[i]);
          return intArray;
          public String[][] inputChar(int []array) {
          int row = array[0];
          int col = array[1];
          mineArr = new String[row][col];
          for(int i = 0; i < row; i++) {
          String input = input();
  • 보드카페 관리 프로그램/강석우 . . . . 105 matches
         #include <ctime>
         #include <iostream>
         #include <stdexcept>
         #include <string>
         #include <VECTOR>
         using namespace std;
          string table;
          string game;
          int person;
          int hour;
          int minute;
          int drink;
         void input(board& bg, vector<board>& vec);
         void in(board& bg, vector<board>& vec);
         void print_time(int& hour, int& minute);
         int price(vector<board>& vec, int hour, int minute, const int& i);
         const string tables[] ={"table1", "table2", "table3"};
         const string games[] = {"jenga", "citadell", "pit"};
         int main()
          bg.drink = 0;
  • 자바와자료구조2006 . . . . 105 matches
         [http://www.gayhomes.net/debil/amoxicillin.html amoxicillin]
         [http://www.gayhomes.net/debil/clarinex.html clarinex]
         [http://www.gayhomes.net/debil/cyclobenzaprine.html cyclobenzaprine]
         [http://www.gayhomes.net/debil/fluoxetine.html fluoxetine]
         [http://www.gayhomes.net/debil/motrin.html motrin]
         [http://buy-carisoprodol-online.xxl.st/ buy carisoprodol]
         [http://buy-cialis-online.ze.cx/ buy cialis]
         [http://buy-fioricet-online.ze.cx/ buy fioricet]
         [http://buy-levitra-online.fr.nf/ buy levitra]
         [http://buy-phentermine-online.fr.nf/ buy phentermine]
         [http://buy-phentermine-online.ze.cx/ buy phentermine]
         [http://buy-phentermine.biz.st/ buy phentermine]
         [http://buy-phentermine.fr.nf/ buy phentermine]
         [http://buy-propecia-online.infos.st/ buy propecia]
         [http://buy-soma-online.biz.st/ buy soma online]
         [http://buy-tramadol-online.fr.nf/ buy tramadol]
         [http://buy-viagra-online.fr.nf/ buy viagra]
         [http://phentermine-information.ze.cx/ phentermine information]
         [http://phentermine-pharmacy.fr.nf/ phentermine pharmacy]
         [http://phentermine55.fr.nf/ phentermine]
  • ClassifyByAnagram/김재우 . . . . 104 matches
         import StringIO
          def testPrintAnagram( self ):
          outStr = StringIO.StringIO()
          a.printAnagram( output = outStr )
          def testMainFunc( self ):
          inStr = StringIO.StringIO()
          outStr = StringIO.StringIO()
          inStr.write( """ab
          inStr.pos = 0
          a.main( input = inStr, output = outStr )
         if __name__ == '__main__':
          unittest.main()
         import string
          def __init__ ( self ):
          return string.join( lst, '' ).replace( ' ', '' )
          def printAnagram( self, output = sys.stdout ):
          for list in self.dictionary.values():
          for word in list:
          def main( self, input = sys.stdin, output = sys.stdout ):
          for line in input.readlines():
  • MedusaCppStudy/신애 . . . . 104 matches
         #include <iostream>
         #include <string>
         using std::cin;
         using std::endl;
         using std::cout;
         using std::string;
         int main()
          int num;
          cin >> num;
          int rows = num;
          int cols = num * 2 - 1;
          for (int r = 0; r != rows; r++) {
          string::size_type c = 0;
         #include <iostream>
         #include <string>
         using std::cin;
         using std::endl;
         using std::cout;
         using std::string;
         int main()
  • AcceleratedC++/Chapter3 . . . . 102 matches
         = Chapter 3 Working with batches of data =
         == 3.1 Computing student grades ==
         #include <iostream>
         #include <iomanip>
         #include <string>
         using std::cin;
         using std::setprecision;
         using std::streamsize;
         using std::cout;
         using std::string;
         using std::endl;
         int main() {
          string name;
          cin >> name;
          const string greeting = "Hello, " + name + "!";
          // ask for and read the midterm and final grades
          cout << "Please enter your midterm and final exam grades: ";
          double midterm, final;
          cin >> midterm >> final;
          int count = 0;
  • 허아영/C코딩연습 . . . . 102 matches
         #include <stdio.h>
         #include <stdlib.h>
         int main()
          int pattern_num;
          int i, j;
          int blank;
          printf("출력 할 마름모 변의 패턴수를 입력하십시오(정수>0) :");
          printf("출력 할 마름모 패턴 모양을 입력하십시오(문자) :");
          printf(" ");
          printf("%c", pattern_shape);
          printf("n");
          printf(" ");
          printf("%c", pattern_shape);
          printf("n");
         #include <stdio.h>
         #include <string.h>
         void main()
          int i, j, k;
          printf("패턴모양을 입력하십시오 :");
          printf(" ");
  • Celfin's ACM training . . . . 101 matches
         || 1 || 1 || 110101/100 || The 3n+1 Problem || . || [3n 1/Celfin] ||
         || 2 || 1 || 110102/10189 || Minesweeper || . || [minesweeper/Celfin] ||
         || 3 || 1 || 110103/10137 || The Trip || . || [The Trip/Celfin] ||
         || 4 || 1 || 110104/706 || LCD Display || . || [LCD Display/Celfin] ||
         || 5 || 6 || 110603/10198 || Counting || . || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4010&title=Counting/하기웅&login=processing&id=&redirect=yes Counting/Celfin] ||
         || 6 || 6 || 110606/10254 || The Priest Mathmatician || . || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4132&title=ThePriestMathematician/하기웅&login=processing&id=&redirect=yes The Priest Mathmatician/Celfin] ||
         || 7 || 6 || 110608/846 || Steps || . || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4130&title=Steps/하기웅&login=processing&id=&redirect=yes Steps/Celfin] ||
         || 8 || 9 || 110908/10276 || Hanoi Tower Troubles Again || . || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4078&title=HanoiTowerTroublesAgain!/하기웅&login=processing&id=&redirect=yes Hanoi Tower Troubles Again/Celfin] ||
         || 9 || 6 || 110602/10213 || How Many Pieces Of Land? || 3 hours || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4143&title=HowManyPiecesOfLand?/하기웅&login=processing&id=celfin&redirect=yes How Many Pieces Of Land?/Celfin] ||
         || 10 || 6 || 110601/10183 || How Many Fibs? || 2 hours || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4172&title=HowManyFibs?/하기웅&login=processing&id=celfin&redirect=yes How Many Fibs?/Celfin] ||
         || 11 || 10 || 111007/10249 || The Grand Dinner || 1 hour || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4188&title=TheGrandDinner/하기웅&login=processing&id=celfin&redirect=yes The Grand Dinner/Celfin] ||
         || 12 || 12 || 111201/10161 || Ant on a Chessboard || 40 mins || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4209&title=AntOnAChessboard/하기웅&login=processing&id=&redirect=yes Ant on a Chessboard/Celfin] ||
         || 13 || 12 || 111204/10182 || Bee Maja || 30 mins || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4235&title=BeeMaja/하기웅&login=processing&id=&redirect=yes Bee Maja/Celfin] ||
         || 14 || 12 || 111207/10233 || Dermuba Triangle || 3 hours || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4238&title=DermubaTriangle/하기웅&login=processing&id=&redirect=yes Dermuba Triangle/Celfin] ||
         || 15 || 11 || 111105/10003 || Cutting Sticks || 3 days || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4198&title=CuttingSticks/하기웅&login=processing&id=&redirect=yes CuttingSticks/Celfin] ||
         || 16 || 13 || 111303/10195 || The Knights of the Round Table || 1 hour || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4263&title=TheKnightsOfTheRoundTable/하기웅&login=processing&id=&redirect=yes TheKnightsOfTheRoundTable/Celfin] ||
         || 17 || 13 || 111306/10215 || The Largest/Smallest Box || 40 mins || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4264&title=TheLagestSmallestBox/하기웅&login=processing&id=&redirect=yes TheLargestSmallestBox/Celfin] ||
         || 18 || 13 || 111307/10209 || Is This Integration? || 2 hours || [http://165.194.17.5/wiki/index.php?url=zeropage&no=4265&title=IsThisIntegration?/하기웅&login=processing&id=&redirect=yes IsThisIntegration/Celfin] ||
         || 19 || 1 || 110106/10033 || Interpreter || much || [Interpreter/Celfin] ||
         || 20 || 1 || 110107/10196 || Check the Check || 4 hours || [CheckTheCheck/Celfin] ||
  • OurMajorLangIsCAndCPlusPlus/stdlib.h . . . . 101 matches
          == 함수 (Functions) - String Functions ==
         || int atoi(const char *str); || 문자열을 정수(integer)로 변환 ||
         || long int strtol(const char *str, char **endptr, int base); || 문자열을 정수(long integer)로 변환 ||
         || unsigned long int strtoul(const char *str, char **endptr, int base); || 문자열을 정수(unsigned long)로 변환 ||
         || int atexit(void (*func)(void)); || 프로그램이 정상적으로 종료될 때 전달인자로 넘겨진 함수포인터를 이용해서 특정 함수 실행 ||
         || void exit(int status); || 정상적인 프로그램 종료를 발생시킨다 ||
         || int system(const char *string); || 전달인자로 받은 명령 실행 ||
         == 함수 (Functions) - Searching and Sorting Functions ==
         || void *bsearch(const void *key, const void *base, size_t nitems, size_t size, int (*compar)(const void *, const void *)); || 이진검색 수행 ||
         || void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, const void*)); || 퀵 소트 수행 ||
         || int abs(int x); || 정수형 절대값 리턴 ||
         || div_t div(int numer, int denom); || 전달인자의 numer를 denom으로 나눈 값과 나머지를 구조체형식으로 리턴 ||
         || long int labs(long int x); || long형 정수의 절대값을 리턴 ||
         || ldiv_t ldiv(long int numer, long int denom); || div()와 동일하고 변수 타입만 long int ||
         || int rand(void); || 0부터 RAND_MAX까지의 범위사이의 난수 리턴||
         || void srand(unsigned int seed); || rand()에 의해 사용되는 난수 생성기에 인자 공급 ||
         || int mblen(const char *str, size_t n); || 다중 바이트 문자의 길이 리턴 ||
         || int mbtowc(whcar_t *pwc, const char *str, size_t n); || 다중 바이트 문자를 wide 문자로 변환 ||
         || int wctomb(char *str, wchar_t wchar); || wide 문자를 다중 바이트 문자로 변환 ||
         #include <stdlib.h>
  • 김희성/MTFREADER . . . . 101 matches
         #include"ntfs.h"
         #define FILE_LOAD_ERROR 1
         #define OUT_OF_MEMORY_ERROR 2
          int ErrorCode;
          __int64 ReadCluster(unsigned char* point,unsigned char* info);
          hVolume = CreateFile(drive, GENERIC_READ,FILE_SHARE_READ | FILE_SHARE_WRITE, 0,OPEN_EXISTING, 0, 0);
          int LastErrorCode(); //최근에 일어난 클래스 내부의 에러를 반환한다.
          void MakeBinaryFile(char* filename); //MFT를 Binary 그대로 저장한다.
         #include"_MFT_READER.h"
          unsigned __int64 point,i,j,k,temp;
          unsigned __int64 HeaderSize;
          unsigned __int64 offset;
          point=*((unsigned short*)((unsigned char*)$MFT+20));//Offset으로 포인터 이동
          while(*((unsigned long*)((unsigned char*)$MFT+point))!=0xFFFFFFFF)
          *((unsigned char*)MFT+point+9) = Attribute Name Size
          if(*((unsigned char*)$MFT+point+8))
          HeaderSize=64+*((unsigned char*)$MFT+point+9);
          HeaderSize=24+*((unsigned char*)$MFT+point+9);
          switch(*((unsigned long*)((unsigned char*)$MFT+point)))
          MFT=PFILE_RECORD_HEADER(new U8[*((unsigned __int64*)((unsigned char*)$MFT+point+40))]);
  • 2학기파이선스터디/서버 . . . . 100 matches
         from SocketServer import ThreadingTCPServer, StreamRequestHandler
          def __init__(self):
          def __contains__(self, name): # in 연산자 메쏘드
          return name in self.users
          if name in self.users:
          print len(self.users), 'connections' # 서버에 표시되는 메시지
          if name not in self.users:
          print len(self.users), 'connections' # 서버에 표시되는 메시지
          for conn, addr in self.users.values():
          print 'connection from', self.client_address
          data = self.receiveline()
          data = self.receiveline()
          print 'Socket Error'
          print 'Disconnected from', self.client_address
          name = self.receiveline().strip() #이름 읽기
          def receiveline(self):
          line = []
          line.append(data)
          return ''.join(line)
         if __name__ == '__main__':
  • 새싹교실/2012/해보자 . . . . 100 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 참고로 ZeroWiki는 MoniWiki Engine을 사용하며 Google Chrome이나 Mozila Firefox, Safari보다는 Internet Explorer에서 가장 잘 돌아가는 것 같습니다.
          * sizeof(int) = 4, sizeof(char) = 1, sizeof(short) = 2 etc.
          1. #define pi 3.141592를 이용하여 구의 겉넓이, 부피를 계산하고 출력하는 프로그램을 만드시오.(코드를 여기에 올려주세요)
          2. swap(int num1, int num2)함수를 구현하시오. 함수 호출을 배우지 않았기 때문에, 그리고 포인터를 아직 배우지 않았기 때문에 기본적인 코드를 제공합니다.
         void swap(int num1,int num2);
         int main(void){
         int num1, num2;
         printf("정수 2개를 입력하시오: ");
         printf("num1: %d, num2: %d\n",num1, num2);
         void swap(int num1,int num2){
         printf("after swap\nnum1: %d, num2: %d\n",num1, num2);
         #include <stdio.h>
         int main(void){
          int num;
          printf("짝수");
          printf("홀수");
         #include <stdio.h>
         int main(void){
          int year;
  • 성우용 . . . . 99 matches
         #include <iostream>
         using namespace std;
         #define stack_size 100
         int top=-1;
         int pop();
         void main()
          //int index;
          int i;
          printf("%c",arraytemp);
         int pop()
         #include <iostream>
         using namespace std;
         #define SIZE 19
         int matrix[SIZE][SIZE];
         void initial();
         void print();
         int main()
          int i,j,x_point,y_point;
          initial();
          cin>>i;
  • AcceleratedC++/Chapter8 . . . . 98 matches
         = Chapter 8 Writing generic functions =
         WikiPedia:Generic_function : 함수의 호출시 인자 타입이나 리턴타입을 사용자가 알 수없다. ex)find(B,E,D)
          union(A:string, " is...") (O), concaternate("COL", " is...") (X)}}}
         #define GUARD_median_h
         #include <algorithm>
         #include <stdexcept>
         #include <vector>
         using std::domain_error;
         using std::sort;
         using std::vector;
          throw domain_error("median of an empty vector");
          sort(v.begin(), v.end());
          return size % 2 == 0 ? (v[mid] + v[mid-1]) / 2 : v[mid]; // double, int에는 유효, string은 operator / 가 없기 때문에 무효
          || find(B, E, D) || D의 인자료 [B, E)를 비교하여 값을 찾는다. 비교를 하는 것은 크게 문제되지 않는다. ||
          {{{~cpp ex) accumulate(v.begin(), v.end(), 0.0); // 만약 0:int를 사용했다면 올바른 동작을 보장할 수 없다.}}}
         == 8.2 Data-structure independence ==
          || find(c.begin(), c.end(), val) || 일반적인 함수의 작성 가능. 반복자를 통해서 반복자가 제공하는 방식으로 동작가능 ||
          || c.find(val) || 특정형의 인스턴스인 c를 통해서만 접근가능. 내장배열에 적용 불가능 ||
          || find(c, val) || 범위 지정이 불가능하고, 유용성이 첫번째의 경우보다 적다. ||
          * 1의 방식으로 작성된 함수으이 rbegin() 같은 템플릿 멤버 함수를 이용해서 역순 검색도 가능하게 작성된다.
  • IsBiggerSmarter?/문보창 . . . . 98 matches
         단순히 Greedy 알고리즘으로 접근. 실패. Dynamic Programming 이 필요함을 테스트 케이스로써 확인했다. Dynamic Programming 을 실제로 해본 경험이 없기 때문에 감이 잡히지 않았다. Introduction To Algorithm에서 Dynamic Programing 부분을 읽어 공부한 후 문제분석을 다시 시도했다. 이 문제를 쉽게 풀기 위해 Weight를 정렬한 배열과 IQ를 정렬한 배열을 하나의 문자열로 보았다. 그렇다면 문제에서 원하는 "가장 긴 시퀀스" 는 Longest Common Subsequence가 되고, LCS는 Dynamic Algorithm으로 쉽게 풀리는 문제중 하나였다. 무게가 같거나, IQ가 같을수도 있기 때문에 LCS에서 오류가 나는 것을 피하기 위해 소트함수를 처리해 주는 과정에서 약간의 어려움을 겪었다.
         lcs_length함수에서 cost table을 만들어주는 과정의 running time은 O(n*n), memory cost는 O(n*n)이다. 그리고 print_lcs 함수에서 longest path를 거슬러 올라가는 running time은 O(n + n) = O(n)이다.
         #include <fstream>
         #include <vector>
         #include <algorithm>
         #include <iostream>
         using namespace std;
         fstream fin("input.txt");
         const int MAX_ELEPHANT = 1100;
          int index;
          int weight;
          int IQ;
         int input_elephant_info(Elephant * e);
         void count_elephant(Elephant * elephant, int num_elephant);
         int main()
          int num_elephant = input_elephant_info(elephant);
         int input_elephant_info(Elephant * e)
          int count = 0;
          while (fin >> e[count].weight >> e[count].IQ)
          e[count].index = count + 1;
  • JollyJumpers/황재선 . . . . 98 matches
         import java.io.InputStreamReader;
          * Window - Preferences - Java - Code Style - Code Templates
          int [] nums;
          public int [] inputNumbers() {
          String message = processKeyInput();
          String [] ch = splitMessage(message);
          return toInt(ch);
          private String[] splitMessage(String message) {
          private int[] toInt(String [] ch) {
          int len = ch.length;
          nums = new int[len];
          for(int i = 0; i < len; i++) {
          nums[i] = Integer.parseInt(ch[i]);
          private String processKeyInput() {
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String message = "";
          message = in.readLine();
          e.printStackTrace();
          public int[] getdifferenceValue() {
          int len = nums.length - 1;
  • OurMajorLangIsCAndCPlusPlus/XML/김상섭허준수 . . . . 97 matches
         == 입력파일을 "input.txt"에 넣어야 됨..ㅡㅜ ==
         #include <string.h>
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         typedef struct treeNode* tree_pointer;
         typedef struct listNode* list_pointer;
          tree_pointer child;
          list_pointer ptr;
          list_pointer link;
         list_pointer findNull(list_pointer temp)
         tree_pointer insert(tree_pointer ptr, char* tag, char* text) // a = 태그, b = 데이터
          tree_pointer node = (tree_pointer)malloc(sizeof(treeNode));
          node->link = NULL;
          list_pointer link_node = (list_pointer)malloc(sizeof(listNode));
          list_pointer temp;
          link_node->child = node;
          link_node->ptr = NULL;
          if(ptr->link == NULL)
          ptr->link = link_node;
  • R'sSource . . . . 96 matches
         #!/usr/local/bin/python
         import string
         urldump = commands.getoutput('lynx -width=132 -nolist -dump http://board5.dcinside.com/zb40/zboard.php?id=dc_sell | grep 995')
         newlen = len(string.split(urldump))
         tmp = commands.getoutput('echo "%s" | smbclient -M 박준우 -' % string.join(string.split(urldump)))
         print string.join(string.split(urldump))
         print """이 프로그램은 www.replays.co.kr의 스타크래프트 리플레이를
         name = raw_input("검색하고 싶은 게이머의 이름을 입력하세요 : ")
         inputDir = raw_input("""저장 하고 싶은 경로를 지정하세요.(예>c:\\\\replay\\\\) : """)
         defaultDir = inputDir
         def main():
          url = 'http://www.replays.co.kr/technote/main.cgi?board=bestreplay_pds/'
          print '%s replay.' % keyGamer
          print 'going to that page...'
          lines = a.readlines()
          print 'reading page....'
          for temp in lines:
          #http://165.194.17.5/wiki/index.php?url=zeropage&no=2985&title=Linux/RegularExpression&login=processing&id=&redirect=yes
          print 'pattern searching...'
          lineNum = 0 #라인넘버초기화
  • Slurpys/김회영 . . . . 96 matches
         #include<iostream.h>
         #include<string.h>
         bool isSlurpy(char* string,int* nowPointer,int arraySize);
         bool isSlimpy(char* string,int* nowPointer,int arraySize);
         bool isSlumpy(char* string,int* nowPointer,int arraySize);
         bool isFollowF(char* string,int* nowPointer,int arraySize);
         bool isNextCharacter(char* string,int* nowPointer,int arraySize,char checker);
         void main()
          int testCount=0;
          cin>>testCount;
          int arraySize;
          char string[60];
          int nowPointer;
          for(int i=0;i<testCount;i++)
          cin>>string;
          arraySize=strlen(string);
          nowPointer=-1;
          result[i]=isSlurpy(string,&nowPointer,arraySize);
          for(int j=0;j<testCount;j++)
         bool isSlurpy(char* string,int* nowPointer,int arraySize)
  • 오목/곽세환,조재화 . . . . 96 matches
         // ohbokView.h : interface of the COhbokView class
         #if !defined(AFX_OHBOKVIEW_H__1263A16D_AC1C_11D7_8B87_00105A0D3B1A__INCLUDED_)
         #define AFX_OHBOKVIEW_H__1263A16D_AC1C_11D7_8B87_00105A0D3B1A__INCLUDED_
          virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
          virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
          virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
          virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
          void VictoryMessage(int count, int z);
          void WhoIsVictory(int y,int x, int z);
          int turn;
          int array[10][10];
          afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
         #ifndef _DEBUG // debug version in ohbokView.cpp
         inline COhbokDoc* COhbokView::GetDocument()
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         #endif // !defined(AFX_OHBOKVIEW_H__1263A16D_AC1C_11D7_8B87_00105A0D3B1A__INCLUDED_)
         #include "stdafx.h"
         #include "ohbok.h"
         #include "ohbokDoc.h"
  • MedusaCppStudy/세람 . . . . 95 matches
         #include <iostream>
         using std::cout;
         using std::cin;
         using std::endl;
         int main ()
          int num;
          cin >> num;
          int rows = num ;
          int cols = num ;
          for( int r=0; r!=rows; r++)
          for (int c=0; c != cols; c++)
         #include <iostream>
         using std::cout;
         using std::cin;
         using std::endl;
         int main ()
          int width, length ;
          cin >> width >> length ;
          int rows = length ;
          int cols = width ;
  • MoreEffectiveC++/Operator . . . . 95 matches
         == Item 5: Be wary of user-defined conversion functions. ==
          * C++는 타입간의 암시적 type casting을 허용한다. 이건 C의 유산인데 예를 들자면 '''char'''과 '''int''' 에서 '''short'''과 '''double''' 들이 아무런 문제없이 바뀌어 진다. 그런데 C++는 이것 보다 한수 더떠서 type casting시에 자료를 잃어 버리게 되는 int에서 short과 dougle에서 char의 변환까지 허용한다.[[BR]]
          * C++에서는 크게 두가지 방식의 함수로 형변환을 컴파일러에게 수행 시키킨다:[[BR]] '''''single-argument constructors''''' 와 '''''implicit type conversion operators''''' 이 그것이다.
          * '''''single-argument constructors''''' 은 인자를 하나의 인자만으로 세팅될수 있는 생성자이다. 여기 두가지의 예를 보자
          Name( const string& s);
          Rational( int numerator = 0, int denominator = 1);
         cout << r; // should print "1/2"
         이런 예로 C++ std library에 있는 string이 char*로 암시적 형변환이 없고 c_str의 명시적 형변환 시킨다.
          * '''''single-argument constructor''''' 는 더 어려운 문제를 제공한다. 게다가 이문제들은 암시적 형변환 보다 더 많은 부분을 차지하는 암시적 형변환에서 문제가 발생된다.
          Array ( int lowBound, int highBound );
          Array ( int size )
          T& operator[] (int index)
         bool operator==( const Array< int >& lhs, const Array<int>& rhs);
         Array<int> a(10);
         Array<int> b(10);
         for ( int i = 0; i<10; ++i)
         7줄 ''if ( a == b[i] )'' 부분의 코드에서 프로그래머는 자신의 의도와는 다른 코드를 작성했다. 이런 문법 잘못은 당연히! 컴파일러가 알려줘야 개발자의 시간을 아낄수 있으리, 하지만 이런 예제가 꼭 그렇지만은 않다. 이 코드는 컴파일러 입장에서 보면 옳은 코드가 될수 있는 것이다. 바로 Array class에서 정의 하고 있는 '''''single-argument constructor''''' 에 의하여 컴파일시 이런 코드로의 변환의 가능성이 있다.
         for ( int i = 0; i < 10; ++i)
          if ( a == static_cast< Array<int> >(b[i]) )...
         '''b[i]''' 는 int형을 반환하기 때문에 이렇게 즉석에서 맞춤 생성자로 type casting(형변환)을 컴파일러가 암시적으로 해줄수 있다. 이제 사태의 심각성을 알겠는가?
  • MoinMoinTodo . . . . 93 matches
         This is a list of things that are to be implemented. If you miss a feature, have a neat idea or any other suggestion, please put it on MoinMoinIdeas.
         To discuss the merit of the planned extensions, or new features from MoinMoinIdeas, please use MoinMoinDiscussion.
         A list of things that are added to the current source in CVS are on MoinMoinDone.
         MoinMoinRelease describes how to build a release from the SourceForge repository.
         Things to do in the near future:
          * add a means to build the dict.cache file from the command line
          * Macro that lists all users that have an email address; a click on the user name sends the re-login URL to that email (and not more than once a day).
          * Send a timestamp with the EditPage link, and then compare to the current timestamp; warn the user if page was edited since displaying.
          * Now that we can identify certain authors (those who have set a user profile), we can avoid to create a backup copy if one author makes several changes; we have to remember who made the last save of a page, though.
          * Implement the update script (copying new images etc.) described elsewhere on this page or MoinMoinIdeas.
          * Replace SystemPages by using the normal "save page" code, thus creating a backup copy of the page that was in the system. Only replace when diff shows the page needs updating.
          * Send a regular "changes" mail? (checkbox, plus frequency setting hourly/daily/weekly/etc.)
          * Other things like color, icons, menu?
          * On request, send email containing an URL to send the cookie
          * Steal ideas from [http://www.usemod.com/cgi-bin/mb.pl?action=editprefs MeatBall:Preferences]
          * MoinMoinRefactoring
          * create a dir per page in the "backup" dir; provide an upgrade.py script to adapt existing wikis
          * Add backlink patch by Thomas Thurman
          * Page info: links to / from page.
          * Add a link to Wiki:EditThePageSimultaneously (or a link to a local copy) to the edit conflict message.
  • SummationOfFourPrimes/1002 . . . . 93 matches
         for eachGenNumberFour in GenNumbersFour
          print eachGenNumberFour
         print "impossible"
          def __init__(self,aNum):
          for i in range(2,self.size+1):
          for eachValue in self.resultTable:
          for i in range(sizeOfList):
          for j in range(sizeOfList):
          for k in range(sizeOfList):
          for l in range(sizeOfList):
          def __init__(self,aNum):
          for i in range(2,self.size+1):
          for eachValue in self.resultTable:
          for i in range(sizeOfList):
          for j in range(sizeOfList):
          for k in range(sizeOfList):
          for l in range(sizeOfList):
         def main():
          n = int(raw_input('input number : '))
          for eachPrimeNumberSeq in selectionFour(primeNumberList.getList()):
  • 몸짱프로젝트/BinarySearchTree . . . . 93 matches
          === Before Refactoring ===
         class BinartSearchTree:
          def __init__(self):
          def insert(self, aRoot, aKey):
         ## child = self.getSingleChild(node)
          child = self.getSingleChild(node)
          child = self.getSingleChild( largest )
          def getSingleChild( self, aNode ):
          def __init__(self, aKey = -1):
         class BinartSearchTreeTestCase(unittest.TestCase):
          bst = BinartSearchTree()
          bst = BinartSearchTree()
          def testInsert(self):
          bst = BinartSearchTree()
          bst.insert(bst.root, 1)
          self.assertEquals(bst.insert(bst.root, 1), False)
          bst.insert(bst.root, 5)
         ## bst = BinartSearchTree()
         ## bst.insert(bst.root, 10)
         ## bst.insert(bst.root, 5)
  • 조영준/다대다채팅 . . . . 93 matches
         using System;
         using System.Collections.Generic;
         using System.Linq;
         using System.Text;
         using System.Threading.Tasks;
         using System.Net;
         using System.Net.Sockets;
         using System.Threading;
          static void Main(string[] args)
         using System;
         using System.Collections.Generic;
         using System.Linq;
         using System.Text;
         using System.Threading.Tasks;
         using System.Net.Sockets;
         using System.Net;
         using System.Threading;
          Console.WriteLine(TimeStamp() + "[]Server started");
          t1.Join();
          t3.Join();
  • MoreMFC . . . . 92 matches
         Programming with Mfc - Jeff prosise (책 요약 정도 or 책장사.. --;)
         그럼.. to be continue.. [[BR]]
         == Programming with MFC ==
         언제나 그렇듯, Window programming을 할때 처음 등장하는 예제는. Hello~ 시리즈다. 그 source를 통해 MFC프로그램에 첫발을 디딜것이며.. 요책에 나온 윈도우의 이모저모에 관해 설명할것이다. 뭐 .. 대충대충 해나갈 것이지만.. 그럼.. windows programming의 세계로. gogogo -- v [[BR]][[BR]]
         그리고, MFC를 하기전에 꼭 한번씩 나오는 SDK로 하는 windows programming. source. [[BR]]
         MFC자체는 이런 WinMain이나 WndProc 는 감추지만 밑단에서 이런 식으로 돌아간다는 것을 조금이라도 알게 하기 위해서 포함. 무시해도 상관 없음. ㅋㅋ
         // 주석 없음.. 그냥.. WinMain과 WndProc가 있구나만 보고 넘어 가시길.. 키키
         #include <windows.h>
         int WINAPI WndProc (HWND, UINT, WPARAM, LPARAM);
         int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
         wc.hInstance = hInstance;
         wc.hIcon = LoadIcon (NULL, IDI_WINLOGO);
         wc.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1);
         hwnd = CreateWindow (_T("MyWndClass"), "SDK Application",
          WS_OVERLAPPEDWINDOW,
          hInstance,
          NULL ); // window를 만들었지만 보이지는 않는다.
         ShowWindow (hWnd, nCmdShow); // window 보여주기. --;
         UpdateWindow (hWnd);
         LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
  • ChocolateChipCookies/조현태 . . . . 90 matches
         #include <iostream>
         #include <string>
         #include <vector>
         #include <cmath>
         #include <Windows.h>
         using namespace std;
         struct SMyPoint{
          SMyPoint(double inputX, double inputY)
          x = inputX;
          y = inputY;
          bool operator == (const SMyPoint& target)
         vector<SMyPoint> g_points;
         vector< vector<SMyPoint> > g_hitPoints;
         double GetLength(SMyPoint& one, SMyPoint another)
         void initHitPoints()
          g_hitPoints.clear();
          for (register int i = 0; i < (int)g_points.size(); ++i)
          vector<SMyPoint> temp;
          temp.push_back(g_points[i]);
          g_hitPoints.push_back(temp);
  • PowerOfCryptography/조현태 . . . . 90 matches
         #include <iostream>
         using namespace std;
         const int TRUE=1;
         const int FALSE=0;
         unsigned __int64 such_target_number(unsigned __int64 mokpyo, unsigned __int64 gaesu)
          unsigned __int64 min_answer=1, max_answer=mokpyo+1;
          while (min_answer+1!=max_answer)
          unsigned __int64 temp_target=(min_answer+max_answer)/2;
          unsigned __int64 temp_result=1;
          for (register unsigned __int64 i=0; i<gaesu; ++i)
          min_answer=temp_target;
         void main()
          unsigned __int64 intput_number=0;
          while (intput_number<1)
          scanf("%I64d",intput_number);
          if (1==intput_number)
          unsigned __int64 gob_gaesu=0;
          while (intput_number<gob_gaesu || gob_gaesu<1)
          unsigned __int64 answer=such_target_number(intput_number,gob_gaesu);
         #include <iostream>
  • SmalltalkBestPracticePatterns/DispatchedInterpretation . . . . 90 matches
         Encoding is inevitable in programming. At some point you say, "Here is some information. How am I going to represent it?" This decision to encode information happens a hundred times a day.
         Back in the days when data was separated from computation, and seldom the twain should meet, encoding decisions were critical. Any encoding decision you made was propagated to many different parts of the computation. If you got the encoding wrong, the cost of change was enormous. The longer it took to find the mistake, the more ridiculous the bill.
         과거로 돌아가서 데이타가 연산으로부터 불리되었을 때, 그리고 종종 그 둘이 만나야 했을 때, 인코딩 결정은 중대한 것이었다. 너의 어떠한 인코딩 결정은 연산의 많은 다른 부분들을 점차적으로 증가시켜나아갔다. 만약 잘못된 인코딩을 한다면, 변화의 비용은 막대하다. The longer it took to find the mistake, the more ridiculous the bill.
         Objects change all this. How you distribute responsibility among objects is the critical decision, encoding is a distant second. For the most part, in well factored programs, only a single object is interested in a piece of information. That object directly references the information and privately performs all the needed encoding and decoding.
         Sometimes, however, information in one object must influence the behavior of another. When the uses of the information are simple, or the possible choices based on the information limited, it is sufficient to send a message to the encoded object. Thus, the fact that boolean values are represented as instances of one of two classes, True and False, is hidden behind the message #ifTrue:ifFalse:.
         Sets interact with their elements like this. Regardless of how an object is represented, as long it can respond to #=and #hash, it can be put in a Set.
         Sometimes, encoding decisions can be hidden behind intermediate objects. And ASCII String encoded as eight-bit bytes hides that fact by conversing with the outside world in terms of Characters:
         String>>at: anInteger
          ^Character asciiValue: (self basicAt: anInteger)
         When there are many different types of information to be encoded, and the behavior of clients changes based on the information, these simple strategies won't work. The problem is that you don't want each of a hundred clients to explicitly record in a case statement what all the types of information are.
         For example, consider a graphical Shape represented by a sequence of line, curve, stroke, and fill commands. Regardless of how the Shape is represented internally, it can provide a message #commandAt: anInteger that returns a Symbol representing the command and #argumentsAt: anInteger that returns an array of arguments. We could use these messages to write a PostScriptShapePrinter that would convert a Shape to PostScript:
         PostScriptShapePrinter>>display: aShape
          command = #line if True:
          printPoint: (arguments at: 1);
          printPoint: (arguments at: 2);
          nextPutAll:'line'].
         Every client that wanted to make decisions based on what commands where in a Shape would have to have the same case statement, violating the "once and only once" rule. We need a solution where the case statement is hidden inside of the encoded objects.
         The simplest example of this is Collection>>do:. By passing a one argument Block(or any other object that responds to #value:), you are assured that the code will work, no matter whether the Collection is encoded as a linear list, an array, a hash table, or a balanced tree.
         This is a simplified case of Dispatched Interpretation because there is only a single message coming back. For the most part, there will be several messages. For example, we can use this pattern with the Shape example. Rather than have a case statement for every command, we have a method in PostScriptShapePrinter for every command, For example:
         PostScriptShapePrinter>>lineFrom: fromPoint to: toPoint
  • TwistingTheTriad . . . . 90 matches
         http://www.object-arts.com/Papers/TwistingTheTriad.PDF
         http://www.esug.org/summerschools/2000_Southampton/twistingTheTriad/twistingTheTriad.pdf
         C++ 시스템의 Taligent 로부터 유래. Dolphin Smalltalk 의 UI Framework. 논문에서는 'Widget' 과 'MVC' 대신 MVP 를 채택한 이유 등을 다룬다고 한다. 그리고 MVC 3 요소를 rotating (or twisting)함으로서 현재 존재하는 다른 Smalltalk 환경보다 쓰기 쉽고 더 유연한 'Observer' based framework 를 만들 것을 보여줄 것이다.
         with a widget-based system it is easy to avoid having to think about the (required) separation between the user interface and the application domain objects, but it is all too easy to allow one's domain code to become inextricably linked with the general interface logic.
         it was much more that the widget system was just not flexible enought. We didn't know at the time, but were just starting to realise, that Smalltalk thrives on plugability and the user interface components in out widget framework were just not fine-grained enough.
         One example of this deficiency surfaced in SmalltalkWorkspace widget. This was originally designed as a multiline text-editing component with additional logic to handle user interface commands such as Do-it, Show-it, Inspect-it etc. The view itself was a standard Windows text control and we just attached code to it to handle the workspace functionality. However, we soon discovered that we also wanted to have a rich text workspace widget too. Typically the implementation of this would have required the duplication of the workspace logic from the SmalltalkWorkspace component or, at least, an unwarranted refactoring session. It seemed to us that the widget framework could well do with some refactoring itself!
         In MVC, most of the application functionality must be built into a model class known as an Application Model. It is the reponsibility of the application model to be the mediator between the true domain objects and the views and their controllers. The views are responsible for displaying the domain data while the controller handle the raw usr gestures that will eventually perform action on this data. So the application model typically has method to perform menu command actions, push buttons actions and general validation on the data that it manages. Nearly all of the application logic will reside in the application model classes. However, because the application model's role is that of a go-between, it is at times necessary for it to gain access to the user interface directly but, because of the Observer relationship betweeen it and the view/controller, this sort of access is discouraged.
         For example, let's say one wants to explicitly change the colour of one or more views dependent on some conditions in the application model. The correct way to do this in MVC would be to trigger some sort of event, passing the colour along with it. Behaviour would then have to be coded in the view to "hang off" this event and to apply the colour change whenever the event was triggered. This is a rather circuitous route to achieving this simple functionality and typically it would be avoided by taking a shoutcut and using #componentAt : to look up a particular named view from the application model and to apply the colour change to the view directly. However, any direct access of a view like this breaks the MVC dictum that the model should know nothing about the views to which it is connected. If nothing else, this sort of activity surely breaks the possibility of allowing multiple views onto a model, which must be the reason behind using the Observer pattern in MVC in the first place.
         === TwistingTheTriad : ModelViewPresenter ===
         This is the data upon which the user interface will operate. It is typically a domain object and the intention is that such objects should have no knowledge of the user interface. Here the M in MVP differs from the M in MVC. As mentioned above, the latter is actually an Application Model, which holds onto aspects of the domain data but also implements the user interface to manupulate it. In MVP, the model is purely a domain object and there is no expectation of (or link to) the user interface at all.
         The behaviour of a view in MVP is much the same as in MVC. It is the view's responsibility to display the contents of a model. The model is expected to trigger appropriate change notification whenever its data is modified and these allow the view to "hang off" the model following the standard Observer pattern. In the same way as MVC does, this allows multiple vies to be connected to a single model.
         One significant difference in MVP is the removal of the controller. Instead, the view is expected to handle the raw user interface events generated by the operating system (in Windows these come in as WM_xxxx messages) and this way of working fits more naturally into the style of most modern operating systems. In some cases, as a TextView, the user input is handled directly by the view and used to make changes to the model data. However, in most cases the user input events are actually routed via the presenter and it is this which becomes responsible for how the model gets changed.
         While it is the view's responsibility to display model data it is the presenter that governs how the model can be manipulated and changed by the user interface. This is where the heart of an application's behaviour resides. In many ways, a MVP presenter is equivalent to the application model in MVC; most of the code dealing with how a user interface works is built into a presenter class. The main difference is that a presenter is ''directly'' linked to its associated view so that the two can closely collaborate in their roles of supplying the user interface for a particular model.
         Compared with our orignnal widget framework, MVP offers a much greater separation between the visual presentation of an interface and the code required to implement the interface functionality. The latter resides in one or more presenter classes that are coded as normal using a standard class browser.
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/송지원 . . . . 90 matches
          * 가장 느리고 무식한 Linear Search로도 문제해결 했다를 보여주는 의지의 한국인 코드
          * 다른 분들과 달리, 저는 한 글자인 문자와 특수문자를 첫 글자로 포함하는 단어들은 Train Data 및 Test Data 분석에 포함시키지 않았습니다.
         === Train File Analysis ===
         import java.util.StringTokenizer;
          String filename;
          List<String> articles;
          public List<String> data;
          public List<Integer> frequency;
          FileAnalasys(String f){
          articles = new ArrayList<String>();
          data = new ArrayList<String>();
          frequency = new ArrayList<Integer>();
          String line;
          String str;
          line = br.readLine();
          while(line != null){
          articles.add(line);
          StringTokenizer st = new StringTokenizer(line, " ");
          for(int i=0; i<data.size(); i++){
          line = br.readLine();
  • TicTacToe/임인택 . . . . 89 matches
         import javax.swing.JFrame;
          private int board[][];
          private int x, y;
          private static final int __O = 1;
          private static final int __X = -1;
          private static final int __NONE = 0;
          init();
          private void init() {
          board = new int[3][3];
          for(int i=0; i<3; ++i) {
          for(int j=0; j<3; ++j) {
          repaint();
          int result = someoneWin(x,y);
          System.out.println("흑 승");
          System.out.println("백 승");
          public int someoneWin(int x, int y) {
          int checkPoint = 0;
          for(int i=x,j=y; i<3 && j<3 && i>=0 && j>=0; --i, --j) {
          checkPoint += board[i][j];
          if( winLose(checkPoint) ) return checkPoint;
  • VendingMachine_참관자 . . . . 89 matches
         # include <string.h>
         # include <stdio.h>
         # include <stdlib.h>
         # define HELLO 1
         # define PUT 2
         # define RETURN 3
         # define PUSH 4
         # define OFF 5
         # define TOKEN_NUM 5
         # define MENU_NUM 5
          char InputStr[100];
          int index;
          int ReceiveCommand();
         class VendingMachine{
          int Money;
          int MinPrice;
          int Menu_num;
          int Price[10];
          int M[10];
          void SetMenuM(int i);
  • AcceleratedC++/Chapter11 . . . . 88 matches
         = Chapter 11 Defining abstract data types =
         3장에서 작성한 Student_info 타입은 복사, 대입, 소멸시에 어떤 일이 수행되는지 명세되어있지 않음.
         vector<Student_info> vs;
         vector<Student_info>::const_iterator b, e;
         vector<Student_info>::size_type i = 0;
         //vector의 각요소를 살펴보기 위해, size 및 index 연산자를 사용
         b=vs.begin();
         == 11.2 Implementing the Vec class ==
          //interface
          begin, end, size 함수를 구현해야 하므로 이러한 작업을 위해서 '''첫 요소의 주소, 마지막 요소를 하나 지난 주소, 요소들의 개수'''를 저장할 수 있어야한다.
          size는 begin, end 를 통해서 그 크기를 구하는 것이 가능하므로 여기서는 '''첫 요소의 주소, 마지막 요소를 하나 지난 주소'''를 저장하고 개수는 계산을 통해서 구현한다.
          //interface
          따라서 어떤 타입이 Vec에서 사용되는진는 정의부가 instiation 되기 전에는 알 수 없다.
         Vec<Student_info> vs; // default constructor
         Vec<Student_info> vs(100); // Vec의 요소의 크기를 취하는 생성자
         Vec<int> vi(100); // Working. int 를 통해 명시적인 생성
         Vec<int> vi = 100; // not working. 암묵적으로 Vec를 생성하고 그 값을 vi 에 복사한다. refer 11.3.3
          back_inserter(T)함수를 통해서 동적으로 크기를 변경시키기 위해서 '''value_type, push_back''' 타입을 정의함. (value_type 은 현재 저장된 요소가 어떤 타입인지를 알려줌)
          iterator begin() { return data; }
          const_iterator begin() const { return data; }
  • VendingMachine/재니 . . . . 88 matches
          * 먼저 자판기(VendingMachine)이 필요할 것이고,
          * 자판기는 사용자 인터페이스를 구현하는데 사용하고, 사람이 주문할 음료(Drink)를 따로 분류하자..
          * 그러면 주문을 할 때 돈이 필요하니까 돈을 세는 계수기 비슷한 것(CoinCounter)도 필요할 것 같다..^^
         #include <iostream>
         #include <cstring>
         using namespace std;
         int selection, num;
          cin >> selection;
         class CoinCounter{
          int remainders, coin;
          void resetCoins(){
          remainders = 0;
          void showRemainders(){
          cout << "REMAINDERS : " << remainders << endl;
          void insertCoins(){
          cin >> coin;
          if (coin == 1) coin = 10;
          else if (coin == 2) coin = 50;
          else if (coin == 3) coin = 100;
          else if (coin == 4) coin = 500;
  • 데블스캠프2006/목요일/winapi . . . . 88 matches
         #include <Windows.h>
         int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
          PSTR szCmdLine, int iCmdShow)
         = sample2. hello_win =
         #include <Windows.h>
         LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
         int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
          PSTR szCmdLine, int iCmdShow)
          static char szAppName[] = "HelloWin" ;
          wndclass.hInstance = hInstance ;
          hwnd = CreateWindow (szAppName, // window class name
          "The Hello Program", // window caption
          WS_OVERLAPPEDWINDOW, // window style
          CW_USEDEFAULT, // initial x position
          CW_USEDEFAULT, // initial y position
          CW_USEDEFAULT, // initial x size
          CW_USEDEFAULT, // initial y size
          NULL, // parent window handle
          NULL, // window menu handle
          hInstance, // program instance handle
  • OurMajorLangIsCAndCPlusPlus/Class . . . . 87 matches
          int d, m, y;
         void init_date(Date *date, int d, int m, int y)
         void add_year(Date *date, int n)
         void add_month(Date *date, int n)
         void add_day(Date *date, int n)
          int d, m, y;
          void init(int dd, int mm, int yy);
          void add_year(int n);
          void add_month(int n);
          void add_day(int n);
         void Date::init(int dd, int mm, int yy)
         void Date::add_year(int n)
         void Date::add_month(int n)
         void Date::add_day(int n)
          int d, m, y;
          Date(int dd, int mm, int yy);
          void add_year(int n);
          void add_month(int n);
          void add_day(int n);
         Date::Date(int dd, int mm, int yy)
  • OurMajorLangIsCAndCPlusPlus/string.h . . . . 87 matches
         string.h - string과 관련된 라이브러리
         || void * memccpy(void * dest, const void * scr, int c, unsigned int count) || Copies characters from a buffer. ||
         || int memcmp(const void * buf1, const void * buf2, size_t count) || Compare characters in two buffers. ||
         || int memicmp(const void * buf1, const void * buf2, unsigned int count) || Compares characters in two buffers (case-insensitive). ||
         || void * memset(void * dest, int c, size_t count) || Sets buffers to a specified character. ||
         || void * memchr(const void * buf, int c, size_t count) || Finds characters in a buffer. ||
         || char * strcpy(char * strDestination , const char * strSource ) || Copy a string. ||
         || char * strncpy(char * strDestination, const char * strSource, size_t count) || Copy characters of one string to another ||
         || char * strcat(char * strDestination, const char * strSource) || Append a string. ||
         || char * strncat(char * strDestination, const char * strSource, size_t count) || Append characters of a string. ||
         || int strcmp(const char *stirng1, const char *string2) || Compare strings. ||
         || int strcmpi(const char *stirng1, const char *string2) || Compares two strings to determine if they are the same. The comparison is not case-sensitive. ||
         || int stricmp(const char *stirng1, const char *string2) || Perform a lowercase comparison of strings. ||
         || int strncmp(const char *string1, const char *string2, size_t count) || Compare characters of two strings. ||
         || int strnicmp(const char *string1, const char *string2, size_t count) || Compare characters of two strings without regard to case. ||
         || char * strset(char *string, int c) || Set characters of a string to a character. ||
         || char * strnset(char *stirng, int c, size_t count) || Initialize characters of a string to a given format. ||
         || size_t strlen(const char *string) || Get the length of a string. ||
         || int strcoll(const char * stirng1, const char * stirng2) || Compare strings using locale-specific information. ||
         || char * strchr(const char *string, int c) || Find a character in a string. ||
  • 오목/재니형준원 . . . . 87 matches
         // OmokView.h : interface of the COmokView class
         #if !defined(AFX_OMOKVIEW_H__95EACAA5_FAEA_4766_A6B3_6C6245050A8B__INCLUDED_)
         #define AFX_OMOKVIEW_H__95EACAA5_FAEA_4766_A6B3_6C6245050A8B__INCLUDED_
          int row, col;
          int omokBoard[19][19];
          int number;
          int count;
          virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
          virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
          virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
          virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
          void CheckMove(int r, int c, int x, int y);
          void init();
          afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
         #ifndef _DEBUG // debug version in OmokView.cpp
         inline COmokDoc* COmokView::GetDocument()
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         #endif // !defined(AFX_OMOKVIEW_H__95EACAA5_FAEA_4766_A6B3_6C6245050A8B__INCLUDED_)
         #include "stdafx.h"
  • CubicSpline/1002/NaCurves.py . . . . 86 matches
          def __init__(self, aListX):
          def __init__(self, aControlPointListX, aPieceSize):
          self.piecewiseLagrange = PiecewiseLagrange(aControlPointListX, aPieceSize)
         class ErrorSpline:
          def __init__(self, aControlPointListX):
          self.spline = Spline(aControlPointListX)
          return self.normalFunc.perform(x) - self.spline.perform(x)
          def __init__(self, aListX):
          self.controlPointListX = aListX
          self.controlPointListY = self._makeControlPointListY()
          def _makeControlPointListY(self):
          controlPointListY = []
          for x in self.controlPointListX:
          controlPointListY.append(givenFunction(x))
          return controlPointListY
          def getControlPointListX(self):
          return self.controlPointListX
          def getControlPointListY(self):
          return self.controlPointListY
          for j in range(0, len(self.controlPointListX)):
  • OurMajorLangIsCAndCPlusPlus/stdio.h . . . . 86 matches
         || int fclose(FILE *) || 해당 스트림을 닫습니다. ||
         || FILE * fdopen(int, const char *) || 파일 지정자 필드로 부터 스트림을 얻습니다. ||
         || int feof(FILE *) || 스트림의 끝이 아닌곳에서는 0, 끝에는 0이 아닌값을 리턴 합니다. ||
         || int ferror(FILE *) || 스트림에 오류가 있을경우 0이 아닌값을 리턴 합니다. ||
         || int fflush(FILE *) || 해당 스트림을 비운다. ||
         || int fgetc(FILE *) || 해당 스트림에서 한 글자를 받아온다. ||
         || int fgetpos(FILE *, fpos_t *) || 해당 스트림의 포인터의 위치를 fpos_t에 저장한다. ||
         || char * fgets(char *, int, FILE *) || char*에 int의 길이만큼 스트림에서 읽어서 저장한다. 파일의 끝이나 오류일 경우 NULL을 리턴한다. ||
         || int fileno(FILE *) || 해당 스트림의 핸들을 반환한다. ||
         || int fprintf(FILE *, const char *, ...) || 해당 스트림에 문자열을 기록한다. ||
         || int fputc(int, FILE *) || 해당 스트림에 한 문자를 기록한다. ||
         || int fputs(const char *, FILE *) || 해당 스트림에 문자열을 기록한다. ||
         || int fscanf(FILE *, const char *, ...) || 해당 파일에서 문자열을 지정한 형식으로 읽어들인다. ||
         || int fsetpos(FILE *, const fpos_t *) || 해당 스트림의 포인터를 지정한 위치로 옮긴다. ||
         || int fseek(FILE *, long, int) || 해당 스트림의 포인터를 세번째 인자를 기준으로 두번째 인자만큼 옮긴다. SEEK_SET : 스트림 시작, SEEK_CUR : 현재 포인터 위치, SEEK_END : 스트림 끝 ||
         || int getc(FILE *) || 해당 스트림에서 한 글자를 받아온다. ||
         || int getchar(void) || 표준 입출력으로 부터 한 글자를 읽어온다. ||
         || int printf(const char *, ...) || 해당 형식의 문자열을 출력한다. ||
         || int putc(int, FILE *) || 해당 스트림으로 문자를 출력한다. ||
         || int putchar(int) || 표준 입출력으로 문자를 한개 출력한다. ||
  • BlueZ . . . . 85 matches
         The overall goal of this project is to make an implementation of the Bluetooth™ wireless standards specifications for Linux. The code is licensed under the GNU General Public License (GPL) and is now included in the Linux 2.4 and Linux 2.6 kernel series.
         #include <stdio.h>
         #include <stdlib.h>
         #include <unistd.h>
         #include <sys/socket.h>
         #include <bluetooth/bluetooth.h>
         #include <bluetooth/hci.h>
         #include <bluetooth/hci_lib.h>
         int main(int argc, char **argv)
          inquiry_info *ii = NULL;
          int max_rsp, num_rsp;
          int dev_id, sock, len, flags;
          int i;
          perror("opening socket");
          ii = (inquiry_info*)malloc(max_rsp * sizeof(inquiry_info));
          num_rsp = hci_inquiry(dev_id, len, max_rsp, NULL, &ii, flags);
          if( num_rsp < 0 ) perror("hci_inquiry");
          printf("%s %s\n", addr, name);
         #include <stdio.h>
         #include <unistd.h>
  • JavaNetworkProgramming . . . . 84 matches
         *'''지금은 여기서 접는것이고. 누군가 Java Network Programming을 본다면 참여하기 바란다 ^^;;'''
         JAVA Network Programming
          public AuthException(String detail){
          public static void main(String[] args){
          public synchronized void begin(){ //동기화
          execution.setPriority(Thread.MIN_PRIORITY); //우선수위를 정함
          execution.interrupt(); //stop()을 쓰는 것은 별로 바람직하지 않다 stop()은 쓰레드가 어떤 상황에 있더라도 쓰레드를 바로 멈추어 버리기 때문에,
          } //사용하는 방법이 더좋다. 가장 권장되는 방법은 위와 같은 플래그와 함께 interrupt()를 사용하는 것이다.
          }finally{
          *OutpuStream,InputStream : 모든 다른 스트림 클래스들의 수퍼클래스이다. 이 Chapter에서는 이둘 클래스 설명
          public static void println(String msg) throws IOException{
          synchronized(System.out){ //메시지를 터미널에 출력하던 도중에 다른 쓰레드에 의해 String이 출력될수 없도록 동기화처리
          for(int i=0; i<msg.length(); ++i)
          System.out.write(msg.charAt(i) & 0xff); //16비트 유니코드로 구성된 String은 연속한 바이트로 매스킹한후 출력
          public static void main(String[] args) throws IOException {
          for(int i=0; i<args.length;i++){
          println(args[i]); //넘겨받은 문자를 하나씩 넘김
          *InputStream 클래스 : InputStream 클래스는 통신 채널로부터 데이터를 읽어 내는 관문을 의미한다. OutputStream에 의해 통신 채널로 쓰여진 데이터는 해당하는 InputStream에 의해 읽혀진다.
          public class SimpleIn { //간단한 InputStream 예제
          public static void main(String[] args) throws IOException {
  • ProjectPrometheus/Journey . . . . 83 matches
          * 윈도우에서 작업한 ["Java"] 화일이 의외로 한방에 ["Ant"] 로 빌드하고, ZeroPage 의 Resin 서버에서 동작하는 것을 보며, 다시금 자바의 위력이 실감난다.
          * Mypage 에서의 Best Point 순위.
         오늘은 일의 진행이 정말 일사천리로 이루어졌다. 모이고 처음 일을 시작할때 상민이와 이전에 했던 일들과 오늘 해야 할일에 대해 간단하게 정리를 한 점이 주효한것 같다. 간단한 일이긴 하지만, 그날의 할 일에 대해 미리 머릿속에 그림을 그려둔다는 점에서 5분 Stand Up Meeting 은 의외로 효과를 주는것 같다. 그리고 Pair 를 하는중 디버깅이나 기타 일을 할때 미리 자신이 어떠한 일을 하려고 하는지 짧으면서도 자주 대화가 오고 갔던 점, 프로그래밍때 자주 체인지 한것도 오늘 일이 잘 진행되는데 도움이 컸다고 생각. --["1002"]
          * 한동안 PairProgramming 할때 주로 관찰자 입장에 있어서인지. (이상하게도. 창준이형이랑 할때나 상민이랑 할때나. 그나마 저번 르네상스 클럽때는 아무도 주도적으로 안잡아서 그냥 내가 잡긴 했지만, 다른 사람들이 적극적으로 나서지 않을때엔 웬지 그 사람들과 같이 해야 한다는 강박관념이 있어서.)
         그동안의 Pair 경험에 의하면, 가장 Pair 가 잘 되기 어려운 때는, 의외로 너무 서로를 잘 알고 Pair를 잘 알고 있는 사람들인 경우인것 같다는. -_-; (Pair 가 잘 안되고 있다고 할때 소위 '이벤트성 처방전'을 써먹기가 뭐하니까. 5분 Pair를 하자고 하면 그 의도를 너무 쉽게 알고 있기에.) 잘 아는 사람들과는 주로 관찰자 입장이 되는데, 잘 아는 사람일수록 오히려 개인적으로 생각하는 룰들을 잘 적용하지 않게 된다. (하는 일들에 대한 Tracking 이라던지, 다른 사람이 먼저 Coding 을 하는중 이해 못할때 질문을 한다던지 등등. 차라리 그냥 '저사람 코딩 잘 되가나본데..'. 오히려 예전에 '문제'라고 생각하지 않았던 부분이 요새 '문제' 로 다가 온다.)
         1002 개인적으로 진행. 뭐 진행이라기 보다는, 오랜만에 Solo Programming 을 해봤다. 장점으로는 느긋하게 소스를 리뷰하고 대처할 시간을 천천히 생각해볼 수 있던점. (보통은 상민이가 이해를 빨리 하기 때문에 먼저 키보드를 잡는다.) 단점으로는 해결책에 대한 Feedback 을 구할 곳이 없다는 점이 있다. (평소 물어보고 둘이 괜찮겠다 했을때 구현을 하면 되었는데, 이경우에는 책임 소재랄까.. 웬지 혼자서 생각한 것은 의외의 틀린 답이 있을 것 같은 불안감이 생긴다. 테스트 중독증 이후 이젠 페어 중독증이려나..)
         다행히 모듈화가 잘 되어있었고, Test 들이 있었기에 ["neocoin"] 과 ["1002"] 는 주로 깨진 테스트들을 바로잡기로 했다. 일단 도서관들의 HTML 을 얻고, Local HTML 문서에 대해 데이터들을 잘 추출해내는지에 대한 테스트를 먼저 복구했다.
         Object-RDB Mapping 에 대해서는 ["PatternsOfEnterpriseApplicationArchitecture"] 에 나온 방법들을 읽어보고 그중 Data Mapper 의 개념을 적용해보는중. Object 와 DB Layer 가 분리되는 느낌은 좋긴 한데, 처음 해보는것이여서 그런지 상당히 복잡하게 느껴졌다. 일단 처음엔 Data Gateway 정도의 가벼운 개념으로 접근한뒤, Data Mapper 로 꺼내가는게 나았을까 하는 생각.
          * Side Effect 는 Refactoring 의 적이라는 생각이 오늘처럼 든 적이 없었다. -_-; Extract Method 같은 일을 하는 경우 더더욱.! --["1002"]
          * AcceptanceTest login , view page 테스트 추가
          * MPP 에 login, SimpleSearch 구성과 결과 출력
          * Server Refactoring
         서버쪽 클래스들에 대해서 Refactoring 을 시도 데이터클래스이면서 그 용도가 조금씩 달랐던 클래스들을 하나로 묶었다. (일단 모여해쳐 시도용으로) 그러면서 안쓰는 클래스들을 조금씩 지워나갔다. 패키지들중 Test 패키지와 메인 소스 패키지, 임시 코드 패키지들에 대해서 화일들을 옮기고 정리했다. 아직 완벽하게 정리된것 같진 않지만, 개인적으로는 이전에 비해 만족스러웠다. (이제 Target은 Resin 쪽과 임시소스들 디렉토리.)
          * Code Review 로서 Refactoring 이 이용된다고 했다시피, Refactoring을 해 나가면서 전체 프로그램의 그림이 좀 더 이해가 갔다. 한동안 해당 프로그램에 대해서 플밍 리듬을 놓쳤을때 Refactoring 을 시도하는것도 좋은 전략이라 생각.
          * Task 를 작성할때 Refactoring 을 명시적으로 써 놔야 하겠다. Acceptance Test 처럼. 써놓지 않으니까 잊어먹고 자주 안해준 것 같다. 그리고 생각보다 시간이 걸리는 만큼. (이건 Refactoring 을 플밍 중에 자주 해주지 않아서인것 같다. 2시간정도 걸렸으니)
          * DB Schema 궁리 & Recommendation System 을 DB 버전으로 Integration 시도
          * Pair 중간에 ["1002"] 는 목소리가 커질때가 있다. 하나는, 내가 놓치고 있을 경우에 대해 다른 사람이 이야기를 제대로 안해줬다고 생각되는 경우. 뭐 보통은 ["1002"]의 잘못을 다른 사람에게 떠넘기기 위한 방편인 경우가 많다 -_-; (찔린다; 나도 JuNe 형이랑 Pair 할때 무방비상태인 경우가 많아서;) 뭐, 같이 무방비였다가 못느끼고 넘어간 경우라면 아하~ 하면서 플밍하겠지만, 하나를 고치고 나서, 다른 사람이 당연한 듯이 좋은 방법으로 해결해낼때엔. ("왜 아까는 이야기안해?" "당연한거잖나."). 일종의 경쟁심리이려나. 에고 를 잊어야 하는게 PairProgramming 이지만, 사람 마음이 그렇기엔 또 다른것 같다. 코드 기여도에 대해서 보이지 않는 경쟁이 붙는다고 할까나.
          * MockObjects 를 이용, Database 에 대해서 MockObjects Test 와 Real DB Test 를 같이 해 나가보았다. DB - Recommendation System 연결을 위해서는 RS 에서의 object 들과 DB 와의 Mapping 이 필요하다고 판단, DB Schema 를 같이 궁리한 뒤, Test 를 작성하였다. 이때 이전 기억을 떠올리면서 MockObjects Test 를 상속받아서 Real DB Test 를 작성하는 식으로 접근해봤는데 좋은 방법이라 생각.
          * Martin Fowler 의 PatternsOfEnterpriseApplicationArchitecture 를 읽어보는중. 우리 시스템의 경우 DataMapper 의 개념과 Gateway 의 개념을 적용해볼 수 있을 것 같다. 전자는 Data Object 를 얻어내는데에 대해 일종의 MediatorPattern 을 적용함. DB 부분과 소켓으로부터 데이터를 얻어올 때 이용할 수 있을 것 같다. 후자의 경우는 일반적으로 Object - RDB Data Mapping (또는 다른 OO 개념이 아닌 데이터들) 인데, RowDataGateway, TableDataGateway 의 경우를 이용할 수 있을것 같다.
          * {{{~cpp BookContainerLocalTest}}} ( 테스트 작성 시작, DB연동 부분 생각해야 함 )
  • SolarSystem/상협 . . . . 83 matches
         #include <windows.h>
         #include <gl\gl.h>
         #include <gl\glu.h>
         #include <gl\glaux.h>
         #include <stdio.h>
         #include <cmath>
         HINSTANCE hInstance;
         LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
          // Calculate The Aspect Ratio Of The Window
         int InitGL(GLvoid)
          glEnable(GL_LIGHTING);
          glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
         void CorrectOfCoordinate(float distance,float x,float y, float z)
          float cosin = x/absolute;
          float sin = y/absolute;
          glTranslatef(-distance*cosin*cosin,-distance*sin*cosin,0.0f);
         int DrawGLScene(GLvoid)
          gluQuadricDrawStyle(obj,GLU_LINE);
          gluCylinder(obj,1.0f,1.0f,0.1,24,24);
          CorrectOfCoordinate(distance2,1.0f,1.0f,0.0f);
  • 기본데이터베이스/조현태 . . . . 82 matches
         #include <stdio.h>
         #include <string.h>
         const int MAX_DATA_SIZE=100;
         const int HANG_MOK=4;
         const int MAX_MENU=8;
         const int QUIT=6;
         const char menu[MAX_MENU][20]={"insert","modify","delete","undelete","search","list","quit","?"};
         const char print_outs[HANG_MOK][5]={"id","name","tel","add"};
         const int MAX_BLOCK_SIZE=256;
         const int FALSE=-1;
         const int ALL=-1;
         int how_many_data=0;
         int prv_del=-1;
         int select_menu();
         void function_insert();void function_modify();void function_delete();void function_undelete();void function_search();void function_list();void function_quit();void function_help();
         int such_data();
         void print_list(int);
         void modify_data(int);
         void print_cursur();
         void main()
  • 니젤프림/BuilderPattern . . . . 82 matches
         쉽게 말해서, 아주 복잡한 오브젝트를 생성해야하는데, 그 일을 오브젝트를 원하는 클래스가 하는게 아니라, Builder 에게 시키는 것이다. 그런데 자꾸 나오는 생성/표현 의 의미는, 바로 director 의 존재를 설명해 준다고 할 수 있다. director 는 Building step(construction process) 을 정의하고 concrete builder 는 product 의 구체적인 표현(representation) 을 정의하기에.. 그리고, builder 가 추상적인 인터페이스를 제공하므로 director 는 그것을 이용하는 것이다.
         http://www2.ing.puc.cl/~jnavon/IIC2142/patexamples_files/pateximg2.gif
         Product 를 생성하는 템플릿. Abstract Interface 라고도 할 수 있다.
         Builder 를 구현한 부분. 일반적으로 다수개의 Concrete Builder 가 존재하며, Builder 가 제공하는 인터페이스를 이용해서 late binding 의 형식으로 사용하게 된다. 물론, builder pattern 에서의 주 관심하는 Product 를 만들어내는 것이다.
          private String dough = "";
          private String sauce = "";
          private String topping = "";
          public void setDough (String dough) { this.dough = dough; }
          public void setSauce (String sauce) { this.sauce = sauce; }
          public void setTopping (String topping) { this.topping = topping; }
          public abstract void buildTopping();
          public void buildTopping() { pizza.setTopping("ham+pineapple"); }
          public void buildTopping() { pizza.setTopping("pepperoni+salami"); }
          pizzaBuilder.buildTopping();
         /** A customer ordering a pizza. */
          public static void main(String[] args) {
          protected String name;
          protected String description;
          public PlanComponent(String name, String description) {
          public PlanComponent getChild(int index) {
  • BusSimulation/태훈zyint . . . . 81 matches
         == main.cpp ==
         #include <iostream>
         #include <fstream>
         #include <vector>
         #include <windows.h> //sleep
         #include <string>
         #include <conio.h>
         const int BusStationNo = 10; // 버스 정류장의 개수
         const int BusNo = 10; // 버스의 대수
         #include "class.h"
         #include "function.h"
         using namespace std;
         void gotoxy(int x, int y);
         int main()
          int MinuteOfInterval=12*60; //버스 배차 간격 sec
          long waitingPeopleInBusStation[BusStationNo] = {0,0,}; //각 정류장에서 기다리는 사람수
          int IncreasePerMinute_People = 4; //버스 정류장에 사람들이 1분당 증가하는 정도
          int ridingSecond = 2; //1사람이 버스에 타는데 걸리는 시간(초)
          int LastMovingBusIndex=-1; //마지막 움직이기 시작한 버스의 인덱스
          int LastMovingBusStartTime= -1 * MinuteOfInterval;
  • EcologicalBinPacking/강희경 . . . . 81 matches
         #include<iostream>
         using namespace std;
         int bottle[9];
         int noMove[6];
         int movedBottle;
         int input();
         int minimumMove();
         void output(int noMove);
         void main()
          output(minimumMove());
         int input()
          int totalBottle = 0;
          for(int i = 0; i < 9; i++)
          cin >> bottle[i];
          cin.get();
         int minimumMove()
          int MAX = 0;
          movedBottle = input();
          int minimum;
          for(int i = 0; i < 6; i++)
  • JavaStudy2003/세번째과제/곽세환 . . . . 81 matches
         import javax.swing.JOptionPane;
          private String name;
          public void setName(String n)
          public static void main(String[] args) {
         == Point.java ==
         public class Point {
          private int x, y;
          public Point() {
          public void setX(int xValue) { x = xValue; }
          public void setY(int yValue) { y = yValue; }
          public int getX() { return(x); }
          public int getY() { return(y); }
          public void move(int xValue, int yValue) {
         import javax.swing.*;
          private Point middlePoint = new Point();
          private int width;
          private int height;
          private String info = "";
          public void setData(int xValue, int yValue, int width, int height) {
          middlePoint.setX(xValue);
  • VMWare/OSImplementationTest . . . . 81 matches
         gcc였습니다. 하지만 저는 windows 환경하의 vc 개발을 주로 해왔으므로 무척
         불편(?)했습니다. Djgpp 라는 dos용 gcc 포팅 버전과 윈도우용 cygwin 패키지를
          http://www.execpc.com/~geezer/johnfine/index.htm
          Intel은 다른 cpu 벤더보다 역사가 오래되어서 4bit microprocessor인 4004에서
         intel x86 cpu에서 돌던 프로그램도 586에서도 수행되도록 하위호환을 갖게 됩니다.
         로드할 것입니다. ( no 플로피 부팅디스켓, no 리붓, no test machine )
         - Netwide Asm으로 at&t 계열 및 intel 계열 둘다 지원하고 target format도
          main.c
         [BITS 16] ; We need 16-bit intructions for Real
         [ORG 0x7C00] ; The BIOS loads the boot sector into memory location
          int 13h ; Call interrupt 13h
          jnz reset_drive ; Try again if ah != 0
          mov bx, 0h ; Destination address = 0000:1000
          mov ch, 0 ; Cylinder = 0
          int 13h ; Call interrupt 13h
          jnz reset_drive ; Try again if ah != 0
         A20Address: ; Set A20 Address line here
          JMP Continue
          in al,64h
         Continue:
  • Calendar성훈이코드 . . . . 80 matches
         #include <stdio.h>
         void printCalender(int year, int first);
         void printFirstTab(int month, int year);
         int printDays(int month, int year, int leftDays);
         void print_space();
         void print_days(int day);
         int daysOfMonth(int month, int year);
         int IsLeafYear(int year);
         #include "Calender.h"
         void printCalender(int year, int first)
          int month, leftDays;
          printFirstTab(month, year);
          leftDays = printDays(month, year, first);
         void printFirstTab(int month, int year)
          printf(" January %d \n", year);
          printf(" February %d \n", year);
          printf(" March %d \n", year);
          printf(" April %d \n", year);
          printf(" May %d \n", year);
          printf(" June %d \n", year);
  • 만년달력/김정현 . . . . 80 matches
         TimeInfo에서 시간 정보를 얻어와
         public class TimeInfo {
          private static final int BLANK = 1;
          private int[] days= {31,28,31,30,31,30,31,31,30,31,30,31};
          private String[] dayNames= {
          public int getDaysInMonth(int month) {
          public int getDaysInYearMonth(int year, int month) {
          return getDaysInMonth(month)+1;
          return getDaysInMonth(month);
          private boolean isSpecialYear(int year) {
          public int getDaysInYear(int year) {
          private boolean isProperMonth(int year, int month) {
          private boolean isProperDate(int year, int month, int day) {
          && ( 0 < day && day <= getDaysInYearMonth(year, month) );
          public String getDayName(int year, int month, int day) {
          int reducedDays= getTotalDaysUntil(year, month, day)%dayNames.length;
          private String getDayName(int sequence) {
          public int getTotalDaysUntil(int year, int month, int day) {
          int totalDays= 0;
          for(int i=1;i<year;i++) {
  • FromDuskTillDawn/조현태 . . . . 79 matches
         #include <iostream>
         #include <vector>
         #include <string>
         using namespace std;
         const char DEBUG_READ[] = "2\n3\nUlm Muenchen 17 2\nUlm Muenchen 19 12\nUlm Muenchen 5 2\nUlm Muenchen\n10\nLugoj Sibiu 12 6\nLugoj Sibiu 18 6\nLugoj Sibiu 24 5\nLugoj Medias 22 8\nLugoj Medias 18 8\nLugoj Reghin 17 4\nSibiu Reghin 19 9\nSibiu Medias 20 3\nReghin Medias 20 4\nReghin Bacau 24 6\nLugoj Bacau";
         const int BUFFER_SIZE = 255;
         #define TRUE 1
         #define FALSE 0
          STown(const char* inputName)
          name = inputName;
          string name;
          vector<int> startTime;
          vector<int> timeDelay;
         string g_suchStartTown;
         string g_suchEndTown;
         int g_minimumDelayTime = 0;
          for (register unsigned int i = 0; i < g_myTowns.size(); ++i)
          int startTime;
          int delayTime;
          int sizeOfTimeTable;
  • OurMajorLangIsCAndCPlusPlus/XML/조현태 . . . . 79 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         typedef unsigned int bool;
         #define FALSE 0
         #define TRUE 1
         #define INPUT_BUFFUR 255
          int nextBlockNumber;
         const char DEBUG_TEXT[] = "<zeropage>\n <studies>\n <cpp>\n <instructor>이상규</instructor>\n <participants>\n <name>김상섭</name>\n <name>김민경</name>\n <name>송수생</name>\n <name>조현태</name>\n </participants>\n </cpp>\n <java>\n <instructor>이선호</instructor>\n <participants>\n <name>김민경</name>\n <name>송수생</name>\n <name>조현태</name>\n </participants>\n </java>\n <mfc>\n <participants/>\n </mfc>\n </studies>\n</zeropage>\n";
          SReadBlock* myPoint = NULL;
          else if (NULL == myPoint)
          const char* nameEndPoint = strchr(readData, '>');
          char* textBuffur = (char*)malloc(sizeof(char) * (nameEndPoint - readData + 1));
          strncpy(textBuffur, readData, nameEndPoint - readData);
          textBuffur[nameEndPoint - readData] = 0;
          myPoint = CreateNewBlock(textBuffur, NULL);
          AddNewTail(headBlock, myPoint);
          if ('/' == myPoint->name[strlen(myPoint->name) - 1])
          myPoint->name[strlen(myPoint->name) - 1] = 0;
          myPoint->isOneTable = TRUE;
  • whiteblue/MyTermProjectForClass . . . . 79 matches
         #define _DATA_H_
          int number;
          int kor;
          int eng;
          int math;
          int total;
          Data(char na[], int nu, int k, int e, int m);
          int showNumber(int select);
          int showNum();
          int showTotal();
         #define _JUDGEMENT_H_
         #include "Data.h"
         #include "Order.h"
          int tempData;
          int tempNumber;
          int stData[20];
          int arrayNumber[20];
          void sort(bool IsItSort , int select , Data d[]);
          void outputPart(bool IsItPart, Data d[] , int select);
         #define _ORDER_H_
  • 손동일 . . . . 79 matches
         == Coding.... ==
          실컷 잠자기, LINUX, VB
         #include <iostream>
         using namespace std;
         const int Max = 11 ;
          int going;
          int goal;
          int length;
         int Vertex[Max][Max] =
         int temp;
         int temp1[10] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
         int soo = 0;
         int soo2 = 1;
         int first = 0;
         int last = 0;
         int n = Max;
         int between[Max];
         int check[Max];
         void shortpath(int Vertex[Max][Max],int between[Max], int n, int check[Max]);
         void using_v(int n);
  • ErdosNumbers/황재선 . . . . 78 matches
          private TreeMap<String, String> tm;
          private ArrayList<String> nameList;
          tm = new TreeMap<String, String>();
          public String readLine() {
          Scanner sc = new Scanner(System.in).useDelimiter("\n");
          private String[] extractNames(String line) {
          String[] divide = line.split(":");
          String[] peopleName = divide[0].split(",");
          for (int i = 0; i < peopleName.length; i++)
          String[] people = new String[peopleName.length/2];
          for (int i = 0; i < peopleName.length; i+=2) {
          private void setErdosNumber(String[] people) {
          for(String name : people) {
          boolean joint = false;
          nameList = new ArrayList<String>();
          for(String name : people) {
          if (tm.containsKey(name)) {
          joint = true;
          if (joint) withCoWorker(people);
          private void withErdos(String[] people) {
  • JTDStudy/첫번째과제/정현 . . . . 78 matches
          for(int i=0;i<100;i++) {
          String number= extractor.getRandomBall();
          game.inputNumber("152");
          game.inputNumber("123");
         public class GameMain {
          public static void main(String[] args) {
          Scanner input= new Scanner(System.in);
          System.out.println("baseball game");
          String number= input.nextLine();
          baseBall.inputNumber(number);
          System.out.println("what are you doing?");
          System.out.print(baseBall.getStrike() + " strike, ");
          System.out.println(baseBall.getBall() + "ball");
          System.out.println("good");
          String playerInput;
          private String number;
          public void inputNumber(String string) {
          number= string;
          public int getStrike() {
          public int getBall() {
  • MoinMoinBugs . . . . 78 matches
         Back to MoinMoinTodo | Things that are MoinMoinNotBugs | MoinMoinTests contains tests for many features
         === Tables broken by trailing spaces ===
         Tables don't work right if there are trailing spaces.
         ''Yes, by design, just like headings don't accept trailing spaces. In the case of headings, it is important because "= x =" is somewhat ambiguous. For tables, the restriction could be removed, though.''
         || OK || again ||
         And as a fun sidenote, the UserPreferences cookie doesn't seem to work. The cookie is in my ~/.netscape/cookies file still. My EfnetCeeWiki and XmlWiki cookies are duplicated!? It is kind of like the bug you found when I, ChristianSunesson, tried this feature with netscape just after you deployed it.
         Hehe, and my changes are not logged to the RecentChanges database, I'll hope you find these changes this year. :) BUG BUG BUG!
         ''Well, Netscape suxx. I send the cookies with the CGI'S path, w/o a hostname, which makes it unique enough. Apparently not for netscape. I'll look into adding the domain, too.''
         Hmmm...I use NetScape, MsIe, MoZilla and Galeon. I haven't had a problem but some other's using MoinMoin 0.8 have intermittently lost cookies. Any ideas?
         -- BruceDurling
          * Solve the problem of the Windows filesystem handling a WikiName case-indifferent (i.e. map all deriatives of an existing page to that page).
          * Check whether the passed WikiName is valid when editing pages (so no pages with an invalid WikiName can be created); this could also partly solve the case-insensitive filename problem (do not save pages with a name only differing in case)
          * InterWiki links should either display the destination Wiki name or generate the A tag with a TITLE attribute so that (at least in IE) the full destination is displayed by floating the cursor over the link. At the moment, it's too hard to figure out where the link goes. With that many InterWiki destinations recognised, we can't expect everyone to be able to recognise the URL.
          * Hover over the interwiki icon and you'll already get a tooltip, I'll look into the title attribute stuff.
          * RecentChanges can tell you if something is updated, or offer you a view of the diff, but not both at the same time.
          * That's what I'm doing for the time being, but by the same rationale you don't need to offer diffs from RecentChanges at all.
          * The intent is to not clutter RecentChanges with functions not normally used. I do not see a reason you want the lastest diff when you have the much better diff to your last visit.
          * It'd be really nice if the diff was between now and the most recent version saved before your timestamp (or, failing that, the oldest version available). That way, diff is "show me what happened since I was last here", not just "show me what the last edit was."
          * Hmmm, that '''is''' so. :) Take a look at the message at the top of the diff page after clicking on "updated", it'll often show text like "spanning x versions". You need the current CVS version for that, though.
          * Oh, okay. Is this MoinMoin CVS enabled? Reason being: I did a few updates of a page, and was only being shown the last one. I'll try that some more and get back to you.
  • TheJavaMan/지뢰찾기 . . . . 78 matches
         [http://zeropage.org/~darkduck/mine.html 실행]
         import javax.swing.*;
         public class Mine extends JApplet {
          private int row, col, numMines;
          private Vector mines = new Vector();
          //private Point firstClick = new Point();
          private int map[][];
          private int numClick; // 왼쪽 버튼 누른 수
          // numClick + numMines == row * col => 겜종료
          private int numFlags; // 깃발 꼿은 수
          // numMines - numFlags = 남은 폭탄 수
          numLeftMines = new JTextField(3),
          public void init() {
          Container cp = getContentPane();
          mines.clear();
          setMapSize(row, col, numMines);
          setMines();
          numLeftMines.setText(String.valueOf(numMines));
          top.add(numLeftMines, BorderLayout.WEST);
          setMines();
  • 고한종/십자가돌리기 . . . . 78 matches
         #include<stdio.h>
         #include<Windows.h>
         // ㄴ#include<windows.h> 선언후 사용.
         // #include<conio.h>의 clrscr();은 비쥬얼 C++에서는 안써진다더라. 왜그럴까 ㅠㅜ
         int scale;// 전역 변수를 써야 한다니 ㅜㅠ
         int i,j; //i는 행, j는 열.
         int k,z; //각각 그냥 변수.
          if(i<scale && j==scale){printf("%2.d\n",1+k++);}
          if(i==scale && j!=scale&&j!=2*scale-1){printf("%2.d",2*scale+z++);}
          if(i==scale && j==2*scale-1){printf("%2.d\n",2*scale+z++);} // 우왕 ()안에서도 연산이 되네?
          if(i==scale && j==scale){printf("%2.d",1+k++);}
          if(i>scale && j==scale){printf("%2.d\n",1+k++);}
          if(j<scale && i!=scale){printf(" ");}
          if(i==j && i<scale){printf("%2.d",2*scale+z++);}
          if(i==j && i>scale){printf("%2.d\n",2*scale+z++);}
          if((i+j)==2*scale && i<=scale){printf("%2.d\n",1+k++);}
          if((i+j)==2*scale && i>scale){printf("%2.d",1+k++);}
          if(i>j || i+j<2*scale){if(i!=j && i+j!=2*scale){printf(" ");}}//잉여칸
          if(i<scale && j==scale){printf("%2.d\n",2*scale+k++);}
          if(i==scale && j!=2*scale-1){printf("%2.d",2*scale-1-(z++));}
  • 스네이크바이트/C++ . . . . 78 matches
         #include<iostream>
         using namespace std;
          int ID; //학번
          int Math; //수학성적
          int Korean; //국어성적
          int English; //영어성적
          student(char *name, int id, int math, int kor, int eng);//생성자
          int getTotal(); //총점을 구하는 함수
          int getMath(); //수학점수에 접근
          int getKor(); //국어점수에 접근
          int getEng(); //영어점수에 접근
         student::student(char *name, int id, int math, int kor, int eng)
         int student::getTotal()
         int student::getMath()
         int student::getKor()
         int student::getEng()
         void main()
          int Max;
          int bestStu;
          int i;
  • 2002년도ACM문제샘플풀이/문제D . . . . 77 matches
         #include <iostream>
         #include <algorithm>
         #include <functional>
         using namespace std;
         struct InputData
          int n;
          int x;
          int weight[30];
         int numberOfData;
         InputData inputData[10];
         void input()
          cin >> numberOfData;
          for(int i = 0 ; i < numberOfData ; i++)
          cin >> inputData[i].n;
          cin >> inputData[i].x;
          for(int j = 0 ; j < inputData[i].n; j++)
          cin >> inputData[i].weight[j];
          for(int i = 0 ; i < numberOfData ; i++)
          sort(&inputData[i].weight[0],&inputData[i].weight[inputData[i].n],greater<int>());
          int team1 = inputData[i].weight[0], team2 = inputData[i].weight[1];
  • EightQueenProblem/da_answer . . . . 76 matches
         interface
          Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
          X: integer;
          Y: integer;
          function getNextQueenPos(index, X, Y:integer):boolean;
          function checkRule(X,Y:integer):boolean;
         begin
          i, j: integer;
         begin
          begin
          begin
          showMessage(inttostr(i));
          begin
          begin
          showMessage(inttostr(QueenPosArr[j].X)+'-'+inttostr(QueenPosArr[j].Y));
          begin
         function TForm1.getNextQueenPos(index, X, Y:integer):boolean;
          i: integer;
          nowIndex: integer;
         begin
  • OurMajorLangIsCAndCPlusPlus/print/조현태 . . . . 76 matches
         == OurMajorLangIsCAndCPlusPlus/print/조현태 ==
         #include <stdio.h>
         #include <stdarg.h>
         #include <math.h>
         void PrintNumber(int leftGab, int number, double lowNumber)
          int numberSize = 0;
          for (int tempNumber = number; tempNumber > 0; ++numberSize)
          int powNumber = (int)pow((int)10, numberSize);
          for (register int i = 0; i < leftGab - numberSize; ++i)
          for (register int i = 0; i < numberSize; ++i)
          int printNumber = (int)lowNumber;
          fputchar(printNumber + '0');
          lowNumber -= printNumber;
         void print(const char* outData, ...)
          for (register int readPoint = 0; 0 != outData[readPoint]; ++readPoint)
          if ('%' == outData[readPoint])
          ++readPoint;
          int spaceSize = 0;
          for (; '0' <= outData[readPoint] && '9' >= outData[readPoint]; ++readPoint)
          spaceSize = spaceSize * 10 + (outData[readPoint] - '0');
  • Refactoring/ComposingMethods . . . . 76 matches
         = Chapter 6 Composing Methods =
          * You have a code fragment that can be grouped together.[[BR]]''Turn the fragment into a method whose name explains the purpose of the method.''
          void printOwing(double amount){
          printBanner();
          // print details
          System.out.println( "name:" + _name);
          System.out.println( "amount" + amount);
          void printOwing(double amount){
          printBanner();
          // print details
          printDetails( amount );
          void printDetails (double amount){
          System.out.println( "name:" + _name);
          System.out.println( "amount" + amount);
         == Inline Method p117 ==
          * A method's body is just as clear as its name. [[BR]] ''Put the method's body into the body of its callers and remove the method.''
          int getRating(){
          int getRating(){
         == Inline Temp p119 ==
          * You have a temp that is assigned to once twith a simple expression, and the temp is getting in the way of other refactorings. [[BR]] ''Replace all references to that temp with the expression.''
  • [Lovely]boy^_^/USACO/WhatTimeIsIt? . . . . 76 matches
         #include <iostream>
         #include <fstream>
         #include <string>
         #include <map>
         using namespace std;
         ifstream fin("clock.in");
         int StringConvertToInt(const string& str);
         int CharToInt(char ch);
         int Jegob(int c, int e);
         void InputInitData(int& h, int& m);
         void OutputData(int&h, int& m);
         string Upcase(const string& str);
         map<int,string> table;
         int main()
          int hour, min;
          InputInitData(hour, min);
          OutputData(hour, min);
         void OutputData(int& hour, int& min)
          if(min >= 45)
          fout << Upcase(table[60-min]) << " to " << table[hour+1];
  • CppUnit . . . . 75 matches
         VC 7.0 용 세팅 화면 들만 추가합니다. --NeoCoin
         [http://janbyul.com/moin/moin.cgi/CppUnit/HowTo/Kor 이곳]에 VS2005용 설정방법을 간단하게 정리해둠. - 임인택
          === include, library directory 맞춰주기 (둘중 하나를 선택한다.) ===
          Include : {{{~cpp ...\cppunit-x.x.xinclude }}}
          a. Tools -> Options -> Directories -> Include files 에서 해당 cppunit
          a. Project -> Settings -> C/C++ -> Preprocessor -> Additional include directories
          a. Project -> Settings -> Link -> Input -> Additional Library directories
          * Project Setting - Link - General - object/library 에 cppunitd.lib, testrunnerd.lib 를 추가해준다.
          * 해당 프로젝트가 있는 곳의 debug 등의 디렉토리에 해당 lib 디렉토리에 있는 testrunnerd.dll 을 복사해준다. 이는 Project Setting - Post-Build-step 의 Post-build-command 에 다음을 추가해주면 컴파일 할때마다 dll 화일을 자동으로 복사해준다.
          * Project Setting - Code Generation - Use Run-Time library 를 다음으로 맞춰준다.
         #include <msvc6/testrunner/testrunner.h>
         #include <cppunit/extensions/testfactoryregistry.h>
         BOOL CMyApp::InitInstance () {
         #define CPP_UNIT_EXAMPLETESTCASE_H
         #include <cppunit/TestCase.h>
         #include <cppunit/extensions/HelperMacros.h>
         #include "stdafx.h" // MFC 인 경우.
         #include "hostapp.h" // MFC 인 경우 해당 App Class
         #include "ExampleTestCase.h"
         #include <iostream>
  • STL/vector/CookBook . . . . 75 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         int main()
          * 몇 번 써본결과 vector를 가장 자주 쓰게 된다. vector만 배워 놓으면 list나 deque같은것은 똑같이 쓸수 있다. vector를 쓰기 위한 vector 헤더를 포함시켜줘야한다. STL을 쓸라면 #include <iostream.h> 이렇게 쓰면 귀찮다. 나중에 std::cout, std:vector 이런 삽질을 해줘야 한다. 이렇게 하기 싫으면 걍 쓰던대로 using namespace std 이거 써주자.
         = int형 배열을 int형 벡터에 복사해 보자. =
         #include <iostream>
         #include <vector>
         using namespace std;
         typedef vector<int>::iterator VIIT; // Object형이라면 typedef vector<Object>::iterator VOIT;
         int main()
          int ar[10] = {45,12,76,43,75,32,85,32,19,98}; // Object형이라면 Object ar[10]={...};
          vector<int> v(&ar[0], &ar[10]);
          for(VIIT it = v.begin() ; it != v.end(); ++it) // 제대로 복사됐나 결과 보기
          * typedef으로 시작하는 부분부터 보자. 일단 반복자라는 개념을 알아야 되는데, 사실은 나도 잘 모른다.--; 처음 배울땐 그냥 일종의 포인터라는 개념으로 보면 된다. vector<int>::iterator 하면 int형 vector에 저장되어 있는 값을 순회하기 위한 반복자이다. 비슷하게 vector<Object>>::iterator 하면 Object형 vector에 저장되어 있는 값을 순회하기 위한 반복자겠지 뭐--; 간단하게 줄여쓸라고 typedef해주는 것이다. 하기 싫으면 안해줘도 된다.--;
          * 다음엔 vector<int> v~~ 이부분을 보자. vector<T> 에는 생성자가 여럿 있다. 그 중의 하나로, 배열을 복사하는 생성자를 써보자. 그냥 쓰는법만 보자. 단순히 배열 복사하는 거다. C++ 공부했다면 성안당 10장인가 11장에 복사 생성자라고 나올것이다. 그거다.--; 그냥 2번 원소에서 5번원소까지 복사하고 싶다. 하면 vector<int> v(&ar[2], &ar[6]) 이렇게 하면 되겠지?(어째 좀 거만해 보인다.--;) 마지막은 개구간이라는걸 명심하기 바란다.
          * for 부분을 보면 앞에서 typedef 해준 VIIT 형으로 순회하고 있는것을 볼수 있다. vector<T>의 멤버에는 열라 많은 멤버함수가 있다. 그중에 begin() 은 맨 처음 위치를 가르키는 반복자를 리턴해준다. 당연히 end()는 맨 끝 위치를 가르키는 반복자를 리턴해주는 거라고 생각하겠지만 아니다.--; 정확하게는 '맨 끝위치를 가르키는 부분에서 한 칸 더간 반복자를 리턴'해주는 거다. 왜 그렇게 만들었는지는 나한테 묻지 말라. 아까 반복자는 포인터라고 생각하라 했다. 역시 그 포인터가 가르키는 값을 보려면 당연히 앞에 * 을 붙여야겠지.
         #include <iostream>
         using namespace std;
         int main()
  • TheJavaMan/숫자야구 . . . . 75 matches
         public class BBGameFrame extends Frame implements WindowListener{
          public BBGameFrame(String aStr){
          addWindowListener(this);
          public static void main(String[] args) {
          TextField input = new TextField();
          lp.add(input, "West");
          public void windowClosing(WindowEvent e) {
          public void windowOpened(WindowEvent e) { }
          public void windowIconified(WindowEvent e) { }
          public void windowDeiconified(WindowEvent e) { }
          public void windowClosed(WindowEvent e) { }
          public void windowActivated(WindowEvent e) { }
          public void windowDeactivated(WindowEvent e) { }
          * Window - Preferences - Java - Code Generation - Code and Comments
          * Window - Preferences - Java - Code Generation - Code and Comments
          public static String correct_answer;
          int temp[] = new int[3];
          for ( int i = 0 ; i < 3 ; i++)
          temp[i] = rmd.nextInt(9);
          for ( int i = 0 ; i < 3 ; i++ )
  • 이영호/미니프로젝트#1 . . . . 75 matches
         OS : Linux 체제
         Language : C & Linux System Function
         1. Client Console에 메세지를 입력하면 IRC Server로 문자열을 전송한다. -> Main Process
         2. 서버로부터 메세지 중 PING 부분 처리 -> 1번째 Child Process
         main.c -> IRC Server로 메세지를 보내는 역할을 하고 자식 프로세스를 생성한다.
         request.c -> IRC Server로 부터 날아오는 PING에 대한 PONG 처리.
         우선 구현할 부분 : main의 일부, parse의 PING 처리부분, request 부분
         // 자동으로 #linux 채널까지 접속 됨.
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         #include <sys/wait.h>
         #include <sys/types.h>
         #include <sys/socket.h>
         #include <netdb.h>
         #include <unistd.h>
         #include <arpa/inet.h>
         #define MSG_MAX 1024
         #define NICK "whoami_"
         #define HOST "irc.hanirc.org"
  • CppStudy_2002_1/과제1/CherryBoy . . . . 74 matches
         #include <iostream>
         using namespace std;
         void print(char *,int n=0);
         int main()
          int choice;
          cin.getline(exam,40);
          cin >> choice;
          cin.get();
          print(exam,choice);
         void print(char *exam,int n)
          static int count=0;
          for(int i=0;i<count;i++)
         #include <iostream>
         using namespace std;
          int cal;
         void print(candybar &, char * name="millenium Munch",double weight=2.85,int cal=350);
         int main()
          print(candy);
         void print(candybar &candy,char * name,double weight,int cal)
          for(int i=0;i<30;i++)
  • DesignPatternsAsAPathToConceptualIntegrity . . . . 74 matches
         원문 : http://www.utdallas.edu/~chung/patterns/conceptual_integrity.doc
         Design Patterns as a Path to Conceptual Integrity
         During our discussions about the organization of design patterns there was a comment about the difficulty of identifying the “generative nature” of design patterns. This may be a good property to identify, for if we understood how design patterns are used in the design process, then their organization may not be far behind. Alexander makes a point that the generative nature of design patterns is one of the key benefits. In practice, on the software side, the generative nature seems to have fallen away and the more common approach for using design patterns is characterized as “when faced with problem xyz…the solution is…” One might say in software a more opportunistic application of design patterns is prevalent over a generative use of design patterns.
         The source of this difference may be the lack of focus on design patterns in the design process. In fact, we seldom see discussions of the design process associated with design patterns. It is as though design patterns are a tool that is used independent of the process. Let’s investigate this further:
         A comment from Carriere and Kazman at SEI is interesting: “What Makes a Good Object Oriented Design?”
         · The internal regularity (….or conceptual integrity) of the architectural design
          아키텍쳐 디자인의 내부적 정규성(또는 ConceptualIntegrity)
         This is what Brooks wrote 25 years ago. "… Conceptual integrity is the most important consideration in system design."[Brooks 86] He continues: “The dilemma is a cruel one. For efficiency and conceptual integrity, one prefers a few good minds doing design and construction. Yet for large systems one wants a way to bring considerable manpower to bear, so that the product can make a timely appearance. How can these two needs be reconciled?”
         이는 Brooks 가 25년 전에 쓴 말이다. "ConceptualIntegrity 는 시스템 디자인에서 가장 중요한 일이다." 그는 계속 말한다. "이 딜레마는 잔인한 것이다. 효율성과 개념적 완전성중 혹자는 디자인과 구축을 하는 것을 선호할 것이다. 큰 시스템에 대해 혹자는 책임을 맡을 중요한 맨 파워를 가져올 방법을 원할 것이다. 그래서 프로덕트는 적시에 출현할 것이다. 어떻게 이 두 필요요소들이 조화를 이룰 거인가?
         One approach would be to identify and elevate a single overriding quality (such as adaptability or isolation of change) and use that quality as a foundation for the design process. If this overriding quality were one of the goals or even a specific design criteria of the process then perhaps the “many” could produce a timely product with the same conceptual integrity as “a few good minds.” How can this be accomplished and the and at least parts of the “cruel dilemma” resolved?
         The following summary is from “Design Patterns as a Litmus Paper to Test the Strength of Object-Oriented Methods” and may provide some insight:
         http://www.econ.kuleuven.ac.be/tew/academic/infosys/Members/Snoeck/litmus2.ps
         1. Some O-O design methodologies provide a systematic process in the form of axiomatic steps for developing architectures or micro-architectures that are optimality partitioned (modularized) according to a specific design criteria.
         2. The following methodologies are listed according to their key design criteria for modularization:
         a. Booch in OOSE relies heavily on expert designers and experience to provide the system modularization principle.
         OOSE 의 Booch 는 system modularization principle 을 제공하기 위해 전문가 디자이너와 경험에 매우 의존적이다.
         b. OMT, Coad-Yourdon, Shaer-Mellor are data driven and as such raise data dependency as the system modularization principle.
         OMT, Coad-Yourdon, Shaer-Mellor 의 경우 data driven 이며, system modularization principle 로서 데이터 의존성을 들었다.
         c. Wirfs-Brock with Responsibility Driven Design (RDD) raises contract minimization as the system modularization principle.
         d. Snoeck with Event Driven Design (EDD) raises existence dependency as the system modularization principle.
  • GDBUsage . . . . 73 matches
         The GNU Debugger, usually called just GDB, is the standard debugger for the GNU software system. It is a portable debugger that runs on many Unix-like systems and works for many programming languages, including C, C++, and FORTRAN.
         #include <stdio.h>
         #include <unistd.h>
         #include <stdlib.h>
         #define BUFSIZE 30
         int main(int argc, char** argv)
          int fd[2];
          int state;
         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.
         This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
         6 #define BUFSIZE 30
         8 int main(int argc, char** argv)
         10 int fd[2];
         13 int state;
         Starting program: /home/staff/sapius/source/ipc_test/pipe1 15
         Breakpoint 1 at 0x80484cc: file pipe1.c, line 21.
         == print # ==
         Breakpoint 1 at 0x80484cc: file pipe1.c, line 21.
  • PNGFileFormat/FormatUnitTestInPythonLanguage . . . . 73 matches
         # -*- coding: utf-8 -*-
          for i in range(8):
          chunkInfo = self.png.nextChunk()
          self.assertEqual(13, chunkInfo[0]) # 0 = chunkLen
          chunkInfo = self.png.nextChunk()
          imageWidth = ord(chunkInfo[2][0]) * (256**3)
          imageWidth += ord(chunkInfo[2][1]) * (256**2)
          imageWidth += ord(chunkInfo[2][2]) * (256**1)
          imageWidth += ord(chunkInfo[2][3])
          imageHeight = ord(chunkInfo[2][4]) * (256**3)
          imageHeight += ord(chunkInfo[2][5]) * (256**2)
          imageHeight += ord(chunkInfo[2][6]) * (256**1)
          imageHeight += ord(chunkInfo[2][7])
          bitDepth = ord(chunkInfo[2][8])
          self.assertEqual(True, bitDepth in [1,2,4,8,16])
          colorType = ord(chunkInfo[2][9])
          self.assertEqual(True, colorType in [0,2,3,4,6])
          compressionMethod = ord(chunkInfo[2][10])
          filterMethod = ord(chunkInfo[2][11])
          # InterlaceMethod
  • ReadySet 번역처음화면 . . . . 72 matches
         Software development projects require a lot of "paperwork" in the form of requirements documents, design documents, test plans, schedules, checklists, release notes, etc. It seems that everyone creates the documents from a blank page, from the documents used on their last project, or from one of a handful of high-priced proprietary software engineering template libraries. For those of us who start from a blank page, it can be a lot of work and it is easy to forget important parts. That is not a very reliable basis for professional engineering projects.
         ReadySET is an open source project to produce and maintain a library of reusable software engineering document templates. These templates provide a ready starting point for the documents used in software development projects. Using good templates can help developers work more quickly, but they also help to prompt discussion and avoid oversights.
          '''* What are some key features that define the product?'''
          * High-quality outlines, sample text, and checklists.
          * Templates for many common software engineering documents. Including:
         This is an open source project that you are welcome to use for free and help make better. Existing packages of software engineering templates are highly costly and biased by the authorship of only a few people, by vendor-client relationships, or by the set of tools offered by a particular vendor.
         These templates are in pure XHTML with CSS, not a proprietary file format. That makes them easier to edit and to track changes using freely available tools and version control systems. The templates are designed to always be used on the web; they use hyperlinks to avoid duplicating information.
         The templates are not burdened with information about individual authorship or document change history. It is assumed that professional software developers will keep all project documents in version control systems that provide those capabilities.
         These templates are not one-size-fits-all and they do not attempt to provide prescriptive guidance on the overall development process. We are developing a broad library of template modules for many purposes and processes. The templates may be filled out in a suggested sequence or in any sequence that fits your existing process. They may be easily customized with any text or HTML editor.
         We will build templates for common software engineering documents inspired by our own exprience.
         I assume that the user takes ultimate responsibility for the content of all their actual project documents. The templates are merely starting points and low-level guidance.
          '''*What are we not going to do?'''
         This project does not attempt to provide powerful tools for reorganizing the templates, mapping them to a given software development process, or generating templates from a underlying process model. This project does not include any application code for any tools, users simply use text editors to fill in or customize the templates.
         Yes. It is part of the Tigris.org mission of promoting open source software engineering. It is also the first product in a product line that will provide even better support to professional software developers. For more information, see [http://www.readysetpro.com ReadySET Pro] .
         These templates are based on templates originally used to teach software engineering in a university project course. They are now being enhanced, expanded, and used more widely by professionals in industry.
         The template set is fairly complete and ready for use in real projects. You can [http://readyset.tigris.org/servlets/ProjectDocumentList download] recent releases. We welcome your feedback.
         ReadySET is aimed at software engineers who wish that their projects could go more smoothly and professionally. ReadySET can be used by anyone who is able to use an HTML editor or edit HTML in a text editor.
          *5. Edit the templates to fill in detailed information
          *Follow instructions that appead in yellow "sticky notes"
          *Replace text in ALL CAPS with text that describes your project
  • 새싹교실/2011/무전취식/레벨10 . . . . 72 matches
         == Ice Breaking ==
          * 헤더(*.h) 파일을 하나 더 알게되었습니다 string.h
         #include<stdio.h>
         #include<string.h>
         void main(){
          int count ,i;
          {printf("Not Pel") ;
          else printf("pel");
         #include<stdio.h>
         void main()
          int num[5];
          int newnum[3];
          int max = 0 ,min = 9999;
          int selectMin,selectMax;
          int count=0;
          int i;
          int sum;
          if (num[i]<min){
          min=num[i];
          selectMin = i;
  • 새싹교실/2012/개차반 . . . . 72 matches
          * High-level의 programming skill보단 low-level의 HW적인 구조를 설명하여 low-level에서 접근하는 독특한(...) 코딩 스타일 전수
          * binary digit를 비롯한 컴퓨터 시스템의 기초적인 개념 또한 설명
          * variable 및 main function의 역할 설명
          * #include가 무엇인지 header file이 무엇인지 설명
          * 컴파일러의 역할과 compile -> link -> build 과정 설명
          * Low-Level 언어에 가까울수록 기계가 이해하기 쉬워진다 (Machine Friendly)
          * int, float, char 등
          * int는 정수를 나타내고자 할 때 사용하며 출력시 %d를 사용
          * int: integer type, 4 bytes
          * char: It used to express a character, but also used to express a integer. 1 byte
          * float: 4 byte, floating type number. Specification in IEEE 754-2008
          * function: input -> output
          * Main function
          * It has start and end point of a program.
          * return 0; : 0 is a flag noticing OS that program is ended.
          * Integer type: int(4 bytes), char(1 byte, be often used to express a character)
          * Maximum, minimum value of int(경우의 수 이용)
          * printf, scanf
          * #define
          * Example Problem: Write a program that converts meter-type height into [feet(integer),inch(float)]-type height. Your program should get one float typed height value as an input and prints integer typed feet value and the rest of the height is represented as inch type. (1m=3.2808ft=39.37inch) (출처: 손봉수 교수님 ppt)
  • 새싹교실/2012/아우토반/앞반/5.10 . . . . 72 matches
         1. void Swap(int*, int*) 함수를 구현하시오.
         #include <stdio.h>
         int main(void) {
          int a = 0;
          int *p = &a;
          printf("%d\n", a);
          printf("%d\n", &a);
          printf("%d\n", p);
          printf("%d\n", *p);
          printf("%d\n", &p);
         #include <stdio.h>
         int main(void) {
          int a = 0;
          int * pA = &a;
          printf("%d %d\n", sizeof(*pA), sizeof(pA));
          printf("%d %d\n", sizeof(*pB), sizeof(pB));
          printf("%d %d\n", sizeof(*pC), sizeof(pC));
          printf("%d %d\n", sizeof(*pD), sizeof(pD));
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         처음 printf함수에서 변수 a의 메모리 안에 있는 값을 출력
  • 숫자를한글로바꾸기/허아영 . . . . 72 matches
         #include <stdio.h>
         int num_len(int number);
         void number_data_input(int number, int number_data[10]);
         void main()
          int number, number_len, i = 0;
          int number_data[10];
          printf("끝내려면 0n");
          number_data_input(number, number_data);
          //print
          printf("%c", korean_data[2*number_data[i] - 2]);
          printf("%c", korean_data[2*number_data[i] - 1] );
          printf("%c", num_position[2*(number_len - i - 1)]);
          printf("%c", num_position[2*(number_len - i - 1)+1]);
          printf("n");
         int num_len(int number)
          int lengh = 1;
         void number_data_input(int number, int number_data[10])
          int number_len;
          int i;
         #include <stdio.h>
  • NSIS/예제3 . . . . 71 matches
         [http://zeropage.org/~reset/zb/download.php?id=KDP_board_image&page=1&page_num=20&category=&sn=&ss=on&sc=on&keyword=&prev_no=&select_arrange=headnum&desc=&no=50&filenum=1 만들어진Installer] - 실행가능.
         ; define 상수.. 버전 표시용.
         !define VER_MAJOR 1
         !define VER_MINOR 0
         Caption "Tetris Install"
         BrandingText "ZeroPage Install v1.0"
         ; Installer 의 아이콘. 반드시 32 * 32 * 16 color 이여야 한다.
         WindowIcon on
         ; Install 버튼에 대한 text
         InstallButtonText "설치"
         InstallDir $PROGRAMFILES\zp_tetris
         ComponentText "Testing ver ${VER_MAJOR}.${VER_MINOR} 설치 합니다. 해당 컴포넌트를 골라주세요~"
         ; Install 관련 Type 의 셋팅
         InstType "Normal Install"
         InstType "Full Install"
         ;InstType /NOCUSTOM
         ;InstType /COMPONENTSONLYONCUSTOM
         AutoCloseWindow false
         ShowInstDetails show
         ShowUninstDetails show
  • UpgradeC++/과제1 . . . . 70 matches
         #include<iostream>
         #include<string>
         using namespace std;
         int main()
          for(int i=0; i<5; i++)
          string space(4-i,' ');
          string star(2*i+1,'*');
          for(int k =0 ; k< i ; k++)
          for(int j=0;j<9-2*i; j++)
          int size = 11;
          string space(abs(size/2-i),' ');
          for(int j=0; j< (2*i+1) ; j++)
          for(int j=0; j< size-2*(i-size/2) ; j++)
         #include <iostream>
         using namespace std;
         int main()
          int row;
          cin >> row;
          for (int i=0;i<row;i++)
          for (int j=i+1;j<row;j++)
  • VonNeumannAirport/Leonardong . . . . 70 matches
         Traffic하고 Configuration을 각각 2차원 행렬로 표현했다. Traffic은 ( origin, destination )에 따른 traffic양이고, Configuration은 origin에서 destination 까지 떨어진 거리를 저장한 행렬이다. 전체 트래픽은 행렬에서 같은 위치에 있는 원소끼리 곱하도록 되어있다. 입출력 부분은 제외하고 전체 트래픽 구하는 기능까지만 구현했다.
          def __init__(self, numofGates):
          for i in range( numofGates ):
          def getElement( self, origin, destination ):
          return self.matrix[origin-1][destination-1]
          def __init__(self, numofGates):
          Matrix.__init__(self, numofGates)
          def construct( self, origins, destinations ):
          for o in origins:
          for d in destinations:
          self.matrix[o-1][d-1] = abs( origins.index(o)
          - destinations.index(d) ) + 1
          def getDistance( self, origin, destination ):
          return self.getElement( origin, destination )
          def __init__(self, numofGates):
          Matrix.__init__(self, numofGates)
          def construct( self, origin, traffics ):
          for traffic in traffics:
          self.matrix[origin-1][traffic.destination-1] = traffic.load
          def getLoad( self, origin, destination ):
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/변형진 . . . . 70 matches
          public static void main(String[] args) throws IOException {
          Tester tester = new Tester(new Trainer[] {
          new Trainer("package/train/economy/index.economy.db").load(),
          new Trainer("package/train/politics/index.politics.db").load() });
          for (int i = 0; i < readers.length; i++) {
          int right = 0, wrong = 0;
          for (String line; (line = reader.readLine()) != null;) {
          if (tester.getWeight(i, line) > 0) {
          System.out.println(right + "\t" + wrong + "\t" + ((double)right/(right+wrong)));
         public class Trainer {
          private String fileName;
          private int docsCount;
          private int wordsCount;
          private Map<String, Integer> wordCount = new HashMap<String, Integer>();
          public Trainer(String fileName) {
          public Trainer load() throws IOException {
          for (String line; (line = reader.readLine()) != null;) {
          for (String word : line.split("\\s+")) {
          Integer count = wordCount.get(word);
          public int getDocsCount() {
  • HardcoreCppStudy/첫숙제/Overloading/임민수 . . . . 69 matches
         #include <iostream>
         using namespace std;
         int const arsize = 11;
         void main()
          int num, garo=0, sero=0, cnt=1;
          cin >> num;
          int square[arsize][arsize]={0,};
          for (int i = 0 ; i <num; i++)
          for ( int j = 0 ; j < num ; j++)
         #include <iostream>
         using namespace std;
         const int max=20;
         void main()
          int cnt=0, board[max][max]={0,};
          int garo,sero,x,y;
          cin >> garo >> sero;
          cin >> x >> y;
          for (int i=0; i<max; i++)
          cin >> direction[i];
          for (int k=0; k<cnt; k++)
  • 압축알고리즘/주영&재화 . . . . 69 matches
         #include <iostream>
         #include<string>
         using namespace std;
         int main()
          string input;
          cin >> input;
          cout << input[0];
          for(int i=0;i<input.size() ;i++)
          cout << (int)(input[i] - input[0]);
         #include <iostream>
         #include<string>
         using namespace std;
         int main()
          string input;
          cin >> input;
          cout << input[0];
          char standard = input[0];
          for(int i=0;i<input.size() ;i++)
          if((int)(input[i] - standard)<10)
          cout << (int)(input[i] - standard);
  • PPProject/Colume2Exercises . . . . 68 matches
          === 저글링 방식 (JugglingAction) ===
         #include <iostream>
         #include <string>
         using namespace std;
         string roll( string str,int n, int i );
         int getGcd(int aN, int aM);
         void main()
          string str = "abcdefg";
          int n = str.length();
          int i;
          cin >> i;
          cout << "after shifting : " << roll(str, n, i) << endl;
         string roll( string str, int n, int i )
          int gcd = getGcd(n, i);
         // for ( int count = 0 ; count * gcd < i ; count ++ )
          for ( int count = 0 ; count < i ; count += gcd)
          for ( int tag = 0 ; tag < gcd ; tag++ ){
          for ( int base = tag ; base + gcd < n ; base += gcd)
         int getGcd(int aN, int aM)
          int remain;
  • CPPStudy_2005_1/STL성적처리_2 . . . . 67 matches
         = Info =
         = Input Text =
         #include <cstdlib>
         #include <iostream>
         #include <string>
         #include <fstream>
         #include <map>
         #include <vector>
         #include <algorithm>
         #include <numeric>
         using namespace std;
         vector<string> tokenize(const string& line);
         bool save_map(vector<string>&, map< string, vector<int> >&);
         double total(const vector<int>&);
         bool print_report(ostream&,
          const map< string, vector<int> >,
          double accu(const vector<int>&) = total);
         int main(int argc, char *argv[]) {
          string line;
          vector<string> token;
  • LawOfDemeter . . . . 67 matches
         So we've decided to expose as little state as we need to in order to accomplish our goals. Great! Now
         within our class can we just starting sending commands and queries to any other object in the system will-
         nilly? Well, you could, but that would be a bad idea, according to the Law of Demeter. The Law of Demeter
         tries to restrict class interaction in order to minimize coupling among classes. (For a good discussion on
         What that means is that the more objects you talk to, the more you run the risk of getting broken when one
         objects than you need to either. In fact, according to the Law of Demeter for Methods, any method of an
         object should only call methods belonging to:
         any parameters that were passed in to the method.
         Specifically missing from this list is methods belonging to objects that were returned from some other
          SortedList thingy = someObject.getEmployeeList();
          thingy.addElementWithKey(foo.getKey(), foo);
         This is what we are trying to prevent. (We also have an example of Asking instead of Telling in foo.getKey
         ()). Direct access of a child like this extends coupling from the caller farther than it needs to be. The
         caller is depending on these facts:
         someObject holds employees in a SortedList.
         Instead, this should be:
          someObject.addToThingy(foo);
         Now the caller is only depending on the fact that it can add a foo to thingy, which sounds high level
         The disadvantage, of course, is that you end up writing many small wrapper methods that do very little but
         delegate container traversal and such. The cost tradeoff is between that inefficiency and higher class
  • aekae/code . . . . 67 matches
         #include <iostream>
         using namespace std;
         int main()
          int i;
          int a,b,c,d;
         #include <iostream>
         using namespace std;
         #include <ctime>
         int table[5][5] = {0,};
         int main()
          int x, y;
          cin >> x >> y;
          int a = rand() % 3 - 1;
          int b = rand() % 3 - 1;
          for (int i=0; i<5; i++)
          for (int j=0; j<5; j++)
          for (int i=0; i<5; i++)
          for (int j=0; j<5; j++)
         #include <iostream>
         using namespace std;
  • 빵페이지/숫자야구 . . . . 67 matches
         난수생성 참고자료 : RandomFunction , WindowsConsoleControl
          DeleteMe 내용이 중복되어서 문제정의와 참고자료 부분을 지웠습니다. 위키라는 지식 풀속에 중복되는 지식은 링크로 충분하겠지요. 아래의 문제들 역시 {{{~cpp 숫자야구/유주영}}} 식으로 하는 편이 차후 접근성 측면에서 더 좋을것 같습니다.--NeoCoin
          * ctime 를 include 하고 srane(time(0)); 을 선언해주면 바뀔걸~ - 민수
         #include <iostream>
         #include <stdlib.h>
         #include <time.h>
         using namespace std;
          int main()
          int num[3];
          for(int i=0; i<3; i++)
          int ch;
          cin >> ch;
          int person[3];
          int bcount=0;
          int scount=0;
          for(int i=0;i<3;i++)
          for(int j=0;j<3;j++)
         #include <iostream.h>
         #include <stdlib.h>
         #include <time.h>
  • JavaStudy2003/세번째과제/노수민 . . . . 66 matches
         import javax.swing.JOptionPane;
          public String word="Hello, World!";
          public void setName(String name) {
          public static void main() {
         //Line.java
         import javax.swing.*;
         public class Line {
          private Point p1 = new Point();
          private Point p2 = new Point();
          private String info = "";
          public Line() {
          public void setData(int p1_xValue, int p1_yValue, int p2_xValue, int p2_yValue) {
          public void setInfo() {
          info += "Line point_1 x : " + p1.getX() + "\n" +
          "Line point_1 y : " + p1.getY() + "\n" +
          "Line point_2 x : " + p2.getX() + "\n" +
          "Line point_2 y : " + p2.getY() + "\n";
          setInfo();
          JOptionPane.showMessageDialog(null, info);
          public void move(int xValue, int yValue) {
  • Spring/탐험스터디/wiki만들기 . . . . 66 matches
         === Spring Framework ===
         === Spring Security ===
         Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
          String name;
          if (principal instanceof UserDetails) {
          name = ((UserDetails)principal).getUsername();
          name = principal.toString();
          1. Spring dependency injection을 이용하는 법
         public String write(@RequestParam("title") String title, @RequestParam("contents") String contents, Model model, Principal principal) {
         page.edit(contents, userRepository.get(principal.getName()));
          * spring security tab library
          * spring security에 관련된 기능들을 html/js에서 쓸 수 있다.
         <%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
          <input id="contents_edit" type="textarea" class="page_edit" value="${page.contents}" />
          <sec:authorize url="/login">
          * Spring Security의 Role Voter는 "ROLE_" 접두어를 사용한 접근 속성만 처리한다. 단 접두어는 커스터마이징이 가능하다.
          * ORM(Object Relation Mapping) 프레임워크. Java persistence, EJB3.0을 같이 알면 좋다.
         String html = new PegDownProcessor().markdownToHtml("markdown text");
          * 아무튼 pegdown은 무지무지 쉬웠는데(new Pegdown().markdownToHTML(/* String 콘텐츠 */) 적용하는데까지 시간이 오래걸렸다. 하나 고치면 다른 에러가 나고 에러랑 스무고개했음ㅋㅋ
          * 좀 오래한 Spring, Hibernate도 어려움. CGLib, Spring Security, JSP, Session 찾아봐야겠다.
  • DNS와BIND . . . . 65 matches
         서버관리자가 DNS와 BIND에 대해 공부한 내용
         책 - DNS와 BIND, Paul Albitz & Cricket Liu, 이성희 역, 한빛미디어
         = 4. BIND 셋업하기 =
         192.249.249.3 terminator.movie.edu terminator bigt
         192.253.253.3 shining.movie.edu shining
         robocop terminator diehard
         misery shining carrie
          호스트->주소 맵핑하는 파일 - db.DOMAIN
          네임서버환경설정파일 - /etc/named.conf (BIND 버전 8)
          => (책에는 BIND 버전 4와 BIND 버전 8 모두 설명하고 있는데 버전 8만 정리하겠음)
          리소스 레코드들의 (일반적)순서 - SOA(start of authority) 레코드, NS(name server) 레코드, 기타 레코드, A(address), PTR(pointer), CNAME(canonical name)
         movie.edu. IN SOA terminator.movie.edu. al.robocop.movie.edu. (
          terminator.movie.edu => 주 마스터 네임 서버의 이름
         movie.edu. IN SOA terminator.movie.edu. al.robocop.movie.edu. (
         movie.edu. IN NS terminator.movie.edu.
         movie.edu. IN NS wormhole.movie.edu.
         localhost.movie.edu. IN A 127.0.0.1
         robocop.movie.edu. IN A 192.249.249.2
         terminator.movie.edu. IN A 192.249.249.3
         diehard.movie.edu. IN A 192.249.249.4
  • 이영호/My라이브러리 . . . . 65 matches
         // 성공시 0, 실패시 -1 반환. (socket에서 에러가 났는지 bind에서 에러가 났는지 구분이 힘들겠지만, socket이 할당 되지 않는 경우는 적으므로 bind 에러임.)
         // Bind 에러에서도 서버를 재가동 할 경우 resueaddr 로 flag를 설정했기 때문에, Port 에러 뿐임. 이미 Port를 사용할 때만 에러가 남.
         int tcp_server_init(int *sockfd, struct sockaddr_in *ina, uint16_t port);
         int udp_server_init(int *sockfd, struct sockaddr_in *ina, uint16_t port);
         int set_reuseaddr(int *sockfd); // 성공시 0반환 실패시 -1 반환.
         int send_msg(int sockfd, const *msg);
         #include <sys/types.h>
         #include <sys/socket.h>
         #include <netdb.h>
         #include <arpa/inet.h>
         #if !defined(TURE)
         #define TRUE 1
         #if !defined(FALSE)
         #define FALSE 0
         int tcp_server_init(int *sockfd, struct sockaddr_in *ina, uint16_t port)
          int option;
          *sockfd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
          memset((struct sockaddr *)ina, 0, sizeof(struct sockaddr));
          (*ina).sin_family = AF_INET;
          (*ina).sin_addr.s_addr = INADDR_ANY;
  • ContestScoreBoard/문보창 . . . . 64 matches
         #include <iostream>
         using namespace std;
         #define SWAP(x, y, t) ((t) = (x), (x) = (y), (y) = (t))
         const int NUMBER_TEAM = 101;
         const int NUMBER_PROBLEM = 10;
         const int TIME_PENALTY = 20;
          int timeProblem[NUMBER_PROBLEM];
          int penalty;
          int numberSuccessProblem;
         void inputInfoContest(ContestTeam * team, bool * isSumit);
         void initialize(ContestTeam * team, bool * isSumit);
         void initializeTeam(ContestTeam * team);
         void initializeIsSumit(bool * isSumit);
         int settingRank(bool * isSumit, int * rankTeam);
         void concludeRank(ContestTeam * team, int * rankTeam, int numberSumitTeam);
         void printRank(ContestTeam * team, int * rankTeam, int numberSumitTeam);
         int main()
          int numberCase;
          cin >> numberCase;
          cin.get();
  • JSP/SearchAgency . . . . 64 matches
         import="java.util.*, java.io.BufferedReader, java.io.InputStreamReader, java.io.FileReader,
          org.apache.lucene.index.IndexReader,
          org.apache.lucene.index.FilterIndexReader,
          org.apache.lucene.search.IndexSearcher,
         pageEncoding="UTF-8"%>
          out.write(" <input type=text name='keyword'>");
          class OneNormsReader extends FilterIndexReader {
          private String field;
          public OneNormsReader(IndexReader in, String field) {
          super(in);
          public byte[] norms(String field) throws IOException {
          return in.norms(this.field);
         // String index = "/home/httpd/index";
          String index = "index";
          String field = "contents";
          String queries = null;
          int repeat = 0;
          String normsField = null;
          IndexReader reader = IndexReader.open(index);
          Searcher searcher = new IndexSearcher(reader);
  • OurMajorLangIsCAndCPlusPlus/ctype.h . . . . 64 matches
         || intsalnum(int c) || 알파벳 숫자임을 체크한다. ||
         || int isalpha(int c) || 주어진 문자가 알파벳 인지 검사한다. A-Z a-z ||
         || int islower(int c) || 소문자인지 검사한다. a-z ||
         || int isupper(int c) || 대문자인지 검사한다. A-Z ||
         || int isdigit(int c) || 주어진 문자가 숫자인지 검사한다. 0-9 ||
         || int isxdigit(int c) || 16진수 를 표한할 수 있는 문자인지 확인한다. 0-9 a-f A-F ||
         || int isspace(int c) || 공백문자들을 검사한다.('\f'), ('\n'), ('\r'),('\t'),('\v'). ||
         || int ispunct(int c) || 알파벳문자 혹은 공백문자가 아닌 출력가능한 문자인지 확인한다. ||
         || int isalnum(int c) || 주어진 문자가 알파벳 또는 숫자인지 검사한다. A-Z a-z 0-9 ||
         || int isprint(int c) || 공백문자를 포함한 출력가능한 문자인지 검사한다. ||
         || int isgraph(int c) || 공백문자를 제외한 출력가능 문자인지 검사한다. ||
         || int iscntrl(int c) || 제어(control) 문자인지를 검사한다. ||
         || int toupper(int c) || 입력된 문자를 소문자로 변경한다. ||
         || int tolower(int c) || 입력된 문자를 대문자로 변경한다. ||
         || int iswalpha(wint_t) || Uncode 인지 확인 (한글 등) ||
         || int iswupper(wint_t) || 소문자인지 검사한다. ||
         || int iswlower(wint_t) || 대문자인지 검사한다. ||
         || int iswdigit(wint_t) || 주어진 문자가 숫자인지 검사한다.||
         || int iswxdigit(wint_t) || 16진수 를 표한할 수 있는 문자인지 확인한다. ||
         || int iswspace(wint_t) || 공백문자들을 검사한다.||
  • 그래픽스세미나/3주차 . . . . 64 matches
          PPT파일: Upload:CGseminar3.zip
          || 강인수 || [http://zeropage.org/wiki/moin.cgi/_5bLovely_5dboy_5e_5f_5e_2f3DLibrary 옛날에 만들어놓은거] ||
         # include "math.h"
         # define DG 4
         # define EPSILON 0.000001
         # define GX_V_E_MULT(AA,B,C){AA[0]=B[0]*C[0]; AA[1]=B[1]*C[1]; AA[2]=B[2]*C[2]; AA[3]=1;}
         # define M_PI 3.141592
          CGX_Vector<T> operator+(CGX_Vector<T> in);
          CGX_Vector<T> operator+(T* in);
          CGX_Vector<T> operator-(CGX_Vector<T> in);
          CGX_Vector<T> operator-(T* in);
          CGX_Vector<T> operator*(T in);
          CGX_Vector<T> operator/(T in);
          void operator=(CGX_Vector<T> in);
          void operator=(T* in);
          T& operator[](int in);
          CGX_Vector<T> operator*(CGX_Vector<T> in);//cross product
          T operator^(CGX_Vector<T> in);//dot product
          friend CGX_Vector<T> operator-(CGX_Vector<T> in);
          for(int i=0;i<3;i++) if (e[i]- b[i] > EPSILON) return FALSE;
  • 수학의정석/집합의연산/조현태 . . . . 64 matches
         #include <time.h>
         #include <stdio.h>
         #include <iostream>
         int* input_and_return_number(int*);
         void process(int*, int);
         int main()
          int time_in; // 초기 시작 시간.
          int gaesu;
          int *temp_gaesu=&gaesu;
          int *numbers=input_and_return_number(&gaesu);
          time_in = clock(); // 초기 시작 시간을 입력한다.
          printf("CPU CLOCKS = %d\n", clock() - time_in); // 끝났을때 시간 - 초기 시작시간 = 프로그램 실행 시간
         int* input_and_return_number(int *number_gaesu)
          printf("입력할 숫자의 개수는?>>");
          fflush(stdin);
          int *numbers=(int*)malloc(sizeof(int)*(*number_gaesu));
          for (register int i=0; i<*number_gaesu; ++i)
          printf("%d번째의 숫자를 입력해주세요.>>",i+1);
          fflush(stdin);
         void process(int *numbers, int gaesu)
  • CPPStudy_2005_1/STL성적처리_1 . . . . 63 matches
         = InputText =
         #include <iostream>
         #include <string>
         #include <fstream>
         #include <vector>
         #include <algorithm>
         #include <numeric>
         using namespace std;
         #define SUBJECT_SIZE 4
         struct Student_info {
          string name;
          vector<int> subjects;
          int total;
         double Sum(Student_info &s);
         void totalSum(vector<Student_info> &students);
         double average(Student_info &s);
         void totalAverage(vector<Student_info> &students);
         bool totalCompare(const Student_info &s1, const Student_info &s2);
         void sortBySum(vector<Student_info> &students);
         ostream& displayScores(ostream &out, const vector<Student_info> &students);
  • DelegationPattern . . . . 63 matches
         또한, 클래스 하나가 방대해질때, 적절하게 그 클래스의 책임을 다른 클래스들에게 위임해주는 것은 ["Refactoring"] 의 방법이 된다.
         ObjectOrientedProgramming 을 할때 자주 쓰이는 코딩 스타일. 아마 사람들이 무의식중에 자주 쓸 것이다.
         example) 예전에 VonNeumannAirport 을 JuNe 과 ["1002"] 가 Pair 하던중 JuNe 이 작성했던 Refactoring 으로서의 Delegation.
          private int _traffic;
          private int [] _arrivalGate;
          private int [] _departureGate;
          public int getTraffic() {
          int [] passenger;
          passenger = (int [])iter.next();
          public void setArrivalGates(int [] aCity) {
          public void setDepartureGates(int [] aCity) {
          public int [] getArrivalGates() {
          public int [] getDepartureGates() {
          public int getDistance(int fromCity, int toCity){
          int distance=java.lang.Math.abs(_getArrivalCityGate(fromCity)
          private void movePassenger(int fromCity, int toCity, int aNumber) {
         여기까지는 Airport 이다. 하지만 VonNeumannAirport 문제에서도 보듯, 실제 Input 에 대해서 Configuration 은 여러 Set 이 나온다.
         이 기능을 추가하기 위해 일단 Airport Code 를 Refactoring 하기로 했다. 이를 위해 Airport 의 기능중 Configuration 과 관련된 기능에 대해 Configuration 을 Extract 하고, 내부적으로는 Delegation 함으로서 외부적으로 보이는 기능에 대해서는 일관성을 유지한다. (Test Code 가 일종의 Guard 역할을 했었음)
          private int [] _arrivalGate;
          private int [] _departureGate;
  • 만년달력/인수 . . . . 63 matches
          static int DAYS_PER_MONTH[] = {31,28,31,30,31,30,31,31,30,31,30,31};
          int year, month;
          public Calendar(int year, int month) {
          public void set(int year, int month) {
          protected int getNumOfDays() {
          public int[] getCalendar() {
          int ret[] = new int[42];
          int start = getMonthStartPoint();
          for(int i = start ; i < getNumOfDays() + start ; ++i)
          protected int getNumOfLeapYears() {
          int ret = 0;
          for(int i = 1 ; i < year ; ++i)
          protected int getMonthStartPoint() {
          int ret = year + getNumOfLeapYears();
          for(int i = 0 ; i < month - 1 ; ++i)
          protected boolean isLeapYear(int year) {
          public CalendarTestCaseTest(String arg) {
          private int[] getExpectedCalendar(int start) {
          int ret[] = new int[42];
          for(int i = start ; i < calendar.getNumOfDays() + start ; ++i)
  • 새싹교실/2012/주먹밥/이소라때리기게임 . . . . 63 matches
         #include<stdio.h>
         #include<math.h> //Rand를 가져오는 헤더파일
         #include<stdlib.h>
         #include<time.h>
         #include<string.h>
         #define SORAHEAL 60000
         #define SORAKICK 9000
         #define SORAPUNCH 10000
         #define SKILLSIZE 3
         #define CLASSSIZE 3
         #define USERNUM 1 //유저 갯수
         " +M $M8MNNMZ MM 7MMD$: 7M$ ,+DM7 INMMZ ",
          int health;
          int heal;
          int kick;
          int punch;
          int select;
          int type;
         int gameinit(PLAYER *); //게임초기화
         int printplayerstate(PLAYER *, PLAYER *); //스테이터스 출력
  • 2002년도ACM문제샘플풀이/문제E . . . . 62 matches
         #include <iostream>
         #include <algorithm>
         using namespace std;
         struct InputData
          int n;
          int weight[1000];
         int numberOfData;
         InputData inputData[10];
         int outputData[10];
         void input()
          cin >> numberOfData;
          for(int i=0;i<numberOfData;i++)
          cin >> inputData[i].n;
          for(int j = 0 ; j < inputData[i].n ; j++)
          cin >> inputData[i].weight[j];
          InputData temp;
          int totalWeight;
          for(int i=0;i<numberOfData;i++)
          temp = inputData[i];
          sort(&temp.weight[0],&temp.weight[inputData[i].n]);
  • 8queen/문원명 . . . . 62 matches
         #include <iostream>
         using namespace std;
         void main()
          int board[8][8];
          int firstBoard[8][8];
          int y2nd, x2nd, setx = 0;
          int y3rd, same = 0;
          int impossible = 0;
          int y4th, x4th;
          int y5th, x5th;
          int y6th, x6th;
          int y7th, x7th;
          int findY, findX;
          int originX, firstFind,firstAnswer = 1;
          int endFind = 0, count = 0;
          for(int y1st = 0 ; y1st < 8 ; y1st++)
          for(int x1st = 0 ; x1st < 8 ; x1st++)
          firstFind = 1;
          if(firstFind == 1)
          originX = x2nd;
  • StringOfCPlusPlus/상협 . . . . 62 matches
         == String0.h ==
         //String0.h
         #ifndef _STRING0_H_
         #define _STRING0_H_
         class String
          int n;
          String();
          String(const char *in_st);
          ~String();
          int nval() const {return n;}//문자열 길이를 알려줌.
          int search(char se);//찾고자 하는 문자열의 갯수로 알려줌
          String operator+(const String &s) const;
          friend ostream& operator<<(ostream &os, String &s);
         == String0.cpp ==
         //String0.cpp
         #include <iostream>
         #include <cstring>
         using namespace std;
         #include "String0.h"
         String::String()
  • 간단한C언어문제 . . . . 62 matches
         16Bit 체제의 Windows
         #include <stdio.h>
         main(){
         int i;
          printf("%d", i);
         C언어의 컴파일러에 따라 메인함수는 저렇게 쓰일 수가 있어요;;; 특정 컴파일러는 return형이 int형이 아니라고 warnning을 내기도 하죠;; - [이영호]
         #include <stdio.h>
         main(){
         int a, b;
          printf("%f", c);
         signed int형인 a와 b를 더하면 (65535/2)에서 데이터가 넘치게 되어 -숫자가 나온다. (-65536/2)+((30000+30000)-(65536/2-1)) <- 제대로 설명을 못하겠다;;; - [이영호]
         #include <stdio.h>
         main(){
         #include <stdio.h>
         main(){
          printf("%f", num);
         옳지않다. atof함수로 float변환은 되었지만, atof함수의 프로토 타입이 있는 헤더를 추가하지 않았기 때문에 int형으로 return된다. 즉, num엔 숫자 123이 담긴다. ANSI C99에서는 프로토타입이 선언되지 않으면 컴파일되지 않도록 변했다. - [이영호]
         main(){
         int a, b, c;
          printf("a=%d b=%d c=%dn", a, b, c);
  • 미로찾기/정수민 . . . . 62 matches
         #include <stdio.h>
         const int miro[13][17]={
         int main () {
          int x, y, n=0, j=0;
          printf("처음");
          printf("완료");
          printf("(%d, %d) \n",x , y);
          printf("%d 번째에 미로 탈출\n",j);
         #include <stdio.h>
         const int miro[13][17]={
         void find1();
         void find2();
         void find3();
         void find4();
         void find6();
         void find7();
         void find8();
         void find9();
         void finish();
         int x=1, y=1, j=0, finish_X=11, finish_Y=15;
  • 3N+1Problem/황재선 . . . . 61 matches
         #include <iostream>
         using namespace std;
         void input();
         int process();
         int findMaxCycle(int aNum, int aCount);
         void output(int aMaxCycle);
         int inputNum[2];
         int main()
          input();
          int max = process();
         void input()
          cin >> inputNum[0] >> inputNum[1];
         int process()
          int interNum = inputNum[0];
          int maxCycle;
          int temp;
          int count = 1;
          while (interNum <= inputNum[1])
          temp = findMaxCycle(interNum, count);
          interNum++;
  • TheJavaMan/스네이크바이트 . . . . 61 matches
          public int MAX = 20;
          public int[][] board = new int [MAX][];
          for(int i=0; i<MAX; i++)
          board[i] = new int[MAX];
          public void PrintScreen()
          for(int i=0; i<MAX; i++)
          for(int j=0; j<MAX; j++)
          System.out.print(board[i][j] + " ");
          System.out.println();
          System.out.println();
          int x;
          int y;
          int count = 0;
          x = rmd.nextInt(20);
          y = rmd.nextInt(20);
          int x, y, bx, by;
          System.out.println("움직이고자 하는 방향을 입력하세요");
          System.out.println("a : 왼쪽 " + "d : 오른쪽 " + "w : 위쪽 " + "x : 아래쪽");
          int select = System.in.read();
          while(System.in.read()!='\n')
  • DevelopmentinWindows/UI . . . . 60 matches
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Window1.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Window2.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Menu.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Button.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/EditBox.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/ComboBox.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/ListBox.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/ScrollBar.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/TrackBar.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/ProgressBar.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Tab.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/TreeView.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Open.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Font.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Color.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Print.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Find.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/UI/Replace.jpg
         ["DevelopmentinWindows"]
  • EcologicalBinPacking/황재선 . . . . 60 matches
         == EcologicalBinPacking ==
         #include <iostream>
         #include <string>
         #include <cmath>
         using namespace std;
         void input();
         void findMinCount();
         bool isMinValue(int aSum, int aMinValue);
         void output(int colorResult, int min);
         int bottle[9] = {0,};
         string color[6] = {"BCG", "BGC", "GBC", "GCB", "CBG", "CGB"};
         int colorIndex[6][3] = {{0,5,7}, {0,4,8}, {1,3,8}, {1,5,6}, {2,3,7}, {2,4,6}};
         int main()
          input();
          findMinCount();
         void input()
          int sum = 0;
          for(int i = 0; i < 9; i++)
          cin >> bottle[i];
          continue;
  • ErdosNumbers/문보창 . . . . 60 matches
         //#include <fstream>
         #include <iostream>
         #include <cstdlib>
         using namespace std;
         //fstream fin("input.txt");
         const int MAX_STR = 20;
         const int MAX_ERNUM = 100;
         int ernum;
         void init();
         void input_thesis(int num_thesis);
         void input_writer(int num_writer);
         bool make_map(char name[][MAX_STR], int num);
         void insert_list(char * name);
         int serch_erdos_num(char * name);
         int main()
          int num_case, num_thesis, num_writer;
          cin >> num_case;
          for (int i = 0; i < num_case; i++)
          init();
          cin >> num_thesis >> num_writer;
  • Graphical Editor/Celfin . . . . 60 matches
         #include <iostream>
         #include <queue>
         using namespace std;
         char instruction;
         int x1, x2, y1, y2;
         int size_x, size_y;
         int i, j;
         void brush(int x_1, int y_1, int x_2, int y_2, char b_color)
          int tempInt;
          tempInt = x_1;
          x_2 = tempInt;
          tempInt = y_1;
          y_2 = tempInt;
         void printing()
         void regionBrush(int x, int y, char b_color)
          const int PLUS_X[8] = {+0, +1, +1, +1, +0, -1, -1, -1};
          const int PLUS_Y[8] = {+1, +1, +0, -1, -1, -1, +0, 1};
          queue<int> pointList_X;
          queue<int> pointList_Y;
          pointList_X.push(x);
  • PythonNetworkProgramming . . . . 60 matches
         만일 winsock 을 쓰고 싶다면 windows extension libary 들을 설치해주면 된다.
         sock = socket(AF_INET, SOCK_STREAM)
         sock = socket(AF_INET, SOCK_STREAM)
         sock.bind(("localhost",port))
          print "Client connected:",client_addr
          print data
         UDPSock = socket(AF_INET, SOCK_DGRAM)
         UDPSock.bind(addr)
          print "Client has exited!"
          print "\n Received message '", data,"'"
         UDPSock = socket(AF_INET, SOCK_DGRAM)
         print "\n", def_msg
          data = raw_input('>> ')
          print "Sending message '",data,"'..."
         from threading import *
          def __init__(self, aServer):
          Thread.__init__(self)
          print address
          self.listenSock = socket(AF_INET, SOCK_STREAM, IPPROTO_IP)
          self.listenSock.bind(here)
  • RandomWalk/ExtremeSlayer . . . . 60 matches
         #define _BOARD_H_
          int _nRow;
          int _nCol;
          int** _nBlockFrequency;
          int _nCurRow;
          int _nCurCol;
          int _nTotalMovement;
          RandomWalkBoard(int& nRow, int& nCol, int& nCurRow, int& nCurCol);
          void SetArrayAsZero(int& nCurRow);
          int GetRandomDirection() const;
          bool CheckCorrectCoordinate(int& nDelRow, int& nDelCol) const;
         #include <iostream>
         #include <cmath>
         #include <ctime>
         using namespace std;
         #include "RandomWalkBoard.h"
         RandomWalkBoard::RandomWalkBoard(int& nRow, int& nCol, int& nCurRow, int& nCurCol)
          _nBlockFrequency = new int*[_nRow];
          for(int i = 0 ; i < _nRow ; i ++)
          _nBlockFrequency[i] = new int[_nCol];
  • 새싹교실/2012/아우토반/앞반/4.5 . . . . 60 matches
         #include<stdio.h>
         void main(){
          int i;
          int j;
          printf(" ");
          printf("*");
          printf("\n");
         #include<stdio.h>
         int main(void){
          int n,j;
          printf(" ");
          printf("*");
          printf("\n");
          printf(" ");
          printf("*");
          printf("\n");
          printf("\n");
         #include<stdio.h>
         int main(void){
          int num;
  • CheckTheCheck/곽세환 . . . . 59 matches
         toupper를 쓰려면 ctype.h를 include해야한다.
         #include <iostream>
         using namespace std;
         #include <ctype.h>
         const int EMPTY = 0;
         const int BLACK = 1;
         const int WHITE = 2;
         int whereSide(int y, int x)
         bool isInBoard(int y, int x)
         bool PawnCheck(int y, int x, int side)
          if (isInBoard(y - 1, x - 1) && board[y - 1][x - 1] == 'p')
          else if (isInBoard(y - 1, x + 1) && board[y - 1][x + 1] == 'p')
          if (isInBoard(y + 1, x - 1) && board[y + 1][x - 1] == 'P')
          else if (isInBoard(y + 1, x - 1) && board[y + 1][x + 1] == 'P')
         bool RookCheck(int y, int x, int side)
          int move[4][2] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};
          int i, k;
          for (i = 1; i <= 7 && isInBoard(y + i * move[k][0], x + i * move[k][1]); i++)
          continue;
         bool BishopCheck(int y, int x, int side)
  • EightQueenProblem/강석천 . . . . 59 matches
          def testPrintBoard (self):
          self.assertEquals (self.bd.PrintBoard (), '''00000000\n01000000\n00100000\n00000000\n00000000\n00000000\n00000000\n00000001\n''')
          def testFindQueenInSameVertical (self):
          self.assertEquals (self.bd.FindQueenInSameVertical (2), 1)
          self.assertEquals (self.bd.FindQueenInSameVertical (3), 0)
          def testFindQueenInSameHorizonal (self):
          self.assertEquals (self.bd.FindQueenInSameHorizonal (2), 1)
          self.assertEquals (self.bd.FindQueenInSameHorizonal (3), 0)
          def testFindQueenInSameCrossLeftTopToRightBottom (self):
          self.assertEquals (self.bd.FindQueenInSameCrossLeftTopToRightBottom (3,3), 1)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftTopToRightBottom (1,1), 1)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftTopToRightBottom (4,1), 0)
          def testFindQueenInSameCrossLeftBottomToRightTop (self):
          self.assertEquals (self.bd.FindQueenInSameCrossLeftBottomToRightTop (3,3), 0)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftBottomToRightTop (3,1), 1)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftBottomToRightTop (1,3), 1)
          def testGetFirstCornerInCrossLeftTopToRightBottom (self):
          self.assertEquals (self.bd.GetFirstCornerInCrossLeftTopToRightBottom (3,3), (0,0))
          self.assertEquals (self.bd.GetFirstCornerInCrossLeftTopToRightBottom (4,3), (1,0))
          self.assertEquals (self.bd.GetFirstCornerInCrossLeftTopToRightBottom (1,5), (0,4))
  • EightQueenProblem/이선우2 . . . . 59 matches
         import java.io.PrintStream;
          public static final char DEFAULT_BOARD_MARK = '.';
          public static final char DEFAULT_QUEEN_MARK = 'Q';
          public static final char DEFAULT_LINE_BREAK = '\n';
          private int size;
          private int [] board;
          private int numberOfAnswers;
          private int hasAnswer;
          private char lineBreak;
          private PrintStream out;
          public NQueen2( int size ) throws Exception
          board = new int[size];
          public int getSize()
          lineBreak = DEFAULT_LINE_BREAK;
          public void setOutputFormat( final char boardMark, final char queenMark, final char lineBreak )
          this.lineBreak = lineBreak;
          public int countAnswers()
          public int countAnswers( final PrintStream out )
          private void setQueenAt( int line )
          if( line == size ) {
  • JavaStudy2004/클래스상속 . . . . 59 matches
          이러한 메커니즘을 subclassing이라고부른다.
          예를 들어 Motorcycle클래스와 같이 Car라는 클래스를 만드는 것을 생각하자. Car와 Motorcycle은비슷한 특징들이 있다. 이 둘은 엔진에 의해 움직인다. 또 변속기와 전조등과 속도계를 가지고 있다. 일반적으로 생각하면, Object라는클래스 아래에 Vehicle이라는 클래스를 만들고 엔진이 없는 것과 있는 방식으로 PersonPoweredVehicle과 EnginePoweredVehicle 클래스를 만들 수 있다. 이 EnginePoweredVehicle 클래스는 Motorcycle, Car, Truck등등의 여러 클래스를 가질 수 있다. 그렇다면 make와 color라는 속성은 Vehicle 클래스에 둘 수 있다.
          만일 하위클래스에서 상위클래스의 메소드의 이름과 인자의 타입을 똑같이 가진 메소드를 정의한다고 하면 어떻게 되는가? 이것은 계층적으로 아래에 있는 것이 먼저 실행되게 되어 있다. 이러한 방식으로 임의로 상의클래스의 메소드를 감추고 하위클래스에 필요한 메소드를 정의할 수 있다. 바로 중복(overriding)이라고 부르는 것이다.
         === Point 클래스 ===
         import javax.swing.JOptionPane;
         public class Point {
          private int x;
          private int y;
          public Point() {
          public Point(int aX, int aY) { //생성자 입니다.
          public int getX() {
          public int getY() {
          public void setX(int Ax) {
          public void setY(int Ay) {
          public String getName() {
          return "Point";
          public void Say(String str) {
          public void Say(int temp) {
          String str = Integer.toString(temp);
          public static void main(String[] args) {
  • MineSweeper/문보창 . . . . 59 matches
         // no10189 - Minesweeper(a)
         #include <iostream>
         #include <vector>
         using namespace std;
         const int MAX = 100;
         bool inMine(vector<int> & mine, int & nField, int * size);
         void mineSweep(vector<int> & mine, int & nField, int * size);
         int main()
          vector<int> mine; // 입력을 저장할 벡터
          int size[MAX]; // 행과 열만을 저장할 배열
          int nField = 0; // 지뢰 게임 수
          if(!inMine(mine, nField, size))
          mineSweep(mine, nField, size);
         bool inMine(vector<int> & mine, int & nField, int * size)
          int i, n, m;
          int count = 0;
          while(cin >> n >> m) // 입력
          cin >> temp;
          mine.push_back(1); // * -> 1
          mine.push_back(0); // . -> 0
  • TugOfWar/김회영 . . . . 59 matches
         #include<iostream.h>
         //using namespace std;
         bool changeTwoPart(int* right,int* left,int gap,int nPeople);
         void changeTwoElement(int* rightPart,int i,int* leftPart,int j);
         void sort(int* array,int count);
         void main()
          int nCount;
          cin>>nCount;
          int nPeople;
          int* nWeightOfPeople;
          int* leftPart;
          int* rightPart;
          int rightTotal=0;
          int leftTotal=0;
          int* rightOfTotal=new int[nCount];
          int* leftOfTotal=new int[nCount];
          for(int k=0;k<nCount;k++)
          cin.get();
          cin>>nPeople;
          nWeightOfPeople=new int[nPeople];
  • UML/CaseTool . . . . 59 matches
         === Diagramming ===
         ''Diagramming'' in this context means ''creating'' and ''editing'' UML [[diagram]]s; that is diagrams that follow the graphical notation of the Unified Modeling Language.
         The diagramming part of the Unified Modeling Language seems to be a lesser debated part of the UML, compared to code generation.
         The UML diagram notation evolved from elderly, previously competing notations. UML diagrams as a means to draw diagrams of - mostly - [[Object-oriented programming|object oriented]] software is less debated among software developers. If developers draw diagrams of object oriented software, there is widespread consensus ''to use the UML notation'' for that task. On the other hand, it is debated, whether those diagrams are needed at all, on what stage(s) of the software development process they should be used and whether and how (if at all) they should be kept up-to date, facing continuously evolving program code.
         ''[[Code generation]]'' in this context means, that the user creates UML diagrams, which have some connoted model data, from which the UML tool derives (through a conversion process) parts or all of the [[source code]] for the software system that is to be developed. Often, the user can provide some skeleton of the program source code, in the form of a source code [[template]] where predefined tokens are then replaced with program source code parts, emitted by the UML tool during the code generation process.
         There is some debate among software developers about how useful code generation as such is. It certainly depends on the specific problem domain and how far code generation should be applied. There are well known areas where code generation is an established practice, not limited to the field of UML. On the other hand, the idea of completely leaving the "code level" and start "programming" on the UML diagram level is quite debated among developers, and at least, not in such widespread use compared to other [[software development]] tools like [[compiler]]s or [[Configuration management|software configuration management systems]]. An often cited criticism is that the UML diagrams just lack the detail which is needed to contain the same information as is covered with the program source. There are developers that even state that "the Code ''is'' the design" (articles [http://www.developerdotstar.com/mag/articles/reeves_design_main.html] by Jack W. Reeves [http://www.bleading-edge.com/]).
         === Reverse engineering ===
         ''Reverse engineering'' in this context means, that the UML tool reads program source code as input and ''derives'' model data and corresponding graphical UML diagrams from it (as opposed to the somewhat broader meaning described in the article "[[Reverse engineering]]").
         Reverse engineering encloses the problematic, that diagram data is normally not contained with the program source, such that the UML tool, at least in the initial step, has to create some ''random layout'' of the graphical symbols of the UML notation or use some automatic ''layout algorithm'' to place the symbols in a way that the user can understand the diagram. For example, the symbols should be placed at such locations on the drawing pane that they don't overlap. Usually, the user of such a functionality of an UML tool has to manually edit those automatically generated diagrams to attain some meaningfulness. It also often doesn't make sense to draw diagrams of the whole program source, as that represents just too much detail to be of interest at the level of the UML diagrams. There are also language features of some [[programming language]]s, like ''class-'' or ''function templates'' of the programming language [[C plus plus|C++]], which are notoriously hard to convert automatically to UML diagrams in their full complexity.
         === "Round trip" engineering ===
         There are UML tools that use the attribute ''round trip'' (sometimes also denoted as ''round trip engineering'') to connote their ability to keep the ''source code'', the ''model data'' and the corresponding ''UML diagrams'' ''in sync''.
         This means that the user should be able to change either the ''model data'' (together with the corresponding diagrams) or the ''program source code'' and then the UML tool updates the other part automatically.
         UML 케이스 툴과 달리 Visio 같은 경우에는 Diagramming 기능만을 제공한다. Diagramming Tool 이라고 분류하는 듯하다.
  • 코드레이스/2007.03.24상섭수생형진 . . . . 59 matches
         #include <iostream>
         using namespace std;
         bool getColor(int sec)
         void main(){
          int sec;
          cin >> sec;
         #include <iostream>
         using namespace std;
         bool getColor(int sec)
         int getSec(int Y, int m, int d, int H, int i, int s)
         void main(){
          int year, month, day, hour, min, sec;
          cin >> year >> month >> day >> hour >> min >> sec;
          sec = getSec(year, month, day, hour, min, sec);
         #include <iostream>
         using namespace std;
         bool getColor(int sec)
         int getSec(int Y, int m, int d, int H, int i, int s)
         void main(){
          int num, year, month, day, hour, min, sec, cnt = 0;
  • RandomWalk2/ClassPrototype . . . . 58 matches
         #include <iostream>
         #include <assert.h>
         using namespace std;
         typedef struct __IntPair {
          int n1;
          int n2;
         } IntPair;
          int m_nMaxCol;
          int m_nMaxRow;
          IntPair m_nRoachPos;
          for (int i=0;i<100;i++) {
          for (int j=0;j<100;j++) {
          int boardArray[100][100];
          void setSize (int nCol, int nRow) {
          void printBoardStatus () {
          for (int i=0;i<m_nMaxRow;i++) {
          for (int j=0;j<m_nMaxCol;j++) {
          int isCheckedAllCells () {return 0; }
          void setRoachPosition(int nRow, int nCol) {
          IntPair getRoachPosition () {
  • XMLStudy_2002/XML+CSS . . . . 58 matches
         <HTML:A href="http://msdn.microsoft.com/xml/xslguide/browsing-css.asp">How to Write a CSS StyleSheet for Browsing XML</HTML:A>
         <?xml version="1.0" encoding="KSC5601"?>
         <DATE TYPE="BEGINNING_DATE">
         <PA>현재의 IE5.0에서는 XLink는 지원하지 않는다. 그런데, 네임스페이스를 이용하여
         XLink에서 제안되는 확장된 개념의 링크를 사용하는 것은 아직은 IE5.0브라우저
         에서는 지원이 되지않기때문에, 현재로서는 여전히 단방향의 end link가 하나로 지정되는 simple link를
         <HTML:A href = "xml_hlink.xml">여기</HTML:A>에 설명되어있다.</PA>
         [1]<HTML:A href="http://msdn.microsoft.com/xml/xslguide/browsing-css.asp ">
         How to Write a CSS Style Sheet for Browsing XML</HTML:A>
         [2]<HTML:A href="http://msdn.microsoft.com/xml/xslguide/browsing-overview.asp">
         Browsing XML Documents in Internet Explorer 5</HTML:A>
         <HTML:A href = "xmllink.xml">여기</HTML:A>에 설명되어있다.</PA>
         <!ATTLIST DATE TYPE (LAST_MODIFIED|BEGINNING_DATE) #REQUIRED>
          margin-top :2em;
          margin-bottom :1em;
          margin-top :0.5em;
          margin-bottom :0em;
          display :inline;
          display :inline;
          display :inline;
  • C++스터디_2005여름/학점계산프로그램/허아영 . . . . 57 matches
         #include <fstream>
         #include "const.h"
         #include "student.h"
          void input();//파일입력, 학점으로 전환
         #define STUDENT_H_
         #include "const.h"
          void name_find(); // 이름을 파일에서 받아서 저장.
         #define SUBJECT_NUM 4
         #define STUDENT_NUM 120
         #define SCHOLARSHIP_NUM 12
         #include <iostream>
         using namespace std;
         #include <fstream>
         #include "calculate.h"
         #include "student.h"
         void Calculate::input()
          char grade_input[SUBJECT_NUM][3];
          fstream fin("input.txt");
          for(int student_num = 0; student_num < 120; student_num++)
          fin.getline(temp, 20, ':');
  • Doublets/황재선 . . . . 57 matches
          * Sample Input은 동작하는데 모든 경우에 되는지는 모르겠다.. 채점 사이트가 SE5.0을 지원하면 올려봐야지..
          private List<String> wordList;
          private Stack<String> solutionStack;
          private Stack<String> stack;
          private int minWordCount;
          private int start;
          private int end;
          private int[][] doublet;
          wordList = new ArrayList<String>();
          stack = new Stack<String>();
          solutionStack = new Stack<String>();
          minWordCount = Integer.MAX_VALUE;
          public String readWord() {
          return new Scanner(System.in).useDelimiter("\n").next().trim();
          public boolean isDoublet(String word1, String word2) {
          int differentBitCount = 0;
          public void storeWord(String word) {
          int n = wordList.size();
          doublet = new int[n + 1][n + 1];
          for(int from = 1; from <= n; from++) {
  • OperatingSystemClass/Exam2002_2 . . . . 57 matches
          * 앞에서 완성된 class를 상속받아서 binary semaphore class 를 구현.
          // do something
          Thread.sleep(( (int)(3*Math.random()) )*1000);
          catch (InterruptedException e) { }
          System.out.println("threadA got first mutex");
          // do something
          System.out.println ("threadA got second mutex");
          // do something
          Thread.sleep(( (int)(3*Math.random()) )*1000);
          catch (InterruptedException e) {}
          System.out.println ("threadB got second mutex");
          // do something
          System.out.println ("threadB got first mutex");
          public static void main (String[] args) {
         4. Consider a paging system with the page table stored in memory.
          * If we add associative registers and 75 percent of all page-table references are found in the associative regsters, what is the effective memory time? (Assume that finding a page-table entry in the associative registers takes zero time, if the entry is there)
         5. Consider the following page reference string:
         How many page faults would occur for the following replacement algorithm, assuming one, three, five, seven frames? Remember all frames are initially empty, so your first unique pages will all cost one fault each.
         6. Consider a file currently consisting of 100 blocks. Assume that the file control block(and the index block, in the case of indexed allocation) is already in memory, Calculate how many disk I/O operations are required for contiguous, linked and indexed (single-level) allocation strategies, if for one block, the following conditions hold. In the contiguous allocation case, assume that there is no room to grow in the beginning, but there is room to grow in the end. Assume that the block information to be added in stored in memory.
          * The block is added at the beginning.
  • REFACTORING . . . . 57 matches
         ISBN:0201485672 , [http://www.wowbook.com/generic/book/info/book_detail.asp?isbn=ISBN89-87939-60-X 리팩토링]
         http://www.refactoring.com/catalog/index.html - Refactoring 에 대해 계속 정리되고 있다.
         == Refactoring 이란 무엇인가? ==
          * 기존의 "디자인 후 코딩' 법칙과 반대된다. (TestFirstProgramming 에서 UnitTest - ["Refactoring"] 이 맞물려 돌아간다)
          * Refactoring 을 하기 위해서는 UnitTest code가 필수적이다. 일단 처음 Refactoring에 대한 간단한 원리를 이해하고 싶다면 UnitTest 코드 없이 해도 좋지만, UnitTest code를 작성함으로서 Refactoring 에 대한 효과를 높일 수 있다. (Refactoring 중 본래의 외부기능을 건드리는 실수를 막을 수 있다.)
         == Refactoring 을 함으로써 얻는 이득 ==
         == Refactoring은 언제 하는가? ==
          * 다시 또 뭔가 비슷한 일을 한다. - Refactoring을 할 때이다. Refactoring 하라.
         Three Strike 법칙은 외우기 쉬워서 처음 Refactoring 을 하는 사람들에겐 적당하다. 하지만, 저 법칙은 주로 중복이 일어날 때의 경우이고, Rename Method/Field/Variable 같은 Refactoring 은 지속적으로 해주는 것이 좋다.
         그리고 다음과 같은경우 Refactoring을 함으로써 이득을 얻을 수 있다.
          * Bad Smell 이 날때. - ["Refactoring/BadSmellsInCode"]
         == Refactoring 공부하기 ==
         Refactoring 책을 읽는 사람들을 위해. Preface 의 'Who Should Read This Book?' 을 보면 책을 읽는 방법이 소개 된다.
          * Refactoring이 무엇인지 알고 싶다면 Chapter 1의 예제를 읽어나간다.
          * 왜 Refactoring을 해야 하는지 알고 싶다면 Chapter 1,2를 읽어라.
          * 어떤 부분을 Refactoring 해야 하는지 찾기 원한다면 Chapter 3를 읽어라.
          * 실제로 Refactoring을 하기 원한다면 Chapter 1,2,3,4를 정독하고 RefactoringCatalog 를 대강 훑어본다. RefactoringCatalog는 일종의 reference로 참고하면 된다. Guest Chapter (저자 이외의 다른 사람들이 참여한 부분)도 읽어본다. (특히 Chapter 15)
         그리고 Refactoring 을 이해하는데 ExtremeProgramming 을 이해하면 도움이 될 것이다.
         == Refactoring 관련 토론 ==
         ["RefactoringDiscussion"]
  • 데블스캠프2009/목요일/연습문제/MFC/서민관 . . . . 57 matches
         #include "stdafx.h"
         #include "testMFC.h"
         #include "testMFCDlg.h"
         #define new DEBUG_NEW
          //{{AFX_DATA_INIT(CAboutDlg)
          //}}AFX_DATA_INIT
         BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
          //{{AFX_DATA_INIT(CTestMFCDlg)
          //}}AFX_DATA_INIT
          // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
          m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
         BEGIN_MESSAGE_MAP(CTestMFCDlg, CDialog)
         ON_WM_PAINT()
         BOOL CTestMFCDlg::OnInitDialog()
          CDialog::OnInitDialog();
          // IDM_ABOUTBOX must be in the system command range.
          CString strAboutMenu;
          strAboutMenu.LoadString(IDS_ABOUTBOX);
          pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
          // when the application's main window is not a dialog
  • .bashrc . . . . 56 matches
         shopt -s checkwinsize
          case $TERM in
          case $TERM in
          linux )
         alias r='rlogin'
         alias print='/usr/bin/lp -o nobanner -d $LPDEST' # LPDEST 가 정의되어 있다고 가정
         alias pjet='enscript -h -G -fCourier9 -d $LPDEST' # enscript 로 예쁜 출력하기(Pretty-print)
         export LESSCHARSET='latin1'
         export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-' # lesspipe.sh 이 있다면 이걸 쓰세요
         :stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...'
          case $TERM in
         alias make='xtitle Making $(basename $PWD) ; make'
         function ff() { find . -name '*'$1'*' ; } # 파일 찾기
         function fe() { find . -name '*'$1'*' -exec $2 {} \; ; } # 파일을 찾아서 $2 의 인자로 실행
          find . -type f -name "${2:-*}" -print | xargs grep -sin "$1" | \
          nlines=${2:-10}
          sed -n -e :a -e "1,${nlines}!{P;N;D;};N;ba" $1
          case "$filename" in
          for pid in $(my_ps| awk '!/awk/ && $0~pat { print $1 }' pat=${!#} ) ; do
          pname=$(my_ps | awk '$1~var { print $5 }' var=$pid )
  • Gof/Visitor . . . . 56 matches
         == Intent ==
         [컴파일러]가 abstact syntax tree로 프로그램을 표현한다고 하자. 컴파일러는 모든 변수들이 정의가 되어있는 지를 검사하는 것과 같은 '정적인 의미' 분석을 위해 abstract syntax tree에 대해 operation을 수행할 필요가 있을 것이다. 컴파일러는 또한 code 변환을 할 필요가 있다. 또한 컴파일러는 type-checking, code optimization, flow analysis 와 해당 변수가 이용되기 전 선언되었는지 등의 여부를 검사하기 위해서 해당 operations들을 수행할 필요가 있다. 더 나아가 우리는 pretty-printing, program restructuring, code instrumentation, 그리고 프로그램의 다양한 기준들에 대한 계산을 하기 위해 abstract syntax tree를 이용할 것이다.
         http://zeropage.org/~reset/zb/data/visit006.gif <- [DeadLink]
         이 다이어그램은 Node class 계층구조의 일부분을 보여준다. 여기서의 문제는 다양한 node class들에 있는 이러한 operation들의 분산은 시스템으로 하여금 이해하기 어렵고, 유지하거나 코드를 바꾸기 힘들게 한다. Node 에 type-checking 코드가 pretty-printing code나 flow analysis code들과 섞여 있는 것은 혼란스럽다. 게다가 새로운 operation을 추가하기 위해서는 일반적으로 이 클래스들을 재컴파일해야 한다. 만일 각각의 새 operation이 독립적으로 추가될 수 있고, 이 node class들이 operation들에 대해 독립적이라면 더욱 좋을 것이다.
         예를든다면, visitor를 이용하지 않는 컴파일러는 컴파일러의 abstact syntax tree의 TypeCheck operation을 호출함으로서 type-check 을 수행할 것이다. 각각의 node들은 node들이 가지고 있는 TypeCheck를 호출함으로써 TypeCheck를 구현할 것이다. (앞의 class diagram 참조). 만일 visitor를 이용한다면, TypeCheckingVisior 객체를 만든 뒤, TypeCheckingVisitor 객체를 인자로 넘겨주면서 abstract syntax tree의 Accept operation을 호출할 것이다. 각각의 node들은 visitor를 도로 호출함으로써 Accept를 구현할 것이다 (예를 들어, assignment node의 경우 visitor의 VisitAssignment operation을 호출할 것이고, varible reference는 VisitVaribleReference를 호출할 것이다.) AssignmentNode 클래스의 TypeCheck operation은 이제 TypeCheckingVisitor의 VisitAssignment operation으로 대체될 것이다.
         type-checking 의 기능을 넘어 일반적인 visitor를 만들기 위해서는 abstract syntax tree의 모든 visitor들을 위한 abstract parent class인 NodeVisitor가 필요하다. NodeVisitor는 각 node class들에 있는 operation들을 정의해야 한다. 해당 프로그램의 기준 등을 계산하기 원하는 application은 node class 에 application-specific한 코드를 추가할 필요 없이, 그냥 NodeVisitor에 대한 새로운 subclass를 정의하면 된다. VisitorPattern은 해당 Visitor 와 연관된 부분에서 컴파일된 구문들을 위한 operation들을 캡슐화한다.
         http://zeropage.org/~reset/zb/data/visit113.gif <- [DeadLink]
         http://zeropage.org/~reset/zb/data/visit112.gif <- [DeadLink]
          - declares a Visit operations for each class of ConcreteElement in the object structure. The operation's name and signature identifies the class that sends the Visit request to the visitor. That lets the visitor determine the concrete class of the element being visited. Then the visitor can access the element directly through its particular interface.
          * ConcreteVisitor (TypeCheckingVisitor)
          - implements each operation declared by Visitor. Each operation implements a fragment of the algorithm defined for the corresponding class of object in the structure. ConcreteVisitor provides the context for the algorithm and stores its local state. This state often accumulates result during the traversal of the structure.
          - defines an Accept operation that takes a visitor as an argument.
          - may provide a high-level interface to allow the visitor to visit its elements. [[BR]]
         class PricingVisitor : public EquipmentVisitor {
          PricingVisitor ();
         void PricingVisitor::VisitFloppyDisk (FloppyDisk* e) {
         void PricingVisitor::VisitChassis (Chassis* e) {
         class InventoryVisitoy : public EquipmentVisitor {
          InventoryVisitor ();
          Inventory& GetInventory ();
  • LongestNap/문보창 . . . . 56 matches
         #include <iostream>
         #include <algorithm>
         using namespace std;
          int start;
          int end;
         const int MAX = 100;
         const int START_TIME = 10;
         const int END_TIME = 18;
         inline void eatline() { while (cin.get() != '\n' && cin.peek() != EOF) continue; };
         int make_schedule(Promise * pro);
         Promise set_naptime(const Promise * pro, const int & nPromise);
         void show(const Promise & nap, const int & index);
         int main()
          int i = 0;
          while (cin.peek() != EOF)
          int nPromise = make_schedule(promise);
         int make_schedule(Promise * pro)
          int nPromise;
          cin >> nPromise;
          int i;
  • MineSweeper/Leonardong . . . . 56 matches
         class MineGround:
          def __init__(self, aRowSize, aColSize, aInfo ):
          for row in range( aRowSize ):
          for row in range( aRowSize ):
          for col in range( aColSize ):
          self.ground[row][col] = Room( aInfo[row][col] )
          def __init__(self, aKind):
          self.kind = aKind
          return self.kind is aRoom.kind
          def mine(): # static method
          mine = staticmethod( mine )
         class MineSweeper:
          def __init__(self, aGround):
          def computeMineCount( self, aRow, aCol ):
          for d in self.direction:
          if Room.mine().equals(self.ground.getZone( aRow + d[0], aCol + d[1])):
          for row in range( self.ground.rowSize ):
          for col in range ( self.ground.colSize ):
          result[row] = result[row] + str( self.computeMineCount(row, col) )
          rowSize = input()
  • MoreEffectiveC++/Basic . . . . 56 matches
         == Item 1: Distinguish between pointers and references. ==
          * Item 1: Pointer와 Reference구별해라.
          Pointers use the "*" and "->" operators, references use "." [[BR]]
          string& rs; // Reference(참조)가 초기화가 되지 않아서 에러
          string s("xyzzy"); // 이건 된다 신기하네
          string& rs = s;
         아직 string써본적 한번도 없다. 반성..
          void printDouble(const double& rd)
          void printDouble (const double* pd)
          cout << *pd // pd가 null인지 검사 해야 한다. pointer니까.
         pointer의 유의 사항인 null에 관한 내용을 다시 알려준다.
          string s1("Nancy"); // 이제는 무슨 퀴즈 같다.
          string s2("Clancy");
          string& rs = s1;
          string* ps = &s1;
         사견: Call by Value 보다 Call by Reference와 Const의 조합을 선호하자. 저자의 Effective C++에 전반적으로 언급되어 있고, 프로그래밍을 해보니 괜찮은 편이었다. 단 return에서 말썽이 생기는데, 현재 내 생각은 return에 대해서 회의적이다. 그래서 나는 COM식 표현인 in, out 접두어를 사용해서 아예 인자를 넘겨서 관리한다. C++의 경우 return에 의해 객체를 Call by Reference하면 {} 를 벗어나는 셈이 되는데 어디서 파괴되는 것인가. 다 공부가 부족해서야 쩝 --;
          오해의 소지가 있도록 글을 적어 놨군요. in, out 접두어를 이용해서 reference로 넘길 인자들에서는 in에 한하여 reference, out은 pointer로 new, delete로 동적으로 관리하는것을 의도한 말이었습니다. 전에 프로젝트에 이런식의 프로그래밍을 적용 시켰는데, 함수 내부에서 포인터로 사용하는 것보다 in에 해당하는 객체 사용 코딩이 편하더군요. 그리고 말씀하신대로, MEC++ 전반에 지역객체로 생성한 Refernece문제에 관한 언급이 있는데, 이것의 관리가 C++의 가장 큰 벽으로 작용하는 것이 아닐까 생각이 됩니다. OOP 적이려면 반환을 객체로 해야 하는데, 이를 포인터로 넘기는 것은 원칙적으로 객체를 넘긴다고 볼수 없고, 해제 문제가 발생하며, reference로 넘기면 말씀하신데로, 해당 scope가 벗어나면 언어상의 lifetime이 끝난 것이므로 영역에 대한 메모리 접근을 OS에서 막을지도 모릅니다. 단, inline에 한하여는 이야기가 달라집니다. (inline의 코드 교체가 compiler에 의하여 결정되므로 이것도 역시 모호해 집니다.) 아예 COM에서는 OOP에서 벗어 나더라도, 범용적으로 쓰일수 있도록 C스펙의 함수와 같이 in, out 의 접두어와 해당 접두어는 pointer로 하는 규칙을 세워놓았지요. 이 설계가 C#에서 buil-in type의 scalar형에 해당하는 것까지 반영된 것이 인상적이 었습니다.(MS가 초기 .net세미나에서 이 때문에 String 연산 차이가 10~20배 정도 난다고 광고하고 다녔었는데, 지금 생각해 보면 다 부질없는 이야기 같습니다.) -상민
         reinterpret_cast<type>(expression)
          * ''reinterpret_cast<type>(expression)'' 은 차후 다시 읽은뒤 정리한다.
         #define static_cast(TYPE, TEXPR) ((TYPE) (EXPR))
  • OurMajorLangIsCAndCPlusPlus/2006.2.06/김상섭 . . . . 56 matches
         #include <iostream>
         #include <cstring>
         #include <cstdlib>
         using namespace std;
         class newstring
          newstring::newstring()
          explicit newstring::newstring(int num)
          for(int i =0; i < num; i++)
          newstring::~newstring()
          int newstring::length() const
          newstring::newstring(const char* ch)
          newstring::newstring(const newstring & ns)
          void operator+=(const newstring & a)
          newstring & newstring::operator=(const char* ch)
          newstring & newstring::operator=(const newstring ns)
         bool operator==(const newstring & a, const newstring & b)
         newstring & operator+(const newstring & a, const newstring & b)
          newstring *temp = new newstring(strlen(a.ch)+strlen(b.ch)+1);
         ostream & operator<<(ostream & os, const newstring& ns)
         istream & operator>>(istream & is, newstring & ns)
  • OurMajorLangIsCAndCPlusPlus/print/허준수 . . . . 56 matches
         #include <iostream>
         #include <stdarg.h>
         #include <stdio.h>
         #include <stdlib.h>
         #include <cmath>
         using namespace std;
         void print(const char* first,...)
          for(int i = 0; i<strlen(first); i++) {
          int d = va_arg(l, int);
          int decimal, sign;
          for(int j = 0; j<decimal; j++)
          for(int k = j; k<5; k++)
          int itemp = va_arg(l, int);
          int len = strlen(temp);
          int num_underBar = atoi(&first[i]);
          for(int m = 0; m<num_underBar; m++) {
          continue;
          int *i_array = va_arg(l, int*);
          int index = va_arg(l, int);
          for(int x = 0; x<index; x++) {
  • whiteblue/자료구조다항식구하기 . . . . 56 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         #define MAX 10000;
         typedef struct poly_node * poly_pointer;
          int coef;
          int expon;
          poly_pointer link;
         poly_pointer pread();
         poly_pointer pmult (poly_pointer a, poly_pointer b);
         void pwrite (poly_pointer a);
         int countNode(poly_pointer a);
         int count_ = 0;
         int main()
          poly_pointer a,b,c,d;
         poly_pointer pread()
          int preExpon = MAX;
          int tempCoef;
          int tempExpon;
          poly_pointer result = new poly_node;
  • 압축알고리즘/홍선,수민 . . . . 56 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int max,count;
         int start_Number, end_Number;
         bool ing_Number=false;
         bool test(int index)
          if ( index <max && 48<= (int)buffer[index] && (int)buffer[index] <= 57 ){
          if(ing_Number)
          end_Number= index;
          if(!ing_Number)
          ing_Number=true;
          start_Number = index;
          end_Number= index;
          test(index+1);
          else if(ing_Number)
          ing_Number=false;
          ifstream fin("input_e.txt");
          int i=0,j, number;
          while(fin.get(buffer[i]))
  • Boost/SmartPointer . . . . 55 matches
         #include <boost/smart_ptr.hpp>
         using namespace boost;
         // copyright notice appears in all copies. This software is provided "as is"
         // See http://www.boost.org for most recent version including documentation.
         // 21 May 01 Initial complete version (Beman Dawes)
         // The original code for this example appeared in the shared_ptr documentation.
         // Ray Gallimore pointed out that foo_set was missing a Compare template
         // argument, so would not work as intended. At that point the code was
         // turned into an actual .cpp file so it could be compiled and tested.
         #include <vector>
         #include <set>
         #include <iostream>
         #include <algorithm>
         #include <boost/shared_ptr.hpp>
         // and by ordering relationship (std::set).
          Foo( int _x ) : x(_x) {}
          ~Foo() { std::cout << "Destructing a Foo with x=" << x << "\n"; }
          int x;
         int main()
          foo_set.insert( foo_ptr );
  • BoostLibrary/SmartPointer . . . . 55 matches
         #include <boost/smart_ptr.hpp>
         using namespace boost;
         // copyright notice appears in all copies. This software is provided "as is"
         // See http://www.boost.org for most recent version including documentation.
         // 21 May 01 Initial complete version (Beman Dawes)
         // The original code for this example appeared in the shared_ptr documentation.
         // Ray Gallimore pointed out that foo_set was missing a Compare template
         // argument, so would not work as intended. At that point the code was
         // turned into an actual .cpp file so it could be compiled and tested.
         #include <vector>
         #include <set>
         #include <iostream>
         #include <algorithm>
         #include <boost/shared_ptr.hpp>
         // and by ordering relationship (std::set).
          Foo( int _x ) : x(_x) {}
          ~Foo() { std::cout << "Destructing a Foo with x=" << x << "\n"; }
          int x;
         int main()
          foo_set.insert( foo_ptr );
  • 권영기/web crawler . . . . 55 matches
          print e.reason
         for line in urllib2.urlopen(req).readlines():
          fo.write(line)
          * http://coreapython.hosting.paran.com/howto/HOWTO%20Fetch%20Internet%20Resources%20Using%20urllib2.htm
         import string
         for line in fo1.readlines() :
          pos = string.find(line, '"http')
          for c in range(pos+1, len(line)) :
          if line[c] is '"' :
          fo2.write(line[c])
          * http://docs.python.org/tutorial/inputoutput.html
         for line in fo.readlines():
          urllib.urlretrieve(line,line.split('/')[-1])
          line = 'http://cfile23.uf.tistory.com/original/2001D2044C945F80495C6F'
          line.split('/')[-1] == '2001D2044C945F80495C6F'
          line.split('/')[-2] == 'original'
          say = "This is a line of text"
          part = line.split(' ')
          part == ['This', 'is', 'a', 'line', 'of', 'text']
         [GCC 4.6.1] on linux2
  • 김영록/연구중/지뢰찾기 . . . . 55 matches
         #include <iostream.h>
         #include <stdlib.h>
         #include <time.h>
         static int space[16][16];
         static int gameover=1; //0일경우 메뉴 무한루프 끝
         void mine_confirm(int X, int Y); //지뢰가 있는지 없는지 확인
         void mine_update(int X, int Y); //지뢰가 없을경우 그근처에 지뢰수를 업뎃
         void mine_newgame(); //지뢰 위치 초기화
         void mine_show(); //지뢰 화면 보여주기
         void mine_menu(); //메뉴
         void main()
          mine_newgame();
          mine_show();
          mine_menu();
         void mine_menu() //메뉴 나타냄
          int num_x,num_y;
          cin >> num_x;
          cin >> num_y;
          mine_confirm(num_x-1,num_y-1);
         void mine_show()
  • 새싹교실/2012/아무거나/2회차 . . . . 55 matches
         #include <stdio.h>
         #include <conio.h>
         int main(void)
          int a,b,c;
          int d,e,f ;
         printf("\n");
          printf("*");
         printf("\n");
          printf("*");
         #include <stdio.h>
         #include<stdio.h>
         int main()
          int a, b, c;
          printf("*");
          printf("\n");
          printf("*");
          printf("\n");
          * Hint!
         #include <stdio.h>
         int main(void)
  • 압축알고리즘/슬이,진영 . . . . 55 matches
         #include <iostream>
         #include <string>
         #include <cstdlib>
         using namespace std;
         void main()
          char input[20];
          cin >> input;
          int count=0;
          int output=0;
          char first = input[0];
          int index = 0;
          int temp =0;
          while(input[index]!=NULL)
          if(input[index]==first){
          cout << (int)(input[index] - first);
          index++;
          char input2[20];
          cin >> input2;
          char firch = input2[0];
          index = 1;
  • 진법바꾸기/김영록 . . . . 55 matches
         #include <stdio.h>
         static int input_10,input_num;
         int get_maxjarisu(int num1,int num2);
         int get_jegob(int num,int count);
         void behavior(int num1,int num2);
         int get_count(int num1,int num2,int num3);
         int get_maxjarisu(int num1,int num2)// num1 = 숫자 num2 = 진법
         int count=1;
         int dividing;
          dividing = get_jegob(num2,count);
          if (num1>=dividing){
         int get_count(int num1,int num2,int num3) //num1 = 숫자 ,num2 = 진법,num3 = 자리수
          int temp;
         int get_jegob(int num,int count) //num =제곱할수 num2 =제곱할횟수
          int i;
          int sum=1;
         void behavior(int num1,int num2) //num1 = 숫자 ,num2 = 나눌수
          int i;
          int temp=0;
          printf("%d ",temp);
  • CPP_Study_2005_1/BasicBusSimulation/남상협 . . . . 54 matches
         #include <fstream>
         #include <vector>
         #include <iostream>
         #include "BusSimulation.h"
         using namespace std;
         void main()
          ifstream fin("data.txt");
          BusSimulation busSimulation(fin);
          busSimulation.readTimeInput(cin,cout);
          busSimulation.printResult(cout);
         #define _BUS_SIMULATION_H_
         #include <iostream>
         #include <vector>
         #include <fstream>
         #include "Bus.h"
         using namespace std;
          ifstream &m_fin;
          BusSimulation(ifstream &fin) : m_fin(fin) {}
          istream& readTimeInput(istream &in, ostream &out);
          void increaseTime(int time);
  • PairProgramming . . . . 54 matches
         http://pairprogramming.com/images/pairprogrammers.gif
         == Pair Programming Approach ==
         PairProgramming 을 적용해보는 방법, 스타일 등등
          * Pair Refactoring - 꼭 소스 코드가 아니더라도 위키 페이지에 대한 ["문서구조조정"] 을 하는 경우에도 적용할 수 있다. 특히, 해당 토론이 벌어진뒤 양론으로 나누어졌을 경우, 각 의견 지지자들이 Pair 로 문서구조조정을 할때 이용할 수 있다.
          * Protocol Analysis, 지식의 전달 - Seminar:CognitivePsychology 참조. 다른 사람의 사고과정을 관찰하고, 또한 자신의 사고과정을 다른 사람으로 하여금 관찰할 수 있게 해준다. 이는 자신의 프로그래밍 과정중 잘못된 부분을 고치는데 도움을 준다.
         == Pair Programming 에 대한 오해? ==
          * Junior : Expert 간 격차에 따른 효율성의 문제 - [http://www.caucse.net/phpwiki/index.php?PairProgramming PairProgramming]
         PairProgramming 의 다른 적용 예로서 PairSynchronization 이 있다.
         == PairProgramming 경험기 ==
          * Pair 의 진행을 이끌어가는 것 - 프로그래밍의 흐름이라고 해야 할까. 디자인을 어느정도 선정도로 맞추고 어떠한 문제를 풀 것인가에 대한 약간의 선이 필요할 것 같다. 이 경우에는 초반 디자인이 허술했었다는 약점이 있었다. '전체적인 관점에서 무엇무엇을 하면 프로그램이 완성될 것이다' 라는 것. UserStory 만 생각하고 EnginneringTask 를 간과한 것이 큰 문제였다. (그때 EnginneringTask 에 대한 개념이 없었었다는. 어디서 함부로 주워만 지식. --; 사고를 하자 사고를. -_-)
          * ExtremeProgrammingPlanning 이라는 책을 보면 해결책을 구할 수 있을 것 같다. (Xp 책들의 장점이자 단점이라면 얇은 두께의 분책이려나.. --a)
          * 아직은 효율성이.. - 일종의 Learning Time 이라고 해야 할까? 대부분 실험에서 끝난다는 점. 퍽 하고 처음부터 효율성을 극대화 할 순 없을 것이다. 참고로 이때는 아날로그 시계 만드는데 거의 3시간이 걸렸다. Man-Hour 로 치면 6시간이 된다.
         TestFirstProgramming 과 PairProgramming 은 집중도에 관해서는 가장 훌륭한 선택인 것 같다. (단, Pair와의 담합행위가 이루어지면 곤란하겠다. -_-;)
         === bioinfomatix 프로젝트중 ===
         진행한 사람 : 강석천, bioinfomatix 에서 일하시는 분들[[BR]]
         학습목적이 아닌 실질적인 개발을 위한 PairProgramming 으로는 처음인듯 하다. 2주간 격일로 일을 했었는데, XP 스타일로 프로젝트를 진행하였다.
          * 보통 코딩을 주도하는쪽이 빨리 지치며 집중력도 떨어지게 된다. 특히 PairProgramming 의 경우는 상대편 Pair에 대한 배려상 해당 시간에 작업 이외의 다른 일을 거의 하지 않는다. (화장실도 자주 안간다;;)
          * On-Side Customer 와의 PairProgramming - 프로젝트 중간에 참여해서 걱정했었는데, 해당 일하시는 분과 직접 Pair를 하고 질문을 해 나가면서 전체 프로그램을 이해할 수 있었다. 특히 내가 ["BioInfomatics"] 에 대한 지식이 없었는데, 해당 도메인 전문가와의 Pair로서 서로 상호보완관계를 가질 수 있었다.
          * Junior 의 위치에서 바라본 학습 효과 - 이전에 상경이형이 채팅 프로그램 만드는 법을 직접 보여줬을때가 생각이 난다. (그때 '자. 15분동안 하나 만들어줄께~' 하면서 후다다닥 MFC로 서버/클라이언트 예제를 바로 보여주던 모습은 잊혀지지 않는다;) Junior 의 입장에서 Expert 행동 하나하나는 Check Point 이다. 좋은 습관과 프로그래밍 스타일, 디버깅하는 모습을 직접 눈으로 확인할 수 있었다.
         ProgrammingContest 에 있는 K-In-A-Row 문제를 푸는 일을 했다.
  • PerformanceTest . . . . 54 matches
         Windows 에서의 수행시간측정 방법.
          BOOL QueryPerformanceFrequency(LARGE_INTEGER* param)
          BOOL QueryPerformanceCounter(LARGE_INTEGER* param)
         상기 두 Windows API함수를 사용해서 수행 시간을 측정 할 수 있습니다.
         다음은 Binary Search 의 퍼포먼스 측정관련 예제. CTimeEstimate 클래스를 만들어 씁니다.
          #include <windows.h>
          #include <time.h>
          #include <stdio.h>
          __int64 m_nStart, m_nEnd, m_nFreq;
          QueryPerformanceFrequency((LARGE_INTEGER*)&m_nFreq);
          QueryPerformanceCounter((LARGE_INTEGER*)&m_nStart);
          QueryPerformanceCounter((LARGE_INTEGER*)&m_nEnd);
          void Init (int S[]);
          int getRandNum (int nBoundary);
          int BinarySearch (int nBoundary, int S[], int nKey);
          int main (void)
          int S[30001];
          int i, nRandNum, nLocation;
          int nBoundary = 2000;
          Init (S);
  • ShellSort/문보창 . . . . 54 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         const int MAX_NAME = 81;
         const int MAX_TURTLE = 200;
         void input_turtle(char turt[][MAX_NAME], const int & nTurt);
         void move_turtle(const int * code, const int & nTurt, bool * isMove);
         void incoding(const char oldTurt[][MAX_NAME], const char newTurt[][MAX_NAME], const int & nTurt, int * code);
         void print_turtle(const char turt[][MAX_NAME], const int * code, const bool * isMove, const int & nTurt);
         inline void show_turtle(const char turt[]) { cout << turt << endl; };
         int main()
          int incode[MAX_TURTLE];
          int nCase, nTurt;
          cin >> nCase;
          int i;
          cin >> nTurt;
          cin.get();
          input_turtle(oldTurt, nTurt);
          input_turtle(newTurt, nTurt);
          incoding(oldTurt, newTurt, nTurt, incode);
  • SpiralArray/영동 . . . . 54 matches
         #include<iostream>
         using namespace std;
         const int RIGHT=0;
         const int DOWN=1;
         const int LEFT=2;
         const int UP=3;
         const int DIRECTION=4;//이동 가능한 총 방향수
         const int MOVE_X[DIRECTION]={1, 0, -1, 0};
         const int MOVE_Y[DIRECTION]={0, 1, 0, -1};
         const int MAX_X=5;
         const int MAX_Y=5;
          int currentX;//현재 x좌표
          int currentY;//현재 y좌표
          int currentDirection;//현재 이동 방향
          Mover(int startingX, int startingY)
          currentX=startingX;
          currentY=startingY;
         void showBoard(int aBoard[][MAX_X]);//배열을 보여준다
         void setEmptyBoard(int aBoard[][MAX_X]);//배열 초기화
         int setStartingX();//시작 위치 설정: x
  • 김재현 . . . . 54 matches
         == Intro ==
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         #define COUNT 6 // 당첨번호개수
         #define MAX 45 // 1-45
         #define TITLE "[ LOTTO RANDOM NUMBER GENERATOR ]\n"
         int main()
          int i;
          printf(TITLE);
          printf("=================================\n");
          printf("Enter the game count: ");
          printf("=================================\n");
          printf("game %2d: ", i+1);
          printf("%2d ", n+1);
          printf("\n"); // 한 set 완료
         #include <stdio.h>
         int ThreeNOne(int aInput);
         int ThreeNOneTwoNum(int aInput, int aInput2);
         int num1, num2, cycle_length;
  • 새싹교실/2011/Noname . . . . 54 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          || ||int||4 byte(32 bit)||-2,147,483,646 이상 +2,147,483,647 이하||
          || ||short int||2 byte(16 bit)||-32,768 이상 +32,767 이하||
          || ||long int||4 byte(32 bit)||-2,147,483,646 이상 +2,147,483,647 이하||
          * 함수 #define함수와 일반함수
         int add(int a, int b){
          int add = a + b;
          * #define함수
          #define ADD(x,y) (x)+(y)
          * 연산자의 종류들과 #define함수의 활용법에 대해서 배웠습니다. 아직 C프로그래밍이 익숙지 않아서 간단한 함수도 어렵게 느껴졌다. 여러 예재로 우선 C프로그래밍에 익숙해 져야 겠다. 수업이 끝난 후 복습을 꼭 해야겠다. - [김창욱]
         #include <stdio.h>
         int factorial(int n);
         int main()
          int a;
          printf("몇 팩토리얼을 구할까요? ");
          printf("%d",factorial(a));
         int factorial(int n){
         #include<stdio.h>
         int fibo(int x);
         int main()
  • Calendar환희코드 . . . . 53 matches
         #include <stdio.h>
         #include "랄랄라랄라랄랄.h"
         int main(void){
          int numberofDay, year, month;
          printf("원하시는 년도를 입력해주세요 : ");
          printf("1월 1일의 요일을 적어주세요(일요일:0 ~ 토요일 : 6) : ");
          printf("다시 입력하세요 : ");
          printf("\n");
         #include <stdio.h>
         int 윤달계산(int year);
         int 달력형식(int nameofDay, int year, int month);
         int 달력출력(int 몇요일, int 몇년, int 몇월);
         int 몇요일로시작할까(int 요일, int 년도, int 월);
         #include "랄랄라랄라랄랄.h"
         int 윤달계산(int year){
         int 달력형식(int nameofDay, int year, int month){
          printf(" %d월, %d\n", month, year);
          printf("---------------------------------------------------\n");
          printf("Sun Mon Tue Wed Thu Fri Sat\n");
          printf("\t");
  • CodeRace/20060105/아영보창 . . . . 53 matches
         #include <iostream>
         using namespace std;
         #include <fstream>
         #include <string>
         #include <vector>
         #include <algorithm>
          string data;
          int count;
          int asciiSum;
         fstream fin("Alice.txt");
         vector<Word*> container;
         void input()
          bool isFind;
          while(fin >> word->data)
          isFind = false;
          for (int i = 0; i < container.size(); i++)
          if (container[i]->data == word->data)
          isFind = true;
          container[i]->count++;
          if (isFind == false)
  • JTDStudy/첫번째과제/상욱 . . . . 53 matches
         import javax.swing.JOptionPane;
          private String resultNumber;
          private String userNumber;
          public static void main(String[] args) {
          // input number from user
          inputNumber();
          public String inputNumber() {
          return userNumber = JOptionPane.showInputDialog(null, "Enter number what you think");
          String fstNum, secNum, trdNum;
          public String checkScore() {
          int numOfStrike = 0;
          int numOfBall = 0;
          for (int i = 0 ; i < 3 ; i++) {
          for (int j = 0 ; j < 3 ; j++) {
          public void setResultNumber(String resultNumber) {
          public String getUserNumber() {
          public String getResultNumber() {
          public void testInputNumber() {
          String testString = object.inputNumber();
          if (testString.charAt(0) == '1' &&
  • TermProject/재니 . . . . 53 matches
         #include <iostream>
         #include <stdlib.h>
         using namespace std;
         void menu1(), menu2(), menu3(), menu4(), sub_menu(), avr(), sort(int, int),
          grade(int), prt_select(), prt_all(), error();
         const int students = 20;
         int stats[students][4] = {
         int sort_stats[students + 1][4];
         int select;
         int sum_sub[3], sum_avr;
         double avr_ind[students + 1];
         int main()
          for (int i = 0 ; i < students ; i++)
          for (int j = 0 ; j < 7 ; j++)
          cin >> select;
          for (int i = 1 ; i < students ; i++)
          for (int j = 0 ; j < i ; j++)
          for (int i = 1 ; i < students ; i++) // 평균 성적에 따라
          for (int j = 0 ; j < i ; j++) // 정렬 함수를 호출하여 정렬함
          if (avr_ind[i] > avr_ind[j])
  • WorldCupNoise/권순의 . . . . 53 matches
         ||Problem||1953||User||finchpark||
         #include <iostream>
         using namespace std;
         int trumpet(int num);
         int main()
          int getLineNum = 0;
          int getPatternNum = 0;
          int *scenario;
          cin >> getLineNum;
          scenario = (int*)malloc(sizeof(int) * getLineNum);
          for(int i = 0; i < getLineNum; i++)
          cin >> getPatternNum;
          for(int i = 0; i < getLineNum; i++)
         int trumpet(int num)
          int temp = 0;
          int result_1 = 2;
          int result_2 = 3;
          for(int i = 2; i < num; i++) {
         #include <iostream>
         using namespace std;
  • ACM_ICPC/2013년스터디 . . . . 52 matches
          * dynamic programming - [http://211.228.163.31/30stair/eating_together/eating_together.php?pname=eating_together 끼리끼리]
          * linked list - [http://211.228.163.31/30stair/josephus/josephus.php?pname=josephus&stair=11 josephus]
          * 퀵 정렬,이진검색,parametric search - [http://211.228.163.31/30stair/guessing_game/guessing_game.php?pname=guessing_game&stair=10 숫자 추측하기], [http://211.228.163.31/30stair/sort/sort.php?pname=sort&stair=10 세 값의 정렬], [http://211.228.163.31/30stair/subsequence/subsequence.php?pname=subsequence&stair=10 부분 구간], [http://211.228.163.31/30stair/drying/drying.php?pname=drying&stair=10 건조], [http://211.228.163.31/30stair/aggressive/aggressive.php?pname=aggressive&stair=10 공격적인 소]
          * dynamic programming - [http://211.228.163.31/30stair/subset/subset.php?pname=subset 부분 합]
          * greedy method - [http://211.228.163.31/30stair/quick_change/quick_change.php?pname=quick_change 거스름돈], [http://211.228.163.31/30stair/germination/germination.php?pname=germination 발아]
          * BackTracking문제 1문제
          * [http://211.228.163.31/30stair/inflate/inflate.php?pname=inflate inflate]
          * Binary Indexed Tree
          * inflate 모르겠다 알려줘
          * jumping_cow
          * [http://stackoverflow.com/questions/2631726/how-to-determine-the-longest-increasing-subsequence-using-dynamic-programming Time Complexity O(n log n) 의 Up Sequence]
          * [http://211.228.163.31/30stair/bridging/bridging.php?pname=bridging&stair=15 bridging - binary indexed tree를 이용한 Up Sequence 문제]
          * 김태진 : Dynamic Programming 6.1~6.3
          * Shortest Path : DAG(directed acyclic graphs)로 바꾼 후 Source에서부터 dist(v) = min{dist(v) + l(u,v)}사용
          * Longest increasing subsequence : DAG로 바꾼다.(increasing하는 곳에만 edge생성됨) 이후 가장 많이 방문하도록 L(j) = 1+ max{L(i) : (i,j)}수행
          * [http://en.wikipedia.org/wiki/Topological_sorting]
          * 김태진 : Dynamic Programming
          - 점화식을 구하는 것은 금방 구했으나, index를 얻어내는 것이 힘들었음.
          - 설명하면 1110110 이라는 것이 있을 때, 1110110이 오기 전에는 110으로 시작하는 모든 바코드가 있을 것이고, 그 이전에는 10으로 시작하는 모든 바코드가 있을 것이다. 그리고 1110110이라는 바코드가 오기 전에는 111000으로 시작하는 모든 바코드가 있을 것이고, 그 이전에는 11100으로 시작하는 모든 바코드가 있을 것이다. dp테이블에 해당 경우에 대한 경우의 수를 모두 저장해놨기 때문에, 앞에서 부터 차례대로 이전에 올 바코드의 수를 더해나가면 index를 구할 수 있다.
          * 2012 ICPC대전 문제 풀기 : [https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=554 링크]
  • AdventuresInMoving:PartIV/문보창 . . . . 52 matches
         // 10201 - Adventures in Moving: Part IV
         #include <iostream>
         using namespace std;
         //#include <fstream>
         //fstream cin("in.txt");
         #define MAX_OIL 200
         #define MAX_SIZE 101
         #define MAX_NUM 1000000000
          int length;
          int price;
         static int totalLength; /* 워털루에서 대도시까지의 거리 */
         static int numStation; /* 주유소 수 */
         static int d[2][MAX_OIL+1]; /* 다이나믹 테이블 */
         inline
         int getDistance(int i)
         void input()
          cin >> totalLength;
          cin.get();
          while (cin.peek() != EOF && cin.peek() != '\n')
          cin >> station[numStation].length >> station[numStation].price;
  • AustralianVoting/Leonardong . . . . 52 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         #define IntVector vector<int>
         #define CandidatorVector vector<Candidator>
         #define VoteSheetVector vector<VoteSheet>
          int votedCount;
          IntVector candidateNum;
         bool isWin( const Candidator & candidator, int n )
         int current( const VoteSheet & sheet )
         int pop_front( VoteSheet & sheet )
          return *sheet.candidateNum.erase( sheet.candidateNum.begin() );
         void collectVoting( CandidatorVector & candidators, const VoteSheetVector & sheets )
          for ( int i = 0 ; i < sheets.size() ; i++ )
         void markFall( CandidatorVector & candidators, const int limit )
          for ( int i = 0 ; i < candidators.size() ; i++ )
         int minVotedNum( const CandidatorVector & candidators )
          int result = INT_MAX;
          for ( int i = 0 ; i < candidators.size() ; i++ )
         bool isUnionWin( const CandidatorVector & candidators )
  • Linux . . . . 52 matches
         [[include(틀:OperatingSystems)]]
         [[https://groups.google.com/forum/#!msg/comp.os.minix/dlNtH7RRrGA/SwRavCzVE7gJ 전설적인 서문]]
         Hello everybody out there using minix -
         I'm doing a (free) operating system (just a hobby, won't be big and
         professional like gnu) for 386(486) AT clones. This has been brewing
         since april, and is starting to get ready. I'd like any feedback on
         things people like/dislike in minix, as my OS resembles it somewhat
         among other things).
         I've currently ported bash(1.08) and gcc(1.40), and things seem to work.
         This implies that I'll get something practical within a few months, and
          Linus (torv...@kruuna.helsinki.fi)
         PS. Yes - it's free of any minix code, and it has a multi-threaded fs.
         It is NOT protable (uses 386 task switching etc), and it probably never
         will support anything other than AT-harddisks, as that's all I have :-(.
         리눅스와 비슷한 운영체제로는 정통적인 유닉스 클론 이라고 평가받는 [:FreeBSD BSD]계열이 있다. BSD계열중 가장 잘알려진 [http://www.kr.freebsd.org FreeBSD]의 경우 실제로 과거부터 hotmail.com, yahoo.com, cdrom.com 을 운영해온 네트워킹에 대한 안정성이 입증된 운영체제이다. 실제로 2.6커널의 도입이전에는 BSD의 네트워킹이 더욱 뛰어나다는 평가를 받았지만 일반적인 의견이었으나, 많은 구조적 변경을 통해서 리눅스는 현재 이런 점을 극복하고 BSD와 리눅스를 선택하는 것은 운영자의 기호일 뿐이라는 이야기를 한다. 최근에는 리눅스를 데스크탑의 용도로 까지 확장하려는 노력의 덕분에 로케일 설정관련 부분이 대폭 강화되었으며, 사용자 편의성을 고려한 WindowManager인 [Gnome], [KDE] 등의 프로그램이 대폭 강화되면서 low-level 유저라도 약간의 관심만 기울인다면 충분히 서버로써 쓸 만한 운영체제로 변모하였다.
         어느정도 실력을 쌓았다 싶으면 RunningLinux, Oreilly 를 읽기를 권한다. 이 책은 비록 초심자가 읽기에는 부적절하지만 APM설정에 어느정도 리눅스의 구조에 대해서 익힌 사람들이 리눅스를 운영하기 위한 전반적 기초지식의 대부분을 습득 할 수 있는 수작이라고 생각된다.
         [Linux/탄생과의미]
         [Linux/배포판]
         [Linux/필수명령어]
         [Linux/디렉토리용도]
  • OurMajorLangIsCAndCPlusPlus/float.h . . . . 52 matches
          == Floating Point ==
         ||FLT_MANT_DIG ||float형 floating point로 표현 할 수 있는 significand의 비트 수 ||24 ||
         ||DBL_MANT_DIG ||double형 floating point로 표현 할 수 있는 significand의 비트 수 ||53 ||
         ||LDBL_MANT_DIG ||long double형 floating point로 표현 할 수 있는 significand의 비트 수 ||53 ||
         ||FLT_MAX ||float형으로 표현할 수 있는 가장 큰 floating point 값 ||3.402823466e+38F ||
         ||DBL_MAX ||double형으로 표현할 수 있는 가장 큰 floating point 값 ||1.7976931348623158e+308 ||
         ||LDBL_MAX ||long double형으로 표현할 수 있는 가장 큰 floating point 값 ||1.7976931348623158e+308 ||
         ||FLT_MAX_10_EXP ||float형으로 표현할 수 있는 가장 큰 floating point의 10의 지수값 ||38 ||
         ||DBL_MAX_10_EXP ||double형으로 표현할 수 있는 가장 큰 floating point의 10의 지수값 ||308 ||
         ||LDBL_MAX_10_EXP ||long double형으로 표현할 수 있는 가장 큰 floating point의 10의 지수값 ||308 ||
         ||FLT_MAX_EXP ||float형으로 표현할 수 있는 가장 큰 floating point의 2의 지수값 ||128 ||
         ||DBL_MAX_EXP ||double형으로 표현할 수 있는 가장 큰 floating point의 2의 지수값 ||1024 ||
         ||LDBL_MAX_EXP ||long double형으로 표현할 수 있는 가장 큰 floating point의 2의 지수값 ||1024 ||
         ||FLT_MIN ||float형으로 표현할 수 있는 가장 작은 양의 floating point 값 ||1.175494351e–38F ||
         ||DBL_MIN ||double형으로 표현할 수 있는 가장 작은 양의 floating point 값 ||2.2250738585072014e–308 ||
         ||LDBL_MIN ||long double형으로 표현할 수 있는 가장 작은 양의 floating point 값 ||2.2250738585072014e–308 ||
         ||FLT_MIN_10_EXP ||float형으로 표현할 수 있는 가장 작은 floating point의 10의 지수값 ||–37 ||
         ||DBL_MIN_10_EXP ||double형으로 표현할 수 있는 가장 작은 floating point의 10의 지수값 ||–307 ||
         ||LDBL_MIN_10_EXP ||long double형으로 표현할 수 있는 가장 작은 floating point의 10의 지수값 ||–307 ||
         ||FLT_MIN_EXP ||float형으로 표현할 수 있는 가장 작은 floating point의 10의 지수값 ||–125 ||
  • Slurpys/문보창 . . . . 52 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         const int MAX_LEN = 61;
         bool isSlurpy(const char * str, int & index);
         bool isSlimp(const char * str, int & index);
         bool isSlump(const char * str, int & index);
         int main()
          int nCase;
          cin >> nCase;
          cin.get();
          int index;
          int i;
          cin.getline(str, MAX_LEN, 'n');
          index = 0;
          if (isSlurpy(str, index))
         bool isSlurpy(const char * str, int & index)
          if (!isSlimp(str, index))
          if (!isSlump(str, index))
          if (index != strlen(str))
  • 데블스캠프2011/둘째날/Machine-Learning/SVM/namsangboy . . . . 52 matches
          * SVM Train 파일 생성하기
         #-*-coding:utf8-*-
         def readtrain():
          path1 = "/home/newmoni/workspace/svm/package/train/economy/index.economy.db"
          path2 = "/home/newmoni/workspace/svm/package/train/politics/index.politics.db"
          makedir = lambda i : "/home/newmoni/workspace/svm/package/train/"+i+"/index."+i+".db"
          for eachclass in classlist:
          for line in doclist:
          for word in line.split(" "):
          for word in document.replace("\n"," ").split(" "):
         if __name__=="__main__":
          classfreqdic, wordfreqdic, prob1, classprob1, classprob2 = readtrain()
          for eachclass in classlist:
          for line in doclist:
          totalprob = classifydocument(line)
          print eachclass, totalprob
          print correctct,totalct, correctct/float(totalct)
         #-*-coding:utf8-*-
         if __name__=="__main__":
          classfreqdic, wordfreqdic, prob1, classprob1, classprob2 = readtrain()
  • 2학기파이선스터디/클라이언트 . . . . 51 matches
          * Login : 현재 채팅에 사용중인 ID와 사용하고자 하는 ID를 비교하여, 채팅 참가 허가 유무를 확인한다.
          * ChatMain? : 채팅의 주 인터페이스를 관리하는 클래스이다. 이 클래스에서 대부분의 GUI를 관리하고, 채팅메세지보여준다. 또한 채팅에 접속한 사람들의 ID를 보여준다.
          * ReceiveMessage? : 서버로부터 전달되는 메시지를 받아서 ChatMain? 클래스의 메시지 출력 화면에 보여주는 역할을 한다.
          * UserList? : ChatMain? 클래스의 사용자 List에 접속한 사용자 ID를 보여주는 기능을 한다.
         from Tkinter import *
         class Main:
          def __init__(self, master):
          for i in range(400):#test scrollbar
          self.show.insert(END, str(i))
          for i in range(400):#test scrollbar
          self.list.insert(END, str(i))
         #for input a string(?)
          print self.edit.get()
          def __init__(self, aID):
          self.isinEntry = True
         if __name__ == "__main__":
          login = tkSimpleDialog
         ## login.Place.place_configure( root, x = 100, y = 100) #position
         ## csock = socket(AF_INET, SOCK_STREAM)
          ID = login.askstring(title = "Login", prompt="Enter ID", parent = root)
  • EightQueenProblem/최태호소스 . . . . 51 matches
         # include <stdio.h>
         # include <conio.h>
         # define SIZE 8
         int c;
         int Check(int in)
          int re=0;
          for(int i=c;i>0;i--){
          if((in-i)>=0 && P[c-i][in-i] ==1){//왼쪽으로..
          if( (in+i)<SIZE && P[c-i][in+i]==1 ){//오른쪽으로..
         int EQ()
          int re;
          for(int i=0;i<SIZE;i++){
          if(Q[i]==1) continue;// 그 줄에 queen 이있는것이므로 다음칸으로..
         void Init()
          for (int i=0;i<SIZE;i++){
          for(int j=0;j<SIZE;j++) P[i][j]=0;
          for(int i=0;i<SIZE;i++){
          for(int j=0;j<SIZE;j++)printf("%d ",P[i][j]);
          printf("\n");
         void main(void)
  • HowToBuildConceptMap . . . . 51 matches
         from Learning, Creating, Using Knowledge
          1. Identify a focus question that addresses the problem, issues, or knowledge domain you wish to map. Guided by this question, identify 10 to 20 concepts that are pertinent to the question and list these. Some people find it helpful to write the concept labels on separate cards or Post-its so taht they can be moved around. If you work with computer software for mapping, produce a list of concepts on your computer. Concept labels should be a single word, or at most two or three words.
          * Rank order the concepts by placing the broadest and most inclusive idea at the top of the map. It is sometimes difficult to identify the boradest, most inclusive concept. It is helpful to reflect on your focus question to help decide the ranking of the concepts. Sometimes this process leads to modification of the focus question or writing a new focus question.
          * Begin to build your map by placing the most inclusive, most general concept(s) at the top. Usually there will be only one, two, or three most general concepts at the top of the map.
          * Next selet the two, three or four suboncepts to place under each general concept. Avoid placing more than three or four concepts under any other concept. If there seem to be six or eight concepts that belong under a major concept or subconcept, it is usually possible to identifiy some appropriate concept of intermediate inclusiveness, thus creating another level of hierarchy in your map.
          * Connect the concepts by lines. Label the lines with one or a few linking words. The linking words should define the relationship between the two concepts so that it reads as a valid statement or proposition. The connection creates meaning. When you hierarchically link together a large number of related ideas, you can see the structure of meaning for a given subject domain.
          * Rework the structure of your map, which may include adding, subtracting, or changing superordinate concepts. You may need to do this reworking several times, and in fact this process can go on idenfinitely as you gain new knowledge or new insights. This is where Post-its are helpful, or better still, computer software for creating maps.
          * Look for crosslinks between concepts in different sections of the map and label these lines. Crosslinks can often help to see new, creative relationships in the knowledge domain.
          * Concept maps could be made in many different forms for the same set of concepts. There is no one way to draw a concept map. As your understanding of relationships between concepts changes, so will your maps.
  • Monocycle/김상섭 . . . . 51 matches
         #include <iostream>
         #include <string>
         #include <list>
         using namespace std;
         #define Max 25
         #define north 0
         #define east 1
         #define south 2
         #define west 3
         #define right 1
         #define left -1
         #define Max_turn 3
         #define Direction 4
         int now_row, now_col, terminal_row, terminal_col;
         int direction_row[4] = {-1,0 , 1,0 };
         int direction_col[4] = {0,1 ,0 ,-1 };
          int row;
          int col;
          int direction;
          int length;
  • NeoCoin/Server . . . . 51 matches
          * 8080 포트에 접속해 보고, 자칫 노출될수 있는 정보에 대하여 막는다. resin, tomcat 모두 8080 포트를 이용한 테스트를 한다.
         === Resin Restart ===
         ..resin/bin/httpd.sh start
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs2.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs3.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs4.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs5.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs6.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs7.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs8.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs9.html [[BR]]
         http://www-903.ibm.com/developerworks/kr/linux/library/l-fs10.html [[BR]]
          * apt 주소 세팅시에, ftp://ftp.nuri.net/pub/debian woody main contrib non-free 를 입력하는 방법에 대하여 너무 난감했다.
         bin86, binutils, libc6-dev, gcc, make, kernel-package, bzip2
         linux-2.4.7.tar.bz2 혹은 linux-2.4.7.tar.gz 를 받으면 된다.
         ftp://ftp.nuri.net/pub/linux-kernel/v2.4/
         ftp://ftp.kr.kernel.org/pub/linux/kernel/v2.4/
         ftp://ftp.kernel.org/pub/linux/kernel/v2.4/
         /usr/src/linux는 실제 커널 소스 디렉토리에 대한 링크여야 한다.
  • [Lovely]boy^_^/EnglishGrammer/Passive . . . . 51 matches
          A. ex) This house(subject) was built in 1930. (passive)
          ex) Somebody(subject) built this house in 1930. (active)
          ex) A lot of money was stolen in the robbery.
         == Unit40. Passive(2) (be / been / being done) ==
          A. After will / can / must / going to / want to, etc...
          D. Present continuous
          active) Somebody is cleaning the room right now.
          passive) The room is being cleaned right now.
          Past continuous
          active) Somebody was cleaning the room when I arrived.
          passive) The room was being cleaned when I arrived.
          ex) We gave the police the information. (We gave the information to the police.)
          ex1) The police were given the information.
          ex2) The information was given to the police.
          When we use these verbs in the passive, most often we begin with the person.
          C. The passive of doing/seeing -> being done/being seen
          ex-active) I don't like people telling me what to do.
          ex-passive) I don't like being told what to do.
          D. Get : Sometimes you can use get instead of be in the passive:
          You can use get to say that something happens to somebody or something, especially if this is unplanned or unexpected.
  • [Lovely]boy^_^/USACO/MixingMilk . . . . 51 matches
         #include <iostream>
         #include <fstream>
         #include <map>
         #include <vector>
         #include <algorithm>
         using namespace std;
         ifstream fin("milk.in");
         void InputInitData(int& suf, int& numf, map<int,int>& data, vector<int>& numlist);
         int Process(int& suf, int& numf, map<int,int>& data, vector<int>& numlist);
         void OutputData(int& numf, map<int,int>& data, vector<int>& numlist);
         int main()
          int numf, suf;
          map<int,int> data;
          vector<int> numlist;
          InputInitData(suf, numf, data, numlist);
         void InputInitData(int& suf, int& numf, map<int,int>& data, vector<int>& numlist)
          fin >> suf;
          fin >> numf;
          int cost, amount;
          for(int i = 0 ; i < numf ; ++i)
  • 큐와 스택/문원명 . . . . 51 matches
         여기서 의문점은 string헤더 파일을 include하지 않고 배열을 char *형으로 하고 #1,#2,#3을 strcpy를 사용하여 고치고 실행한 후,
         가능하다면, 전체 코드를 올려주세요. 지금 제 생각대로라면, 불가능한 코드를 말씀하시는 것 같아서요. --NeoCoin
          밤(10시 이후)에 답변드리겠습니다. 저에게는 상당한 학습의 기회가 될것 같군요. 재미있네요. 일단, 글로 표현하기에 자신이 없거든요. 주변의 사람들을 붙잡고 물어보는 것도 좋은 방법이 될것 같습니다. 그리고, 학교 교제의, call By Value, call By reference 와 Pointer 관련 부분을 읽으시면 좋겠습니다. --NeoCoin
         #include <iostream>
         #include <string>
         using namespace std;
         const int ASIZE = 5;
         void main()
          std::string a;
          char * array[ASIZE]; // Pointer의 배열입니다. 즉, 문자를 저장할 공간은 아닙니다.
          // char 를 가리킬수 있는 주소를 저장할수 있는 32bit 값들의 Pointer들 5개
          // 각 Pointer들은 의미 없는 값들로 채워져 있습니다.(컴파일러 의존)
          int tail = 0, status = 3;
          int select, count;
          for(int i = 0 ; i < ASIZE ; i++)
          strcpy(array[i], "empty"); // Pointer가 가르키는 부분이 우연히 접근 가능한 메모리 공간이라면
          cin >> select;
          cin >> array[tail]; // array[tail] 은 아직까지 의미없는 메모리 영역을 가리키는
          // 하나의 Pointer입니다. 그 영역에 임의로 문자를 채우는 것이므로
          array[count] = array[count+1]; // string의 경우와 달리, Pointer 값만 복사됩니다.
  • 토이/메일주소셀렉터/김정현 . . . . 51 matches
         public class Main {
          public static void main(String[] args) {
          String input;
          input= "input.txt";
          else input = args[0];
          String[] deleteList= {" ", "\n"};
          io.insertDeleteList(deleteList);
          io.insertSpace(true);
          io.write("result.txt", io.getRemadeFromFile(input));
          private String[] deleteList= {};
          private boolean shouldInsertSpace;
          shouldInsertSpace= false;
          public void write(String fileName, String text) {
          e.printStackTrace();
          public String read(String fileName) {
          String resultString= "";
          resultString += br.readLine();
          e.printStackTrace();
          e.printStackTrace();
          return resultString;
  • 5인용C++스터디/템플릿 . . . . 50 matches
         #include <iostream>
         using namespace std;
         int absi(int value)
         void main()
         #include <iostream>
         using namespace std;
         int abs(int value)
         void main()
         #include <iostream>
         using namespace std;
          int Items[5];
          void SetItem(int index, int item);
          int GetItem(int index);
         void Array5::SetItem(int index, int item)
          if(index >= 0 && index <= 4)
          Items[index] = item;
         int Array5::GetItem(int index)
          if(index >= 0 && index <= 4)
          return Items[index];
         void main()
  • RSS . . . . 50 matches
         The technology behind RSS allows you to subscribe to websites that have provided RSS feeds, these are typically sites that change or add content regularly. To use this technology you need to set up some type of aggregation service. Think of this aggregation service as your personal mailbox. You then have to subscribe to the sites that you want to get updates on. Unlike typical subscriptions to pulp-based newspapers and magazines, your RSS subscriptions are free, but they typically only give you a line or two of each article or post along with a link to the full article or post.
         The RSS formats provide web content or summaries of web content together with links to the full versions of the content, and other meta-data. This information is delivered as an XML file called RSS feed, webfeed, RSS stream, or RSS channel. In addition to facilitating syndication, RSS allows a website's frequent readers to track updates on the site using a news aggregator.
         Before RSS, several similar formats already existed for syndication, but none achieved widespread popularity or are still in common use today, and most were envisioned to work only with a single service. For example, in 1997 Microsoft created Channel Definition Format for the Active Channel feature of Internet Explorer 4.0. Another was created by Dave Winer of UserLand Software. He had designed his own XML syndication format for use on his Scripting News weblog, which was also introduced in 1997 [1].
         RDF Site Summary, the first version of RSS, was created by Dan Libby of Netscape in March 1999 for use on the My Netscape portal. This version became known as RSS 0.9. In July 1999 Netscape produced a prototype, tentatively named RSS 0.91, RSS standing for Rich Site Summary, this was a compromise with their customers who argued the complexity introduced (as XML namespaces) was unnecessary. This they considered a interim measure, with Libby suggesting an RSS 1.0-like format through the so-called Futures Document [2].
         Soon afterwards, Netscape lost interest in RSS, leaving the format without an owner, just as it was becoming widely used. A working group and mailing list, RSS-DEV, was set up by various users to continue its development. At the same time, Winer posted a modified version of the RSS 0.91 specification - it was already in use in their products. Since neither side had any official claim on the name or the format, arguments raged whenever either side claimed RSS as its own, creating what became known as the RSS fork. [3]
         The RSS-DEV group went on to produce RSS 1.0 in December 2000. Like RSS 0.9 (but not 0.91) this was based on the RDF specifications, but was more modular, with many of the terms coming from standard metadata vocabularies such as Dublin Core. Nineteen days later, Winer released RSS 0.92, a minor and (mostly) compatible revision of RSS 0.91. The next two years saw various minor revisions of the Userland branch of RSS, and its adoption by major media organizations, including The New York Times.
         Winer published RSS 2.0 in 2002, emphasizing "Really Simple Syndication" as the meaning of the three-letter abbreviation. RSS 2.0 remained largely compatible with RSS 0.92, and added the ability to add extension elements in their own namespaces. In 2003, Winer and Userland Software assigned ownership of the RSS 2.0 specification to his then workplace, Harvard's Berkman Center for the Internet & Society.
  • RandomWalk2/영동 . . . . 50 matches
         #include<iostream.h>
         int main()
          int input_y, input_x;//좌표의 총개수
          int start_y, start_x;//시작점의 좌표
          int journey=0;
          int y, x;//좌표의 현재 위치
          int i, j;//for문 돌리는 데 필요한 변수
          int count=0;//총 움직인 수
          int first_go=0;
          cin>>input_x;
          cin>>input_y;
          int **base=new int *[input_y];
          for(i=0;i<input_x;i++)
          base[i]=new int [input_x];
          for(i=0;i<input_y;i++){
          for(j=0;j<input_x;j++)
          cin>>start_x;
          cin>>start_y;
          cin>>way;
          y=input_y-1;
  • 2002년도ACM문제샘플풀이/문제B . . . . 49 matches
         #include <iostream>
         #include <string>
         using namespace std;
         int numOfData;
         string inputData[10];
         int outputData[10];
         string pattern;
         int getIndex(char c)
          int index;
          index=pattern.find_first_of(c);
          pattern = pattern.substr(0, index) + pattern.substr(index + 1);
          return index;
         void input()
          cin >> numOfData;
          for(int i=0;i<numOfData;i++)
          cin >> inputData[i];
          for(int i=0;i<numOfData;i++)
          int index;
          int addNumber = 40320;
          for(int j=0;j<8;j++)
  • KnightTour/재니 . . . . 49 matches
         // Knight.h: interface for the CKnight class.
         #if !defined(AFX_KNIGHT_H__B5234B12_3582_4CB8_8253_6ADFBE7B5E68__INCLUDED_)
         #define AFX_KNIGHT_H__B5234B12_3582_4CB8_8253_6ADFBE7B5E68__INCLUDED_
          int m_ChessBoard[8][8];
          int m_Vertical[8], m_Horizontal[8];
          int m_CurrentRow, m_CurrentColumn;
          int m_Footprint[65];
          unsigned int m_Move;
          CKnight(int sr, int sc);
         #endif // !defined(AFX_KNIGHT_H__B5234B12_3582_4CB8_8253_6ADFBE7B5E68__INCLUDED_)
         #include "Knight.h"
         #include "iostream"
         using namespace std;
         CKnight::CKnight(int sr, int sc)
          int tempHorizontal[] = {2, 1, -1, -2, -2, -1, 1, 2};
          int tempVertical[] = {-1, -2, -2, -1, 1, 2, 2, 1};
          for (int row = 0 ; row < 8 ; row++){
          for (int col = 0 ; col < 8 ; col++) {
          m_Footprint[row * 8 + col] = 0;
          for (int row = 0 ; row < 8 ; row++) {
  • Linux/필수명령어/용법 . . . . 49 matches
         - Enter login name for new account (^C to quit): blade
         - Editing information for new user [blade]
         - banner linux | lqr ,,디폴트 프린터에 확대한 글자를 출력한다.
         - document1 document2 differ: char 128, line 13 ,,차이 발견
         -i : 블록 사용 대신 incode 사용 정보를 보고한다.
         일반적으로 echo 명령은 프롬프트 상에서 사용되는 일은 없다. 하지만 스크립트 작성시 번번히 사용된다. 셸 스크립트 상에서 echo 명령은 BASIC의 PRINT 명령이나 C 언어의 printf() 함수와 같이 메시지를 출력하는 데에 자주 사용된다. 또한 전혀 필요없을 것 같은 echo의 -n 옵션도 스크립트 상에서는 유용하게 사용될 수 있다.
         - $ echo -e 'Linux\RedHat !'
         - Linux RedHat !
         : 풀 스크린 에디터를 사용할 수 없는 열악한 환경의 터미널을 위한 라인 에디터(line editor)이다.
         find
         : 원하는 특정 파일을 디렉토리를 탐색하여 찾는다. find는 매우 강력한 도구로 특정 디렉토리들을 순회하면서 지정된 조건에 만족하는 파일을 찾는다. 파일의 조건은 이름이나 크기, 날짜 등 다양하게 지정할 수 있다.
         - find [ 디렉토리 ] 탐색 조건
         -links : 특정 개수의 링크를 가진 파일을 찾는다. 물음표 부분에 링크의 숫자를 표기한다.
         -exec 명령 : 원하는 검색 조건에 맞는 파일을 찾으면 명시된 명령을 실행한다. 명령의 끝은 \;을 사용하여 끝낸다. find가 검색해낸 파일의 이름을 인수로 사용하고 싶다면 그 위치에 {}를 사용한다.
         - $ find /bin -name ro*
         - $ find -user qwfwq -exec cat {} list\;
         finger
         - finger [ -slpm ][ 사용자 ]
         인수로 아무 것도 주어지지 않으면, finger는 현재 시스템에 로그인되어 있는 사용자들을 보여준다. 옵션이 주어지지 않으면, 기본적으로 -l 옵션을 사용한 것으로 간주된다.
         - $ finger
  • Minesweeper/이도현 . . . . 49 matches
         2006-01-03 05:40:25 Accepted 0.012 Minimum 56031 C++ 10189 - Minesweeper
         // Minesweeper
         #include <iostream>
         //#include <fstream>
         using namespace std;
         #define ArSize 102
         void process(char data[][ArSize], int row, int col);
         void init_array(char data[][ArSize], int row, int col);
         void output(char data[][ArSize], int row, int col);
         //ifstream fin("input.txt");
         int main()
          int inputRow, inputCol;
          int outputNumber = 1;
          int i, j;
          while (cin >> inputRow >> inputCol)
          if ((inputRow == 0) && (inputCol == 0))
          init_array(data, inputRow + 1, inputCol + 1);
          for (i = 1; i <= inputRow; i++)
          for (j = 1; j <= inputCol; j++)
          cin >> data[i][j];
  • NUnit/C++예제 . . . . 49 matches
         === 예제 소스 실행법 (Using C++) ===
          * 속성 페이지 가서 C/C++로 간다음, #using 참조확인에다가 NUnit이 깔린 폴더의 bin 폴더를 넣어준다.
          * NUnit이 깔린 폴더의 bin안에 보면 NUnit-gui.exe을 실행한다. 컴파일해서 나온 dll을 로딩해주고 run하면 테스트들을 실행해준다.
         #using <nunit.framework.dll>
         using namespace System;
         using namespace NUnit::Framework;
          int a, b;
          [SetUp] void Init();
         #include "stdafx.h"
         #include "NUnit6.h"
          void Calculator::Init() {
         #using <nunit.framework.dll>
         using namespace System;
         using namespace NUnit::Framework;
          int a, b;
          void Calculator::Init() {
         #include "stdafx.h"
         #include "NUnit6.h"
          3. 테스트 프로젝트의 속성으로 들어가서 #using 참조에 nunit\bin폴더를 넣어준다.
         메인프로젝트에서 만든 새 클래스를 테스트 프로젝트에서 테스트하고 싶다. 어떻게 해야할까? 순진한 인수군은 #include <domain.h> 이렇게 하고, 테스트 클래스에 .h랑 .cpp 참조 넣어주면 될줄 알았다. 이것땜에 어제밤부터 삽질했다. 이렇게만 하면 안되고... 새로 만든 클래스를 일단 보자.
  • SoJu/숙제제출 . . . . 49 matches
         #include <stdio.h>
         int i,j;
         int main()
          printf("\n이 프로그램은 구구단 프로그램 입니다.");
          printf("\n보고싶은 구구단의 숫자를 입력하시오.\n\n");
          printf("\n");
          printf("%d단입니다.\n",i);
          printf("%d X %d = %d\n",i,j,i*j);
          printf("\n이 프로그램은 구구단 프로그램입니다. 1~9까지의 숫자중 하나를 입력하세요.\n\n");
          printf("\n다시 하시겠습니까? (예=y ,아니오=n)\n\n");
         #include <stdio.h>
         int main()
          int i; //구구단의 뒷쪽숫자입니다.
          int j; //구구단의 앞쪽숫자입니다.
          printf("안녕하세요? 구구단 출력 프로그램입니다.\n시킨대로 하지않으면 다운의 소지가..\n1~9사이의 정수를 입력해주세요.\n");
          printf("\n");
          printf(" %d x %d = %d \n",j,i,j*i);
          printf("\n");
          printf ("숫자가 너무 큽니다. 1-9사이의 정수를 입력해주세요~\n"); //입력받은 숫자가 9초과일경우의 오류메시지를 출력합니다.
          printf ("숫자가 너무 작습니다. 1-9사이의 정수를 입력해주세요~\n"); //입력받은 숫자가 1미만일경우의 오류메시지를 출력합니다.
  • 날다람쥐 6월9일 . . . . 49 matches
         = 포인터(Pointer)에 대해서. =
         int a = 13; int b = 14; 이라는 선언을 통해 가능하며, 메모리 상의 어떤 주소에 있는 13 이라는 데이터는 a라는 변수의 이름을 통해서 나타내어진다.
          여기서 주소가 1000 이후에 1004 인 이유는 int가 4byte이기 때문이다.(여기서 주소는 예를 든 것임)
         그리고 printf("%d", a); 라는 명령어를 통해 바뀐 것을 확인할 수 있다.
         printf("%u", &a);의 결과값은 1000이다.(%u 맞나? ㅋㅋ 찾아보길. 맞을꺼야 %u는 주소값을 표현하는 표현식.)
          만약에 INT형의 주소를 나타내는 변수 IP를 선언하고 싶으면 int* ip; 라고 표현하면 된다.
          int *ip; 도 가능한 표현이다.(이게 약간 더 옳은 표현.)
         예를 들어 int *ip, i; 이렇게 하면 뒤의 i는 일반적인 int로, 앞의 ip는 포인터 INT형으로 선언이 된다.
         포인터가 가리키는 곳의 값을 쓸 때는 앞에 *을 붙인다. 예) int a = 13; int* ap = &a; printf("%d %d", a, *ap);
          void add(int a, int b, int* cp) {
         *cp = a + b; // cp라는 포인터가 가리키는 주소의 값을 a + b로 바꿔준다(main 함수 안의 c).
         int main() {
          int a = 13, b = 14, c;
         printf("%d", c); // 결과값 : 27
         은 int a[5] = {3, 4, 2, 1, 8};을 선언한 형태이다.
         printf("%d", a[0]);
          왜 printf("%d", a); 와 같이 적으면 안되는지 알아보자.
         int* ap = a;
         물론 출력할 때는 printf("%d", *ap); 와 같이 a[0]을 출력할 수도 있다.
         바로 위의 배열을 모두 출력하는데, printf("%d", *(ap + @))의 형태로 출력해보자. 여기서 모든 값들을 출력하려면 @에 각각 어떤 수가 들어가는지 직접 해보고 왜 그런지 설명하기.
  • 데블스캠프2006/월요일/함수/문제풀이/이차형 . . . . 49 matches
         #include <iostream>
         using namespace std;
         bool team684(int, int, int);
         void main()
          int member=0;
          int guns=0;
          int boat=0;
         bool team684(int member, int guns, int boat)
          cin >> member;
          cin >> guns;
          cin >> boat;
         #include <iostream>
         #include <time.h>
         using namespace std;
         int dice(int num, int dice);
         int main()
          int num, dic;
         int dice(int num, int dic)
         #include <iostream>
         #include <time.h>
  • 데블스캠프2009/월요일/연습문제/svn코드레이스/박준호 . . . . 49 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         void up(int *, int*);
         void down(int *, int *);
         int main(void)
          int number;
          int guess;
          int maxnum = 50;
          int minnum = 1;
          printf("%d\n", number);
          if( maxnum - minnum == 0)
          printf("당신이 이기셨습니다. You Win\n");
          printf("숫자를 입력하시오 범위는 %d 부터 %d 입니다. \n", minnum, maxnum);
          if( (guess > maxnum) || (guess < minnum) )
          printf("먹고 ,다시 말하시오\n");
          up(&guess, &minnum);
          printf("당신은 졌습니다. 게임이 끝낫습니다. \n");
         void up(int *guess, int* minnum)
          * minnum = (*guess) + 1;
  • 데블스캠프2011/셋째날/String만들기/김준석 . . . . 49 matches
         #include<iostream>
         using namespace std;
         class String{
          int offset;
          int count;
          String(){
          String(const char *original){
          count = strlen(original);
          strcpy(value,original);
          String(const String& str, const int offset,const int count){
          void print(){
          for(int i =0;i<count;i++){
          char charAt(const int at){
          int indexOf(String& str){
          for(int i =0; i < this->count; i++){
          int select = -1;
          for(int j = 0; j < str.count-1;j++){
          int lastIndexOf(String& str){
          int choice = -1;
          for(int i =0; i < this->count; i++){
  • 새싹교실/2011/學高/4회차 . . . . 49 matches
          * Input three integers: 2 3 7
          * The sum of your integers plus 7 is 19
          * Hint
         #include <stdio.h>
         int main()
          int x,y,z;
          // printf()로 결과 출력하기
          * printf 사용법
          * %d: decimal integer
          * 정수형 data type: int, char
         #include <stdio.h>
         #define PI 3.141592
         int main()
          int price;
          printf("직경: "); scanf("%f",&diameter);
          printf("가격(단위 원): "); scanf("%d",&price);
          printf("넓이: %.2f\n",PI*diameter*diameter);
          printf("조각 당 가격: %d\n",price/8);
         #include<stdio.h>
         int main()
  • 압축알고리즘/희경&능규 . . . . 49 matches
         #include<fstream>
         #include<iostream>
         #include<string>
         using namespace std;
         void main()
          ifstream fin("input.txt");
          int number = 0;
          string pass;
          fin >> pass;
          for(int i = 0;pass[i];i++)
         #include<fstream>
         #include<iostream>
         #include<string>
         using namespace std;
         void main()
          ifstream fin("input.txt");
          int number;
          string pass;
          fin >> pass;
          for(int i = 0;pass[i];i++)
  • 토비의스프링3/오브젝트와의존관계 . . . . 49 matches
         package springbook.user.domain;
          String id;
          String name;
          String password;
          public String getId() {
          public void setId(String id) {
          public String getName() {
          public void setName(String name) {
          public String getPassword() {
          public void setPassword(String password) {
         package springbook.user.dao;
         import springbook.user.domain.User;
          Connection c = DriverManager.getConnection("jdbc:mysql://localhost/springbook", "spring", "book");
          PreparedStatement ps = c.prepareStatement("insert into users(id, name, password) values(?,?,?)");
          ps.setString(1, user.getId());
          ps.setString(2, user.getName());
          ps.setString(3, user.getPassword());
          public User get(String id) throws ClassNotFoundException, SQLException{
          Connection c = DriverManager.getConnection("jdbc:mysql://localhost/springbook", "spring", "book");
          ps.setString(1, id);
  • ComputerNetworkClass/Report2006/PacketAnalyzer . . . . 48 matches
         WSA prefix 를 가진 함수의 경우 대부분 Winsock 2에서 제공 되기 시작한 것이며, 이 WSAIoctl 역시도 윈속 2에서 지원된다.
         자세한 사항은 MSDN 혹은 Network Programming For Microsoft Windows 를 참조하기 바란다.
         ※ 윈도우 소켓 프로그래밍을 위해서는 윈속 라이브러리를 같이 linking 해야하며, WSActrl 을 사용하기 위해서는 winsock2 라이브러리인 ws2_32.lib 를 포함해야한다.
         #include <mstcpip.h>
         #define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
         int _cdecl main(int argc, char **argv)
          SOCKADDR_IN if0;
          int ret,
          unsigned int optval;
          // Load Winsock
          printf("WSAStartup() failed: %d\n", GetLastError());
          // Parse the command line
          printf("Source Port: %d\n", usSourcePort);
          printf("Dest Port: %d\n", usDestPort);
          // Create a raw socket for receiving IP datagrams
          s = WSASocket(AF_INET, SOCK_RAW, IPPROTO_IP, NULL, 0, WSA_FLAG_OVERLAPPED);
          if (s == INVALID_SOCKET)
          printf("WSASocket() failed: %d\n", WSAGetLastError());
          // Get an interface to read IP packets on
          if (GetInterface(s, &if0, dwInterface) != 0)
  • Counting/황재선 . . . . 48 matches
          * BigInteger 매우 강력하다!
         import java.math.BigInteger;
         public class Counting {
          public String readLine() {
          return new Scanner(System.in).useDelimiter("\n").next().trim();
          public BigInteger count(int n) {
          BigInteger zero = new BigInteger("0");
          BigInteger one = new BigInteger("1");
          BigInteger two = new BigInteger("2");
          BigInteger[] sum = new BigInteger[n + 1];
          for(int input = 2; input <= n; input++) {
          BigInteger numOfEachCounting = zero;
          for(int i = 1; i <= 3 && i <= input; i++) {
          BigInteger first = zero;
          if (i > 1 && input - i == 0) {
          BigInteger second = i == 1 ?
          two.multiply(sum[input - i]) : sum[input - i];
          numOfEachCounting = numOfEachCounting.add(first.add(second));
          sum[input] = numOfEachCounting;
          public void printCount(BigInteger number) {
  • DermubaTriangle/조현태 . . . . 48 matches
         #include <iostream>
         #include <Windows.h>
         #include <math.h>
         using namespace std;
         POINT GetTrianglePoint(int houseNumber)
          POINT trianglePoint;
          trianglePoint.x = 0; trianglePoint.y = 0;
          for (; trianglePoint.y * trianglePoint.y <= houseNumber; ++trianglePoint.y);
          --trianglePoint.y;
          houseNumber -= trianglePoint.y * trianglePoint.y;
          for (trianglePoint.x = trianglePoint.y * (-1); 0 < houseNumber; ++trianglePoint.x)
          return trianglePoint;
         double GetHousePointX(POINT trianglePoint)
          return trianglePoint.x * 0.5;
         double GetHousePointY(POINT trianglePoint)
          if ((0 == abs(trianglePoint.y) % 2 && 0 == abs(trianglePoint.x) % 2) ||
          (1 == abs(trianglePoint.y) % 2 && 1 == abs(trianglePoint.x) % 2))
          return trianglePoint.y * (sqrt(3.0) / 2);
          return ((trianglePoint.y - 1) * (sqrt(3.0) / 2)) + (sqrt(3.0) / 3);
         double GetHouseDistance(POINT trianglePointOne, POINT trianglePointAnother)
  • HowManyPiecesOfLand?/문보창 . . . . 48 matches
         === BigInteger.h ===
         // Big Integer Class - C++
         #include <iostream>
         using namespace std;
         #include <cstring>
         #define MAXDIGITS 100
         #define PLUS 1
         #define MINUS -1
         #define MAX(a,b) (((a) > (b)) ? (a) : (b))
         class BigInteger
          int signbit;
          int lastdigit;
          BigInteger(int n)
          int i;
          signbit = (n < 0) ? MINUS : PLUS;
          BigInteger()
          int i;
          void print()
          if (signbit == MINUS) cout << "-";
          for (int i = lastdigit; i >= 0; i--)
  • SeminarHowToProgramIt/Pipe/VendingMachineParser.py . . . . 48 matches
         #VendingMachineParser.py
         from cStringIO import StringIO
         from VendingMachine import *
         # //putCoin
         # //verifyCoin
         class VendingMachine:
          def putCoin(self, anAmount):
          print '%d inserted' % anAmount
          print aButtonType + ' pushed'
          def verifyCoin(self, anAmount):
          print anAmount
          print aStatus
         v=VendingMachine()
         class VendingCmd:
          def __init__(self,cmd,**kwargs):
          for item in self.__dict__.items():
         class PutCmd(VendingCmd):
          self.vm.putCoin(self.amount)
         class PushCmd(VendingCmd):
         class VerifyMoneyCmd(VendingCmd):
  • SmallTalk/강좌FromHitel/강의2 . . . . 48 matches
          Dolphin Smalltalk를 사용할 것이므로, 자료실에서 Dolphin Smalltalk를 내
          원래 Dolphin Smalltalk는 상용과 공개용 Smalltalk 환경을 같이 배포하고
          있습니다. Dolphin Smalltalk 1.1판은 공개용이며, 2.1판은 상용입니다. 현
          원래 Object Arts에서 제공하는 배포판의 파일 이름은 Dolphin981Setup.Exe
          이지만, 자료실의 파일명 길이 제한 때문에 위의 실행 파일을 다시 WinZip으
          로 압축하여 올린 것입니다. 그러므로 Dolphin Smalltalk를 설치하기 위해서
          1. 자료실에서 Dolphin Smalltalk와 Dolphin Education Center를 찾
          2. 내리받은 파일은 zip 압축파일이므로 WinZip 등과 같이 긴 파일
          5. 설치를 마무리하면 Dolphin Smalltalk의 바로 가기를 시작 메뉴
          든지 Dolphin Smalltalk를 제어판의 "프로그램 추가/삭제"를 통해서 제거할
          Dolphin Smalltalk를 시작하기 위해서는 "시작 → 프로그램 → Dolphin
          Smalltalk 98"을 가리킨 다음 안에 들어있는 "Dolphin Smalltalk 98" 아이콘
          처음 Dolphin Smalltalk를 설치하여 실행할 때에 화면에 경고 상자가 나타납
          니다. 대강의 내용은, 지금 사용하고 있는 Dolphin Smalltalk는 아직 등록
          Workspace'라는 이름을 가진 창입니다. 이 창에는 아마 "Welcome to Dolphin
          "First evaluated by Smalltalk in October 1972, and by Dolphin in
          내려진 명령이라고 합니다. Object Arts사는 1995년 2월에 자사의 Dolphin
          ☞ a SortedCollection(_FPIEEE_RECORD AbstractCardContainer
          Class allClasses asSortedCollection. ☞ "Inspector 창 열림"
          어떻습니까? "Inspecting a SortedCollection"이라는 제목의 창이 화면에 나
  • WebGL . . . . 48 matches
         [Javascript]임에도 불구하고 마치 C프로그래밍 스타일의 함수들이 존재한다. [WinAPI]가 C스타일의 [OOP]이듯 WebGL 또한 C스타일의 OOP이다. 모든 함수는 WebGLcontext라는 객체에 있는데 보면 그냥 접두어를 붙이는 느낌이다.
         위의 코드를 보면 [쉐이더] 프로그램에 fragmentShader와 vertexShader를 Link 시키는 구문인데 주체인 shaderProgram은 첫번쨰 인자이고 gl은 그냥 접두어 처럼 보인다. 저 구문만 그런것이 아니라 다른 모든 함수들이 저 gl 객체에 붙어있다. 하지만 정작 gl이 주체가 아닌 것들이 많다. 따라서 래핑한 객체를 만들어 쓰는 것이 속편한데 어설프게 했다가는 무척 꼬이게 된다.
          * WebGL은 기존 OpenGL과 다르게 직접 그리기가 지원되지 않는다. 기존의 glBegin()와 glEnd()사이에서 값을 계속적으로 전달하수 없고 오직 glDrawElement()를 통한 배열을 한꺼번에 전달하는 것'만' 지원한다. 초보자들의 첫난관이다.
         Attribute는 각 포인트 별로 전달되는 정보이고 uniform 은 전체에서 공통적인 정보이다. 일반적으로 Attribute는 각 정점의 위치 정보와 각 지점의 법선 벡터 정보를을 전달한다. uniform은 일반적으로 카메라의 위치나 환경광의 위치처럼 전체적인 것을 전달한다. Attribute나 uniform은 일종의 변수인데 핸들을 얻어와서 그것을 통해 값을 전달할수 있다. 즉 Atrribute나 Uniform은 Javascript측에서 쉐이더로 정보를 보내는 것이다. varying은 쉐이더 간의 정보 전달에 사용된다. vertex shader에서 fragment shader로 값이 전달되며 반대는 불가능하다(파이프라인 구조상 당연한 것이다). 이때 vertex shader는 각 정점(꼭지점) fragment shader는 각 픽셀에 한번 호출되게 되는데 각 정점 사이의 값들은 [보간법]을 거쳐 전달되게 된다(그라디언트 같은 느낌이다 중간값을 알아서 만들어 준다).
         각 정점 사이에 있는 픽셀 마다 호출된다. 주로 광원효과를 적용한 픽셀의 최종적인 색깔이나 텍스쳐 연산에 사용된다. varying변수를 vertex shader에서 fragment shader로 넘겨주면 각 정점 사이에는 보간법으로 변환된 값이 넘어 온다.
         varying vec4 vFinalColor;
         varying vec3 vNormal;
         void main(void){
          vFinalColor = Id;
          vFinalColor.a = 1.0;
         varying vec4 vFinalColor;
         varying vec3 vNormal;
         void main(void) {
          gl_FragColor = vFinalColor + vec4(0.01,0.01,0.01, 1.0);
          "indices" : [
         var init = function(){
         setTimeout(init, 0);
          gl.bindBuffer(gl.ARRAY_BUFFER, buffer.vertex);
          gl.vertexAttribPointer(shader.aVertexPosition, 3, gl.FLOAT, false, 0, 0);
          gl.bindBuffer(gl.ARRAY_BUFFER, buffer.normal);
  • ZeroPageHistory . . . . 48 matches
         ||1학기 ||2기 회원모집. 1학년을 위한 각종 강좌 마련, 스터디 조직. 2학년 각종 스터디 조직(C++, Graphics, OS, System-Programming, 한글 구현). 첫돌 잔치. ||
         ||겨울방학 ||C++ for windows, X windows Programming, Object Oriented Analysis & Design 등의 Project 수행 ||
          * C++, Computer Graphics, OS, System-Programming
          * C++ for Windows, X Windows Programming, Object Oriented Analysis & Design
         ||여름방학 ||C++, C, X-Window, *Utility 세미나 개최. ||
          * C, C++, X-Windows, Utility
         ||2학기 ||X-Window, Visual Basic, C 세미나 개최. ||
         ||겨울방학 ||X-Window, Data Structure, C, C++ 세미나 개최. ||
          * X-Windows, Visual Basic, C
          * X-Windows, Data Structure, C, C++
         ||1학기 ||5기 회원모집. 제 4회 소프트웨어 전시회 및 4주년 기념행사. C 초급, Assembly, Inside PC 강좌. ||
         ||여름방학 ||C 중급, C++, Network Programming 강좌. ||
          * C, Assembly Language, Inside PC
          * C, C++, Network Programming
         ||겨울방학 ||Data Structure 스터디, API 세미나 개최, 게임 제작 온라인 강좌.(긁어 놓은 게시물: Win95 레지스트리, TCP/IP) ||
         ||1학기 ||7기 회원모집. 3D Graphic Programming. (긁어 놓은 게시물: Protect Mode, Functions Pointer, Compression Algorithm, About 3D, PSP의 구조, DMA, 3D Display, Tcl/Tk, C++Builder와 델파이, Lisp 강좌) ||
         ||여름방학 ||C++, HTML, Object Pascal 세미나 개최.(목적 불문 게시물: 비선점형/선점형 멀티태스킹, Win32의 프로세스와 스레드.)(긁어놓은 게시물: 타이머, 마우스) ||
         FixMe 임베팅한 사이즈 조절 할줄 모르겠음. 오리지날 파일은 아래 참고. 스크린샷 상의 오르지오 메일은 망해서 모자이크 처리 안했음 --NeoCoin
         ||1학기 ||회장 이창섭, 12기 회원 모집. ZeroWiki 시스템 도입. Devils 통합. Internet Problem Solving Contest 참여, 서강대 MentorOfArts 팀과 프로그래밍파티 개최 ||
         ||2학기 ||Extreme Programming 진행 (TDD, [Pair Programming]) ||
  • 데블스캠프2010/다섯째날/ObjectCraft/미션3/김상호 . . . . 48 matches
         {{{#include<stdio.h>
         #include<stdlib.h>
         #include<time.h>
         #define NUM 4
          int gong;
          int bang;
          int hp;
          int name;
          printf("저글링 %d이 저글링 %d에게 데미지 %d를 입혀 HP가 %d가 되었다.\n", a.name, b.name, a.gong, b.hp);
          printf("저글링 %d이 전사했습니다.\n", b.name);
         void init_unit(unit a[NUM]){
          int n;
         int main()
          init_unit(a);
          int sel;
          int attackerTeam = rand() % 2;
          int attackerUnit = rand() % 2;
          int defenderunit = rand() % 2;
          printf("뒷 팀이 이겼습니다!!\n");
          printf("앞 팀이 이겼습니다!!\n");
  • 중위수구하기/나휘동 . . . . 48 matches
         = Using Swap ver.1 =
         #!/usr/bin/python
          maxIndex = aList.index(max(aList[0:k]))
          minIndex = aList.index(min(aList[k+1:n+1]))
          if aList[maxIndex] <= aList[k] <= aList[minIndex]:
          elif aList[maxIndex] <= aList[minIndex]:
          if aList[maxIndex] > aList[k]:
          swapList(aList, k, maxIndex)
          elif aList[minIndex] < aList[k]:
          swapList(aList, k, minIndex)
          else:# aList[maxIndex] > aList[minIndex]:
          swapList(aList, maxIndex, minIndex)
          for i in range(n):
          for i in range(0,k+1):
         if __name__ == '__main__':
          for i in range(1, int(sys.argv[1])):
          print i, metric(i), i**2, i*math.log(i)
          test= range(int(sys.argv[1]))
          print getMedian(test)
          test= range(int(sys.argv[1]))
  • CryptKicker2/문보창 . . . . 47 matches
         #include <iostream>
         #include <cstring>
         #include <string>
         #include <cctype>
         using namespace std;
         const int MAX_LEN = 81;
         const int PROPER_LEN = 43;
         bool input(string & s, char * rul);
         void findRule(char * str, char * rul);
         void decoding(string & s, char * rul);
         inline void output(string & s) { cout << s; }
         int main()
          int nCase;
          cin >> nCase;
          cin.get(), cin.get();
          int i;
          string s;
          if (input(s, rule))
          decoding(s, rule);
         bool input(string & s, char * rul)
  • JavaStudy2004/조동영 . . . . 47 matches
          protected int unitHp;
          protected int unitShield;
          protected int attackPoint;
          protected String nowState;
          public String name;
          public Unit(int hp, int shield, int attack, String state, boolean air) {
          this.attackPoint = attack;
          * public String changeState(String aState) { this.nowState = aState; return
          public void underattack(int aAttackPoint) {
          int totalHp;
          totalHp -= aAttackPoint;
          System.out.println("공격받은후의 Dragoon의 Hp와 Shield");
          System.out.print(unitHp);
          System.out.print(unitShield);
          System.out.println("공격받은후의 Dragoon의 Hp와 Shield");
          System.out.print(unitHp);
          System.out.print(unitShield);
          System.out.println("공격받은후의 Dragoon의 Hp와 Shield");
          System.out.print(unitHp);
          System.out.print(unitShield);
  • 렌덤워크/조재화 . . . . 47 matches
         #include <iostream>
         #include<cstdlib> // For rand() and srand()
         #include<ctime> //For time(0)
         using namespace std;
         int count[40][20]; //maximum size of the count array is 40*20
         int imove[8] = {-1,0,1,1,1,0,-1,-1};
         int jmove[8] = {1,1,1,0,-1,-1,-1,0};
         int counter = 0;
         int ibug, jbug; //start point(x,y)
         int n,m; //array's range is n*m
         void input();
         void init();
         int main()
          init(); //inital count array
          input(); //input the board size
          output(); //print result about count_array and Total_count_Number
         void init() //inital count array
          for(int i=0; i<n; i++)
          for (int j=0; j<m;j++)
         void input()
  • 문자반대출력/허아영 . . . . 47 matches
         #include <stdio.h>
         #include <string.h>
         #include <stdlib.h>
         char strchange(char ch[50], int lenstr);
         void main()
          int lenstr;
          printf("Before string = %s \n", ch);
          printf("After string = %s \n", ch);
         char strchange(char *pCh, int lenstr)
          int i;
         #include <stdio.h>
         #include <string.h>
         #include <stdlib.h>
         char strchange(char ch[50], int lenstr, int choiceNum);
         void main()
          int lenstr, choiceNum, i = 0;
         char strchange(char *pCh, int lenstr, int choiceNum)
          int i;
         #include <iostream.h>
         #include <string.h>
  • 새싹교실/2011/무전취식/레벨9 . . . . 47 matches
          * pointer
         == Ice Breaking ==
          * 아악~ Ice Breaking이 저장이 안됬어 ㅠㅠ!!!!!
         #include <stdio.h>
         #define N 10
         void selectionSort(int A[], int size);
         int main()
          int i;
          int a[N];
          printf("%d\n",a[i]);
         void selectionSort(int A[], int size)
          int i,j,temp;
          // sort in increasing order
         #include <stdio.h>
         #include <math.h>
         int main()
          int i,count = 0 ;
          float savePoint[20];
          savePoint[count] = float_val;
          val += pow((savePoint[i] - ave),2);
  • Classes . . . . 46 matches
         === [EngineeringMathmethicsClass] ===
         [http://www.yes24.com/Goods/FTGoodsView.aspx?goodsNo=1949638&CategoryNumber=002001026004 Advanced Engineering Mathematics 9/E]
         [http://www.aladdin.co.kr/shop/wproduct.aspx?ISBN=8971291346 최신 공업수학]
         [http://www.xper.org/wiki/seminar/TheDragonBook]
         [http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200012050016 Compilers]
         [http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-045JSpring-2005/CourseHome/index.htm MIT open course ware] [[ISBN(0534950973)]]
         [http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200309190006 Database Design Concept]
          * Final Demonstration is 5 Jun.
         [http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200401090003 Computer Graphics with Open GL 3rd Ed]
         [http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-837Fall2003/CourseHome/index.htm MIT open course ware]
         [http://ocw.mit.edu/OcwWeb/Mathematics/18-06Spring-2005/CourseHome/index.htm Linear Algebra]
          * Assingment
          * Intersection - adaptive depth control, bounding volumes, first-hit Speedup
          * Anti-aliasing - distributed RT
          * Coloring - reflection, shade, texture...
          * http://en.wikipedia.org/wiki/Ray_tracing
          * http://en.wikipedia.org/wiki/Anti-aliasing
          * http://www.3dsmax.net/4_article/rendering.htm
         [http://orchid.cse.cau.ac.kr/course/cn/index.php Home]
          * [http://orchid.cse.cau.ac.kr/course/cn/index.php?code=project1 #1] is due to 27 Mar.
  • DevelopmentinWindows/APIExample . . . . 46 matches
         #include <windows.h>
         #include "resource.h"
         HINSTANCE hInst;
         LPCSTR szWindowClass = "API Window Class";
         ATOM MyRegisterClass(HINSTANCE hInstance);
         BOOL InitInstance(HINSTANCE, int);
         LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
         LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM);
         int APIENTRY WinMain(HINSTANCE hInstance,
          HINSTANCE hPrevInstance,
          LPSTR lpCmdLine,
          int nCmdShow)
          MyRegisterClass(hInstance);
          if (!InitInstance (hInstance, nCmdShow))
         ATOM MyRegisterClass(HINSTANCE hInstance)
          wcex.hInstance = hInstance;
          wcex.lpszClassName = szWindowClass;
         BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
          hInst = hInstance;
          hWnd = CreateWindow(szWindowClass, "API", WS_OVERLAPPEDWINDOW,
  • Refactoring/OrganizingData . . . . 46 matches
         ["Refactoring"]
         = Chapter 8 Organizing Data p169 =
          * You are accessing a field directly, but the coupling to the field is becoming awkward. [[BR]] ''Create getting and setting methods for the field and use only those to access the field.''
          private int _low, _high;
          boolean includes (int arg){
          private int _low, _high;
          boolean includes (int arg){
          int getLow() {return _low;}
          int getHigh() {return _high;}
          * You have a data item that needs additional data or behavior. [[BR]] ''Turn the data item into an object.''
          * You have a class with many equal instances that you want to replace with a single object. [[BR]] ''Turn the object into a reference object.''
          * You have a reference object that is small, immutable, and awkward to manage. [[BR]] ''Turn it into a balue object.''
          * You have an array in which certain elements mean different things. [[BR]]''Replace the array with an object that has a field for each element.''
          String[] row = new String[3];
          row.setWins("15");
          * You have domain data available only in a GUI control, and domain methods need access. [[BR]] ''Copy the data to a domain object. Set up an observer to synchronize the two pieces of data.''
          * You have two classes that need to use each other's features, but there is only a one-way link.[[BR]]''Add back pointers, and change modifiers to update both sets.''
          * You have a literal number with a paricular meaning. [[BR]] ''Crate a constant, name it after the meaning, and replace the number with it.''
          static final double GRAVITATIONAL_CONSTANT = 9,81;
          public String _name;
  • SmithNumbers/신재동 . . . . 46 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         const int MAX_TEST = 100;
         const int MAX_PRIME_NUMBER = 100000;
         int MAIN_PRIME_NUMBER[MAX_PRIME_NUMBER] = {0,};
         int testCase;
         int number;
         int smithNumbers[MAX_TEST] = {0,};
         void input();
         void process(int i);
         int sumPositionOfNumber(int testNumber);
         int sumFactorizationOfNumber(int testNumber);
         bool isSmithNumber(int n);
         int factorization(int testNumber);
          int primeCount = 0;
          MAIN_PRIME_NUMBER[primeCount++] = 2;
          for (int i = 3; primeCount < MAX_PRIME_NUMBER; i += 2)
          for (int j = 0; j < primeCount; j++)
          if (i % MAIN_PRIME_NUMBER[j] == 0)
  • TestDrivenDatabaseDevelopment . . . . 46 matches
         TDD 로 Database Programming 을 진행하는 방법 & 경험들.
          private String writer;
          private String title;
          private String body;
          public void setUp() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {
          initConnection();
          repository.initialize();
          uninitConnection();
          String writerEdited = "writerEdited";
          String titleEdited = "titleEdited";
          String bodyEdited = "bodyEdited";
          public void testArticleTableInitialize() throws ClassNotFoundException, IllegalAccessException, InstantiationException, SQLException {
          repository.initialize();
          String articleTableName = "articlelist";
          String sqlStr="select id, writer, title, body from " + articleTableName;
          private void initConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
          String hostname = "localhost";
          String dbname = "reset";
          String userId = "reset";
          String userPass = "reset";
  • Vending Machine/dooly . . . . 46 matches
         package dooly.tdd.vending;
         public class VendingMachineTest extends TestSuite {
          TestSuite suite = new TestSuite("Test for dooly.tdd.vending");
          //$JUnit-BEGIN$
         package dooly.tdd.vending;
          private static final int GREEN_TEA_PRICE = 500;
          private static final int COFFEE_PRICE = 400;
          private static final int TEA_PRICE = 300;
          private VendingMachine vm;
          vm = new VendingMachine();
         package dooly.tdd.vending;
          private VendingMachine vm;
          vm = new VendingMachine();
          public void testEmptyMatchine() {
         package dooly.tdd.vending;
         public class VendingMachine {
          private int money;
          public void add(String item, int price) {
          itemMap.put(item, new Integer(price));
          public int getPrice(String item) {
  • 만년달력/곽세환,조재화 . . . . 46 matches
         #include<iostream>
         using namespace std;
         bool isYunYear(int x); // 윤년인지 여부를 판별
         int monthDays(int x,int y); // 월의 일수를 계산하는 함수
         int main()
          int year, month; // year,month는 입력받은 년,월
          cin >> year >> month; // year 은 알고 싶은 년도, month 는 알고 싶은 달.
          int yunYear4Year = year / 4;
          int yunYear100Year = year / 100;
          int yunYear400Year = year / 400;
          int yunYearTotal = yunYear4Year - yunYear100Year + yunYear400Year;
          int weekDay = (year + yunYearTotal) % 7; // (year+z)%7은 년의 1월의 요일
          for(int i = 0 ; i < month-1 ; i++)
         bool isYunYear(int x)//윤년을 계산하는 함수
         int monthDays(int x, int y)//월의 일수를 계산하는 함수
         #include<iostream>
         using namespace std;
         bool isYunYear(int x); // 윤년인지 여부를 판별
         int monthDays(int x,int y); // 월의 일수를 계산하는 함수
         int getMonthWeekDay(int x, int y);
  • 새싹교실/2012/앞부분만본반 . . . . 46 matches
         Linear Algebra and C programming
         == 1회차 - 3/17(Linear Algebra) ==
         Linear Algebra에 대한 전체적인 구성
         1장 Linear Equations in Linear Algebra 에서
         Linear Equations 와 Matrices 의 비교,
         Linear System이 무엇인지 설명 -> Linear Equation의 집합
         그에 따른 Linear System이 가지고 있는 해 종류
         3. infinitely many solution
         1 -> inconsistent
         == 1회차 - 3/18(Linear Algebra) ==
         Linear System 과 Matrix equation사이의 상관관계를 설명함.
         *elimination(소거법) 에 대한 설명
         E.R.O는 reversible 하므로 그에 대한 inverse E.R.O를 설명함.
         ||E.R.O||inverse E.R.O||
         == 1회차 - 3/18(C programming) ==
         5. printf 함수의 기본적인 이해
         #include <stdio.h>
         int main(void)
          printf("Hello world! \n");
         #include<stdio.h>
  • 정모/2011.4.4/CodeRace . . . . 46 matches
          * PairProgramming
          static private String name = "";
          public String city;
          public person(String name){this.name = name;}
          System.out.println(name + "은/는 지금 "+city+"에있다");
          private static String city = "A";
          public static void main(String[] args) {
         // System.out.println(city);
         // System.out.println(city);
         // System.out.println(city);
         #include<iostream>
         using namespace std;
         void main(){
          int i1 = -1, i2 = -1;
          cin >> i1;
          cin >> i2;
         #include <stdio.h>
          int id;
         int main(int argc, const char **argv) {
          public int maxNum;
  • 큰수찾아저장하기/김태훈zyint . . . . 46 matches
         #include <stdio.h>
         #define ROW 4
         #define COL 4
         void prt_array(int value[ROW][COL]);
         int main(int argc, char* argv[])
          //int value[4][4]={ {1,2,3}, {3,4,5}, {4,5,6}};
          int max;
          int i,j;
          int value[ROW][COL];
         void prt_array(int value[ROW][COL])
          int i=ROW,j=COL;
          printf("%d ",value[i][j]);
          printf("\n");
         #include <stdio.h>
         #define ROW 4
         #define COL 4
         #define DEBUG
         void prt_array(int value[ROW][COL]); //행렬 출력
         void swap(int* x,int* y); //두 파라미터를 바꾸기
         void transpose(int (*value)[COL]); //행렬의 diagonal을 기준으로 transpose
  • AdventuresInMoving:PartIV/김상섭 . . . . 45 matches
         // 10201 - Adventures in Moving: Part IV
         #include <iostream>
         using namespace std;
         #define MAX_OIL 200
         #define MAX_SIZE 103
         #define MAX_NUM 1000000000
          int length;
          int price;
         static int totalLength; /* 워털루에서 대도시까지의 거리 */
         static int numStation; /* 주유소 수 */
         inline
         int getDistance(int i)
         void input()
          cin >> totalLength;
          cin.get();
          while (cin.peek() != EOF && cin.peek() != '\n')
          cin >> station[numStation].length >> station[numStation].price;
          cin.get();
          cin.get();
          int maxmin, maxminprice , now = 1, tank = 100, go = 100, search = 2, cost = 0;
  • EightQueenProblem/이선우 . . . . 45 matches
          public static final char BLANK_BOARD = '.';
          public static final char QUEEN_MARK = 'Q';
          private int numberOfBoard;
          private int sizeOfBoard;
          private int [] board;
          public NQueen( int sizeOfBoard )
          board = new int[sizeOfBoard];
          protected void initBoard()
          initBoard( 0 );
          protected void initBoard( int from )
          for(int i=from; i<sizeOfBoard; i++ ) board[i] = -1;
          public void findPosition()
          initBoard();
          setLinePosition( 0 );
          private void setLinePosition( int line )
          if( line == sizeOfBoard ) {
          //printBoard();
          initBoard( line-1 );
          for( int i=0; i<sizeOfBoard; i++ ) {
          board[line] = i;
  • Fmt/문보창 . . . . 45 matches
         //#include <fstream>
         #include <iostream>
         #include <string>
         using namespace std;
         const int STATE_A = 1;
         const int STATE_B = 2;
         const int STATE_C = 3;
         //fstream fin("input.txt");
         void read_file(string & str);
         void remove_enter(string & str);
         void restruct_string(string & str);
         void remove_string_end_space(string & str);
         int main()
          string str;
          restruct_string(str);
          remove_string_end_space(str);
         void read_file(string & str)
          if (cin.peek() == EOF)
          ch = cin.get();
         void remove_enter(string & str)
  • CrackingProgram . . . . 44 matches
         발표자료 : Upload:CrackingProgram.ppt
         #include <iostream>
         using namespace std;
         int add(int a, int b);
         int main()
          int a, b, c;
         int add(int a, int b)
          int c;
         1: #include <iostream>
         2: using namespace std;
         4: int add(int a, int b);
         6: int main()
         8: int a, b, c;
         16: int add(int a, int b)
         18: int c;
         #include <iostream>
         using namespace std;
         void main()
          cout << "input password : ";
          cin >> pass;
  • Hartals/조현태 . . . . 44 matches
         #include <stdio.h>
         #include <iostream>
         const int NUMBER_NOMAL_DAY=2;
         const int NOMAL_DAYS[NUMBER_NOMAL_DAY]={6,7};
         int day_simulate(int, int, int*);
         void main()
          int stage;
          int* mans;
          int* days;
          int** mans_days;
          printf("횟수를 입력하십시오.\n>>");
          days=(int*)malloc(sizeof(int)*stage);
          mans=(int*)malloc(sizeof(int)*stage);
          mans_days=(int**)malloc(sizeof(int*)*stage);
          for (int i=0; i<stage; ++i)
          printf("시뮬레이션 할 날의 수를 입력하십시오.\n>>");
          printf("연합의 수를 입력하십시오.\n>>");
          mans_days[i]=(int*)malloc(sizeof(int)*mans[i]);
          printf("각 연합들의 파업주기를 입력하십시오.\n");
          for (int j=0; j<mans[i]; ++j)
  • JavaStudy2002/입출력관련문제 . . . . 44 matches
         * 자바에는 C의 cin처럼 간단한 명령어가 없단 말인가!? --[영동]
          * 여러분이 어려워하시는것 같아, 입력 부분을 만들었습니다. 해당 static method의 기능은 한줄을 읽고, 공백이나, 탭을 기준으로 배열을 반환합니다. 사용 방법은 해당 함수의 main 을 참고하시고, 다른 소스에서 import해서 그냥 사용하세요. --["neocoin"]
         public class StandardInput {
          public static String[] getSplitedStringArray(String input, String delim) {
          StringTokenizer tokenizer = new StringTokenizer(input,delim);
          String[] output = (String[])arrayList.toArray(new String[0]);
          static String[] getInputLineData(){
          BufferedReader bufferReader = new BufferedReader(new InputStreamReader(System.in));
          String input = "";
          input = bufferReader.readLine();
          e.printStackTrace();
          return getSplitedStringArray(input, " \n\t");
          public static void main(String[] args){
          System.out.println("글자 한줄 입력 받기 예제");
          String[] input = StandardInput.getInputLineData();
          for ( int i=0;i<input.length;i++)System.out.println(input[i]);
          System.out.println("\n글자나누기 예제\n");
          String inputData = "123 4 62 45";
          input = StandardInput.getSplitedStringArray(inputData, " ");
          for ( int i=0;i<input.length;i++)System.out.println(input[i]);
  • MagicSquare/재동 . . . . 44 matches
          def testInitializeBoard(self):
          def __init__(self):
          self.initializeBoard()
          for i in range(self.boardLength+1):
          for j in range(self.boardLength+1):
          def initializeBoard(self):
          for i in range(self.boardLength+1):
          for j in range(self.boardLength+1):
          def printBoard(self):
          for i in range(1,self.boardLength+1):
          for j in range(self.boardLength):
          print self.board[i][j],"\t",
          print
         if __name__ == "__main__":
          #unittest.main()
          input = int(raw_input('Input(odd number): '))
          if input % 2 == 1:
          magicSquare.setBoard(input)
          magicSquare.printBoard()
          print 'Input must be odd number'
  • MobileJavaStudy/NineNine . . . . 44 matches
         public class NineNine extends MIDlet implements CommandListener{
          private String[] dan;
          private String str;
          public NineNine() {
          dan = new String[8];
          for(int i=2;i<10;i++)
          dan[i-2] = String.valueOf(i) + " dan";
          list = new List("NineNine",List.IMPLICIT,dan,null);
          public void calculNineNine() {
          int dan = list.getSelectedIndex() + 2;
          form = new Form(String.valueOf(dan)+" dan");
          for(int i=1;i<10;i++)
          str += String.valueOf(dan)+" * "+i+" = "+String.valueOf(dan*i)+"\n";
          calculNineNine();
         public class NineNine extends MIDlet implements CommandListener {
          List nineDanList;
          public NineNine() {
          nineDanList = new List("NineNine", List.IMPLICIT);
          for(int i = 2 ; i <= 9 ; i++) {
          nineDanList.append(String.valueOf(i) + " dan", null);
  • TugOfWar/이승한 . . . . 44 matches
         #include <iostream>
         using namespace std;
         const int MAX= 100;
         int maxToZero(int input[]); //가장큰수를 0로 바꾸어주는 함
         int returnAver(int input[]);
         void main(){
          int weight[MAX] = {0};
          int outA[MAX] = {0};
          int outB[MAX] = {0};
          int teamA, teamB;
          int aver = 0;
          int maxInInput = 0;
          int N = 0;
          int inputN = 0;
          int input = 0;
          int A, B;
          cin>>N;
          for(int n = 0; n< N; n++)
          cin.get();
          cin>> inputN;
  • 새싹교실/2011/學高/1회차 . . . . 44 matches
          * printf()를 사용하기 위해 include 시켜야하는 library(~.h로 끝나는 파일)은 무엇인가?
          * Memory address, binary bits
          * Kinds of programming language: C, C++, Java, Assembly, Python etc.
          * High-level Language VS Low-level Language: Human-kindly VS Machine-Kindly
          * 4 levels of programming: coding -> compile -> linking -> debugging(running). and type of error of an each level.
          * printf("Hello World!\n");: #include<stdio.h>?
         === 자기 반성 및 수정할 점(feeling/finds) ===
          * 잘 쓰지도 못하는 gcc가지고 가르치려면 공부를 해오던가 아니면 아예 windows로 부팅해서 visual studio를 써서 확실하게 가르치겠다.
         === 자기 반성 및 고칠 점(feeling/finds) ===
          * Main Memory
         #include <stdio.h>
         int main()
         printf("hello world!"\n);
         === 자기 반성 및 고칠 점(findings/feelings) ===
          * printf()를 사용하기 위해 include 시켜야하는 library(~.h로 끝나는 파일)은 무엇인가?
          메모리 > CPU, Cache, Main memory (ex RAM..), Secondary memory..
          * #include <stdio.h> : stdio라는 헤더파일의 함수를 사용하기 위해 include 하겠다
          * printf("출력할 내용"); : 기본적으로 출력하는 함수
         === 자기 반성 및 고칠 점(feeling/finds) ===
          * printf()를 사용하기 위해 include 시켜야하는 library(~.h로 끝나는 파일)은 무엇인가?
  • 주민등록번호확인하기/조현태 . . . . 44 matches
         #include <iostream>
         #include <conio.h>
         using namespace std;
         const int BACK_SPACE=8;
         const int CHAR_TO_NUMBER=48;
         void main()
          int cursur=0;
          int input_number[13];
          int sum=0;
          for (register int i=0; i<12; ++i)
          sum+=input_number[i];
          else input_number[cursur]=number*(cursur%8+2);
         #include <iostream>
         #include <conio.h>
         using namespace std;
         const int BACK_SPACE=8;
         const int CHAR_TO_NUMBER=48;
         void main()
          int cursur=0;
          int put_num[13];
  • C++스터디_2005여름/학점계산프로그램/문보창 . . . . 43 matches
         #define CALCULATEGRADE_H_
         #include "Student.h"
          static const int NUM_STUDENT; // 학생 수(상수 멤버)
         #include <iostream>
         using namespace std;
         #include "CalculateGrade.h"
         const int CalculateGrade::NUM_STUDENT = 121;
          for (int i = 1; i < NUM_STUDENT; i++)
          student[i].input_grade();
          int p;
          for (int i = 1; i < NUM_STUDENT; i++)
          for (int j = i + 1; j < NUM_STUDENT; j++)
          int num = NUM_STUDENT / 10;
          for (int i = 1; i <= num; i++)
          for (int i = 1; i < NUM_STUDENT; i++)
         #define STUDENT_H_
          static const int NUM_GRADE; // 과목 수 (상수 멤버)
          int number; // 학번
          void find_average(); // 평점을 구하는 함수
          void input_grade(); // 점수을 입력받는 함수
  • Code/RPGMaker . . . . 43 matches
         = Orthogonal projection coordinate system 만들기 =
          public void onSurfaceChanged(GL10 gl, int width, int height) {
          // making background plane
          float[] coordinates = { // position of vertices
          int[] indices = { // index of each coordinate
          Object3D plane = new Object3D(coordinates, uvs, indices, RMObject2D.getTextureIDByColor(Color.white));
          // FOV settings
          buffer = new FrameBuffer(m_width, m_height, FrameBuffer.SAMPLINGMODE_NORMAL);
          init(x1, y1, x2, y2, color);
          init(vStart.x, vStart.y, vEnd.x, vEnd.y, color);
          private void init(float x1, float y1, float x2, float y2, Color color)
          int[] indices = {
          m_polygon = new Object3D(coords, uvs, indices, getTextureIDByColor(color));
         = 2D line class =
         public class RMLine extends RMObject2D {
          private static final Vector3f vectorZ = new Vector3f(0, 0, -1);
          public RMLine(Vector2f vStart, Vector2f vEnd, float width, Color color)
          // line vector
          Vector3f lineVector = new Vector3f();
          lineVector.sub(v3End, v3Start);
  • Slurpys/강인수 . . . . 43 matches
         function HasDorEAtFirst (const S: String): Boolean;
         function HasGAtLast (const S: String; APos: Integer): Boolean;
         function FindF (const S: String): Integer;
         function IsSlump (const S: String): Boolean;
         function IsSlimp (const S: String): Boolean;
         function IsSlurpy (const S: String): Boolean;
         function HasDorEAtFirst (const S: String): Boolean;
         begin
         function HasGAtLast (const S: String; APos: Integer): Boolean;
         begin
         function FindF (const S: String): Integer;
          i: Integer;
          FirstFind: Boolean;
         begin
          FirstFind := False;
          begin
          begin
          begin
          FirstFind := True;
          begin
  • TheGrandDinner/김상섭 . . . . 43 matches
         #include <iostream>
         using namespace std;
         #include <vector>
         #include <algorithm>
          int Num;
          int maxNum;
          int Num;
          int maxNum;
          vector<int> tableNum;
         int tableNum, teamNum, i, j, k, l;
          int totalcount = 0;
          sort(test_table.begin(),test_table.end(), compare_table);
          sort(test_team.begin(), test_team.end(), compare_team_max);
          sort(test_table.begin(),test_table.end(), compare_table);
          sort(test_team.begin(), test_team.end(), compare_team_num);
          sort(test_team[i].tableNum.begin(),test_team[i].tableNum.end());
         int main()
          cin >> teamNum >> tableNum;
          cin >> temp1.maxNum;
          cin >> temp2.maxNum;
  • [Lovely]boy^_^/3DLibrary . . . . 43 matches
         #ifndef _3D_INSU_LIB_
         #define _3D_INSU_LIB_
         #include <cmath>
         #include <vector>
         #include <iostream>
         using namespace std;
          int _nRow;
          int _nCol;
          void Init(int nRow, int nCol);
          Matrix(int nRow, int nCol);
          void Init();
          void SetMem(int pivot, float n) { _vec[pivot] = n; }
         #include "3d.h"
         void Matrix::Init(int nRow, int nCol)
          for(int i = 0 ; i < _nRow ; ++i)
          Init(4,4);
          Init(4,4);
         Matrix::Matrix(int nRow, int nCol)
          Init(nRow,nCol);
          Init(m._nRow, m._nCol);
  • 새싹교실/2011/무전취식/레벨2 . . . . 43 matches
          == ICE Breaking ==
         Ice Breaking
          * printf()와 scanf()함수의 쓰임에 대해 말해주었습니다. %c %d %l %f %%등등.
          * 간단한 Array에대한 소개. 다음시간에 더 자세히 말해주겠습니다. int {{{a[10];}}}
          * unsinged int와 int의 차이점? 표현 범위가 어디서부터 어디까지?
         #include<stdio.h>
         int main(){
          int select;
          printf("1이나 2중에 선택해라!");
          scanf("%d",&select); <- input 1
          printf("강원석 바보");
          printf("진영이는 긔엽긔");
         #include<stdio.h>
         int main(){
          int select;
          printf("1이나 2중에 선택해라!");
          scanf("%d",&select); <- input 3
          default : printf("강원석 바보 ");
          case 1: printf("소라는 이쁘지"); break;
          case 2: printf("진영이는 긔엽긔"); break;
  • 프로그래밍/장보기 . . . . 43 matches
         public class Shopping {
          public static int processOneCase(int num) {
          String line = null;
          String [] contents;
          for(int i = 0; i < num; i++) {
          line = br.readLine();
          e.printStackTrace();
          contents = line.split(" ");
          int price = Integer.parseInt(contents[1]);
          int weight = Integer.parseInt(contents[0]);
          double minRate = rates[0][0];
          int minRateIndex = 0;
          for(int i = 1; i < num; i++) {
          if (rates[i][0] < minRate) {
          minRate = rates[i][0];
          minRateIndex = i;
          else if (rates[i][0] == minRate) {
          if (rates[i][1] < rates[minRateIndex][1]) {
          minRate = rates[i][0];
          minRateIndex = i;
  • C++스터디_2005여름/학점계산프로그램/정수민 . . . . 42 matches
         #define GRADE_H_
         #include "student.h"
         #include <iostream>
         using namespace std;
         #include "grade.h"
         #define MAX_STUDENT 121
          for (int i=1;i<MAX_STUDENT;i++) {
          students[i].input();
          int num=MAX_STUDENT/10;
          int good_student_number=0;
          int i,j;
          for (int i=1;i<MAX_STUDENT;i++)
          for (int i=1;i<MAX_STUDENT;i++)
         #define STUDENT_H_
          int school_number;
          void input();
         #include <iostream>
         #include <fstream>
         using namespace std;
         #include "student.h"
  • CarmichaelNumbers/문보창 . . . . 42 matches
         중간에 발생하는 버그를 잡는데 대부분의 시간을 허비했다. 65000 이란 수는 작지만 65000의 제곱은 int형의 범위를 벗어난다. ㅡㅡ; 오버플로우를 교모히 이용한 함정에 고생했다.
         #include <iostream>
         #include <cmath>
         using namespace std;
         const int NORMAL = 1;
         const int CARMICHAEL = 2;
         bool isPrime(int n);
         void show(int n, int type);
         bool isCarmichael(int n);
         bool passFermatTest(int a, int n);
         int findModulo(unsigned int a, unsigned int n);
         int main()
          int n; // n = input integer ( 2 < n < 65,000)
          while (cin >> n && n != 0)
          continue;
         bool isPrime(int n)
          for (int i = 3; i <= sqrt(n) + 1; i += 2)
         void show(int n, int type)
         bool isCarmichael(int n)
          for (int i = 2; i <= n - 1; i++)
  • ContestScoreBoard/차영권 . . . . 42 matches
         #include <iostream>
         using namespace std;
         #define nTeam 101 // 팀 수
         #define nProblem 9 // 문제 번호
          int solvedProblem; // 푼 문제의 수
          int timePenalty; // 시간 패널티
          bool incorrectSubmit[nProblem];
         void init(Team *team);
         void InputInformation(Team *team, bool *joined);
         void RankTeam(Team *team, bool *joined);
         int main()
          bool joined[nTeam] = {false, };
          int nCase;
          int count = 0;
          cin >> nCase;
          cin.get();
          cin.get();
          init(team);
          InputInformation(team, joined);
          RankTeam(team, joined);
  • Gof/Facade . . . . 42 matches
         == Intent ==
         예를 들기 위해, 어플리케이션에게 컴파일러 서브시스템을 제공해주는 프로그래밍 환경이 있다고 하자. 이 서브시스템은 컴파일러를 구현하는 Scanner, Parser, ProgramNode, BytecodeStream, 그리고 ProgramNodeBuilder 클래스를 포함하고 있다. 몇몇 특수화된 어플리케이션은 이러한 클래스들을 직접적으로 접근할 필요가 있을 것이다. 하지만, 대부분의 컴파일러 시스템을 이용하는 클라이언트들은 일반적으로 구문분석(Parsing)이나 코드 변환 (Code generation) 의 세부적인 부분에 대해 신경쓸 필요가 없다.(그들은 단지 약간의 코드를 컴파일하기 원할뿐이지 다른 강력한 기능을 알 필요가 없다.) 그러한 클라이언트들에게는 컴파일러 서브시스템의 강력하지만 저급레벨인 인터페이스는 단지 그들의 작업을 복잡하게 만들 뿐이다.
          * 서브시스템에 계층을 두고 싶을 때. 각 서브시스템 레벨의 entry point를 정의하기 위해 facade를 사용하라. 만일 각 서브시스템들이 서로 의존적이라면 서브시스템들간의 대화를 각 시스템간의 facade로 단일화 시킴으로서 그 의존성을 단순화시킬 수 있다.
         서브시스템은 인터페이스를 가진다는 점과 무엇인가를 (클래스는 state와 operation을 캡슐화하는 반면, 서브시스템은 classes를 캡슐화한다.) 캡슐화한다는 점에서 class 와 비슷하다. class 에서 public 과 private interface를 생각하듯이 우리는 서브시스템에서 public 과 private interface 에 대해 생각할 수 있다.
         서브시스템으로의 public interface는 모든 클라이언트들이 접속가능한 클래스들로 구성되며. 이때 서브시스템으로의 private interface는 단지 서브시스템의 확장자들을 위한 인터페이스이다. 따라서 facade class는 public interface의 일부이다. 하지만, 유일한 일부인 것은 아니다. 다른 서브시스템 클래스들 역시 대게 public interface이다. 예를 들자면, 컴파일러 서브시스템의 Parser class나 Scanner class들은 public interface의 일부이다.
          istream& _inputStream;
          virtual void GetSourcePosition (int& line, int& index);
         Traverse operaton은 CodeGenerator 객체를 인자로 취한다. ProgramNode subclass들은 BytecodeStream에 있는 Bytecode객체들을 machine code로 변환하기 위해 CodeGenerator 객체를 사용한다. CodeGenerator 클래는 visitor이다. (VisitorPattern을 참조하라)
         CodeGenerator 는 subclass를 가진다. 예를들어 StackMachineCodeGenerator sk RISCCodeGenerator 등. 각각의 다른 하드웨어 아키텍처에 대한 machine code로 변환하는 subclass를 가질 수 있다.
         우리가 토론해온 클래스들은 곧 Compiler 서브시스템을 이룰 것이다. 자 이제 우리는 이 모든 조각들을 함께 묶은 facade 인 Compiler 클래스를 소개할 것이다. Compiler는 소스 컴파일과 특정 machine에 대한 코드변환기능에 대한 단순한 인터페이스를 제공한다.
          istream& input, BytecodeStream& output
          Scanner scanner (input);
         이 구현에서는 사용하려는 code-generator의 형태에 대해서 hard-codes (직접 특정형태 부분을 추상화시키지 않고 바로 입력)를 했다. 그렇게 함으로서 프로그래머는 목적이 되는 아키텍처로 구체화시키도록 요구받지 않는다. 만일 목적이 되는 아키텍처가 단 하나라면 그것은 아마 이성적인 판단일 것이다. 만일 그러한 경우가 아니라면 우리는 Compiler 의 constructor 에 CodeGenerator 를 인자로 추가하기 원할 것이다. 그러면 프로그래머는 Compiler를 instance화 할때 사용할 generator를 구체화할 수 있다. Compiler facade는 또한 Scanner나 ProgramNodeBuilder 등의 다른 협동하는 서브시스템클래스를 인자화할 수 있다. 그것은 유연성을 증가시키지만, 또한 일반적인 사용형태에 대해 인터페이스의 단순함을 제공하는 Facade pattern의 의의를 떨어뜨린다.
         ET++ application framework [WGM88] 에서, application은 run-time 상에서 application의 객체들을 살필 수 수 있는 built-in browsing tools를 가지고 있다.이러한 browsing tools는 "ProgrammingEnvironment'라 불리는 facade class를 가진 구분된 서브시스템에 구현되어있다. 이 facade는 browser에 접근 하기 위한 InspectObject나 InspectClass같은 operation을 정의한다.
         ET++ application은 또한 built-in browsing support를 없앨수도 있다. 이러한 경우 ProgrammingEnvironment는 이 요청에 대해 null-operation으로서 구현한다. 그러한 null-operation는 아무 일도 하지 않는다. 단지 ETProgrammingEnvironment subclass는 각각 대응하는 browser에 표시해주는 operation을 가지고 이러한 요청을 구현한다. application은 browsing environment가 존재하던지 그렇지 않던지에 대한 정보를 가지고 있지 않다. application 과 browsing 서브시스템 사이에는 추상적인 결합관계가 있다.
         Choices operating system [CIRM93] 은 많은 framework를 하나로 합치기 위해 facade를 사용한다. Choices에서의 key가 되는 추상객체들은 process와 storge, 그리고 adress spaces 이다. 이러한 각 추상객체들에는 각각에 대응되는 서브시스템이 있으며, framework로서 구현된다. 이 framework는 다양한 하드웨어 플랫폼에 대해 Choices에 대한 porting을 지원한다. 이 두 서브시스템은 '대표자'를 가진다. (즉, facade) 이 대표자들은 FileSystemInterface (storage) 와 Domain (address spaces)이다.
         예를 들어, 가상 메모리 framework는 Domain을 facade로서 가진다. Domain은 address space를 나타낸다. Domain은 virtual addresses 와 메모리 객체, 화일, 저장소의 offset에 매핑하는 기능을 제공한다. Domain의 main operation은 특정 주소에 대해 메모리 객체를 추가하거나, 삭제하너가 page fault를 다루는 기능을 제공한다.
          RepairFault 명령은 page fault 인터럽트가 일어날때 호출된다. Domain은 fault 를 야기시킨 주소의 메모리객체를 찾은뒤 RepairFault에 메모리객체과 관계된 캐쉬를 위임한다. Domain들은 컴포넌트를 교체함으로서 커스터마이즈될 수 있다.
         보통 facade는 단일 오브젝트로 요구된다. 그래서Facade 객체는 종종 SingletonPattern으로 구현된다.
  • HowManyZerosAndDigits/임인택 . . . . 42 matches
         import java.io.InputStreamReader;
         import java.util.LinkedList;
          private int _n;
          private int _b;
          private int _fact;
          private LinkedList numbers;
          public HowManyZerosAndDigits(int n, int b) {
          numbers = new LinkedList();
          System.out.println(howManyZeros() + " " + numDigit());
          public int factorial(int n) {
          int result = 1;
          for(int i=1; i<n+1; ++i) {
          int quotient = _fact / _b;
          int remainder = _fact % _b;
          if( remainder != 0 )
          numbers.add(new Long(remainder));
          remainder = quotient % _b;
          if( !(quotient==0 && remainder==0)) // 제일 상위자리가 0인 경우는 넣지 않는다.
          numbers.add(new Long(remainder));
          public int howManyZeros(long num) {
  • JollyJumpers/iruril . . . . 42 matches
         import java.io.InputStreamReader;
          int [] jumpersArray;
          int length;
          int differenceValue;
          // input()은 getIntArray()에서 사용
          public String input()
          BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
          String input = "";
          input = in.readLine();
          e.printStackTrace();
          return input;
          public int [] getIntArray()
          String buf = input();
          String [] stringArray = buf.split(" ");
          length = stringArray.length;
          int [] intArray = new int [length];
          for(int i = 0; i < length; i++ )
          intArray[i] = Integer.parseInt(stringArray[i]);
          return intArray;
          public void inputJumpers()
  • LinkedList/세연 . . . . 42 matches
          DeleteMe ) 내용은 LinkedList 가 아니라 Stack의 구현 사항인데, 문제 사항에는 LinkedList라고 해놨네요.
         #include <iostream.h>
          int data;
          node * node_pointer;
         node * INSERT(node * head_pointer, int num);
         node * DELETE(node * head_pointer);
         int main()
          node * head_pointer = new node;
          head_pointer = NULL;
          int num, choice;
          cin >> choice;
          cin >> num;
          head_pointer = INSERT(head_pointer, num);
          head_pointer = DELETE(head_pointer);
          cin >> choice;
         node * INSERT(node * head_pointer, int num)
          if(head_pointer == NULL)
          head_pointer = temp;
          head_pointer->data = num;
          head_pointer->node_pointer = NULL;
  • OurMajorLangIsCAndCPlusPlus/print/이상규 . . . . 42 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         #include <stdarg.h>
         #include <ctype.h>
          int dec, sign;
         void print(const char *format, ...)
          int align = 0;
          if(isdigit((int)*c))
          int d = va_arg(args, int);
          int space = align - strlen(str);
          for(int i = 0 ; i < space ; i++)
          fputc((int)' ', stdout);
          int *darr = va_arg(args, int *);
          int len = va_arg(args, int);
          for(int i = 0 ; i < len ; i++)
          int len = va_arg(args, int);
          for(int i = 0 ; i < len ; i++)
          int len = va_arg(args, int);
          for(int i = 0 ; i < len ; i++)
  • ProjectPrometheus/AT_RecommendationPrototype . . . . 42 matches
          def __init__(self):
          self.startPoint = 0
          for book in aBookList:
          point = 0
          point += self.bookViewList[aBook] * WEIGHT_VIEW
          point += self.lightReviewBookList[aBook] * WEIGHT_LIGHTREVIEW
          point += self.heavyReviewBookList[aBook] * WEIGHT_HEAVYREVIEW
          return point
          def _addBookRelation(self, aNewBook, anIncrementPoint):
          for book in self.bookList:
          def _editBookRelation(self, anEditBook, anIncrementPoint):
          for book in self.bookList:
          anEditBook.addBookRelation(book, anIncrementPoint)
          book.addBookRelation(anEditBook, anIncrementPoint)
          def _bookAction(self, aBook, anIncrementPoint):
          if not aBook in self.bookList:
          self._addBookRelation(aBook, anIncrementPoint)
          self._editBookRelation(aBook, anIncrementPoint)
          def lightReviewBook(self, aBook, aPoint):
          self.lightReviewBookList[aBook] = aPoint
  • ProjectPrometheus/CookBook . . . . 42 matches
         Seminar:UsingIdle
         String find = "(http|https)+://([^ \t\n<>()"]+)" // 패턴 설정
         Pattern pattern = Pattern.compile( find ); // 패턴 컴파일
         regular expression 패턴을 정의하기 위해서 ["Komodo"] 를 이용할 수도 있다. 또는 Seminar:TddRegularExpression 을 시도해보는 것도 좋다. ["1002"] 는 Python Interpreter 를 이용, 표현식을 찾아냈다.
          PrintWriter out = httpServletResponse.getWriter();
          out.println("<HTML> " +
         Wiki:SandglassProgramming
          * 멀티 타이머 http://www.programming.de/cpp/timer.zip
          * 마이크로 에그 타이머 http://users.informatik.fh-hamburg.de/~rohde_i/eggtimer/mr-egg-z.zip
         Java 에서는 HttpURLConnection 을 이용한다. 관련 코드는 http://www.javafaq.nu/tips/servlets/index.shtml 를 참조.
         Connection.setRequestProperty("Content-Type", "text/plain");
         Python 에서의 string.urlencode 과 마찬가지로 GET,POST 로 넘기기 전 파라메터에 대해 URL Encoding 이 필요하다. URLEncoder 라는 클래스를 이용하면 된다.
         URLEncoder.encode (paramString, "UTF-8");
          request.setCharacterEncoding("KSC5601");
          String serviceName = (String) request.getParameter("service");
         getParameter 가 호출되기 전에 request의 인코딩이 세팅되어야 한다. 현재 Prometheus의 Controller의 경우 service 의 명을 보고 각각의 서비스에게 실행 권한을 넘기는데, 가장 처음에 request의 characterEncoding 을 세팅해야 한다. 차후 JSP/Servlet 컨테이너들의 업그레이드 되어야 할 내용으로 생각됨 자세한 내용은 http://javaservice.net/~java/bbs/read.cgi?m=appserver&b=engine&c=r_p&n=957572615 참고
         == Resin ==
         resin 에서 홈 디렉토리를 변경하거나 resin 이 실행될때 기본적으로 생기는 디렉토리들(example 등)이 있다.
         === Resin 에서 DB POOL Setting ===
         resin.conf 에 다음을 셋팅해준다. (<caucho.com> 태그 안쪽에 삽입)
  • 가위바위보/영동 . . . . 42 matches
         #include<iostream.h>
         #include<fstream.h>
         int gawibawibo(char, char);
         void main()
          int result;
          int sunho_win=0;
          int sunho_lose=0;
          int sunho_draw=0;
          char insu;
          ifstream fin("data1.txt");
          fin.getline(name[0], 10);
          fin.getline(name[1], 10);
          while(!fin.eof()){
          fin.get(sunho);
          fin.get(ch);
          fin.get(insu);
          fin.get(ch);
          result=gawibawibo(sunho, insu);
          sunho_win++;
          cout<<"sunho의 승수: "<<sunho_win<<endl;
  • 개인키,공개키/류주영,문보창 . . . . 42 matches
         #include <iostream>
         #include <fstream>
         #include<string>
         using namespace std;
         int main()
          ifstream fin("source.txt"); // fininput.txt를 연결
          string input;
          int key = 74;
          //cin >> key;
          while(!fin.eof())
          fin.get(ch);
          if(fin.eof())
          if((int(ch) + key) < 256)
          for(int j=0;j<key;j++)
          for(int j=0;j<((int(ch) + key)%256);j++)
         #include <iostream>
         #include <fstream>
         #include<string>
         using namespace std;
         int main()
  • 데블스캠프2005/게임만들기/제작과정예제 . . . . 42 matches
          우선 랜덤하게 블럭을 생성하기 위해서 start()함수에 srand((int)time(NULL));라고 적어서, 시간을 이용해서 랜덤하게 나오게 한 다음,
          int block_id;
          for (register int i=0;i<3;++i)
          for (register int j=0; j<4; ++j)
          for (register int i=0;i<3; ++i)
          for (register int j=0; j<4; ++j)
         int move_block(int where)// -1좌 0아래 1우
          int temp_x=x+where;
          int temp_y=y-(where+1)%2;
          int temp_block[4][4]={0,};
          int ground[4]={0,};
          int side[2][4]={0,};
          int swit[2][4]={0,};
          for (register int i=0;i<4; ++i)
          for (register int j=0; j<4; ++j)
          for (register int j=0; j<4; ++j)
          for (register int j=0; j<4; ++j)
          for (register int j=0; j<4; ++j)
          int temp_x=x;
          int temp_y=y;
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/강소현,구자경 . . . . 42 matches
          private int floorMax;
          private int floorMin;
          private int current;
          private int hopeFloor;
          public Elevator(int i, int j) {
          floorMin = j;
          if(1<=floorMin && 1>=floorMax)
          current = floorMin;
          public void pressButten(int i, int k) {
          public void goTo(int currentFloor) {
          if(currentFloor<= floorMax && currentFloor >= floorMin)
          public int floor() {
          public int getHopeFloor() {
          public void setHopeFloor(int hopeFloor) {
          final Elevator el = new Elevator(20, -10);//최상층, 최하층
          private int floorMax;
          private int floorMin;
          private int peopleMax;
          private int floor;
          private int people;
  • 문자열검색/허아영 . . . . 42 matches
         His teaching method is very good.
         #include <stdio.h>
         void exist_word(char x[40], int exist_str[10]); //x[i]에 문자열의 유무
         int compare_str(char x[40], char search_str[15], int exist_str[10]); // 문자열 비교
         int word_num = 1, search_str_num = 0;
         int found = 0; int temp = 0;
         void main()
          char x[40] = "His teaching method is very good.";
          int exist_str[10]; // exist_str[i]에는 x문자열중 i번째 문자열이 몇번째 문자에 나오나
          printf("끝내려면 ""EE""입력\n"); //출력.
          printf("자료 -> %s", x);
          printf("\n찾을 문자열 -> ");
          fprintf(fp,"자료 -> %s", x); //result.out에 저장.
          fprintf(fp, "\n찾을 문자열 -> ");
          fprintf(fp, "%s", search_str);
          fprintf(fp, "\nfirst found -> %d\n\n", exist_str[word_num]+1);
          fprintf(fp, "\nNot found!\n\n");
         void exist_word(char x[40], int exist_str[10])
          int num = 2, x_n = 0;
         int compare_str(char x[40], char search_str[15], int exist_str[10])
  • 새싹교실/2011/Pixar/3월 . . . . 42 matches
          * IceBreaking : 진실 혹은 거짓으로 간단히 서로에 대해 알아보았습니다.
          * IceBreaking : 외국인과 만나본 적이 있는지 이야기했습니다.
          * Keywords : 컴파일러, 프로그래밍 언어, printf 함수, main 함수, #include, assert 함수, 변수, 자료형
         int main() {
          printf("Hello world!");
          * main 함수는 프로그램이 시작하는 부분이예요. 앞으로 함수를 배우기 전까지 모든 코드는 main 함수 안에 작성합니다.
          * printf 함수는 콘솔에 내용을 출력해주는 역할을 합니다.
          * printf 함수가 내용을 출력해준다는 것을 컴퓨터가 모르니까요!
         #include <stdio.h>
         int main() {
          printf("Hello world!");
          * 사실 printf가 어떻게 내용을 출력해주는지는 똑똑한 아저씨들이 stdio.h에 미리 써놓았어요. 우리는 #include <stdio.h>라는 코드를 써서 저 파일을 컴퓨터가 읽어볼 수 있도록 알려주기만 하면 됩니다.
          * 위에서 분명 모~든 코드는 main 함수 안에 쓴다고 했는데 #include <stdio.h>는 맨 위에 썼어요.
         #include <stdio.h>
         int main() {
          printf("%d", 3+4);
         #include <assert.h>
         int main() {
         #include <assert.h>
         int main() {
  • 이영호/개인공부일기장 . . . . 42 matches
         ☆ 구입해야할 책들 - Advanced Programming in the UNIX Environment, Applications for Windows, TCP/IP Illustrated Volume 1, TCP/IP Protocol Suite, 아무도 가르쳐주지않았던소프트웨어설계테크닉, 프로젝트데드라인, 인포메이션아키텍쳐, 초보프로그래머가꼭알아야할컴퓨터동작원리, DirectX9Shader프로그래밍, 클래스구조의이해와설계, 코드한줄없는IT이야기, The Art of Deception: Controlling the Human Element of Security, Advanced Windows (Jeffrey Ritcher), Windows95 System Programming (Matt Pietrek)
         ☆ 앞으로 공부해야할 책들(사둔것) - Effective C++, More Effective C++, Exeptional C++ Style, Modern C++ Design, TCP/IP 네트워크 관리(출판사:O'Reilly), C사용자를 위한 리눅스 프로그래밍, Add-on Linux Kernel Programming, Physics for Game Developers(출판사:O'Reilly), 알고리즘(출판사:O'Reilly), Hacking Howto(Matt 저), Windows 시스템 실행 파일의 구조와 원리, C언어로 배우는 알고리즘 입문
         ☆ 레퍼런스 - 리눅스 공동체 세미나 강의록, C언어 함수의 사용법(함수 모음), 데비안 GNU/LINUX, C사용자를 위한 리눅스 프로그래밍, Add-on Linux Kernel Programming, Secure Coding 핵심원리
         2005년 7월 4일 시작(주말마다) : Socket Programming
         2005년 7월 30일 시작(주말마다) : TCP/IP SOCKET PROGRAMMING(Bible)
         6 PE 구조 공부(마스터 수준). & Windows Kernel(리눅스 커널과의 차이점)
         7 API 공부(마스터 수준). & Windows Kernel(리눅스 커널과의 차이점)
         3일 - 대항해시대 온라인 새 버전 Reverse Engineering 준비.
         8일~~31일 - Reverse Engineering (Assembly + PE + Kernel + Packing + Unpacking + Encrypt + Decrypt), 몇몇개의 Game Cracking. 몇몇개의 하드에 저장된 쉐어웨어 시리얼 제작.
         1일 (월) - System Programming
         1일 (월) - 한차례 내 실력이 워핑 했다. 높은 수준으로 올랐다. PCB와 Linux Kernel에 관한 것을 배웠다.
         31 (일) - Network Programming(멀티쓰레드 - POSIX, MUTEX, SEMAPORE), System Programming(Kernel)
         29 (금) - C++(템플릿, Exceptional Handling)
         28 (목) - C++(연산자 오버로딩, 연산자 오버로딩으로 String 클래스 디자인 해보기.)
         23 (토) - Compilers(정말... 정말 이 책 못보겠다. 어렵다. 미치겠다. 같은 부분 3번 읽고서 반정도 이해 되니 이거 무슨 왜 배워야되는지 이유를 알아야 머리에 들어오는데 그냥 무지막지하게 이론만 쓰다니.), Socket/System Programming in C (지난주 복습, 고급입출력, Broadcast/Multicast)
         21 (목) - Compilers, C++공부 시작(C++자체가 쉬워 7일만에 끝낼거 같음. -> C언어를 안다고 가정하고 C++를 가르쳐 주는 책을 보기 시작.), 기본문법, namespace, function overloading, class 추상화, 은닉성까지 완벽하게 정리.
         ☆ 18 (월) - binaryfile to textfile && textfile to binaryfile 소스를 짬. eady.sarang.net계정의 sources에 있음. 모든 커맨드를 막아둔 곳에서 유용하게 쓰임.
         ☆ 18 (월) - /usr/bin/wall Command에 관심을 보임. bof만 제대로 먹히면 root를 먹을 수 있을 것 같음. (binutils 소스를 구해서 분석해봐야겠음.)
         17 (일) - Socket/System Programming in C (Multiplexing)
         16 (토) - Socket/System Programming in C (Signal 처리와 Process간의 Pipe 사용법(IPC)), 유리수, 카네기 행복론.
  • 진법바꾸기/허아영 . . . . 42 matches
         #include <stdio.h>
         void jinsu_change(int, int);
         void main()
          int ten_jinsu, any_jinbeob;
          printf("끝내려면 '0 0' 입력.n");
          printf("5자리이하 10진수, 바꿀 진법 입력(ex: 55 2) : ");
          scanf("%d %d", &ten_jinsu, &any_jinbeob);
          if(any_jinbeob < 0 || any_jinbeob > 24){
          printf("다시 입력해 주세요...");
          if(ten_jinsu == 0)
          jinsu_change(ten_jinsu, any_jinbeob);
         void jinsu_change(int ten_jinsu, int any_jinbeob)
          int temp[50] = {0, };
          int temp_jinsu, turn = 0, i = 0;
          temp_jinsu = ten_jinsu;
          temp[i] = temp_jinsu % any_jinbeob;
          temp_jinsu = temp_jinsu/any_jinbeob;
          }while(temp_jinsu >= any_jinbeob);
          temp[turn] = temp_jinsu;
          printf("10진수 : %d n진법 : %d n결과 : ", ten_jinsu, any_jinbeob);
  • ASXMetafile . . . . 41 matches
          * <ASX>: Indicates an ASX metafile.
          * <Copyright>: Detailed copyright information (e.g., company name and copyright year).
          * <MoreInfo href = "path of the source" / >: Adds hyperlinks to the Windows Media Player interface in order to provide additional resources on the content.
          * <Entry>: Serves a playlist of media by inserting multiple "Entry" elements in succession.
          * <Duration value = "00:00:00">: Sets the value attribute for the length of time a streaming media file is to be played.
          * <Logo href = "path of the logo source" Style = "a style" / >: Adds custom graphics to the Windows Media player by choosing either a watermark or icon style. The image formats that Windows Media Player supports are GIF, BMP, and JPEG.
          o MARK: The logo appears in the lower right corner of the video area while Windows Media Player is connecting to a server and opening a piece of content.
          * How to define the path of source:
          o Windows Media Services Server: File names will start with mms://.
          o ASX files, on the other hand, are small text files that can always sit on an HTTP server. When the browser interprets the ASX file, it access the streaming media file that is specified inside the ASX file, from the proper HTTP, mms, or file server.
          * ?sami="path of the source": Defines the path of a SAMI caption file within the <ref href> tag for media source.
          <Abstract>: This text will show up as a Tooltip and in the Properties dialog box
          <MoreInfo href="http://www.microsoft.com/windows/windowmedia" />
          <MoreInfo href="http://www.microsoft.com/windows/windowsmedia" />
          <MoreInfo href="http://www.microsoft.com/windows/windowsmedia" />
         === ASX Authoring Tools ===
          * [http://cita.rehab.uiuc.edu/mediaplayer/text-asx.html Creating ASX files with a text editor] - [DeadLink]
          * [http://cita.rehab.uiuc.edu/mediaplayer/captionIT-asx.html Creating ASX files with Caption-IT] - [DeadLink]
          * [http://msdn.microsoft.com/workshop/imedia/windowsmedia/crcontent/asx.asp Windows Media metafile] - [DeadLink]
          * [http://msdn.microsoft.com/downloads/samples/internet/imedia/netshow/simpleasx/default.asp MSDN Online Samples : Simple ASX] - [DeadLink]
  • CeeThreadProgramming . . . . 41 matches
         //http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__beginthread.2c_._beginthreadex.asp
         #include <windows.h>
         #include <stdio.h>
         #include <process.h>
          printf( "In second thread...n" );
          printf( "Thread ID %d => %dn", pArguments, Counter);
         int main()
          printf( "Creating second thread...n" );
          hThread = (HANDLE)_beginthreadex( NULL, 0, &ThreadedFunction, NULL, 0, &threadID );
          hThread2 = (HANDLE)_beginthreadex( NULL, 0, &ThreadedFunction, NULL, 0, &threadID2 );
          InitializeCriticalSection(&cs);
          // Wait until second thread terminates. If you comment out the line
          // terminated, and Counter most likely has not been incremented to
          //WaitForSingleObject( hThread, INFINITE );
          //printf( "Counter should be 1000000; it is-> %dn", Counter );
         = Linux pthread =
         #include <stdio.h>
         #include <stdlib.h>
         #include <pthread.h>
         void *print_message_function( void *ptr );
  • DPSCChapter2 . . . . 41 matches
         Before launching into our descriptions of specific design patterns, we present a case study of sorts, involving multiple patterns. In the Design Pattern preface, the Gang of Four speak about moving from a "Huh?" to an "Aha!" experience with regard to understanding design patterns. We present here a little drama portraying such a transition. It consists of three vignettes: three days in the life of two Smalltalk programmers who work for MegaCorp Insurance Company. We are listening in on conversations between Don (an object newbie, but an experienced business analyst) and Jane (an object and pattern expert). Don comes to Jane with his design problems, and they solve them together. Although the characters are fictitious, the designs are real and have all been part of actual systems written in Smalltalk. Our goal is to demonstrate how, by careful analysis, design patterns can help derive solutions to real-world problems.
         Our story begins with a tired-looking Don approaching Jane's cubicle, where Jane sits quietly typing at her keyboard.
         우리의 이야기는 지친표정을 지으며 제인의 cubicle (음.. 사무실에서의 파티클로 구분된 곳 정도인듯. a small room that is made by separating off part of a larger room)로 가는 Don 과 함께 시작한다. 제인은 자신의 cubicle에서 조용히 타이핑하며 앉아있다.
         Don : Hey, Jane, could you help me with this problem? I've been looking at this requirements document for days now, and I can't seem to get my mind around it.
         Jane : That's all right. I don't mind at all. What's the problem?
         Don : It's this claims-processing workflow system I've been asked to design. I just can't see how the objects will work together. I think I've found the basic objects in the system, but I don't understand how to make sense from their behaviors.
          1. Data Entry. This consists of various systems that receive health claims from a variety of different sources. All are logged by assigning a unique identifier. Paper claims and supporting via OCR (optical character recognition) to capture the data associated with each form field.
          2. Validation. The scanned and entered forms are validated to ensure that the fields are consistent and completely filled in. Incomplete or improperly filled-in forms are rejected by the system and are sent back to the claimant for resubmittal.
          3. Provider/Plan Match. An automated process attempts to mach the plan (the contract unser which the claim is being paid) and the health care provider (e.g., the doctor) identified on the claim with the providers with which the overall claim processing organization has a contract. If there is no exact match, the program identifies the most likely matches based on soundex technology (an algorithm for finding similar-sounding words). The system displays prospective matches to knowledge workers in order of the likeinhood of the match, who then identify the correct provider.
          4. Automatic Adjudication. The system determines whether a claim can be paid and how much to pay if and only if there are no inconsistencies between key data items associated with the claim. If there are inconsistencies, the system "pends" the claim for processing by the appropriate claims adjudicator.
          5. Adjudication of Pended Claims. The adjudicator can access the system for a claim history or a representation of the original claim. The adjudicator either approves the claim for payment, specifying the proper amount to pay, or generates correspondence denying the claim.
  • MindMapConceptMap . . . . 41 matches
         === Mind Map ===
         MindMap 의 경우, 일반적인 책들과 같이 그 체계가 잘 잡혀 있는 지식에 대해 정리하기 편리하다. (SWEBOK 과 같이 아에 해당 지식에 대한 뼈대를 근거로 지식을 분류해놓은 책같은 경우에는 더더욱) 일반적으로 한 챕터에 대해서 5-10분정도면 한번 정리를 다 할 수 있을 정도로 필기할때 속도가 빠르다. 그러면서 해당 중심 주제에 대해서 일관적으로 이어나갈 수 있도록 도와준다. (이는 주로 대부분의 책들이 구조적으로 서술되어있어서이기도 할 것이다.)
         http://www.conceptdraw.com/products/img/MindMap.gif
         공부할때 한 챕터에 대해서 1시간정도 MindMap 을 구조적으로 그려나가면서 정리 한 뒤, 기억 회상을 위해 외워서 MindMap 을 한 3번정도 그려보면 (기억 회상을 위해 그리는데에는 보통 5-10분이면 된다. 반드시 '다시 기억을 떠올리면서' 그릴것! MindMap 이나 ConceptMap 이나 그리고 난 뒤의 도표가 중요한 것이 아니다. 중요한 것은 Map을 그려나가면서 기억을 떠올려나가는 과정이 중요하다.)
         관련 자료 : '마인드맵 북' , 'Use Your Head' (토니 부잔) - MindMap 쪽에 관한 책.
         See Also wiki:NoSmok:MindMap
         ConceptMap 은 Joseph D. Novak 이 개발한 지식표현법으로 MindMap 보다 먼저 개발되었다. (60-70년대) 교육학에서의 Constructivism 의 입장을 취한다.
         MindMap 의 문제점은 중간에 새어나가는 지식들이 있다. 기본적으로 그 구조가 상하관계 Tree 구조이기 때문이다. 그래서 보통 MindMap 을 어느정도 그려본 사람들의 경우 MindMap을 확장시켜나간다. 즉, 중심 개념을 여러개 두거나 상하관계구조를 약간 무시해나가면서. 하지만 여전히 책을 읽으면서 잡아나간 구조 그 자체를 허물지는 않는다.
         ConceptMap 은 'Concept' 과 'Concept' 간의 관계를 표현하는 다이어그램으로, 트리구조가 아닌 wiki:NoSmok:리좀 구조이다. 비록 도표를 읽는 방법은 'TopDown' 식으로 읽어가지만, 각 'Concept' 간 상하관계를 강요하진 않는다. ConceptMap 으로 책을 읽은 뒤 정리하는 방법은 MindMap 과 다르다. MindMap 이 주로 각 개념들에 대한 연상에 주목을 한다면 ConceptMap 의 경우는 각 개념들에 대한 관계들에 주목한다.
         http://cmap.coginst.uwf.edu/info/cmap.gif
         개인적으로 처음에 MindMap 보다는 그리는데 시간이 많이 걸렸다. 하지만, MindMap 에 비해 각 개념들을 중복적으로 쓰는 경우가 적었다. (물론 MindMap 의 경우도 중복되는 개념에 대해서는 Tree 를 깨고 직접 링크를 걸지만) MindMap 의 Refactoring 된 결과라고 보면 좀 우스우려나; 주로 책을 정리를 할때 MindMap 을 하고 때때로 MindMap 에서의 중복되는 개념들을 토대로 하나의 개념으로 묶어서 ConceptMap 을 그리기도 한다.
         관련 자료 : 'Learning How To Learn', 'Learning, Creating and Using Knowledge - Concept Maps as Facilitative Tools in Schools and Corporations' (Joseph D. Novak)
         === MindMap & ConceptMap Program ===
         컴퓨터 프로그램에서도 MindMap 과 ConceptMap 을 그리는 프로그램이 많다. 하지만, 그렇게 효율적이지는 않은 것 같다. (아직까지 연습장과 펜 만큼 자유롭지가 않다. ["TabletPC"] + Visio 조합이라면 또 모를까;) MindMap 이건 ConceptMap 이건 기존 지식으로부터 연관된 지식을 떠올리고, 사고하고, 재빨리 Mapping 해 나가는 과정자체가 중요하기에. (["1002"]는 개인적으로 프로그래밍을 하려고 했다가; 그리 유용하단 느낌이 안들어서 포기했다는. 여러 프로그램들을 써 봤지만, 결국 도로 연습장 + 펜 으로 돌아갔다. ^^; 그리고 개인적으로 Map 자체를 도큐먼트용으로 보관하는것에 의미를 두지 않아서.)
          * MindMap 과 ConceptMap 을 보면서 알고리즘 시간의 알고리즘 접근법에 대해서 생각이 났다. DivideAndConquer : DynamicProgramming. 전자의 경우를 MindMap 으로, 후자의 경우를 ConceptMap 이라고 생각해본다면 어떨까.
         빠르게 책의 구조와 내용을 파악할때는 MindMap을, 그리고 그 지식을 실제로 이용하기 위해 정리하기 위해서라면 MindMap 을 확장시키거나, ConceptMap 으로 다시 한번 표현해나가는 것이 어떨까 한다. --석천
          ''MindMap 에 경우 중요시 하는 것 중 하나가 연상을 더욱 더 용이하게 하는 이미지이기도 하죠. --석천''
         MindMap 의 연상기억이 잘 되려면 각 Node 간의 Hierarchy 관계가 중요하다. 가능한한 상위 Node 는 추상도가 높아야 한다. 처음에 이를 한번에 그려내기는 쉽지 않다. 그리다가 수정하고 그리다가 수정하고 해야 하는데 이것이 한번에 되기는 쉽지 않다. 연습이 필요하다.
         MindMap 의 표현법을 다른 방면에도 이용할 수 있다. 결국은 트리 뷰(방사형 트리뷰) 이기 때문이다. [1002]의 경우 ToDo 를 적을때 (보통 시간관리책에서 ToDo의 경우 outline 방식으로 표현하는 경우가 많다.) 자주 쓴다. 또는 ProblemRestatement 의 방법을 연습할때 사용한다. --[1002]
  • MineSweeper/신재동 . . . . 41 matches
         === MineSweeper/신재동 ===
         #include <iostream>
         #include <vector>
         using namespace std;
         const int MINE = -1;
         const int MOVE[3] = {-1, 0, 1};
         void initializeBoard(int maxRow, int maxCol, vector< vector<int> >& board)
          for(int i = 0; i < maxRow; i++)
         bool isInBoard(int row, int col, int moveRow, int moveCol, const vector< vector<int> >& board)
         void checkMine(int row, int col, vector< vector<int> >& board)
          for(int i = 0; i < 3; i++)
          for(int j = 0; j < 3; j++)
          isInBoard(row, col, i, j, board) ||
          (board[row + MOVE[i]][col + MOVE[j]] == MINE))
          continue;
         void setMinesOnBoard(vector< vector<int> >& board)
          for(int i = 0; i < board.size(); i++)
          cin.get(); // 이 한 줄이 삽질의 원흉!!
          for(int j = 0; j < board[0].size(); j++)
          char c = cin.get();
  • OurMajorLangIsCAndCPlusPlus/print/하기웅 . . . . 41 matches
         #include <iostream>
         #include <stdarg.h>
         #include <stdlib.h>
         using namespace std;
         int decimal, sign;
         #define limit 5
         #define IntSize 12
         void print(char *n, ...)
          char st[IntSize];
          itoa(va_arg(l,int), st, 10);
          for(int i=0; i<(number-48-strlen(st)); i++)
          for(int k=decimal+limit; k>=0; k--)
          char st[IntSize];
          itoa(va_arg(l,int), st, 10);
          for(int k=decimal+limit; k>=0; k--)
          int *number = va_arg(l,int*);
          int count = va_arg(l, int);
          for(int i=0; i<count; i++)
          char st[IntSize];
          int count = va_arg(l, int);
  • PairProgramming토론 . . . . 41 matches
         PairProgramming 자체에 대해 조금 설명을 드리자면, 우선 이건 Driver와 Observer로 역할 분담이 되는데 정해진 게 아니고, 계속 바뀝니다. 운전하는 사람이 있고, 옆에서 코치하는 사람이 있는 거죠. 실제로 타이핑을 하는 사람은 타이핑이란 작업에 몰두하느라 지력을 좀 빼앗깁니다. 대신 이걸 관찰하는 사람은 여유가 있으므로 이것 저것 객관적인 코치를 해줄 가능성이 높죠. 그런데, 예를 들어, Driver가 코딩을 하다가 Observer가 "그게 아냐 이렇게 하면 더 좋아"하면서 설명을 하는데 잘 이해를 못하겠다 싶으면 키보드를 밀어주며 "니가 해봐"라고 말합니다. 역할 바꾸기가 되는 거죠. 이게 아니더라도, 가능하면 두 사람이 지속적으로 역할 바꾸기를 하면 좋습니다. (ExtremeProgramming에선 타이머를 이용해서 정해진 시간이 되면 역할 바꾸기를 하는 예도 있습니다) 뭐 어찌되었건, 피곤하다 싶거나 지금 머리가 잘 안돌아간다 싶으면 옆 사람에게 키보드를 넘기면 되죠.
         그리고 전문가와 비숙련자가 pairing을 해도, 전문가한테도 도움이 많이 됩니다. 예를 들어 변수이름 같은 것은 전문가도 실수할 수 있죠. 이걸 지켜보던 비숙련자가, "어라.. 아까는 PrinterStatus라고 치더니 지금은 PrintersStatus라고 치시네요..."라고 하면, '아차!'하는 거죠. 또 비숙련자가 코드를 이해를 못해서 설명을 해주게 되면, 전문가 스스로도 많은 공부를 하게 되고, 설령 그 사람이 그 설명을 이해를 못해도, "아 이런 부분은 이해를 잘 못하는구나. 앞으로 이건 더 쉽게 설명해야겠군"하고 잘못을 스스로에게 구하면서, 또 학습이 발생하죠.
         PairProgramming 자체에 대해서는 http://www.pairprogramming.com 를 참조하시고, IEEE Software에 실렸던, 로리 윌리엄스 교수의 글을 읽어보세요 http://www.cs.utah.edu/~lwilliam/Papers/ieeeSoftware.PDF. 다음은 UncleBob과 Rob Koss의 실제 PairProgramming을 기록한 대본입니다. http://www.objectmentor.com/publications/xpepisode.htm
         한편, 보통 숙련자/비숙련자 가 pairing 할때는 한쪽 방향으로 프로그래밍 스타일 등의 무게가 치우쳐지기 쉽다고 생각하는데요. 보통 비숙련자인 사람이 수동적인 입장을 취하는 경우가 많기 때문에.. 다른 한편, 숙련자인 사람이 마음의 벽을 넘지 못하는 우를 범할때에도 비숙련자인 사람이 '내가 저 사람보다 잘 모르니까...' 식으로 끌려가는 경우가 있을수 있다고 봅니다. (실제로 가끔 제가 '설명할 수 없는 부분은 혼란시켜라' 라는 말을 실천에 옮기는 경우가 종종 발생한다는.. -_-;;) -- 강석천
         겉으로 보기엔, 왕초보/왕도사의 짝은 상당히 비효율적일 것 같지요. PairProgramming을 한다고 해도, 왕도사가 키보드를 거의 독차지하고, 왕초보가 간간히 던지는 멍청한 질문은 둘(정확히는 왕도사)의 프로그래밍 속도를 늦출 것이고요. 또, 아무것도 못하고 멍청히 지켜봐야만 하는 왕초보 역시 답답할 겁니다. 괜히 질문했다가는 핀잔받기 일수이고. 둘 다 짜증나는 상황이죠.
         이런 상황에서는 SoloProgramming이 낫다는 말을 하고 싶을 겁니다. 왕초보는 왕초보대로 짜고, 왕도사는 또 자기 마음대로(full-speed로) 짜고. 하지만, 이건 기본적으로 잘못된 관점에서 오는 문제입니다. 제대로 된 PairProgramming은 전체 팀은 물론 각 개인에게도 모두 이득을 줍니다.
         조금 장기적인 면에서 그리고 팀의 수준에서 생각해 보세요. 문제많은 코드만 만들어내는 사람과, 남들이 이해하기 힘든 코드만 만들어내는 사람이 각자 나름의 코드를 만들어내는 팀의 전체 효율과, 항상 왕도사의 코치를 받는 왕초보와, 왕초보의 이해도에 맞추기 위해 노력하는 왕도사로 이루어진 팀(왕초보/왕도사 모두 "뭔가 학습"하는 것이 있게되죠)의 전체 효율. 어떨까요? 더군다나, 그 둘이 PairProgramming을 하면 할 수록 왕초보는 왕도사 수준에 근접합니다 -- 엄청나게 빠른 성장을 목격할 수 있죠. 굳이 초기 단계의 비용이 있다고 쳐도, 그건 일종의 투자로 봐야 할 겁니다. --김창준
         PairProgramming 을 위해 특별히 필요한 지식이 있는지 궁금합니다. (주로 자연스럽게 따라오는 것들이 XP 관련쪽 이야기여서.. XP에 대한 구체적인 지식이 필요한지 궁금합니다.)
         XP 방법 중에서 가장 손쉽게, 곧바로 적용할 수 있는 것 중 하나가 PairProgramming입니다. 물론 여타의 XP 방법들과 마찬가지로 최고의 효과를 위해서는 다른 실행법을 함께 수행해야 합니다만, 이것 하나만이라도 제대로 하면 가시적인 차이를 느낄 것입니다. 특별히 어떤 지식보다는 마음 자세와 태도가 더 중요합니다. --김창준
         Strengthening the Case for Pair-Programming(Laurie Williams, ...)만 읽어보고 쓰는 글입니다. 위에 있는 왕도사와 왕초보 사이에서 Pair-Programming을 하는 경우 생각만큼 좋은 성과를 거둘 수 없을 것이라고 생각합니다. 문서에서는 Pair-Programming에서 가장 중요한 것을 pair-analysis와 pair-design이라고 보고 말하고 있습니다.(좀 큰 프로젝트를 해 본 사람이라면 당연히 가장 중요하다고 느끼실 수 있을 것입니다.) 물론 pair-implementation도 중요하다고는 말하고 있으나 앞서 언급한 두가지에 비하면 택도 없지요. 그러니 왕도사와 왕초보와의 결합은 아주 미미한 수준의 이점만 있을뿐 실제 Pair-Programming이 주창하는 Performance는 낼 수 없다고 생각됩니다. 더군다가 이 경우는 왕도사의 Performance에 영향을 주어 Time dependent job의 경우 오히려 손실을 가져오지 않을까 생각이 됩니다. Performance보다는 왕초보를 왕도사로 만들기 위한 목적이라면 왕초보와 왕도사와의 Pair-Programming이 약간의 도움이 되기는 할 것 같습니다. 그러나 우리가 현재 하는 방식에 비해서 얼마나 효율이 있을까는 제고해봐야 할 것 같습니다. - 김수영
         Pair 할때의 장점으로 저는 일할때의 집중도에 있다고 보고 있습니다. (물론 생각의 공유와 버그의 수정, 시각의 차이 등도 있겠지만요.) 왕도사/왕초보 Pair 시의 문제점은 왕도사가 초보자가 coding 때에 이미 해야 할 일을 이미 알고 있는 경우 집중도가 떨어지게 된다는 점에 있습니다. Pair 의 기간이 길어지면서 초보쪽이 중고급으로 올라가는 동안 그 문제들이 해결이 될 것 같은데, 아쉬운 점은 Pair 를 긴 기간을 두고 프로그래밍을 한 적이 없다는 점입니다. (하나의 프로젝트를 끝내본 역사가 거의 없다는.)
         ''왕도사와 왕초보 사이에서 Pair-Programming을 하는 경우 생각만큼 좋은 성과를 거둘 수 없을 것이라고 생각합니다.''
         이 세상에서 PairProgramming을 하면서 억지로 "왕도사 왕초보"짝을 맺으러 찾아다니는 사람은 그렇게 흔치 않습니다. 설령 그렇다고 해도 Team Learning, Building, Knowledge Propagation의 효과를 무시할 수 없습니다. 장기적이고 거시적인 안목이 필요합니다.
         ''문서에서는 Pair-Programming에서 가장 중요한 것을 pair-analysis와 pair-design이라고 보고 말하고 있습니다.(좀 큰 프로젝트를 해 본 사람이라면 당연히 가장 중요하다고 느끼실 수 있을 것입니다.) 물론 pair-implementation도 중요하다고는 말하고 있으나 앞서 언급한 두가지에 비하면 택도 없지요.''
         ''그러니 왕도사와 왕초보와의 결합은 아주 미미한 수준의 이점만 있을뿐 실제 Pair-Programming이 주창하는 Performance는 낼 수 없다고 생각됩니다. 더군다가 이 경우는 왕도사의 Performance에 영향을 주어 Time dependent job의 경우 오히려 손실을 가져오지 않을까 생각이 됩니다.''
         제가 여러번 강조했다시피 넓게 보는 안목이 필요합니다. 제가 쓴 http://c2.com/cgi/wiki?RecordYourCommunicationInTheCode 나 http://c2.com/cgi/wiki?DialogueWhilePairProgramming 를 읽어보세요. 그리고 사실 정말 왕초보는 어떤 방법론, 어떤 프로젝트에도 팀에게 이득이 되지 않습니다. 하지만 이 왕초보를 쓰지 않으면 프로젝트가 망하는 (아주 희귀하고 괴로운) 상황에서 XP가 가장 효율적이 될 수 있다고 봅니다.
         ''Performance보다는 왕초보를 왕도사로 만들기 위한 목적이라면 왕초보와 왕도사와의 Pair-Programming이 약간의 도움이 되기는 할 것 같습니다. ''
         저는 PairProgramming의 희망을 왕도사와 왕도사가 같이 했을 때 정말 그 힘이 발휘될 것이라는 것에서 찾고 싶습니다. 형이 말하는 왕도사와 왕초보 그룹은 학교나 제자를 기르고 싶은 왕도사에게 해당하는 사항이 아닐까요? 실제 사회에서 왕도사와 왕초보 그룹이 얼마나 효용성이 있을까요?
         결국 제가 말하고 싶은 것은 PairProgramming은 왕도사와 왕도사 그룹이 할 수 있는 최상의 해법(제 생각입니다만)이라는 것입니다.. 모든 방법론이 모든 경우에 적합하지는 않은 것을 생각해본다면 PairProgramming이 왕도사와 왕초보 그룹이 아닌 왕도사와 왕도사 그룹에 가장 적합한 것이 아닐까 생각해봅니다.
         왕도사와 왕초보를 어떻게 정의하느냐에 따라 좀 다를 수 있겠습니다. 제가 늘 말하듯이 "전문가"끼리의 PairProgramming은 일반적으로 성공적일 확률이 높습니다. 하지만 전문가일수록 자신의 프라이드와 에고가 강하기 때문에 PairProgramming의 장점을 충분히 이용 못하는 경우도 있습니다.
  • 데블스캠프2009/목요일/연습문제/MFC/송지원 . . . . 41 matches
         #if !defined(AFX_TESTDLG_H__B619E89A_C192_46A8_8358_6AC21A6D48CC__INCLUDED_)
         #define AFX_TESTDLG_H__B619E89A_C192_46A8_8358_6AC21A6D48CC__INCLUDED_
          int opFlag;
          virtual BOOL OnInitDialog();
          afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
          afx_msg void OnPaint();
          afx_msg void OnBUTTONminus();
          afx_msg void fourOp(int num);
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         #endif // !defined(AFX_TESTDLG_H__B619E89A_C192_46A8_8358_6AC21A6D48CC__INCLUDED_)
         #include "stdafx.h"
         #include "test.h"
         #include "testDlg.h"
         #define new DEBUG_NEW
          //{{AFX_DATA_INIT(CAboutDlg)
          //}}AFX_DATA_INIT
         BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
          //{{AFX_DATA_INIT(CTestDlg)
          //}}AFX_DATA_INIT
  • 새싹교실/2012/열반/120402 . . . . 41 matches
         #include <stdio.h>
         int x=15;
         function(int y){
          printf("%d %d\n", x, y);
         int main()
          int x=5, y=10;
          printf("%d %d\n", x, y);
         printstar(int n){
          printf("*");
          printstar(n-1);
          * 위의 printstar(int) 함수가 정의되었다고 가정
         int main()
          printstar(5);
          printstar(4);
          printstar(3);
          printstar(2);
          printstar(1);
          * while은 수업 시간에 다룬 내용이라 짧게 설명했습니다. 위의 printstar를 응용한 실습을 진행했습니다.
          * printstar 및 N이 정의되었다고 가정했습니다.
         int main()
  • 새싹교실/2013/록구록구/3회차 . . . . 41 matches
          printf 노가다는 ㄴㄴ 해요 ^^
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         #include<stdio.h>
         int main()
         int a,b,c;
         printf("두수를 입력하세요\n");
         printf("연산방법을 입력 하세요\n");
         printf("%d",a+b);
         printf("%d",a-b);
         printf("%d",a*b);
         printf("%d",a/b);
         #include<stdio.h>
         int main()
         int num = 0;
         printf("☆★☆★☆\n", num);
         #include<stdio.h>
         int main()
         int i,j =0;
         printf("☆");
         printf("\n");
  • 실습 . . . . 41 matches
         국어 점수 int m_nKorean
         영어 점수 int m_nEnglish
         수학 점수 int m_nMath
         총점 int m_nTotal
         평균 int m_dAvg
         입력함수 void Input(char szName[],int nKorean, int nEnglish,int nMath);
         총점 함수 int GetTotal(void);
         등수 함수 int GetRank(void);
         등수 기록 함수 void SetRank(int nRank);
         결과출력 함수 void PrintResult();
         2. 컴파일러 세팅 (Compiler Setting)
         4) ListBox에서 Win32 Console Application을 선택한다.
         8) An empty project를 선택하고, Finish를 선택한다.
         int m_nKorean,m_nEnglish,m_nMath;
         int m_nTotal;
         int m_nRank;
         void Input(char szName[],int nKorean,int nEnglish,int nMath);
         int GetTotal(void);
         int GetRank(void);
         void SetRank(int nRank);
  • CubicSpline/1002/GraphPanel.py . . . . 40 matches
         class GraphPanel(wxScrolledWindow):
          def __init__(self, parent, id=NewId(), pos=wxDefaultPosition, size=wxDefaultSize):
          wxScrolledWindow.__init__(self, parent, id, pos, size)
          self.cubicSpline = Spline(DATASET)
          self.errorCubicSpline = ErrorSpline(DATASET)
          EVT_PAINT(self, self.OnPaint)
          def mappingToScreenX(self, x):
          def mappingToScreenY(self, y):
          def OnPaint(self, event):
          dc = wxPaintDC(self)
          dc.BeginDrawing()
          #self.drawGuideLines(dc)
          dc.EndDrawing()
          def drawGuideLines(self, dc):
          marginX = 100
          marginY = 100
          dc.DrawLine(marginX,marginY, marginX, cy-marginY)
          dc.DrawLine(marginX,cy-marginY, cx-marginX, cy-marginY)
          self.plotCubicSpline(dc)
          self.plotErrorCubicSpline(dc)
  • EcologicalBinPacking/곽세환 . . . . 40 matches
         #include <iostream>
         using namespace std;
         #define BROWN 0
         #define GREEN 1
         #define CLEAR 2
         int main()
          int bottle[3][3]; // 병
          int bin[3]; // 통
          int min_move = 0; // 최소 이동수 = 전체 병 수 - 이동하지 않는 병 수
          int total_bottle = 0;
          int not_move_bottle = 0;
          int i, j;
          if (!(cin >> bottle[i][j]))
          bin[0] = BROWN;
          bin[1] = CLEAR;
          bin[2] = GREEN;
          bin[0] = BROWN;
          bin[1] = GREEN;
          bin[2] = CLEAR;
          bin[0] = CLEAR;
  • EightQueenProblem . . . . 40 matches
         === Input ===
         이 프로그램은 Input을 요구하지 않는다.
         시간을 잴 때에는 Wiki:SandglassProgramming 에 소개된 프로그램을 이용하면 편리합니다. 화장실을 다녀온다든가 할 때 필요한 중간 멈춤(pause) 기능도 있습니다.
         ||이준욱|| 3h:20m || 40 lines || C || ["EightQueenProblem/이준욱"] ||
         ||iCarus|| 0h:30m || 30 lines || C || ["EightQueenProblem/lasy0901"] ||
         ||["이덕준"]|| 1h:10m || 73 lines || C++ || ["EightQueenProblem/이덕준소스"] ||
         ||최태호|| 0h:35m || 71 lines || C++ || ["EightQueenProblem/최태호소스"] ||
         ||["최광식"]|| 2h:38m || 141 lines || C++ || . ||
         ||이선호|| 2h:29m || 58 lines || C++ || ["EightQueenProblem/이선호"] ||
         ||강석천|| 4h:50m || 135 lines (+ 82 line for testcode. total 217 lines)|| python || ["EightQueenProblem/강석천"] ||
         ||강석천|| 0h:47m || 72 lines (+ 58 line for testcode. total 132 lines)|| python || . ||
         ||임인택|| 2h:00m || 75 lines || C++ || ["EightQueenProblem/임인택"] ||
         ||이선우|| 1h:05m || 114 lines || java || ["EightQueenProblem/이선우"] ||
         ||최봉환|| 2h:30m || 71 lines || C++ || ["EightQueenProblem/최봉환"] ||
         ||이창섭|| 1h:9m || 73 lines || C++ || ["EightQueenProblem/이창섭"] ||
         ||이강성|| 1h:50 || 36 lines || python || ["EightQueenProblem/이강성"] ||
         ||햇병아리|| 10h:50m || 111 lines || C || ["EightQueenProblem/햇병아리"] ||
         ||kulguy|| 10h:00m || 229 lines || java || ["EightQueenProblem/kulguy"] ||
         ||김형용|| 8h:00m || 115 lines (+ 63 line for testcode. total 178 lines) || python || ["EightQueenProblem/김형용"]||
         ||서상현|| 2h:18m || 62 lines || C || ["EightQueenProblem/서상현"] ||
  • STL/string . . . . 40 matches
         = string =
         string a("인수 천재")
         string b = a
         string name("1234567890");
         string c(name.begin() + 3, name.begin() + 7) ;
          * new - char* 로 만든 문자열은 프로그램 사용후 delete 해줘야 되지만, string은 소멸자에서 알아서 해준다. 생산성 증가!
          * string 클래스라고 해서 공백을 무시할수 있는것은 아니다. 학교 교재에 보면 getline()과 get()이 나온다. string 변수로 입력을 받는다 해도 cin >>을 사용하면 공백을 입력 받을수 없다. 따라서 getline() 써줘야 한다.
          ["[Lovely]boy^_^"]는 이걸 망각하고 1시간동안 삽질을 한 경험이 있다. 이럴때는 일단 char input[255]정도로 큰 배열 잡아 놓은 다음 string으로 변환 시켜준다. 예제를 보자.
         #include <iostream>
         #include <string>
         using namespace std;
         int main()
          char input[255];
          cin.getline(input, 255);
          cout << string(input);
          * string을 이용해서 직접 입력 받을려면 이렇게 할수 있다.
         #include <iostream>
         #include <string>
         using namespace std;
         int main()
  • Self-describingSequence/황재선 . . . . 40 matches
         public class DescribingSequence {
          private final int MAX = 673366;
          public int readNumber() {
          return new Scanner(System.in).nextInt();
          public int getSequence(int n) {
          int[] describing = new int[MAX + 1];
          describing[3] = 2;
          int input = 4;
          int output = 3;
          int numRepeat;
          numRepeat = describing[output];
          for(int i = 0; i < numRepeat; i++) {
          if (input == n) {
          if (input > MAX) {
          input++;
          describing[input++] = output;
          public void printValue(int value) {
          System.out.println(value);
          public static void main(String[] args) {
          DescribingSequence ds = new DescribingSequence();
  • Yggdrasil/가속된씨플플/2장 . . . . 40 matches
          * 루프불변식(loop invariant): while문이 그 조건식을 검사하는 매 경우에 대하여 참일 것이라고 가정하는 속성. 처음에 이걸 보고, 이런 개념도 있었냐고 생각했음. 루프불변식은 코드는 아니고 주석에 해당하며, while문이 진행되면서 while문의 제일 처음과 끝에서 루프의 내용이 의도한 대로 돌아간 건지를 정의한 문장이다.(말로 설명하기 애매한 듯...) 하여튼 이것을 쓰는 이유는 루프문을 제대로 설계하기 위해서. 아래의 코드는, 책에 있는 코드로, 불변식의 예이다.
         int r=0;
         == 클래스 string ==
          * 1장에서 배운 string 클래스에 추가할 내용. SeeAlso ["Yggdrasil/가속된씨플플/1장"]
         std::string::size_type//unsigned형의 멤버변수로, 담을 수 있는 최대 문자 갯수를 저장한다. 글자수에 알맞는 type으로 알아서 정의하는 듯.
         #include<iostream>
         #include<string>
         using std::cin;
         using std::cout;
         using std::endl;
         using std::string;
         int main()
          int pad_rows, pad_cols;
          cout<<"Please input blank of rows and cols:";
          cin>>pad_rows;
          cin>>pad_cols;
          string name;
          cin>>name;
          const string greeting="Hello, "+name+"!";
          const int rows=pad_rows*2+3;
  • [Lovely]boy^_^/[Lovely]boy^_^/USACO/Barn . . . . 40 matches
         #include <iostream>
         #include <fstream>
         #include <vector>
         #include <algorithm>
         #include <functional>
         using namespace std;
         vector<int> getDistance(const vector<int>& ar)
          vector<int> ret( ar.size() - 1 );
          for(int i = 0 ; i < ar.size() - 1 ; ++i)
         vector<int> getPivot(int numPivot, const vector<int>& distance)
          vector<int> ret(distance);
          sort(ret.begin(), ret.end(), greater<int>());
          ret.erase(ret.begin() + numPivot - 1, ret.end());
         vector<int> getDatas(int& numPivot)
          int max, iter;
          ifstream fin("barn1.in");
          fin >> numPivot >> max >> iter;
          vector<int> ar(iter);
          for(int i = 0 ; i < iter ; ++i)
          fin >> ar[i];
  • 구구단/Leonardong . . . . 40 matches
         #include <iostream>
         using namespace std;
         int main()
          for (int by=1 ; by<10 ; by++)
          for (int i=2 ; i<6 ; i++)
          for (int i=6 ; i<10 ; i++)
         (define (niner by plus) (when (< by 10)
          (cond ((< plus 10) (begin (print by) (print *) (print plus) (print =) (print (* by plus)) (newline) (niner by (+ plus 1))))
          ((>= plus 10) (niner (+ by 1) 1))
         (niner 2 1)
         (define (niner by plus)
          (cond ((< plus 10) (begin (print by) (print *) (print plus) (print =) (print (* by plus)) (newline) (niner by (+ plus 1))))
          ((>= plus 10) (niner (+ by 1) 1))
          ) (print "end") ))
         (niner 2 1)
          * Niner 클래스
          instanceVariableNames: ''
          * Niner2to9 메소드
         Niner2to9
         niner := Niner new.
  • 새싹교실/2012/나도할수있다 . . . . 40 matches
          *ICE Breaking : 일요일에 영화를 보기러해서 예매율이 가장 높은 화차를 봣는데, 재미가 없어서 실망했다. -추성준
          int b = 2;
          printf("%c",name);
          printf("문자:%c\n정수:%d\n실수1:%f\n실수2:%.2f",a,b,c,d);
          printf("무한루프");
          printf("무한루프");
          int i;
          printf("for문\n");
          * 새싹 첫수업을 했다. 도중에 현민이가 영어 수업을 받으러가서 한시간 비었다. 다음주부터는 시간을 한시간 연기하여 세시부터 시작할 예정이다. gcc의사용법을 간단히 설명했고, gdb는 학생들이 디버깅을 몰라서 설명해주지 않았다. printf사용법부터 시작해서 연산자, 데이터 타입, while,do-while,for문을 설명했다. 현민이는 쉰게 잘 따라오고, 윤호도 천천히 따라오고 있어서 앞으로 수업하는데에 지장은 없을 것 같다. 수업을 다 하고 생각해보니 너무 우왕좌왕하게 가르쳤던것 같다. 다음시간은 더욱 열심히 준비해야겠다. - 추성준
          int i,sum=0;
          printf("%d",sum);
          int i=1,sum=0;
          printf("%d",sum);
          * #define
          * 시작하자마자 while로 1부터 10까지 더했다. 나는 버벅거렸다. 근데 조언을 구하면서 해봤다. 게임코드도 베껴써봤다. define은 메인함수 바껭서 하는 거라고 배웠다. select=getch() 이거가 좀 헷갈렸다. break가 나오면 멈춘다고 한다. 오늘 정말 여러가지를 배운거 같다. 때리기 게임안에 많은 함수가 들어있는게 신기했다. 복습도 좀 더 열심히 해야겠다. 집에 비쥬얼스튜디오도 깔고 스스로 하는 습관을 들여야겠다. -신윤호
         #include <stdio.h>
         char isOne (int num1) {
         int main () {
          int a,b=1;
          printf("%c",a);
  • 새싹교실/2013/록구록구/4회차 . . . . 40 matches
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         수업시간에 내가 printf를 사용할 때 for문을 사용하는 친구들을 봤었는데 직접 사용해보니 뿌듯했고 while문보다 보기 편하고 더 간편했다.:)
         나도 이제 수업시간에 printf대신 for문을 사용해야겠다.
         #include<stdio.h>
         int main()
         int i;
         printf("☆★☆★☆\n");
         #include<stdio.h>
         int main()
         int i,j;
         printf("★");
         printf("\n");
         #include<stdio.h>
         int main()
         int i,j;
         printf("%d*%d =%d\n", i,j,i*j);
         printf("\n");
         실습시간에 나는 printf로 노가다하는데 잘하는 애들이 for문 쓰는거 보면서 부러웠는데,
         #include<stdio.h>
         int main()
  • 파스칼삼각형/허아영 . . . . 40 matches
         #include <stdio.h>
         void pascal_tri(int pascaltri[][100], int row);
         void main()
          int pascaltri[100][100];
          int row;
          printf("행을 입력 :");
         void pascal_tri(int pascaltri[][100], int row)
          int i,j;
          for(i = 0; i < row; i++)// print
          printf(" ");
          printf("%d ", pascaltri[i][j]);
          printf("n");
         #include <stdio.h>
         void pascal_tri(int pascaltri[][100], int row, int col);
         void main()
          int pascaltri[100][100]; // 이 부분을 어떻게 더 효율적으로 바꿀 것인가..->ver.3
          int row, col;
          printf("찾고자 하는 열, 행을 차례로 입력 :");
          printf("다시 입력해 주세요...n");
         void pascal_tri(int pascaltri[][100], int col, int row)
  • 2010php/방명록만들기 . . . . 39 matches
         $link = mysql_connect('mysql5.hosting.paran.com', 'linflus', '****');
         if (!$link) {
         $db = mysql_select_db("linflus_db");
          (no integer not null,
          status integer,
         $sql = "INSERT INTO guest
         = 메인화면 ( index.php ) =
         include "dbconnect.php";
         이름  <input type='text' name='input_name' maxlength='10' size='10'>    
         비밀번호  <input type="password" name='input_pw'size='4' maxlength='4'>
         <input type = "radio" name = "status" value = "1" size = "40" checked><img src="http://cfile234.uf.daum.net/image/152622034C88B1DC682870">
         <input type = "radio" name = "status" value = "2" size = "40"><img src="http://cfile223.uf.daum.net/image/162622034C88B1DC696BEC">
         <input type = "radio" name = "status" value = "3" size = "40"><img src="http://cfile206.uf.daum.net/image/142622034C88B1DC6AA52F">
         <input type = "radio" name = "status" value = "4" size = "40"><img src="http://cfile232.uf.daum.net/image/152622034C88B1DC6BFF47">
         <input type = "radio" name = "status" value = "5" size = "40"><img src="http://cfile234.uf.daum.net/image/162622034C88B1DC6C0395">
         <input type='submit' value='전송'>
         include "print.php";
         $dbconn = mysql_connect("intra.zeropage.org", "csephp", "2010php");
         include "dbconnect.php";
         if (strlen($_POST['input_name']) > 10 )
  • CubicSpline/1002/TriDiagonal.py . . . . 39 matches
         from ArrayPrinter import *
          for n in range(len(b)):
          matrixY[n][0] = float(b[n][0] - _minusForGetMatrixY(n, aMatrixLower, matrixY)) / float(aMatrixLower[n][n])
          for n in range(limitedMatrix-1, -1,-1):
          matrixX[n][0] = float(y[n][0] - _minusForGetMatrixX(n, aMatrixUpper, matrixX)) / float(aMatrixUpper[n][n])
          #print "x[%d]: y[%d][0] - minus:[%f] / u[%d][%d]:%f : %f"% (n,n,_minusForGetMatrixX(n, aMatrixUpper, matrixX),n,n, aMatrixUpper[n][n], matrixX[n][0])
         def _minusForGetMatrixX(n, aUpperMatrix, aMatrixX):
          totalMinus = 0
          for t in range(n+1,limitedMatrix):
          totalMinus += aUpperMatrix[n][t] * aMatrixX[t][0]
          return totalMinus
         def _minusForGetMatrixY(n, aLowerMatrix, aMatrixY):
          totalMinus = 0
          for t in range(n):
          totalMinus += aLowerMatrix[n][t] * aMatrixY[t][0]
          return totalMinus
          for i in range(0,aRow):
          for j in range(0,aCol):
         def prettyPrintMatrix(aMatrix):
          print array2string(array(aMatrix))
  • CuttingSticks/문보창 . . . . 39 matches
         // 10003 - Cutting Sticks
         #include <iostream>
         using namespace std;
         //#include <fstream>
         #define MAX_CUT 53
         #define MAX_NUM 0x7fffffff
         //fstream fin("in.txt");
         static int lenStick, numCut;
         static int cut[MAX_CUT];
         static int d[MAX_CUT][MAX_CUT];
         bool input()
          cin >> lenStick;
          cin >> numCut;
          for (int i = 1; i <= numCut; i++)
          cin >> cut[i];
         void initTable()
          for (int i = 0; i <= numCut; i++)
         int process()
          initTable();
          int j, min;
  • EightQueenProblem/강인수 . . . . 39 matches
         #include <iostream>
         #include <vector>
         #include <cmath>
         #include <algorithm>
         using namespace std;
         const int N = 8;
         int fac(int n)
          int ret = 1;
          for(int i = 2 ; i <= n ; ++i)
         bool isCorrectChecker(vector<int>& ar)
          for(int i = 0 ; i < ar.size() ; ++i)
          for(int j = 0 ; j < ar.size() ; ++j)
         vector< vector<int> > getCorrectChecker(vector<int>& ar)
          vector< vector<int> > ret;
          for(int i = 0 ; i < fac( ar.size() ) ; ++i)
          next_permutation(ar.begin(), ar.end());
         void showResult(vector< vector<int> >& result)
          for(int i = 0 ; i < result.size() ; ++i)
          for(int j = 0 ; j < result[i].size() ; ++j)
         vector<int> getDatas()
  • JavaStudy2003/두번째과제/곽세환 . . . . 39 matches
         import javax.swing.JOptionPane;
          private int array[][]; //판의 배열
          private int max_x; //판의 가로크기
          private int max_y; //판의 세로크기
          public Board(int x, int y) {
          array = new int[max_y][max_x];
          for (int i = 0; i < max_y; i++)
          for (int j = 0; j < max_x; j++)
          for (int i = 0; i < max_y; i++)
          for (int j = 0; j < max_x; j++)
          public boolean IsPostionWall(int x, int y) {
          public void PutStep(int x, int y) {
          String output = "";
          for (int i = 0; i < max_y; i++)
          for (int j = 0; j < max_x; j++)
          private int p_x; // 바퀴의 현재 x 위치
          private int p_y; // 바퀴의 현재 y 위치
          public void Move(Board bo, int x, int y) {
          int c_x; // 바퀴가 이동할 x 위치
          int c_y; // 바퀴가 이동할 y 위치
  • SuperMarket/재니 . . . . 39 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
          int input;
          int mainMenuInput(){
          cin >> input;
          if (input < 1 || input > 5){
          input = 0;
          return input;
          int money, cash, wantProduct, wantNum;
          int price;
          int num;
          for (int i = 0 ; i < 3 ; i++)
          void mainMenuView() {
          cin >> cash;
          for (int i = 0 ; i < 3 ; i++)
          cin >> wantProduct;
          cin >> wantNum;
          for (int i = 0 ; i < 3 ; i++)
          cin >> wantProduct;
  • UbuntuLinux . . . . 39 matches
         [[include(틀:OperatingSystems)]]
         공식 사이트는 역시 기대를 저버리지 않았다. [https://wiki.ubuntu.com/ShareInternetConnection]와
         [https://wiki.ubuntu.com/ThinClientHowtoNAT] 이 두 문서를 따라하다 보니 어느새 다른 컴퓨터에서 인터넷에 연결할 수 있는 것이 아닌가!
         iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
         title Windows 2000 Advanced Server SP4
         chainloader +1
         $ip link
         그런 뒤에야 이제 맨날 들날날락했던 /etc/network/interfaces 안에 내용을 고치고 다시 네트워크를 시작했더니 ㅇ이제 되는구나...
         /etc/init.d/networking stop
         /etc/init.d/networking restart
         http://yourdomain:8000/YourProjectNameHere/wiki
         Include /etc/apache2/sites-available/trac
          Options Indexes MultiViews
         # You need something like this to authenticate users
         ScriptAlias /trac/leonardong /usr/share/trac/cgi-bin/trac.cgi
         <Location "/trac/leonardong/login">
         [http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html MySQL binary install]
         /etc/init.d/mysql start
         [http://www.dougsparling.com/comp/howto/linux_java.html]
         must install jdk or jre
  • 데블스캠프2010/다섯째날/ObjectCraft/미션2/변형진 . . . . 39 matches
          * after [REFACTORING]
         #include <stdio.h>
         struct zergling {
          int no;
          int hitP;
          int attP;
          int defP;
         } zerglings[2];
         void init_unit_stats() {
          zerglings[0].no = 0;
          zerglings[1].no = 1;
          zerglings[0].hitP = zerglings[1].hitP = 50;
          zerglings[0].attP = zerglings[1].attP = 5;
          zerglings[0].defP = zerglings[1].defP = 0;
         int get_damage(zergling z1, zergling z2) {
         void attack(zergling z1, zergling & z2) {
          int damage = get_damage(z1, z2);
          printf("저글링 %d이 저글링 %d에게 데미지 %d를 입혀 HP가 %d가 되었습니다.\n", z1.no, z2.no, damage, z2.hitP);
         int is_dead(zergling z) {
         int main() {
  • 문자반대출력/최경현 . . . . 39 matches
         #include <stdio.h>
         #include <string.h>
         #include <stdlib.h>
         void main()
          char string[200];
          int numberOfString;
          fgets(string, 200, before);
          printf("%s\n",string);
          numberOfString = strlen(string);
          for (int i = 0; i < numberOfString; i++)
          if (string[i] < 0 && string[i+ 1] < 0)
          swap2(&string[i],&string[i+1]);
          if(numberOfString%2==0)
          int i;
          for(i=1;i<numberOfString/2+1;i++)
          broker = string[numberOfString-i];
          string[numberOfString-i] = string[i-1];
          string[i-1] = broker;
          int i;
          for(i=1;i<numberOfString/2+2;i++)
  • 수/구구단출력 . . . . 39 matches
         #include <stdio.h>
         #include <stdlib.h>
         int main()
          int i,Number;
          printf("원하시는 구구단 숫자를 눌러주세요.^^\n");
          printf("%d단\n",Number);
          printf("%dX%d=%d\n",Number,i,Number*i);
         #include<stdio.h>
         int main(void)
          int a,b;
          printf ("숫자입력");
          printf("%dx%d=%d\n", a,b,a*b);
         #include<stdio.h>
         int main()
          int Numbers;
          int Number;
          printf("알고싶은 구구단단계를 쳐주세요.");
          printf("%dX%d=%d\n",Numbers,Number,Numbers*Number);
         #include <stdio.h>
         void main()
  • 수/별표출력 . . . . 39 matches
         #include <stdio.h>
         #include <stdlib.h>
         int main()
          int a,b,c;
          printf("*");
          printf("-");
          printf("\n");
         #include <stdio.h>
         int main(void)
          int l,m,n;
          printf("*");
          printf("-");
          printf("\n");
         #include <stdio.h>
         int main(void)
          int star;
          int s;
          int t;
          printf("*");
          printf("-");
  • CleanCode . . . . 38 matches
          * [https://code.google.com/p/google-styleguide/ google coding style guide]
          * [http://refactoring.com/ Martin Fowler의 refactoring home]
          * [http://blog.goyello.com/2013/05/17/express-names-in-code-bad-vs-clean/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+goyello%2FuokR+%28Goyelloblog%29 Express names in code: Bad vs Clean]
          * Chapter 2 Meaningful Names - Naming Convention
          * 클래스의 이름을 지을 때는 -info, -data와 같은 일반적인 이름을 쓰지 말라.
          * Account를 만들면 되지 AccountInfo라는 클래스를 만들 필요는 없다. Account 클래스 내부에 들어가는 정보가 Info니까.
          * 아래와 같은 식으로 Account내부의 정보를 하나로 묶으면 AccountInfo 클래스와 getAccountInfo()등이 있을법하지 않은가? -> 저런 구조 자체가 잘못됐을 수 있다. getAccountInfo()와 같은 방법이 아니라 다른 방법으로 일을 시키는 모양이 더 낫다.
         private AccountInfo info;
          * 테스트 시에는 올바른 input이 제대로 들어오는지를 먼저 확인하고 나서 코드가 잘못되었는지 생각해볼 것.
          * [http://alblue.bandlem.com/2011/02/gerrit-git-review-with-jenkins-ci.html 참고 데모 동영상]
          * [http://www.filewiki.net/xe/index.php?&vid=blog&mid=textyle&act=dispTextyle&search_target=title_content&search_keyword=gerrit&x=-1169&y=-20&document_srl=10376 gerrit install guide]
          * Git + Gerrit + Jenkins 전체 결합을 통해 코드 버그를 줄여보자
          * [http://rein.kr/blog/archives/3156]
          * String.append와 PathParser.render는 둘이 서로 문자열을 합치는 작업을 하더라도 직접적인 연산을 하는 것과 추상적인 연산을 하는 것의 차이로 서로 추상화 수준이 다르다고 할 수 있다.
          * Error Handling
          * Consider using try-catch-finally instead of if statement.
          * Returning null or undefined (Javascript) {{{
         var array = stringObject.match(/regexp/); // if there is no match, then the function returns null, if not returns array.
         array.forEach(/* handle found strings */)
          * Returning emtpy object (Javascript) {{{
  • EightQueenProblemDiscussion . . . . 38 matches
         만약 당신보다 더 짧은 시간에, 더 짧은 코드로 문제를 해결한 사람이 있다면, 그 사람과 함께 PairProgramming (혹은 NetMeeting 등을 이용, VirtualPairProgramming)을 해서 그 문제를 함께 새로 풀어보세요. 당신은 무엇을 배웠습니까? 그 사람은 어떤 방식으로 프로그램의 올바름(correctness)을 확인합니까? 그 사람은 디버깅을 어떻게 합니까(혹은 디버깅이 거의 필요하지 않은 접근법이 있던가요)? 그 사람은 어떤 순서로 문제에 접근해 갑니까? 그 사람은 어느 정도로까지 코드를 모듈화 합니까? 이 경험이 당신의 프로그래밍에 앞으로 어떤 변화를 불러올 것이라 생각합니까?
          def testPrintBoard (self):
          self.assertEquals (self.bd.PrintBoard (), '''00000000\n01000000\n00100000\n00000000\n00000000\n00000000\n00000000\n00000001\n''')
          def testFindQueenInSameVertical (self):
          self.assertEquals (self.bd.FindQueenInSameVertical (2), 1)
          self.assertEquals (self.bd.FindQueenInSameVertical (3), 0)
          def testFindQueenInSameHorizonal (self):
          self.assertEquals (self.bd.FindQueenInSameHorizonal (2), 1)
          self.assertEquals (self.bd.FindQueenInSameHorizonal (3), 0)
          def testFindQueenInSameCrossLeftTopToRightBottom (self):
          self.assertEquals (self.bd.FindQueenInSameCrossLeftTopToRightBottom (3,3), 1)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftTopToRightBottom (1,1), 1)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftTopToRightBottom (4,1), 0)
          def testFindQueenInSameCrossLeftBottomToRightTop (self):
          self.assertEquals (self.bd.FindQueenInSameCrossLeftBottomToRightTop (3,3), 0)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftBottomToRightTop (3,1), 1)
          self.assertEquals (self.bd.FindQueenInSameCrossLeftBottomToRightTop (1,3), 1)
          def testGetFirstCornerInCrossLeftTopToRightBottom (self):
          self.assertEquals (self.bd.GetFirstCornerInCrossLeftTopToRightBottom (3,3), (0,0))
          self.assertEquals (self.bd.GetFirstCornerInCrossLeftTopToRightBottom (4,3), (1,0))
  • ErdosNumbers/차영권 . . . . 38 matches
         #include <iostream.h>
         #include <cstring>
         #define MAX_LENGTH 100
          int erdosNumber;
         void checkErdosNumberTo0(Author *p, int n);
         void checkErdosNumberTo1(Author *p, char *c, int n);
         void checkErdosNumberTo2(Author *p, int n);
         bool isThere(Author *p, int n);
         int main()
          int scenario=1;
          int nDataBase, nSearch;
          int count = 0, n = 0, m = 0, number = 0;
          int i, j, k, l;
          int saveBound[10];
          cin >> nDataBase >> nSearch;
          cin.get();
          cin.getline(temp, MAX_LENGTH);
          int save[10] = {0, };
          int count2 = 0;
          continue;
  • MoreEffectiveC++ . . . . 38 matches
         http://zeropage.org/~neocoin/data/MoreEffectiveC++.jpg
          * 작성자:류상민(["neocoin"]) [[BR]]
         == Link ==
          * Item 1: Distinguish between pointers and references. - Pointer와 Reference구별해라.
          * Item 5: Be wary of user-defined conversion functions. - 사용자 정의 형변환(conversion) 함수에 주의하라!
          * Item 6: Distinguish between prefix and postfix forms of increment and decrement operators. - prefix와 postfix로의 증감 연산자 구분하라!
          * Item 8: Understand the differend meanings of new and delete - new와 delete가 쓰임에 따른 의미들의 차이를 이해하라.
          * Item 10: Prevent resource leaks in constructors. - 생성자에서 자원이 세는걸 막아라.
          * Item 11: Prevent exception from leaving destuctors. - 파괴자로 부터의 예외 처리를 막아라.
          * Item 12: Understand how throwing an exception differs from passing a parameter or calling a virtual function [[BR]] - 가상 함수 부르기나, 인자 전달로 처리와 예외전달의 방법의 차이점을 이해하라.
          * Item 15: Understand the costs of exception handling. - 예외 핸들링에 대한 비용 지불 대한 이해
          * Item 17: Consider using lazy evaluation - lazy evaluation의 쓰임에 대하여 생각해 보자.
          * Item 19: Understand the orgin of temporary objects.- 임시 객체들의 기본을 이해하자.
          * Item 22: Consider using op= instead of stand-alone op.- 혼자 쓰이는 op(+,-,/) 대신에 op=(+=,-=,/=)을 쓰는걸 생각해 봐라.
          * Item 24: Understand the costs of virtual functions, multiple ingeritance, virtual base classes, and RTTI [[BR]] - 가상 함수, 다중 상속, 가상 기초 클래스, RTTI(실시간 형 검사)에 대한 비용을 이해하라
          * Item 25: Virtualizing constructors and non-member functions. - 생성자와 비멤버 함수를 가상으로 돌아가게 하기.
          * Item 26: Limiting the number of objects of a class - 객체 숫자 제한하기.
          * Item 27: Requiring or prohibiting heap-based objects. - Heap영역을 사용하는 객체 요구하기 or 피하기.
          * Item 28: Smart pointers - 똑똑한 포인터:스마트 포인터
          * Item 29: Reference counting - 참조 세기
  • Omok/재니 . . . . 38 matches
         #include <iostream.h>
         #include <conio.h>
         int key, x = 9, y = 9;
         int winner = 0;
         int main()
          while(winner == 0)
          if (winner != 0)
          continue;
          cout << "Winner is ";
          if(winner == 1)
          else if(winner == 2)
          for (int i = 0 ; i < 19 ; i++)
          for (int j = 0 ; j < 19 ; j++)
          int cx, cy, num;
          winner = 2;
          winner = 1;
          winner == 0;
         #include <iostream>
         using namespace std;
          int m_Board[19][19];
  • One/김태형 . . . . 38 matches
         #include <stdio.h>
         int main()
         int number; /*각각의 수*/
          printf("%d ", number);
         #include <stdio.h>
         int main()
         int number=1; /* 1부터 10까지 각각의 수*/
          printf("%d\n", number);
         #include <stdio.h>
         int main()
          int number; /* 각각의 수 */
          continue;
          printf("%d ", number);
         #include <stdio.h>
         int main()
         int number; /*1부터 10까지 각각의 수*/
         int total=0; /*1부터 10까지의 총합*/
          printf("1부터 10까지의 합은 %d 입니다.", total);
         #include <stdio.h>
         int main()
  • PrimeNumberPractice . . . . 38 matches
         #include <iostream>
         using namespace std;
         const int scope = 2000;
         void SetScope(int scope[], int length);
         void CalculatePrimeNumber(int scope[], int length);
         void PrintPrimeNumber(int scope[], int lengh);
         // this program print prime number in scope 1 to 2000
         int main(void) {
          int targetNumberScope[scope + 1];
          PrintPrimeNumber(targetNumberScope, scope);
         void SetScope(int scope[], int length) {
          for (int i = 0; i < length; i++)
         void CalculatePrimeNumber(int scope[], int length) {
          for (int masterIter = 2; masterIter < length; masterIter++) {
          for (int i = 2, secondIter = masterIter * i; secondIter < length; secondIter = masterIter * ++i) {
         void PrintPrimeNumber(int scope[], int length) {
          for (int i = 1; i < length; i++) {
          static final int SCOPE = 2000;
          private static void InitializeNumberPool() {
          for (int i = 0; i <= SCOPE; i++)
  • RandomWalk2/상규 . . . . 38 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         #define MAX_JOURNEY 1024 // 최대 여정 수
         int walk(int m, int n, int starti, int startj, char journey[MAX_JOURNEY], int **board);
         void main()
          int m, n;
          int starti, startj;
          cout << "Input :\n";
          cin >> m >> n;
          cin >> starti >> startj;
          int offset=0;
          cin.getline(buffer,MAX_JOURNEY);
          int count;
          int **board=new int*[m];
          for(int i=0;i<m;i++)
          board[i]=new int[n];
          for(int j=0;j<n;j++)
          for(int j=0;j<n;j++)
         int walk(int m, int n, int starti, int startj, char journey[MAX_JOURNEY], int **board)
  • Slurpys/이상규 . . . . 38 matches
         #include <stdio.h>
         bool checkSlump(char str[], int index, int *end)
          if(str[index] == 'D' || str[index] == 'E')
          index++;
          if(str[index] == 'F')
          while(str[index] == 'F')
          index++;
          if(str[index] == 'G')
          *end = index + 1;
          else if(checkSlump(str, index, end))
         bool checkSlimp(char str[], int index, int *end)
          if(str[index] == 'A')
          index++;
          if(str[index] == 'H')
          *end = index + 1;
          else if(str[index] == 'B')
          index++;
          if(checkSlimp(str, index, end))
          index = *end;
          if(str[index] == 'C')
  • SmallTalk/강좌FromHitel/강의3 . . . . 38 matches
          1.4.1. Dolphin Smalltalk 등록하기
         1.4.1. Dolphin Smalltalk 등록하기
         이제까지 우리는 Dolphin Smalltalk를 사용하면서 저장 기능을 사용할 수 없
         Arts사(社)는 공개용으로 사용할 수 있는 Dolphin Smalltalk 98 / 1.1판을
         도록 하고 있습니다. 이는 Dolphin Smalltalk를 사용하는 사람들이 어떤 계
         Dolphin Smalltalk를 시작합니다. 그런 다음 File > Exit Dolphin 메뉴를 실
         행시켜서 Dolphin Smalltalk를 종료합니다. 이 때 현재 Smalltalk의 상황을
         * Product: 사용하고 있는 Dolphin Smalltalk의 종류. 우리는 1.1판을 고르
          Dolphin Smalltalk에 대해 처음어로 접한 매체를 고릅니다.
         * Intended use of this product?
          Dolphin Smalltalk를 어떤 목적에 사용할 것인지를 묻습니다.
          Dolphin Smalltalk를 몇 번만에 전송받았는지를 묻습니다.
         등록 절차를 마치면 이제부터 여러분의 컴퓨터에 설치되어 있는 Dolphin
         이렇게 해서 발급받은 password를 (1)과 마찬가지로 입력하게 되면 Dolphin
         을 것입니다. 이제 저장 기능을 사용할 수 있는 여러분의 Dolphin Smalltalk
          font: (Font name: 'Arial' pointSize: 36) bold;
          text: Time now printString at: 10@10;
         > Exit Dolphin 메뉴를 사용해서 Dolphin Smalltalk를 끝내봅시다. 이 때
         다. Windows의 바탕 화면이 표시되어있다면 글쇠를 눌러서 바탕 화면을
          digitalClockProcess terminate.
  • TheJavaMan/테트리스 . . . . 38 matches
          int blockType;
          int []blockX;
          int []blockY;
          int blockDirection;
          int delayTime;
          public void init() {
          blockX = new int[4];
          blockY = new int[4];
          blockType = Math.abs(r.nextInt() % 7);
          for(int i=0;i<12;i++) {
          for(int j=0;j<21;j++) {
          for(int i=0;i<4;i++) {
          for(int i=0;i<12;i++) {
          for(int j=0;j<21;j++) {
          for(int i=0;i<4;i++) {
          blockType=Math.abs(r.nextInt() % 7);
          delLine();
          for(int i=0;i<4;i++) {
          public void delLine()
          for(int row=20; row>=0; row--) {
  • .vimrc . . . . 37 matches
         set autoindent " 자동으로 들여쓰기를 한다.
         set bs=2 " allow backspacing over everything in insert mode
         set viminfo='20,"50 " read/write a .viminfo file, don't store more
         set incsearch
         let TE_WinWidth = 20 " TagExplorer 창크기 조절
         map <F3> [{v]}zf " file folding
         map <F4> zo " file unfolding
         map <C-F12> :make again<CR> " 모두 새로 빌드
         vnoremap <c-a> :IncN<CR>
         filetype indent on
         filetype plugin on
         au BufWinLeave *.py mkview " 보던 .py 파일의 예전 위치에 커서 위치시키기
         au BufWinEnter *.py silent loadview "
         au BufWinLeave *.c mkview " 보던 .c 파일의 예전 위치에 커서 위치시키기
         au BufWinEnter *.c silent loadview "
         au BufNewFile *.cpp call InsertSkeleton()
         au BufNewFile *.h call InsertHeaderSkeleton()
         function! InsertSkeleton()
          call InsertInclude()
         function! InsertHeaderSkeleton()
  • 02_Python . . . . 37 matches
         = 02 Python Seminar =
          * 대부분의 정보는 Learning Python 에서 발최 .. 그책이 가장 쉬울꺼 같습니다.
         = Date of Seminar =
         = Main Contents =
          * 가장 정확하게 말하자면 객체 지향 스크립 언어이다. (see also Ousterhout's IEEE Computer article ''Scripting: Higher Level Programming for the 21st Century'' at http://home.pacbell.net/ouster/scripting.html )
         see also http://fallin.lv/PythonRumors
          * Infoseek 이란 포탈 싸이트는 일부 검색엔진을 파이썬 기반으로 사용한다
          * Industrial Light and Magic 사는 파이썬을 사용하여 광고용 에니메이션을 제작한다
          #include <stdio.h>
          int main(void)
          printf("Hello World\n");
          #include <iostream.h>
          int main()
          public static void main(String[] args)
          System.out.println("Hello World");
          Print "Hello World"
         === Quick Sort in Python ===
          ltList=[y for y in aList[1:] if y<aList[0]]
          gtList=[y for y in aList[1:] if y>=aList[0]]
          '' 기존 C 나 C++ 의 경우는 어떠한 변수를 지정할떄 타입을 꼭 지정해 줘야했다 그 예로 int 나 char 이 있다 하지만 파이썬의 경우는
  • AcceleratedC++/Chapter12 . . . . 37 matches
         = Chapter 12 Making class objects act like values =
         12장에서는 string 클래스의 클론 버전인 Str 클래스를 제작한다. Str 클래스는 string 클래스의 형변환과 연산자의 구현에 초점을 맞추어서 제작한다.
         == 12.1 A simple string class ==
          std::copy(cp, cp+std::strlen(cp), std::back_inserter(data));
          template<class In> Str(In b, In e) {
          std::copy(b, e, std::back_inserter(data));
         상기의 클래스에는 Str(const char*) 타입의 생성자가 존재하기 때문에 이 생성자가 Str 임시 객체를 생성해서 마치 '''사용자 정의 변환(user-define conversion)'''처럼 동작한다.
         '''string 에서 가능했던 연산들'''
         cin>>s;
          Vec<int> data;
         이 구현의 세부적인 작동방식은 모두 Vec 클래스로 위임하였다. 대신에 const 클래스와 const 가 아닌 클래스에 대한 버전을 제공하였고, 표준 string 함수와의 일관성 유지를 위해서 string 대신에 char& 형을 리턴하도록 하였음.
         cin>>s;
         cin.operator>>(s); // istream 을 우리가 만든 객체가 아니기 때문에 재정의할 수 없다.
         s.operator>>(cin); // 표준 istream 의 형태가 아니다.
         s>>cin
          // input operator implemented in 12.3.2/216
          std::copy(s.data.begin(), s.data.end(),
          std::back_inserter(data));
          std::copy(cp, cp + std::strlen(cp), std::back_inserter(data));
          template <class In> Str(In i, In j) {
  • ClassifyByAnagram/재동 . . . . 37 matches
          self.anagram.inputWord('abc')
          self.anagram.inputWord('cba')
          self.assertEquals(expect, self.anagram.getSortWordString())
          def testIsWordListInAnagramList(self):
          self.anagram.inputWord('cba')
          self.assertEquals(expect1, self.anagram.isWordListInAnagramList())
          self.anagram.inputWord('zzz')
          self.assertEquals(expect2, self.anagram.isWordListInAnagramList())
          self.anagram.inputWord('cba')
          self.anagram.inputWord('cba')
          self.anagram.inputWord('bac')
          self.anagram.inputWord('abab')
          def __init__(self):
          def inputWord(self, word):
          self.wordString = word
          for i in range(len(self.wordString)):
          self.wordList.append(self.wordString[i])
          def isWordListInAnagramList(self):
          for i in range(len(self.anagramList)):
          if self.anagramList[i][0] == self.getSortWordString():
  • HowToStudyXp . . . . 37 matches
         ExtremeProgramming을 어떻게 공부할 것인가
          * XP Explained (Kent Beck) : XP 선언서
          * XP Installed (Ron Jeffries et al) : C3 프로젝트에 적용한 예, 얻은 교훈 등
          * Planning XP (Kent Beck, Martin Fowler) : 계획 부분만 설명 (관리자, 코치용)
          * ["Refactoring"] (by Martin Fowler) : 리팩토링에 대한 최고의 책
          * The Timeless Way of Building : 패턴 운동을 일으킨 Christopher Alexander의 저작. On-site Customer, Piecemeal Growth, Communication 등의 아이디어가 여기서 왔다.
          * XP in Practice (Robert C. Martin et al) : 두 세 사람이 짧은 기간 동안 간단한 프로젝트를 XP로 진행한 것을 기록. Java 사용. (중요한 문헌은 아님)
          * XP Examined (논문 모음집) : XP 컨퍼런스에 발표된 논문 모음
          * Surviving Object-Oriented Projects (Alistair Cockburn) : 얇고 포괄적인 OO 프로젝트 가이드라인
          * The Psychology of Computer Programming (Gerald M. Weinberg) : 프로그래밍에 심리학을 적용한 고전. Egoless Programming이 여기서 나왔다.
          * IEEE Software/Computer, CACM, ["SoftwareDevelopmentMagazine"] 등에 실린 기사
          * 유즈넷, 메일링 리스트, OriginalWiki의 논의들
          * http://groups.yahoo.com/group/extremeprogramming
          * http://c2.com/cgi/wiki?ExtremeProgrammingRoadmap
          * [http://groups.google.co.kr/groups?hl=ko&lr=&ie=UTF-8&newwindow=1&group=comp.software.extreme-programming news:comp.software.extreme-programming]
          * http://groups.yahoo.com/group/refactoring
          * http://groups.yahoo.com/group/agile-testing
          * [http://groups.google.co.kr/groups?dq=&num=25&hl=ko&lr=&ie=UTF-8&newwindow=1&group=comp.object&start=0 news:comp.object]
          * XP mailing list
          * OriginalWiki
  • JollyJumpers/서지혜 . . . . 37 matches
         {{{#include <stdio.h>
         #include <memory.h>
         #include <math.h>
         int main(){
          int count;
          int a[3000];
          if(feof(stdin)) break;
          if(feof(stdin)) break;
          for(int i=0; i<count; i++){
          for(int i=1; i<count; i++){
          int index = abs(a[i]-a[i-1]);
          if(isJ[index]) {
          isJ[index] = true;
          for(int i=1; i<count; i++){
          printf("Not jolly\n");
          continue;
          printf("jolly\n");
          continue;
         #include <stdio.h>
         #include <memory.h>
  • LoveCalculator/zyint . . . . 37 matches
         #include <iostream>
         #include <string>
         #include <vector>
         #include <math.h>
         #include <iomanip> //setprecision
         #include <ios> //precision
         using namespace std;
         size_t strlen(const string str);
         string upper(string str);
         size_t getValue(string c);
         int make1digit(int a);
         int main()
          string tmp;
          vector<string> instr;
          while(cin >> tmp) instr.push_back(tmp);
          for(vector<string>::iterator i=instr.begin();i<instr.end();++i)
         size_t strlen(const string str)
          int i=0;
         string upper(string str)
          int i;
  • ZeroPageServer/set2002_815 . . . . 37 matches
          * mm.mysql -> MySQL Connector/J -- for connecting to MySQL from Java (공식 JDBC드라이버)
          * Resin , Apache 시작 순서 문제
          * Terminal에서 Home키와 End키 먹도록 세팅
          * httpd/WEB-INF/classes/woodpage, home/httpd/html/woodpage 삭제
          * Admin 툴은 누가 만들었고, 정확한 용도는 무엇인가? 모든 게시판이 표시되지는 않는다, 이유는 무엇인가?
          ''게시판 Admin 툴을 이야기하는건지? 맞다면.. '''만든이는''' ["sun"]이고 '''용도'''는 게시판 생성/삭제를 쉽게 하려는 의도에서 였으며, '''모든''' 게시판이 표시되지는 않는것은 툴을 만들었던 시점이, 자게,질/답 등 이미 몇몇 게시판이 만들어진 이후였기 때문(변경을 게을러서 안했음). --["sun"]''
          * ZeroWiki - moinmoin 0.10 으로 돌리는중
          * ["CVS"] 이용가능 (["neocoin"] 에게 신청)
          * CGI Script (Perl, ["Python"] 1.53), PHP (4.2 일것임), JSP & Servlet (Resin 1.2 )
          * Web에서 CGI권한을 허용 받으려면 관리자(["neocoin"])에게 문의
         == About Setting ==
          * Pain
          * 류상민 (99, ["neocoin"] ) : 하겠다고 덤빈 사람
          * no Pain
          * 이번 세팅의 목적은 '''좀더 편한 패키지 관리, 안정된 환경'''을 위해서이다. 그래서 상민이의 물망에 오른 것이 Zentoo Linux와 Debian, FreeBSD 정도 인데, 기본적으로 Linux를 택해서, FreeBSD와 Zentoo Linux와 Debian 비교에서 사용자 층과 편이성면에서 Debian이 더 우수하게 느껴져 선택하였다.
          * Encoding
          * Resin
          * Resin 상태 확인
          * JSP (Encoding 테그 추가)
          * [[HTML( <STRIKE> 서버 세팅 공지 setting </STRIKE> )]]
  • 고한종/팩토리얼 . . . . 37 matches
         #include <stdio.h>
         int multi;
         int fact(int a);
         int main()
          int input;
          scanf("%d",&input);
          printf("%d",fact(input));
         int fact(int num)
         #include <stdio.h>
         int fact(int num);
         int main()
          int input;
          scanf("%d",&input);
          printf("%d",fact(input));
         int fact(int num)
         #include <stdio.h>
         int fact(int num1)
          int num2 = 1;
          int multi = 1;
         int main()
  • 데블스캠프/2013 . . . . 37 matches
          || 1 |||| [Opening] |||| [새내기의,새내기에의한,새내기를위한C언어] |||| [http://zeropage.org/seminar/91465#0, GUI 다뤄보기] |||| |||| [Clean Code with Pair Programming] |||| OOP || 8 ||
          || 2 |||| [http://zeropage.org/seminar/91479#0 페이스북 게임 기획] |||| [새내기의,새내기에의한,새내기를위한C언어] |||| [http://zeropage.org/seminar/91465#0, GUI 다뤄보기] |||| |||| [Clean Code with Pair Programming] |||| OOP || 9 ||
          || 3 |||| [http://intra.zeropage.org:4000/DevilsCamp Git] |||| [새내기의,새내기에의한,새내기를위한C언어] |||| [http://zeropage.org/devils/91470#0, HTTP 프로토콜, C언어를 이용한 웹 서버 만들기] |||| |||| [Clean Code with Pair Programming] |||| [:WebKitGTK WebKitGTK+] || 10 ||
          || 4 |||| [http://intra.zeropage.org:4000/DevilsCamp Git] |||| [http://zeropage.org/seminar/91448 로우레벨로 보는 Physical MAC Cross Layer] |||| [http://zeropage.org/devils/91470#0, HTTP 프로토콜, C언어를 이용한 웹 서버 만들기] |||| |||| [진격의안드로이드&Java] |||| [:WebKitGTK WebKitGTK+] || 11 ||
          || 5 |||| [http://intra.zeropage.org:4000/DevilsCamp Git] |||| [http://zeropage.org/seminar/91448 로우레벨로 보는 Physical MAC Cross Layer] |||| [http://zeropage.org/devils/91470#0, HTTP 프로토콜, C언어를 이용한 웹 서버 만들기] |||| |||| [진격의안드로이드&Java] |||| 밥 or 야식시간! || 12 ||
          || 6 |||||||||||||||||||| 밥 or 야식시간! |||| [:ParadigmProgramming Paradigm Programming] || 1 ||
          || 7 |||| [:데블스캠프2013/첫째날/ns-3네트워크시뮬레이터소개 ns-3 네트워크 시뮬레이터 소개] |||| [:데블스캠프2013/둘째날/API PHP + MySQL] |||| [:아두이노장난감만드는법 아두이노 장난감 만드는 법] |||| |||| [:개발과법 개발과 법] |||| [:ParadigmProgramming Paradigm Programming] || 2 ||
          || 8 |||| ns-3 네트워크 시뮬레이터 소개 |||| [:데블스캠프2013/둘째날/API PHP + MySQL] |||| [http://zeropage.org/index.php?mid=seminar&document_srl=91554 Machine Learning] |||| |||| [MVC와 Observer 패턴을 이용한 UI 프로그래밍] |||| [아듀 데블스캠프 2013] || 3 ||
          || 9 |||| [개발업계 이야기] |||| [:데블스캠프2013/둘째날/API PHP + MySQL] |||| [http://zeropage.org/index.php?mid=seminar&document_srl=91554 Machine Learning] |||| |||| MVC와 Observer 패턴을 이용한 UI 프로그래밍 |||| [아듀 데블스캠프 2013] || 4 ||
          || 10 |||||||||||||||||||| |||| [Ending] || 5 ||
         || 김민재(22기) || Opening ||
         || 박지상(5기) || [http://zeropage.org/seminar/91479#0 페이스북 게임 기획] ||
         || 안혁준(18기) || [http://intra.zeropage.org:4000/DevilsCamp Git] ||
         || 윤종하(20기) || [http://zeropage.org/seminar/91448 로우레벨로 보는 Physical MAC Cross Layer] ||
         || 김홍기(18기) || [http://zeropage.org/seminar/91465#0, GUI 다뤄보기] ||
         || 김태진(21기) || [http://zeropage.org/index.php?mid=seminar&document_srl=91554 Machine Learning] ||
         || 송지원(16기) || [Clean Code with Pair Programming] ||
         || 서지혜(17기) || Paradigm Programming ||
         || 김민재(22기) || Ending ||
  • 만년달력/강희경,Leonardong . . . . 37 matches
         #include <iostream>
         #include <climits>
         using namespace std;
         void output(int , int);
         int deter_date(int, int);
         int lastdays(int, int);
         int how_much_days(int, int);
         int main()
          int year, month;
          cin >> year;
          cin >> month;
          if ( year <= 0 || year >INT_MAX || month <=0 || month>12)
          continue;
         void output(int year, int month)
          int days = how_much_days(year, month);
          int date;
          for ( int j=0 ; j<date ; j++) //숫자를 찍기 전에 요일만큼 빈칸을 찍어줌
          for ( int i=0 ; i<days ; i++) //1에서 days까지 출력
         int deter_date(int year, int month )//요일을 정하는 함수(0은 일요일, 6은 토요일)
         int lastdays(int year, int month)//지난 달 날수를 계산
  • 컴퓨터공부지도 . . . . 37 matches
         Scientist . Engineer . Programmer 의 영역. (꼭 이분법적으로 나누는건 좀 그렇지만. 일종의 간단한 분류체계정도?)
         === Windows Programming (Windows Platform Programming) ===
         Windows Programming 이라고 한다면 Windows 운영체제에서 Windows 관련 API 를 이용 (혹은 관련 Framework), 프로그래밍을 하는 것을 의미한다. 보통 다루는 영역은 다음과 같다. (이 영역은 꼭 Windows 이기에 생기는 영역들이 아니다. Windows 이기에 생기는 영역들은 Shell Extension 이나 ActiveX, DirectX 정도? 하지만, 가로지르기는 어떻게든지 가능하다)
         ==== GUI Programming ====
         예전에 Windows Programming 을 배운다고 한다면 기본적으로 GUI Programming 을 의미했다. Windows 가 기본적으로 GUI OS 이기에 기본이 이것이라고 생각하는 것이다. 하지만, GUI 는 어디까지나 'User Interface' 이다. 즉, 이건 Input/Output 에 대한 선택사항이다. 필요할때 공부하자. (하지만, 보통 User-Friendly 한 프로그램들은 대부분 GUI 이다.)
         Windows 에서 GUI Programming 을 하는 방법은 여러가지이다. 언어별로는 Python 의 Tkinter, wxPython 이 있고, Java 로는 Swing 이 있다. C++ 로는 MFC Framework 를 이용하거나 Windows API, wxWindows 를 이용할 수 있으며, MFC 의 경우 Visual Studio 와 연동이 잘 되어서 프로그래밍 하기 편하다. C++ 의 다른 GUI Programming 을 하기위한 툴로서는 Borland C++ Builder 가 있다. (C++ 중급 이상 프로그래머들에게서 오히려 더 선호되는 툴)
         가장 쉽게 GUI Programming 을 배우는방법이라 생각되는건, Python 에서의 Tkinter Programming 또는 Jython Interpreter 에서 Swing Tutorial 을 이용하는것이다. (["Jython"] 페이지의 JythonTutorial 참조)
         GUI Programming 을 하면서 익힐 수 있는 소중한 개념으로서 Event Driven Programming, Design 으로는 CompositePattern 이 있다. 대부분의 GUI Framework 들은 Event Driven Style 의 프로그래밍 방식이며, 대부분 CompositePattern 을 이용한다. Framework 들의 디자인 개념들이 비슷하므로, 하나의 GUI 관련 Framework 에 익숙해지면 다른 Framework 도 쉽게 익힐 수 있다.
         Windows GUI Programming 관련 서적으로는 찰스페촐드의 책을 추천한다. 책 내용이나 번역(!)글이 어렵지만 개념설명이 잘 되어 있으며, 실려있는 예제들이 좋다.
         ==== Windows API ====
         ==== Network Programming ====
         ==== Multi Thread Programming ====
         === 3D Programming ===
         === Network Programming ===
         이를 위해 Interactive Shell이 지원되는 인터프리터 언어(e.g. Python)와 패킷 스니퍼(e.g. tcpdump, ethereal, etherpeek, ...), 웹 브라우져, FTP, TELNET 클라이언트 등을 이용할 수 있다.
         See Also HowToStudyXp, HowToReadIt, HowToStudyDataStructureAndAlgorithms, HowToStudyDesignPatterns, HowToStudyRefactoring
  • 현종이 . . . . 37 matches
          int m_nNumber, m_nKorean, m_nEnglish, m_nMath;
          int m_nTotal; //점수 합계를 나타냅니다.
          SungJuk(const char *name,int nNumber, int nKorean, int nEnglish, int nMath);
          int GetTotal(); //점수합계를 호출하는 매써드입니다.
          void PrintResult(); //결과를 출력합니다.
          void TopTotal_Print();
          void Top_Print(); //전체수석을 출력합니다.
          void TopKorean_Print(); //국어점수 수석을 출력합니다.
          void TopEnglish_Print(); //영어점수 수석을 출력합니다.
          void TopMath_Print(); //수학점수 수석을 출력합니다.
          void Input(int nNumber, char szName[], int nKorean, int nEnglish, int nMath);
         #include<iostream>
         using namespace std;
         #include<iostream> //strcpy()
         #include"SungJuk.h"
         int SungJuk::GetTotal()
         void SungJuk::PrintResult()
         void SungJuk::TopTotal_Print()
         void SungJuk::TopKorean_Print()
         void SungJuk::TopEnglish_Print()
  • 희경/엘레베이터 . . . . 37 matches
         #include<iostream>
         #include<fstream>
         using namespace std;
         int main()
          ifstream fin("input.txt");
          int number;
          int floor;
          int people = 0;
          int in;
          int out;
          fin >> number;
          while(fin >> floor >> in >> out)
          people = people + in - out;
          << in << "명이 타고 " << out << "명이 내려서" << endl
         #include<iostream>
         #include<fstream>
         using namespace std;
         int main()
          ifstream fin("input.txt");
          int number;
  • 05학번만의C++Study/숙제제출4/최경현 . . . . 36 matches
         #include <iostream>
         using namespace std;
         class String
          int m_number;
          String(int input_number);
          String();
          ~String();
          int check(int check_number);
         String::String(int input_number)
          m_number = input_number;
         String::String()
         String::~String()
         int String::check(int check_number)
         int main()
          String *test[255];
          int number;
          for( int i = 0; i < 255; i++)
          cin >> number;
          int check2=0;
          int check_number[255] ;
  • AnEasyProblem/강소현 . . . . 36 matches
         ||Problem|| 2453||User||talin0528||
         public class Main{
          public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          while(sc.hasNextInt()){
          int i = sc.nextInt();
          printJ(i);
          private static void printJ(int i){
          int [] bin = binI(i);
          int num = 0, count=0;
          while(num<bin.length-1){
          if(bin[num] == 1){
          if(bin[num+1] == 0){
          bin[num+1] = 1;
          bin[num] = 0;
          bin[num] = 0;
          bin[count++] = 1;
          int result = 0;
          for(int k=0; k<bin.length;k++){
          result += bin[k]*Math.pow(2,k);
  • C 스터디_2005여름/학점계산프로그램/김태훈김상섭 . . . . 36 matches
         #define CLASSH
         #include <string>
         #include <vector>
         using namespace std;
          Score(string n, vector<double> s)
          void setname(string n)
          for(vector<double>::iterator i=score.begin();i !=score.end();++i)
          string getname() { return name; }
          string name;
          int MAX_SUB;
         = main.cpp =
         #include <fstream>
         #include <vector>
         #include <algorithm>
         #include <iostream>
         #include "class.h"
         using namespace std;
         const int MAX_SUB = 4;
         double changescore(string score);
         int main()
  • LearningToDrive . . . . 36 matches
         I can remeber clearly the day I first began learning to drive. My mother and I were driving up Interstate 5 near Chico, California, a horizon. My mom had me reach over from the passenger seat and hold the steering wheel. She let me get the feel of how motion of the wheel affected the dirction of the car. Then she told me, "Here's how you drive. Line the car up in the middle of the lane, straight toward the horizon."
         I very carefully squinted straight down the road. I got the car smack dab in the middle of the lane, pointed right down the middle of the road. I was doing great. My mind wandered a little...
         I jerked back to attention as the car hit the gravel. My mom (her courage now amazes me) gently got the car back straight on the road. The she actually taught me about driving. "Driving is not about getting the car goint in the right direction. Driving is about constantly paying attention, making a little correction this way, a little correction that way."
         This is the paradigm for XP. There is no such thing as straight and level. Even if things seem to be going perfectly, you don't take your eyes off the road. Change is the only constant. Always be prepared to move a little this way, a little that way. Sometimes maybe you have to move in a completely different direction. That's life as a programmer.
         Everythings in software changes. The requirements change. The design changes. The business changes. The technology changes. The team changes. The team members change. The problem isn't change, per se, because change is going to happen; the problem, rather, is the inability to cope with change when it comes.
         The driver of a software project is the customer. If the software doesn't do what they want it to do, you have failed. Of course, they don't know exactly what the software should do. That's why software development is like steering, not like getting the car pointed straight down the road. Out job as programmers is to give the customer a steering wheel and give them feedback about exactly where we are on the road.
         from "Learning To Drive - XP explained"
         안되는 영어로 읽고 있는 중인 XP Explained 중. (제대로 뜻을 이해한건지. -_-;)
         소프트웨어 개발을 운전을 배우는 것에 비유한 설명이 재미있네요. software project 의 Driver 는 customer 라는 말과.. Programmer 는 customer 에게 운전대를 주고, 그들에게 우리가 정확히 제대로 된 길에 있는지에 대해 feedback 을 주는 직업이라는 말이 인상적이여서. 그리고 customer 와 programmer 와의 의견이 수렴되어가는 과정이 머릿속으로 그려지는 것이 나름대로 인상적인중. 그리고 'Change is the only constant. Always be prepared to move a little this way, a little that way. Sometimes maybe you have to move in a completely different direction. That's life as a programmer.' 부분도.. 아.. 부지런해야 할 프로그래머. --;
         ["ExtremeProgramming"]
  • MineSweeper/이승한 . . . . 36 matches
         = Mine Sweeper/이승한 =
          for i in range(height):
          for j in range(width):
         for i in range(height):
          for j in range(width):
          M[i][j]=int(0)
         for i in range(height):
          print M[i]
          quantityMine=100;// 지뢰의 갯수 설정
         function setMine(){
          mine_count = 0;
          while(mine_count<quantityMine){
          if( map[i][j]!= -1 && mine_count < quantityMine && !( random(100) % 5 ) ){
          trace("지뢰 배치 " + i + " " + j + " 지금 까지 배치된 지뢰의 갯수 : " + ++mine_count);
         function showMineMap(){
          showMap=temp.join(" ");
         function checkMineMap(){
          minecount = 0;
          if(map[i-1][j-1]=='*')minecount++;
          if(map[i-1][j]=='*')minecount++;
  • One/주승범 . . . . 36 matches
         #include <stdio.h>
         void main()
         { int n = 0;
          continue ;
          printf ("%d ", n) ;
         #include <stdio.h>
         void main()
          int a ;
          int n = 0;
         printf("%d", n);
         {{{~cpp #include <stdio.h>
         void main()
          int a;
          printf (" 숫자를 입력하시오 \n ");
          printf ("%d", a);
          printf (" error \n");
         {{{~cpp #include <stdio.h>
         void main()
          int a;
          printf (" 숫자를 입력하시오 \n ");
  • PreviousFrontPage . . . . 36 matches
         A WikiWikiWeb is a collaborative hypertext environment, with an emphasis on easy access to and modification of information. This wiki is also part of the InterWiki space.
         MoinMoin is a Python WikiClone, based on PikiPiki. The name is a common German slang expression explained on the MoinMoin page. If you run a Wiki using MoinMoin, please add it to the MoinMoinWikis page.
         You are encouraged to add to the MoinMoinIdeas page, and edit the WikiSandBox whichever way you like. Please try to restrain yourself from adding unrelated stuff, as I want to keep this clean and part of the project documentation.
         You can edit any page by pressing the link at the bottom of the page. Capitalized words joined together form a WikiName, which hyperlinks to another page. The highlighted title searches for all pages that link to the current page. Pages which do not yet exist are linked with a question mark: just follow the link and you can add a definition.
         To learn more about what a WikiWikiWeb is, read about WhyWikiWorks and the WikiNature. Also, consult the WikiWikiWebFaq.
         Interesting starting points:
          * RecentChanges: see where people are currently working
          * HelpForBeginners: to get you going
          * WikiSandBox: feel free to change this page and experiment with editing
          * MoinMoinTodo: discussion about the improvement of MoinMoin
          * FindPage: search or browse the database in various ways
  • ReverseAndAdd/이승한 . . . . 36 matches
          reNum = int(reNum[::-1])
          print reNum
         if __name__ == '__main__':
          num = input()
         #include <iostream>
         using namespace std;
         #include <assert.h>
         const int TEN = 10;
         int reverse(int number); //뒤바꾼 수가 원래 수와 같다면 -1 이 리턴
         void main(){
          int N;
          int input[10] = {0};
          int output[10] = {0};
          int outputN[10] = {0};
          int trial = 0;
          cin>> N;
          for(int cycle=0; cycle< N; cycle++ ){
          cin>>input[cycle];
          if( reverse( input[cycle] ) == -1){
          output[cycle] = input[cycle];
  • TicTacToe/후근,자겸 . . . . 36 matches
         import javax.swing.*;
          int x, y;
          int missClicked = 0;
          int arr[][] = new int[3][3];
          public void init() {
          for ( int i=0;i<3;i++ ) {
          for ( int j=0;j<3;j++ )
          int iNyou = 1;
          arr[0][0]=iNyou;
          arr[0][1]=iNyou;
          arr[0][2]=iNyou;
          arr[1][0]=iNyou;
          arr[1][1]=iNyou;
          arr[1][2]=iNyou;
          arr[2][0]=iNyou;
          arr[2][1]=iNyou;
          arr[2][2]=iNyou;
          if(iNyou==1)
          iNyou = 2;
          else if(iNyou==2)
  • TugOfWar/문보창 . . . . 36 matches
         #include <iostream>
         #include <cstdlib>
         using namespace std;
          int left;
          int right;
         const int MAX_CASE = 100;
         const int MAX = 100;
         inline void eatline() { while(cin.get() != '\n') continue; };
         inline int comp(const void *i,const void *j) { return *(int *)i-*(int *)j; };
         int main()
          int nCase;
          int weight[MAX];
          int left[MAX/2];
          int right[MAX/2];
          int nPeople;
          cin >> nCase;
          int i, j, k;
          int sumleft, sumright;
          int lcount, rcount;
          int tempSwap;
  • subsequence/권영기 . . . . 36 matches
         #include<iostream>
         #include<vector>
         using namespace std;
         vector <int> e, sum;
         int main(void)
          int n, s;
          int l, h, m, i, ans = 100020;
          cin>>n>>s;
          cin>>e[i];
         * drying
         #include<iostream>
         #include<vector>
         using namespace std;
         vector <int> laundry;
         int main(void)
          int n, k, i, ans, temp = 0;
          int low, high = 0, mid;
          cin>>n;
          cin>>laundry[i];
          cin>>k;
  • 데블스캠프2010/일반리스트 . . . . 36 matches
         // #include <unistd.h>
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         #define MAX 1000000
         int fn_qsort_intcmp( const void *a, const void *b )
          return( *(int *)a - *(int *)b);
         int main()
          int *a;
          int i;
          int *c;
          a = (int *)malloc(sizeof(int)*MAX);
          qsort( a, MAX, sizeof(int), fn_qsort_intcmp );
         // printf("Time : %.3fs\n",(double)(etime - stime)/CLOCKS_PER_SEC);
         #include <iostream>
         #include <list>
         #include <string>
         #include <cctype>
         using namespace std;
         bool compare_nocase (string first, string second)
  • 정모/2011.4.4/CodeRace/강소현 . . . . 36 matches
         == Main.java ==
         public class Main {
          public static void main(String[] args) {
          Scanner input = new Scanner(System.in);
          while(b.getPeopleIndex() < 3){
          System.out.println("Luke가 강에 빠졌습니다ㅠㅠ");
          System.out.print("강 건널 사람 몇 명(0~2)? ");
          int num = input.nextInt();
          int [] name = new int[num];
          for(int i=0; i<num; i++){
          System.out.print("건널 사람 이름?(Layton: 1, Luke: 2, Bad: 3)->");
          name[i] = input.nextInt();
          for(int i=0; i<num; i++){
          public static boolean mustCheck(int num, int [] name){
          System.out.println("[Error] 배는 2인승이야!");
          System.out.println("[Error] Luke 혼자 못탐ㅋ");
          private String name;
          public void setName(String name){
          public String getName(){
          private String townName;
  • AndOnAChessBoard/허준수 . . . . 35 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int findLine(int input)
          double num = ceil((double)sqrt(input)) ;
          return (int)num;
         void process(int input)
          int line = findLine(input);
          int num = line*line;
          for( int i = 1; i<=(2*line); i++) {
          if(input == num - i + 1) break;
          if(i >= line)
          cout << line << " " << 2*line - i <<endl;
          cout << i << " " << line <<endl;
         int main()
          int input;
          while(cin >> input) {
          if(input == 0) break;
          process(input);
  • C++스터디_2005여름/도서관리프로그램/문보창 . . . . 35 matches
         #define BOOK_H_
          void input();
         #include "book.h"
         #include <iostream>
         #include <cstring>
         using namespace std;
         void Book::input()
          cin >> name;
          cin >> writer;
          cin >> ISBN;
         #define MANAGEBOOK_H_
         #include "book.h"
          void insert_list(Book & b);
          void search(Book & b, bool kind_order);
         #include "manageBook.h"
         #include <iostream>
         #include <cstring>
         using namespace std;
          (*b).input();
          insert_list(*b);
  • JavaScript/2011년스터디/CanvasPaint . . . . 35 matches
          ctx.beginPath();
          if(drawmethod==1) drawLines();
          else if(drawmethod==2) drawDotPoint();
          element=document.getElementById('drawLine');
          dotx=undefined;
          doty=undefined;
          ctx.clearRect(0,0,window.innerWidth-15, window.innerHeight-50);
          function drawDotPoint()
          function drawLines()
          ctx.beginPath();
          ctx.lineWidth=3;
          ctx.lineTo(event.x-7, event.y-7);
          <canvas id="drawLine" width="300" height="300" onmousedown="hold();"
          <select name="colors"onclick="selectColor(this.selectedIndex)">
          <button type="button" onclick="drawMethod(1)"> LINE </button>
          element=document.getElementById("drawLine");
          element.setAttribute("width", window.innerWidth-15);
          element.setAttribute("height", window.innerHeight-50);
          context.strokeRect(0, 0, window.innerWidth-15, window.innerHeight-50);
         if(window.addEventListener){
  • NumberBaseballGame/영동 . . . . 35 matches
         #include<iostream.h>
         #include<stdlib.h>
         #include<time.h>
         int main()
          int i, j;
          int input, input_1, input_2, input_3;
          int pitcher[3]={0,};
          int batter[3]={0,};
          int strike=0;
          int ball=0;
          cin>>input;
          input_1=input/100;
          input_2=(input%100)/10;
          input_3=(input%100)%10;
          }while(input==0 || input>987 || input_1==input_2 || input_2==input_3 || input_1==input_3);
          batter[0]=input_1;
          batter[1]=input_2;
          batter[2]=input_3;
          cout<<"\nYou Win!\n";
  • OurMajorLangIsCAndCPlusPlus/locale.h . . . . 35 matches
         location specific information 를 setting 하는데 유용한 라이브러리
         #define LC_ALL (integer constant expression) 모든 카테고리에 대한 로케일 설정을 위한 환경변수이다
         #define LC_COLLATE (integer constant expression) 스트링(string)의 정렬 순서(sort order 또는 collation)를 위한 로케일 설정을 위해 사용
         #define LC_CTYPE (integer constant expression) 문자 분류(알파벳, 숫자, 한글 또는 소문자, 대문자 등등), 변환, 대소문자 비교을 위한 로케일 설정을 의미
         #define LC_MONETARY (integer constant expression) 금액 표현(천단위 구분 문자, 소수점 문자, 금액 표시 문자, 그 위치 등)을 위한 로케일 설정
         #define LC_NUMERIC (integer constant expression) 금액이 아닌 숫자 표현(천단위, 소수점, 숫자 그룹핑 등)을 위한 로케일 설정
         #define LC_TIME (integer constant expression) 시간과 날짜의 표현(년, 월, 일에 대한 명칭 등)을 위한 로케일 설정 예를 들어 strftime(), strptime()
         #define NULL (either 0, 0L, or (void*)0) (0 in C++)
         char* decimal_point; "." LC_NUMERIC
         char* grouping; "" LC_NUMERIC
         char* int_curr_symbol; "" LC_MONETARY
         char* mon_decimal_point; "" LC_MONETARY
         char* mon_grouping; "" LC_MONETARY
         char int_frac_digits; CHAR_MAX LC_MONETARY
         || struct lconv* localeconv(void); || lconv 구조체를 현재의 location setting 에 맞게 값을 설정한다. ||
         || char* setlocale(int category, const char* locale); || category에 대해 로케일 locale을 설정하고 (물론, 사용 가능한 로케일인 경우), 설정된 로케일값을 리턴. ||
          #include <stddef.h>
          #include <locale.h>
          #include <stdlib.h>
          #include <string.h>
  • Pairsumonious_Numbers/권영기 . . . . 35 matches
         #include<stdio.h>
         #include<memory.h>
         #include<algorithm>
         #include<list>
         #define M 100
         #define N 12
         using namespace std;
         list <int> sum;
         int ans[N], n, flag = 0, checkans[M], temp[M], cnt = 0;
         int checker(){
          memset(checkans, 0, sizeof(int) * M);
          for(int i = 1; i<=n; i++){
          for(int j = i+1; j<=n; j++){
          for(int i = 0; i<cnt; i++){
         void back(int s, list <int>::iterator iter){
          list <int>::iterator it1, it2, temp, tempit;
          int tempsum;
          tempit = find(it2, sum.end(), ans[s-1] + ans[s]);
          //back(s+1, find(it2, sum.end(), ans[s-1] + ans[s]));
         int main(void)
  • ProgrammingWithInterface . . . . 35 matches
         상속을 사용하는 상황을 국한 시켜야 할 것같다. 상위 클래스의 기능을 100%로 사용하면서 추가적인 기능을 필요로 하는 객체가 필요할 때! .. 이런 상황일 때는 상속을 사용해도 후풍이 두렵지 않을 것 같다. GoF의 책이나 다른 DP의 책들은 항상 말한다. 상속 보다는 인터페이스를 통해 다형성을 사용하라고... 그 이유를 이제야 알 것같다. 동감하지 않는가? Base 클래스를 수정할 때마다 하위 클래스를 수정해야 하는 상황이 발생한다면 그건 인터페이스를 통해 다형성을 지원하는게 더 낫다는 신호이다. 객체는 언제나 [[SOLID|SRP (Single Responsiblity Principle)]]을 지켜야 한다고 생각한다.
          private int topOfStack = 0;
          for(int i=0; i<articles.length; ++i)
         상위 클래스가 가지는 메소드가 적다면 모두 [오버라이딩]하는 방법이 있지만 만약 귀찮을 정도로 많은 메소드가 있다면 오랜 시간이 걸릴 것이다. 그리고 만약 상위 클래스가 수정된다면 다시 그 여파가 하위 클래스에게 전달된다. 또 다른 방법으로 함수를 오버라이딩하여 예외를 던지도록 만들어 원치않는 호출을 막을 수 있지다. 하지만 이는 컴파일 타임 에러를 런타임 에러로 바꾸는 것이다. 그리고 LSP (Liskov Sustitution Principle : "기반 클래스는 파생클래스로 대체 가능해야 한다") 원칙을 어기게 된다. 당연히 ArrayList를 상속받은 Stack은 clear 메소드를 사용할 수 있어야 한다. 그런데 예외를 던지다니 말이 되는가?
          private int topOfStack = 0;
          for(int i=0; i<articles.length; ++i)
          public int size() {
          private int maxHeight = 0;
          private int minHeight = 0;
          if(size() < minHeight)
          minHeight = size();
          public int maximumSize() { return maxHeight; }
          public int minimumSize() { return minHeight; }
          private int topOfStack = -1;
          public int size() {
         interface Stack {
          int size();
          private int topOfStack = 0;
          for(int i=0; i<articles.length; ++i)
          public int size() {
  • ScheduledWalk/창섭&상규 . . . . 35 matches
          * 여정이 끝났는지 확인할 수 있다.(IsFinished)
         #include <iostream>
         #include <cstring>
         using namespace std;
          int width;
          int height;
          int x;
          int y;
          int *JourneyArray;
          int Length;
          int CurrentPosition;
          JourneyArray=new int[Length];
          for(int i=0;i<Length;i++)
          int GetNextDirection()
          if(IsFinished())
          bool IsFinished()
          int **BoardArray;
          int TraceCount;
          BoardArray = new int* [size.height];
          for (int i = 0; i < size.height; i++)
  • SeminarHowToProgramIt . . . . 35 matches
         see also SeminarHowToProgramItAfterwords
          * ["CrcCard"] (Index Card -- The finalist of Jolt Award for "design tools" along with Rational Rose Enterprise Edition)
          * Paper Shell Programming -- Becoming a Pseudo-Turing Machine Yourself
          * Stepwise Refinement -- 진부한 미래, 신선한 과거 (see also NoSmok:ProgrammingOnPurpose )
          * PairProgramming -- 1+1 > 2
          * ["Refactoring"] -- 후각 개발법
          * Coding Style -- esp. How to Name it (프로그래머를 위한 정명학. "子曰 必也正名乎...名不正則言不順 言不順則事不成" <논어> 자로편)
          * Managing To Do List -- How to Become More Productive Only With a To-do List While Programming
          * Programmer's Journal -- Keeping a Diary (see also NoSmok:KeepaJournalToLiveBetter )
          * Lifelong Learning as a Programmer -- Teach Yourself Programming in Ten Years (http://www.norvig.com/21-days.html )
          * What to Read -- Programmer's Reading List
         세미나는 실습/토론 중심의 핸드온 세미나가 될 것이며, 따라서 인원제한이 있어야 할 것임. 약 20명 내외가 적당할 듯. ("Tell me and I forget, teach me, and I may remember, involve me and I learn." -- Benjamin Franklin)
         === 프로그램 (pun intended) ===
          * [http://zeropage.org/~sun/eclipse-SDK-20020321-win32.zip Eclipse]
          ["neocoin"]:위키에 특정 로그인이 존재 하지 않고,열어논 이유가 글을 쓰고 의견을 주십사 해서 입니다. 저번달 누군가 함부로 지우는 사태가 발생해서 일단 지우는 권한에 대하여 HGC(Human Garbage Collector- 아니라 KHGC인가.--a)체제로 바꾸었지만요. --상민
         ||Crc Card & Index Card & White Board||1 ||
         ||Paper Shell Programming ||1 ||
         ||Stepwise Refinement ||1 ||
         ||PairProgramming ||6 ||
         ||["Refactoring"] ||3 ||
  • TheTrip/문보창 . . . . 35 matches
         #include <iostream>
         #include <cmath>
         #include <cstdlib>
         using namespace std;
         const int MAX = 100;
         int exchangeMoney(const int * cost, const int n);
         void showExchange(const int * ex, const int count);
         int main() // cent단위로 계산
          int n; // 학생수
          int exchangeCost[MAX]; // 교환값
          int i, c;
          int count = 0;
          while (cin >> n)
          cin.get();
          int costs[1000]; // 각 학생들의 지출 비용
          while (cin.peek() != 'n')
          if (cin.peek() == '.')
          cin.get();
          cin.get(money[c++]);
          cin.get();
  • html5/form . . . . 35 matches
          * http://nz.pe.kr/wordpress/programming/html5/번역-지금-바로-cross-browser-html5-form-만드는-방법
          * max and min - 유요한 날짜, 시간 그리고 숫자 값
          * placeholder - field에 text hint를 보여 줌
          * {{{<input type="range" min=0 max=10 step=2 value=2>}}}
          * {{{<input type="number" min=1 max=10 step=1 value=5>}}}
          * {{{<input type="date" min="2001-01-01" max="2010-08-31" step=1 value="2010-08-26">}}}
          * {{{<input type="datetime"><input type="datetime-local"><input type="month">}}}
          * {{{<input type="week"><input type="time">}}}
         == input-type ==
          * 참고: 새로운 입력(input) 양식에 대한 다음 글을 참고하기 바란다
          * http://www.w3schools.com/html5/html5_form_input_types.asp
         = input support =
         <input type='search' autofocus>
         <input type='email' placeholder="이메일 주소 입력">
         <input type='tel' placeholder="전화번호 입력">
          * {{{<input type='file' multiple>}}}
          * file filtering
          * {{{<input type='file' accept="image/gif">}}}
          <input type="submit" formmethod="POST" formaction="/formOk.html">
          * input 박스에 포커스가 오면 이 리스트를 보여준다
  • minesweeper/Celfin . . . . 35 matches
         #include <iostream>
         using namespace std;
         char mine[102][102];
         int x, y, i, j;
         int field=0;
         int blank=0;
         void SearchMine()
          if(mine[j][i]!='*')
          mine[j][i]=48;
          if(mine[j-1][i-1]=='*')
          mine[j][i]++;
          if(mine[j-1][i]=='*')
          mine[j][i]++;
          if(mine[j-1][i+1]=='*')
          mine[j][i]++;
          if(mine[j][i+1]=='*')
          mine[j][i]++;
          if(mine[j+1][i+1]=='*')
          mine[j][i]++;
          if(mine[j+1][i]=='*')
  • 데블스캠프2009/목요일/연습문제/다빈치코드/박준호 . . . . 35 matches
         #include <stdio.h>
         int index = 0;
         int num;
         int b_block[13] = {0 , 1 , 2, 3, 4, 5, 6 , 7, 8, 9, 10, 11, -1};
         int w_block[13] = {0 ,1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,11 ,-1};
          int cardnum = 3;
          int number;
         void CmpColor(hand handsort[], int i);
         void DrawCard(hand hand[], int index);
         int main()
          for(index = 0; index <= cardnum; index++)
          DrawCard(handsort,index);
          for(index = 0; index <= cardnum; index ++)
          printf("%c%d ",handsort[index].color1, handsort[index].number);
         void DrawCard(hand handsort[], int index)
          printf("받고 싶으신 색과 숫자를 적으시오.");
          fflush(stdin);
          handsort[index].number = w_block[num];
          handsort[index].color1 = 'w';
          handsort[index].number = b_block[num];
  • 문자반대출력/문보창 . . . . 35 matches
         #include <fstream>
         #include <algorithm>
         #include <string>
         using namespace std;
         string read_file();
         void write_file(const string & str);
         void main()
          string str = read_file();
          reverse(str.begin(), str.end()); // 문자열을 거꾸로 해주는 STL 함수
         string read_file()
          string str;
          fstream fin("source.txt");
          char ch = fin.get();
          ch = fin.get();
         void write_file(const string & str)
         #include <fstream>
         #include <algorithm>
         #include <string>
         using namespace std;
         string read_file();
  • 비밀키/최원서 . . . . 35 matches
         #include <fstream>
         #include <iostream>
         #include <stdlib.h>
         using namespace std;
         int main()
          ifstream fin("input.txt"); // fininput.txt를 연결
          int f;
          cin >> f;
          for (int i = 0; ; i++)
          fin.getline(a,20);
          if (fin.eof())
          int c = strlen(a);
          for (int d=0;d<c;d++)
         #include <fstream>
         #include <iostream>
         #include <stdlib.h>
         using namespace std;
         int main()
          ifstream fin("output.txt"); // fininput.txt를 연결
          int f;
  • 새싹교실/2012/사과나무 . . . . 35 matches
         과제로는 printf()와 scanf()의 사용법을 정리해오는 것을 주었습니다.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 반이 바뀌었다. 우선은 '이소라 때리기 게임'을 직접 손으로 쓰게 하고 #include 나 #define 같이 코드에 쓰여져 있는 문법들에 대해서 설명해주었다. 자료형의 종류와 전처리기가 하는 일들, switch문과 if문의 용도차이 등을 설명해주었다. 수업이 끝난 뒤 책을 정하고 책에 맞춰 수업을 진행하자는 피드백이 들어와서 교재를 열혈강의로 정했다.
         {{{#include <stdio.h>
         int main()
          int i,j,k=0;
          printf("%d * %2d = %3d\t",k,j,k*j);
          printf("%d * %2d = %3d\t",k,j,k*j);
          printf("%d * %2d = %3d\n",k,j,k*j);
          printf("%d * %2d = %3d\t",i,j,i*j);
          printf("%d * %2d = %3d\t",i,j,i*j);
          printf("%d * %2d = %3d\n",i,j,i*j);
          printf("\n");
          printf("\n");
          printf("%d * %2d = %3d\n",i,j,i*j);
         {{{#include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         int main()
          int i;
  • 새싹교실/2012/아우토반/뒷반/5.11 . . . . 35 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         #include<stdio.h>
         int main(void)
          int l;
          int n;
          int s;
          printf(" ");
          printf("%c",'a'+n-l);
          printf(" ");
          printf("%c",'a'+n-2+l);
          printf("\n");
          printf(" ");
          printf("%c",'a'+4*n-4-l);
          printf(" ");
          printf("%c",'a'+2*n-2+l);
          printf("\n");
         #include<stdio.h>
         int main() {
          int main() {
          int j,t;
  • AcceleratedC++ . . . . 34 matches
         책설명 Seminar:AcceleratedCPlusPlus
          || ["AcceleratedC++/Chapter0"] || Getting started || 1주차 ||
          || ["AcceleratedC++/Chapter1"] || Working with strings || ||
          || ["AcceleratedC++/Chapter2"] || Looping and counting || ||
          || ["AcceleratedC++/Chapter3"] || Working with batches of data || 2주차 ||
          || ["AcceleratedC++/Chapter4"] || Organizing programs and data || ||
          || ["AcceleratedC++/Chapter5"] || Using sequential containers and analyzing strings || ||
          || ["AcceleratedC++/Chapter6"] || Using library algorithms || 3주차 ||
          || ["AcceleratedC++/Chapter7"] || Using associative containers || ||
          || ["AcceleratedC++/Chapter8"] || Writing generic functions || 4주차 ||
          || ["AcceleratedC++/Chapter9"] || Defining new types || ||
          || ["AcceleratedC++/Chapter10"] || Managing memory and low-level data structures || ||
          || ["AcceleratedC++/Chapter11"] || Defining abstract data types || ||
          || ["AcceleratedC++/Chapter12"] || Making class objects act like values || ||
          || ["AcceleratedC++/Chapter13"] || Using inheritance and dynamic binding || ||
          || ["AcceleratedC++/Chapter14"] || Managing memory (almost) automatically || ||
          || ["AcceleratedC++/Chapter15"] || Revisiting character pictures|| ||
         = Code Build & Running =
          || [http://sourceforge.net/projects/mingw/ MinGW] || GCC의 Windows 포팅 ||
          '''Visual C++ 6에서 굳이 하실 분들은 ''#pragma warning(disable: 4786)'' 전처리기로 컴파일러 warning을 죽이면 기타 잡스런 워닝을 없애는 것이 가능합니다.'''
  • Basic알고리즘/팰린드롬/허아영 . . . . 34 matches
         #include <iostream>
         using namespace std;
         bool isPalindrome(char *string, int len)
          for(int i = 0; i < len/2; i++)
          if(string[i] == string[len-i-1])
         int main()
          int len;
          while(cin >> str)
          if(isPalindrome(str, len))
         #include <iostream>
         using namespace std;
         bool isPalindrome(char *string, int len)
          if(string[0] >= 'a' && string[0] <= 'z' || string[0] >= 'A' && string[0] <= 'Z')
          for(int i = 0; i < len/2; i++)
          if(string[i] == string[len-i-1])
          for(int i = 0; i < (len-1)/2; i += 2)
          for(int j = 0; j < 2; j++)
          if(string[i+j] == string[len-i-2+j])
         int main()
          int len;
  • Class/2006Fall . . . . 34 matches
          * [IntroduntionToAlgorithms]
          === [(zeropage)ArtificialIntelligenceClass] ===
          * Programming Report
          * [http://dblab.cse.cau.ac.kr/FS/index.html Home]
          * Team meeting #1 is on 27 Sep with msn messenger.
          * Team meeting #2 is on 3 Oct
          * Team meeting #3 is on 5 Oct
          * Team meeting #4 is on 10 Oct
          * Team meeting #5 is on 11 Oct
          * Team meeting #6 is on 21 Oct
          * Team meeting #7 is on 26 Oct
          * Team meeting #8 is on 9 Nov
          * Team meeting #9 is on 18 Nov
          * Final demonstration is on 5 Dec - 전체 최종본 제출
          === MobileComputingClass ===
          === IntermediateEnglishConversation ===
          * Persuaving Presentation until 6 Oct. I'll do it until 29 Sep.
          * Prepare debating about
          * Buying a College Degree is due to 3 Nov. But actually, I had to prepare Adultery.
          === Beggining English Conversation ===
  • DevelopmentinWindows . . . . 34 matches
          * '''Windows 서브시스템 - GUI 모드 에플리케이션 운영'''[[BR]]
          (앞으로 Windows 서브시스템 기반의 프로그래밍을 윈도우즈 프로그래밍이라고 하겠다.)
          * Windows CE 서브시스템 - Windows CE 에플리케이션 운영
          * 표준 사용자 인터페이스 제공 (["DevelopmentinWindows/UI"])
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/Message.jpg
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/Hardware.jpg
          * 윈도우즈 API (Application Program Interface)
          * Static-Link Library[[BR]]
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/SLL.jpg
          * Dynamic-Link Library[[BR]]
          http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/DLL.jpg
          DirectX - dplay.dll, dsound.dll, dinput.dll, ddraw.dll)
          ||INT||signed int||
          ||UINT||unsigned int||
          * 윈도우를 만드는 함수는 CreateWindow, 메시지를 보내는 함수는 SendMessage
          ||n 또는 i||INT 타입의 변수||
          ||u||UINT 타입의 변수||
          * ["DevelopmentinWindows/APIExample"] - 소스 보기
          * http://zeropage.org/~lsk8248/wiki/Seminar/DevelopmentinWindows/API.zip - 다운 받기
          * ["DevelopmentinWindows/MFCExample"] - 소스 보기
  • Eclipse . . . . 34 matches
         ["Eclipse"] 프로젝트는 통합 개발 환경(IDE)을 위한 플렛폼을 목표하는 오픈소스 프로젝트 이다. [http://www.eclipse.org/projects/index.html 부분인용]
          * 2006년 5월 - eclipse 3.2 RC5 [http://zeropage.org/~rhasya/eclipse3.2RC5.zip Win32용, PyDev, SubClipse포함]
          * 2005년 6월 - eclipse 3.1 RC2 등장( [http://zeropage.org/pub/eclipse/eclipse-SDK-3.1RC2-win32.zip zp내 다운받아놓은 것 (win32용만)])
          * [http://www.eclipse.org/downloads/index.php 다운로드]
          * [http://eclipse-plugins.2y.net/eclipse/plugins.jsp 플러그인 사이트]
          * [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ui-home/accessibility/keys.html Eclipse 단축키 모음] [http://eclipse-tools.sourceforge.net/shortcuts.html Eclipse Keyboard Shortcuts]
          * [http://www.eclipsepowered.org/archives/2004/11/18/best-jvm-settings-for-eclipse/ Best JVM Setting for Eclipse]
          * http://eclipsians.net/index.php
         ["SWT"], ["Eclipse/PluginUrls"]
          1. Menu -> Window -> Open Perspective -> CVS Repositary (없으면 Other)에서
          * Eclipse를 설치할때 JRE를 Eclipse가 못찾아서 실행 되지 않는 경우가 있다. 특히 학교의 Win98에서 이러하다. 이럴 경우 '''Eclipse 폴더 내에 jdk1.4이상의 jre폴더를 복사'''하면 Install Complete라는 이미지와 함께 Eclipse가 세팅되고 실행 된다. 이후 해당 Eclipse의 실행 포인트 역시 jre의 vm이 되는데,
          * 외부 {{{~cpp JavaDoc}}} ''Preferences -> Java -> Installed JREs -> Javadoc URL''
          * Ctrl + H Search에서 파일 검색, *.java 파일 검색, * 로 검색한다. String Set을 검색한다.
          * Heap Status 라는 플러그인을 설치하면 [IntelliJ] 에서처럼 GarbageCollecting 을 force 할 수 있다.
         ||Alt +F6|| Windows간 전환||
         || Alt+Shift+Q + ? || Window->Preference->workspace->key->Advenced 의 Help Me... 옵션을 키고 Alt+Shift+Q를 누르고 기다려 보자 ||
         [1002]의 경우 jmechanic, pmd, 그리고 잘 모르겠는 profiler (패키지 이름은 ru.nlmk 였는데) plugin 랑 Eclipse Tail 깔아서 쓰는중. 그리고 FreeMarker 작업시 FreeMarker plugin 설치해서 작업중.
          * [neocoin]:정말 Java Source Editor면에서는 이것보다 나은것을 찾지 못하겠다. CVS 지원 역시 훌륭하고, Project파일 관리 면에서도 우수하다. 하지만 가장 인상 깊었던건 오픈 프로젝트라서, 이걸 볼수 있다는 점이다. 바로 [http://64.38.198.171/downloads/drops/R-2.0-200206271835/testResults.php org.eclipse.core.tests] 이런것을 각 분야별로 수백개씩 하고 있었다. 이런것은 나에게 힘을 준다. --상민
          * 기능으로 보나 업그레이드 속도로 보나 또하나의 Platform; 플러그인으로 JUnit 이 아에 들어간것과 리펙토링 기능, Test Case 가 new 에 포함된 것 등 TDD 에서 자주 쓰는 기능들이 있는건 반가운사항. (유난히 자바 툴들에 XP 와 관련한 기능들이 많이 추가되는건 어떤 이유일까. MS 진영에 비해 자바 관련 툴의 시장이 다양해서일까) 아주 약간 아쉬운 사항이라면 개인적으로 멀티 윈도우 에디터라면 자주 쓸 창 전환키들인 Ctrl + F6, Ctrl + F7 은 너무 손의 폭 관계상 멀어서 (반대쪽 손이 가기엔 애매하게 가운데이시고 어흑) ( IntelliJ 는 Alt + 1,2,3,.. 또는 Alt + <- , ->) 단축키들이 많아져 가는 상황에 재정의하려면 끝도 없으시고. (이점에서 최강의 에디터는 [Vi] 이다;) 개인적 결론 : [Eclipse] 는 Tool Platform 이다; --석천
         Eclipse is an open platform for tool integration built by an open community of tool providers. ...
  • EnglishSpeaking/2011년스터디 . . . . 34 matches
          * 참고 도서 : 한 달 만에 끝내는 OPIc (학생편/Intermediate) - 원글리쉬
          * [EnglishSpeaking/TheSimpsons]
          * 막연하게 Free Talking을 하면 아직 어색한 우리들, 어떠한 방법으로 이를 극복할 것인가?
          1. Free Talking
          1. Theme Talking
          * There are four members in my family: my father, mother, and a younger brother. Well, actually there are five including our dog. My father was a military officer for twenty years. He recently retired from service and now works in a weaponry company. My mother is a typical housewife. She takes care of me and my brother and keeps our house running well. My brother is attending a university in the U.S.A. He just entered the university as a freshman and is adjusting to the environment. I miss the memory of fighting over things with him. The last member of my family is my dog named Joy. She is a Maltese terrier and my mother named her Joy to bring joy into our family. That's about it for the introduction of my family members.
          * [EnglishSpeaking/TheSimpsons/S01E01]
          1. Free Talking
          1. Theme Talking
          * [송지원] - 혹시나 했지만 역시나 현지 영어 따라하기는 쉽지 않습니다. 짧은 몇 줄 문장을 외워서 따라하기는 어렵지만 많이 하면 실력이 늘 거라는 생각은 들어요. Free Talking은 제가 하고 싶은 말을 나름 자유롭게 구사해서 만족했는데 Theme Talking에서는 한계를 느끼고 한국어를 섞어서 그 점이 좀 아쉬웠어요. 다음 주에는 The Simpsons.. 정말 4명이 함께 하기를 (온 성의를 다해 대본을 준비하는 만큼;ㅁ;)
          * [EnglishSpeaking/TheSimpsons/S01E02]
          1. Free Talking
          1. Theme Talking
          * [송지원] - 지난 번에 심슨 따라하기 보다 역할을 분담하니 조금 수월해졌다는 느낌이었습니다. 특히, 재미있는 장면을 선정해서 지난 번보다 조금 더 몰입할 수 있었어요. (지난 번엔 마지가 너 고민 있는듯 하다 뭐 이런 내용이었는데 이번엔 온 가족이 Scrabble 게임을 하는 장면 ㅋㅋ) Free Talking을 하면서 느낀 건 맨 처음 영어 스터디를 시작할 때보다 말문이 많이 트였다는 점. 이젠 6피에서 영어 쓰는 것도 그렇게 쪽팔리기만 하지는 않네요.
          * [EnglishSpeaking/TheSimpsons/S01E03]
          1. Free Talking
          1. Theme Talking
          * [EnglishSpeaking/TheSimpsons/S01E04]
          1. Theme Talking
          * [EnglishSpeaking/TheSimpsons/S01E05]
  • EuclidProblem/조현태 . . . . 34 matches
         #include <stdio.h>
         int Get_GCM(int , int );
         void Get_x_y(int, int, int*, int*, int );
         void main()
          int input_a, input_b;
          int x=0, y=0, gcm=0;
          printf ("두 숫자를 입력해 주세요.(0,0)은 정지\n>>");
          scanf ("%d%d",&input_a,&input_b);
          if (0==input_a && 0==input_b)
          gcm=Get_GCM(input_a, input_b);
          Get_x_y(input_a, input_b, &x, &y, gcm);
          printf ("결과 : x=%d\ty=%d\tGCM=%d\n",x,y,gcm);
         void Get_x_y(int number_a, int number_b, int* x, int* y, int gcm)
          int *temp_large, *temp_small, temp_plus=1;
         int Get_GCM(int number_a, int number_b)
          int temp;
  • MoniWikiACL . . . . 34 matches
         /!\ since MoniWiki 1.1.2
         모니위키의 SecurityPlugin의 한가지
         `config.php`에 다음을 넣으면 ACL SecurityPlugin이 활성화됩니다.
         @Kiwirian foobar,kiwi,hello123 20 # @Kiwirain 그룹의 priority를 잡는다.
         FoobarPage babo deny edit,diff,info
         * @ALL allow read,userform,rss_rc,aclinfo,fortune,deletepage,fixmoin,ticket // 여러 줄로 나눠쓰기 가능
         WikiSandBox @Guest allow edit,info,diff
         // WikiSandBox 페이지를 @Guest 그룹에 edit,info,diff 액션을 허용(allow)
         # Please don't modify the lines above
         WikiSandBox @Guest allow edit,info,diff
         // WikiSandBox 페이지를 @Guest 그룹에 edit,info,diff 액션을 허용(allow)
         # some POST actions support protected mode using admin password
         * @ALL allow read,userform,rss_rc,aclinfo,fortune,deletepage,fixmoin,ticket
          * {{{deny *}}} + {{{allow edit,info}}} = edit와 info 액션만 가능: '''explicit하게 지정된''' 액션만 허락
          * {{{allow *}}} + {{{deny info,diff}}} = info/diff 이외의 액션이 모두 허용: '''explicit하게 지정된''' 액션만 거부
          * {{{deny info,diff}}} + {{{allow *}}} = 위의 경우와 같다. explicit하게 지정된 액션인 info, diff만 거부
         * @ALL allow read,ticket,info,diff,titleindex,bookmark,pagelist
         ProtectedPage @All deny read,ticket,info,diff,titleindex,bookmark,pagelist
         * @ALL allow show,ticket,titleindex,bookmark,pagelist
         * @Group1 deny * # User defined @Group1 group
  • ProjectZephyrus/ClientJourney . . . . 34 matches
          * 일이 거의 막마지에 다다른다. 12시 이후 본격적 작업. 이틀간의 스케줄에서 둘이 참여를 하지 않았으므로, 작업은 주로 코드 설명이 주가 될 수 밖에 없었다. Pair로 ["Refactoring"] 해나가며 설명하기에 내가 너무 많이 코드를 고쳤나. -_-; (나도 할말있는것이, 가장 중요사항중 하나인 패킷 핸들러 처리부분할때 다들빠지냐는것이다. -_-; 제일 얻을 것도 많은 부분일건데 쩝. 개인적으로 만들면서 흐뭇(^^;) 했던 부분이고;)
          * 이전에 wiki:NoSmok:InformationRadiator 를 붙일 수 있는 벽과 화이트보드가 그립다; 방학중엔 피시실 문짝에라도 붙여보던지 궁리를;
          * 이번 프로젝트의 목적은 Java Study + Team Project 경험이라고 보아야 할 것이다. 아쉽게도 처음에 공부할 것을 목적으로 이 팀을 제안한 사람들은 자신의 목적과 팀의 목적을 일치시키지 못했고, 이는 개인의 스케줄관리의 우선순위 정의 실패 (라고 생각한다. 팀 입장에선. 개인의 경우야 우선순위들이 다를테니 할말없지만, 그로 인한 손실에 대해서 아쉬워할정도라면 개인의 실패와도 연결을 시켜야겠지)로 이어졌다고 본다. (왜 초반 제안자들보다 후반 참여자들이 더 열심히 뛰었을까) 한편, 선배의 입장으로선 팀의 목적인 개개인의 실력향상부분을 간과하고 혼자서 너무 많이 진행했다는 점에선 또 개인의 목적과 팀의 목적의 불일치로서 이 또한 실패이다. 완성된 프로그램만이 중요한건 아닐것이다. (하지만, 나의 경우 Java Study 와 Team Project 경험 향상도 내 목적중 하나가 되므로, 내 기여도를 올리는 것은 나에게 이익이다. Team Project 경험을 위해 PairProgramming를 했고, 대화를 위한 모델링을 했으며, CVS에 commit 을 했고, 중간에 바쁜 사람들의 스케줄을 뺐다.) 암튼, 스스로 한 만큼 얻어간다. Good Pattern 이건 Anti Pattern 이건.
          * 암튼. 이렇게 해봤으니, 앞으로는 더 잘할수 있도록, 더욱더 잘할수 있도록. ["DoItAgainToLearn"] 했으면 한다. 앞으로 더 궁리해봐야 할 일들이겠지. -- 석천
          * 움.. 아무래도 난 말빨 글빨 다 딸리는거같다.. 위에글처럼 멋있게 쓰고싶은데, 그냥 내식대로 써야겠다.. 간만에 내가 또 형보다 일찍왔다. 이틀동안 빠진게 타격이 너무 컸나보다.. MainSource에 새로 추가된 파일도 꽤되고 기존파일도 업데이트된 내용이 많아서 이해가 아니라 읽어보는것만해도 엄청난 시간이 들었다.. --;; 정통부 회의겸 기짱턱땜에 일찍갔는데 아무래도 금요일로 완료가 된 모양이다.. 이번이 나로선 거의 처음 해본 프로젝트였는데, 내가 별로 한건없지만, 솔직히 뭔가 만든것보단 배운게 더 많은거같다.. 하긴 프로젝트를 해본다는거 자체가 배운다는거였으니깐.. 꼭 자바에 대해서 배운것보다도 Design이라던지 Architecture(맞나?) 같은것에 대해서도 배웠고.. 프로젝트란 이렇게 진행해야 하는거구나라는것도 느꼈다. 뭔가 많이 쓰고싶은데 머리속이 정리가 안된다.. 이럴때 정말~~ ㅠ.ㅠ 아우~ 나중에 더 써야겠다..
          * 중간 중간 테스트를 위해 서버쪽 소스를 다운받았다. 상민이가 준비를 철저하게 한 것이 확실히 느껴지는 건 빌드용/실행용 배치화일, 도큐먼트에 있다. 배치화일은 실행한번만 해주면 서버쪽 컴파일을 알아서 해주고 한번에 실행할 수 있다. (실행을 위한 Interface 메소드를 정의해놓은것이나 다름없군.) 어떤 소스에서든지 Javadoc 이 다 달려있다. (Coding Standard로 결정한 사항이긴 하지만, 개인적으로 코드의 Javadoc 이 많이 달려있는걸 싫어하긴 하지만; 코드 읽는데 방해되어서; 하지만 javadoc generator 로 document 만들고 나면 그 이야기가 달라지긴 하다.)
          * TDD 가 아니였다는 점은 추후 모듈간 Interface 를 결정할때 골치가 아파진다. 중간코드에 적용하기 뭐해서 궁여지책으로 Main 함수를 hard coding 한뒤 ["Refactoring"] 을 하는 스타일로 하긴 하지만, TDD 만큼 Interface가 깔끔하게 나오질 않는다고 생각. 차라리 조금씩이라도 UnitTest 코드를 붙이는게 나을것 같긴 하다. 하지만, 마감이 2일인 관계로. -_- 스펙 완료뒤 고려하던지, 아니면 처음부터 TDD를 염두해두고 하던지. 중요한건 모듈자체보다 모듈을 이용하는 Client 의 관점이다.
          ''어차피 창섭이가 주점이 아니라 하더라도 자네는 소켓을 공부해야 했을걸. -_-v (왜냐. 중간에 창섭이랑 너랑 Pair 할것이였으니까. 창섭이도 Swing 관련 공부를 해둬야 하긴 마찬가지) 참, 그리고 해당 코드대비 완성시간은 반드시 체크하도록. 참고로 1:1 Dialog 는 1시간 10분정도 이용했음. --석천''
          * PairProgramming 을 할때 가장 답답해지는 상황은 잘 이해 안가면서 넋놓고 있을때랑, 둘이 같이 있어도 Solo Programming 하느 사람 마냥 혼자서 문제를 끙끙거리며 풀려고 하는 모습이다. 꼭 문제를 스스로 삽질해서 풀어야만 자기실력이 향상되는것일까? 다른 사람에게 올바른 질문을 할 수 없는 사람은 혼자서 문제 푸는데에도 오래걸리게 된다고 생각한다. 상대방에게 질문을 하면서 자신이 모르는 것 자체를 구체화하고 (문제 자체가 모호한상태 자체가 문제다. 무엇이 문제인지, 자신이 모르는 것이 구체적으로 무엇인지 모르면서 어떻게 문제를 해결할까? 자신이 모르는게 버클리소켓 전체 사용과정인지 소켓 API의 인자들을 모르면서 네트웍 프로그래밍을 할 수 있을까. 그런사람들에게 '지금 모르겠는게 뭐지?' 라고 물으면 80-90%는 '다 몰라요' 이다. 모르겠는 부분에 대해서 하나하나 구체화시켜나가라. 구체화시킨 예로서 생각을 해봐도 좋을것이다. 시나리오를 만들어보면서, 그림을 그려보면서, 아니면 자기 자신이 그 시스템의 일부가 되어 보면서.) 다른 사람의 아이디어를 자신의 사고에 붙여나가면서 '더 좋은 방법' 을생각해낼 수는 없을까? 언제나 문제의 답을 내는 방법은 '이사람의 방식' 아니면 '저사람의 방식' 뿐일까.
          * PairProgramming 의 교대시간을 5분으로 해봤다. 한 사람이 5분동안 해당 부분을 플밍하다가 다 못짜면 다음사람이 다시 5분의 시간을 가지고 이어서 짜고 하며 교대로 프로그래밍을 이어나가는 (마치 릴레이경주와도 같다) 방법이다. 사람들에게 제안했을때 그 표정들이 심상치 않다;; 그래 너희들은 실험용 모르모트다;; 흐흐.
          * 5분간격으로 Pair Programming을 했다.. 진짜 Pair를 한 기분이 든다.. Test가 아닌 Real Client UI를 만들었는데, 하다보니 Test때 한번씩 다 해본거였다.. 그런데 위와 아래에 1002형이 쓴걸 보니 얼굴이 달아오른다.. --;; 아웅.. 3일전 일을 쓰려니 너무 힘들다.. 일기를 밀려서 쓴기분이다.. 상상해서 막 쓰고싶지만 내감정에 솔직해야겠다.. 그냥 생각나는것만 써야지.. ㅡ.ㅡ++ 확실히 5분간격으로 하니 속도가 배가된 기분이다.. 마약을 한상태에서 코딩을 하는 느낌이었다.. 암튼 혼자서 하면 언제끝날지 알수없고 같이 해도 그거보단 더 걸렸을듯한데, 1시간만에 Login관련 UI를 짰다는게 나로선 신기하다.. 근데 혼자서 나중에 한 Tree만들땐 제대로 못했다.. 아직 낯선듯하다. 나에게 지금 프로젝트는 기초공사가 안된상태에서 바로 1층을 올라가는 그런거같다.. 머리속을 짜내고있는데 생각이 안난다 그만 쓰련다.. ㅡㅡ;; - 영서
          처음에는 영서와 GUI Programming을 했다. Main Frame class 의 메뉴붙이고 리스너 연결하는 것부터 시작, 입력 다이얼로그를 노가다 코딩해서 만드는데 서로 교대해서 1시간이 걸렸다. 코딩 속도도 저번에 비해 더욱 빨랐고, 대화할때도 그 질문이 간단했다. (5분간격이니 아무리 플밍이 익숙한 사람이 진행해도 그 진행양이 많지가 않다. 그리고 자신이 그 사람의 미완성 코드를 완성해야 하기에 모르면 바로 질문을 하게 된다.)
         (그 이후 창섭이가 와서 영서에게 JTree관련 Solo Programming 을 시켰는데, 말이 안되는 프로그래밍을 했다. -_-; 아직 영서가 Swing 에 익숙하지 않아서 그런데, 앞의 프로그램은 어떻게 만들어졌을까 의문이 들 정도였다; 아마 5분 간격 플밍시에는 서로 앞 사람 소스작성을 한 것을 기준으로 붙여나가는 방식이기에 그 흐름을 잡고 프로그래밍을 해서 Pair 가 성립이 가능했던것 같다는 생각도 해본다. 이는 처음 프로그래밍을 하는 사람과의 PairProgramming 시 궁리해봐야 할 사항인듯)
         다음번에 창섭이와 Socket Programming 을 같은 방법으로 했는데, 앞에서와 같은 효과가 나오지 않았다. 중간에 왜그럴까 생각해봤더니, 아까 GUI Programming 을 하기 전에 영서와 UI Diagram 을 그렸었다. 그러므로, 전체적으로 어디까지 해야 하는지 눈으로 확실히 보이는 것이였다. 하지만, Socket Programming 때는 일종의 Library를 만드는 스타일이 되어서 창섭이가 전체적으로 무엇을 작성해야하는지 자체를 모르는 것이였다. 그래서 중반쯤에 Socket관련 구체적인 시나리오 (UserConnection Class 를 이용하는 main 의 입장과 관련하여 서버 접속 & 결과 받아오는 것에 대한 간단한 sequence 를 그렸다) 를 만들고, 진행해 나가니까 진행이 좀 더 원할했다. 시간관계상 1시간정도밖에 작업을 하지 못한게 좀 아쉽긴 하다.
          * PairProgramming를 하면서 SpikeSolution 으로 한번 구성했던 소스를 다시 만들어보고, 여러번 말로 설명해보고, 더 쉬운 방법으로 설명해보려고 하는 동안 알고있는것에 대해 생각이 빨리 정리된다.
          * 다른 MFC나 ["wxPython"] 등의 다른 GUI Framework와 ["디자인패턴"] 에 익숙하면 이러한 Swing 에 익숙해지는데에도 도움이 되었다. 대부분의 GUI 에선 ["CompositePattern"] 으로 윈도우들을 구성하기에. 그리고 Java API를 공부하는 동안 ["IteratorPattern"] 이나 ["DecoratorPattern"], MVC 등에 대해서도 이해하기 용이했다.
          DeleteMe) ''참고로 자바에서는 순수한 형태의 MVC 모델을 사용하지 않습니다. 변형된 형태의 MVC 모델을 사용합니다 [http://java.sun.com/products/jfc/tsc/articles/getting_started/getting_started2.html Introducing Swing Architecture]. 이론과 실제의 차이랄까요. --이선우''
         Client 팀은 일단 메신저와 관련한 자신들의 디자인을 설명해보는 시간을 가졌다. 사람들은 프로그래밍을 하기 전에 어떤 스타일로 구상을 하게 될까. Agile Modeling 에서 봤던가. 모델 보다는 모델링이 중요하다고 했었던 이야기. 모델링을 해 나가면서 자신의 생각을 정리하고, 프로그램을 이해해 나가는 것이 중요하기에.[[BR]]
         1002의 경우 UML을 공부한 관계로, 좀 더 구조적으로 서술 할 수 있었던 것 같다. 설명을 위해 Conceptual Model 수준의 Class Diagram 과 Sequence, 그리고 거기에 Agile Modeling 에서 잠깐 봤었던 UI 에 따른 페이지 전환 관계에 대한 그림을 하나 더 그려서 설명했다. 하나의 프로그램에 대해 여러 각도에서 바라보는 것이 프로그램을 이해하는데 더 편했던 것 같다. [[BR]]
         1002는 CVS 사용방법에 대한 예를 보이고 설명을 했다. wincvs 윈도우 버전에 익숙하지 않았던 관계로 command 입력방법을 가르쳐줬다. 그리고 영서와는 주로 Swing쪽을, 창섭과는 Java Socket Class 에 익숙해지기 위해 Socket 관련 SpikeSolution 을 했다.
  • STLErrorDecryptor . . . . 34 matches
         = Before Reading =
         본 문서는 [http://www.kwak101.pe.kr/kwak101/works/InternData/STLDecryptor_QuickGuide.html QuickInstallation For STLErrorDecryptor] 의 '''내용을 백업하기 위한 목적'''으로 만든 페이지입니다. 따라서 원 홈페이지의 자료가 사라지지 않은 이상 가능하면 원 홈페이지에서 글을 읽으셨으면 합니다.
         Upload:WorkingMethod.gif
          * STL 에러 해독기 패키지 (Win32용) : STLfilt.zip이란 이름을 가지고 있습니다 (http://ww.bdsoft.com/tools/stlfilt.html)
          * 펄 스크립트 인터프리터(Win32용) : 여기서는 ActivePerl을 사용합니다. (http://ww.activestate.coml)
          * Proxy-CL.INI : 프록시 CL이 작동하는 환경을 제공하는 INI 파일.
         가) Visual C++가 설치된 디렉토리로 이동하고, 여기서 \bin 디렉토리까지 찾아 들어갑니다. (제 경우에는 D:\Program Files2\Microsoft Visual Studio .NET\Vc7\bin입니다.) 제대로 갔으면, 원래의 CL을 백업용으로 모셔다 놓을 폴더를 하나 만듭니다. (제 경우에는 '''native_cl'''이란 이름으로 만들었습니다.) 그리고 나서 CL.EXE를 그 폴더에 복사해 둡니다.
         Upload:OriginalCLFolderMaking.gif
         나) \bin 디렉토리에 있는 CL.EXE를 CL2.EXE로 이름을 바꾸어 줍니다.
         다) 이젠 프록시 CL의 동작에 필요한 환경 옵션을 제공하는 Proxy-CL.INI 파일을 여러분의 개발환경에 맞게 고쳐야 합니다. 텍스트 편집기로 Proxy-CL.INI를 열면 아래의 [common], [proxy.cl], [stltask.exe] 부분이 모두 비어 있는데, 윗부분의 주석문을 참고하면서 환경 변수를 고쳐줍니다. 반드시 설정해야 하는 옵션은 다음과 같습니다.
         아래의 그림은 저의 Proxy-CL.INI 파일입니다.
         라) 이렇게 편집한 Proxy-CL.INI를 윈도우 디렉토리에 복사합니다. 윈도우 디렉토리란 윈도우 98/ME 등에선 \WINDOWS이겠고, 윈도우 NT/2000/XP 등에선 \WINNT 이겠지요. 즉 운영체제와 프로파일 파일들이 들어 있는 곳입니다. 프록시 CL은 기본적으로 이 윈도우 디렉토리에서 읽은 Proxy-CL.INI을 가지고 동작 옵션을 정합니다.
         마) 이제, STLfilt.zip의 압축을 푼 디렉토리에서 프록시 CL을 복사해서 VC의 \bin 디렉토리에 붙입니다.
         여기서 "Enable Filtering"을 선택하면 그때부터 STL 에러 필터링이 가능해집니다. 그리고, 앞으로 STL 에러 필터링을 활성화하거나 비활성화할 때에는 이 태스크바의 아이콘을 사용하면 됩니다(Enable filtering/Disable filtering을 선택하면 되겠죠). 필터링이 활성화 되어 있느냐 그렇지 않으냐의 여부는 작업 표시줄의 아이콘 색깔( Upload:STLTaskActIcon.gif 은 활성화되었다는 뜻)로 확인할 수 있습니다.
         #include<string>
         using namespace std;
         int main()
          string s(10); // 컴파일 에러를 일으키는 문장, 하나의 매개 변수를 받는 string 생성자는 할당자만을 받습니다.
         h:\MyProgrammingLab\JunkRoom\Weired_C++\Test.cpp(6) :
         error C2664: 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const std::basic_string<_Elem,_Traits,_Ax>::_Alloc &) with [_Elem=char,_Traits=std::char_traits<char>,_Ax=std::allocator<char>]' : 매개 변수 1을(를) 'int'에서 'const std::basic_string<_Elem,_Traits,_Ax>::_Alloc & with [_Elem=char,_Traits=std::char_traits<char>,_Ax=std::allocator<char>]'(으)로 변환할 수 없습니다.; 원인: 'int'에서 'const std::basic_string<_Elem,_Traits,_Ax>::_Alloc with [_Elem=char,_Traits=std::char_traits<char>,_Ax=std::allocator<char>]'(으)로 변환할 수 없습니다.; 소스 형식을 가져올 수 있는 생성자가 없거나 생성자 오버로드 확인이 모호합니다.
  • Slurpys/황재선 . . . . 34 matches
          def __init__(self):
          index = 0
          for ch in aStr[1:]:
          index = aStr.find(ch,1)
          if aStr[index] == 'G':
          elif self.isSlump(aStr[index:]):
          slump = self.findSlumpStartIndex(aStr)
          def findSlumpStartIndex(self, aStr):
          if aStr.find('CD') != -1:
          return aStr.find('CD') + 1
          elif aStr.find('CE') != -1:
          return aStr.find('CE') + 1
         def main():
          size = input()
          else: print 'input size again'
          for num in range(size):
          string = raw_input()
          if 1 <= len(string) <= 60:
          else: print 'input string again'
          if slurpy.isSlurpy(string):
  • TheGrandDinner/하기웅 . . . . 34 matches
         #include <iostream>
         #include <algorithm>
         using namespace std;
         int input1, input2;
         int i, j;
          int number;
          int memberNum;
          int person[101];
          int number;
          int chairNum;
          int chair[101];
         void printTeam()
          for(i=1; i<input1+1; i++)
         bool matchingTable()
          for(i=1; i<input1+1; i++)
          if(team[i].memberNum>input2)
         int main()
          while(cin >> input1 >> input2)
          if(input1==0 && input2==0)
          for(i=1; i<input1+1; i++)
  • 미로찾기/김민경 . . . . 34 matches
         #include <stdio.h>
         #include <stdlib.h>
         void input();
         void process(int x,int y);
         int print[100][2],cnt,finish_x,finish_y;
         int data[51][51];
         void main()
          input();
         void input()
          fscanf (fp,"%d %d",&finish_x,&finish_y);
          for (int i=1;i<=finish_x;i++){
          for (int j=1;j<=finish_y;j++){
         void process(int x,int y)
          int dx[8]={-1,-1,-1,0,0,1,1,1},dy[8]={-1,0,1,-1,1,-1,0,1};
          if (x==finish_x && y==finish_y) {
          for (int i=0;i<8;i++)
          if (!data[x+dx[i]][y+dy[i]] && x+dx[i]>=1 && x+dx[i]<=finish_x && y+dy[i]>=1 && y+dy[i]<=finish_y){
          print[cnt][0]=x+dx[i];
          print[cnt++][1]=y+dy[i];
          printf ("1,1\n");
  • 새싹교실/2012/아우토반/뒷반/4.13 . . . . 34 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         #include <stdio.h>
         int main(void) {
          int i, j;
          printf("%c", i);
          printf("\n");
         [Input] 5
         [Input] 5
         #include<stdio.h>
         int main(void)
          int a;
          int b;
          int c;
          int number;
          int v;
          printf("number? : ");
          printf(" ");
          printf("%d",a);
          printf(" ");
          printf("%d",a);
  • 허아영/Cpp연습 . . . . 34 matches
         #include <iostream.h>
         int square(int);
         void main()
          int number, result;
          cin>>number;
         int square(int number)
          int square_num = number * number;
         #include <iostream.h>
         void main()
          cout<<"int = "<<sizeof(int)<<"byte"<<endl;
          cout<<"short int = "<<sizeof(short)<<"byte"<<endl;
          cout<<"long int = "<< sizeof(long)<<"byte"<<endl;
         int = 4byte
         short int = 2byte
         long int = 4byte
         #include <iostream.h>
         #include <iostream>
         using namespace std;
         int err(int subject);
         double avg(int *subject_data);
  • CVS . . . . 33 matches
          * [http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/cvs/ Yet another CVS tutorial (a little old, but nice)]
          * [http://www.cs.utah.edu/dept/old/texinfo/cvs/FAQ.txt An old but very useful FAQ about CVS]
          * http://www.chonga.pe.kr/document/programming/cvs/index.php 해당 사이트에서 제작한 한글 Reference
         == For Win ==
          * [WinCVS]
         설치는 간단하다. install script 를 이용, CGI 가 돌아가는 경로에 설치한뒤, viewcvs.conf 에서 CVS ROOT 를 설정해주면 끝.
          * 현재 ZeroPage 에서는 CVS 서비스를 하고 있다. http://zeropage.org/viewcvs/cgi/viewcvs.cgi 또는 ZeroPage 홈페이지의 왼쪽 메뉴 참조. 웹 클라이언트로서 viewcvs 를 이용중이다. 일반 CVS Client 로서는 Windows 플랫폼에서는 [TortoiseCVS](소위 '터틀'로 불린다.) 를 강력추천! 탐색기의 오른쪽 버튼과 연동되어 아주 편리하다.
          * ZeroPage의 CVS 계정을 원하는 회원은 서버관리자(["neocoin"])에게 연락 바람 자세한 내용은 홈페이지 왼쪽 메뉴 참고
         || ["CVS/길동씨의CVS사용기ForLocal"] || WinCVS 설치 전제, CVS를 처음 접하는 사람이라면, Local을 이용해서 감을 잡으세요. ||
         || ["CVS/길동씨의CVS사용기ForRemote"] || WinCVS 설치 전제 ZeroPage CVS를 ||
         === Trouble shooting ===
         This problem is quite common apparently... <the problem>snip > I've been trying to use CVS with the win-cvs client without much > success. I managed to import a module but when I try to do a > checkout I get the following error message: > > cvs checkout chargT > > cvs server: cannot open /root/.cvsignore: Permission denied > > cvs [server aborted]: can't chdir(/root): Permission denied > > I'm using the cvs supplied with RedHat 6.1 - cvs 1.10.6 /snip</the> ---------
         It is not actually a bug. What you need to do is to invoke your pserver with a clean environment using 'env'. My entry in /etc/inetd.conf looks like this:
         cvspserver stream tcp nowait root /usr/sbin/tcpd /usr/bin/env - /usr/bin/cvs -f --allow-root=/usr/local/cvsroot pserver
         Apparently, the problem is actually with Linux - daemons invoked through inetd should not strictly have any associated environment. In Linux they get one, and in the error case, it is getting some phoney root environment.
         Robert Cragie Design Engineer, Jennic Ltd. Sheffield UK
         버전 관리 프로그램 몇가지 : IBM의 CLEAR/CASTER, AT&T의 SCCS, CMU(카네기 멜론 대학)의 SDC, DEC의 CMS, IBM Rational의 {{{~cpp ClearCase}}}, MS의 {{{~cpp Visual SourceSafe}}}, [Perforce], SubVersion, AlianBrain
         GameCodingComplete 왈,
         돈이 남아 도는 프로젝트 경우 {{{~cpp ClearCase}}}를 추천하고, 오픈 소스는 돈안드는 CVS,SubVersion 을 추천하고, 게임업체들은 적절한 가격과 성능인 AlianBrain을 추천한다. Visual SourceSafe는 쓰지 말라, MS와 함께 개발한 적이 있는데 MS내에서도 자체 버전관리 툴을 이용한다.
  • EightQueenProblem/lasy0901 . . . . 33 matches
         두번째 프로그램은 ... 이상하게 컴파일이 안되더군요.. 알고보니 #include <stdafx.h> 을 안 넣어서 (VC6.0) 낭패-_-a
         #include <stdio.h>
         int t[8],check(int),is_finished=0;
         void make(int);
         int check(int pos)
          int i,j;
         void make(int pos)
          int i;
          if (is_finished==0)
          {is_finished=1; // 하나의 해만 찾음 <- 이 부분이 없으면 여러가지 해 출력
          printf("%3d",t[i]);}
         int main(int argc, char* argv[])
         #include <stdio.h>
         #include <conio.h>
         int t[8],check(int),count=0;
         void make(int);
         int check(int pos)
          int i,j;
         void make(int pos)
          int i;
  • EnglishSpeaking/2012년스터디 . . . . 33 matches
         = Outline =
          * Goal : To talk naturally about technical subject in English!
          * [https://trello.com/board/english-speaking-study/5076953bf302c8fb5a636efa Trello]
          * Don't be nervous! Don't be shy! Mistakes are welcomed. We talk about everything in English.
         = Regular Meetings =
          * [http://www.youtube.com/watch?v=C3p_N9FPdy4 English Speaking Schools Are Evil]
          * [http://www.youtube.com/watch?v=xkGGTN8wh9I Speaking English- Feel Nervous & Shy?]
          * Free talking and retrospective.
          * [http://www.bombenglish.com/2008/01/27/1-host-introductions/ Bomb English - Episode 1]
          * We listened audio file and read part of script by taking role.(And after reading script once, we also change our role and read script again.)
          * We tried to do shadowing but we found that conversation is not fit to do shadowing.
          * Free talking and retrospective.
          * 2nd time of ESS! Our English speaking ability is not growing visibly but that's OK. It's just 2nd time. But we need to study everyday for expanding our vocabulary and increasing our ability rapidly. Thus I'll memorize vocabulary and study with basic English application(It's an android application. I get it for FREE! YAY!) I wish I can speak English more fluent in our 20th study. XD
          * Free talking and retrospective.
          * Today, we were little confused by Yunji's appearance. We expected conversation between 2 persons but there were 3 persons who take part in episode 2. And we made a mistake about deviding part. Next time, when we get 3 persons' conversation again, we should pay attention to devide part equally. Or we can do line by line reading instead of role playing.
          * We decided to talk about technical subject freely, about 3 minutes in every month. It might be a little hard stuff at first time. But let's do it first and make it better gradually. Do not forget our slogan(?) - '''''Don't be nervous! Don't be shy! Mistakes are welcomed.'''''
  • FileInputOutput . . . . 33 matches
         === in C++ ===
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin("input.txt"); // fininput.txt를 연결
          int a,b;
          fin >> a >> b; // cin으로 화면에서 입력받는다면, fin은 연결된 파일로부터 입력받는다.
         input.txt
         fin = file('input.txt')
         a,b=[int(i) for i in fin.read().split()]
         print >> fout,(a+b) #혹은 fout.writeline( str(a+b)+'n' )
         fin.close()
         input.txt
         String inputString;
         InputStreamReader isr = new InputStreamReader(new FileInputStream(fileName));
         while((inputString = br.readLine()) != null) {
          buf = buf + inputString ;
          System.out.println("Error : "+ e.toString()); {}
  • OurMajorLangIsCAndCPlusPlus/2006.2.06/허준수 . . . . 33 matches
         #include <iostream>
         #include <cstring>
         #include <cstdlib>
         using namespace std;
         class myString{
          myString() {
          myString(const char* ch) {
          myString(const myString& s) {
          ~myString() {
          int length() const {
          int temp = strlen(ch);
          void operator = (const myString& s) {
          char& operator[] (int n) {
          //friend ostream& operator << (ostream& o, myString &s);
         ostream& operator << (ostream& o, const myString& s) {
         istream& operator >> (istream& i, myString& s) {
         int main()
          myString s = "12345";
          /*myString s1, s2;
          /*myString s1 = "123", s2;
  • TicTacToe/박진영,곽세환 . . . . 33 matches
         import javax.swing.JFrame;
          int array[][] = new int[3][3];
          int a = 0;
          for (int i = 0; i < 3; i++)
          for (int j = 0; j < 3; j++)
          int x = e.getX();
          int y = e.getY();
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 2 WIN !!! ");
          System.out.println("play 1 WIN !!! ");
          System.out.println("play 1 WIN !!! ");
          System.out.println("play 1 WIN !!! ");
          System.out.println("play 1 WIN !!! ");
          System.out.println("play 1 WIN !!! ");
  • TicTacToe/유주영 . . . . 33 matches
          import javax.swing.*;
          int realx;
          int realy;
          int x;
          int y;
          int count=0; // 이쪽은 계속 갱신되는 것은 아닌듯.
          int [][]ticbox = new int[3][3];
          for(int i=1;i<4;i++)
          for(int j=1;j<4;j++)
          System.out.println("x 좌표 : " + x);
          System.out.println("y 좌표 : " + y);
          repaint();
          public static void main(String argv[]){
          public void paint(Graphics g)
          g.drawLine(100,200,400,200);
          g.drawLine(100,300,400,300);
          g.drawLine(200,100,200,400);
          g.drawLine(300,100,300,400);
          //g.drawString("X가 이겼습니다!",100,450);
          {g.drawLine(realx,realy,realx+60,realy+60);
  • VonNeumannAirport/남상협 . . . . 33 matches
         Input 과 output 예제가 왜 그렇게 나왔는지 이해 하는데에서 많은 오해를 해서 의도하지 않은 삽질을 하게 되었습니다. 나름대로 시작은 testCase 만들면서 했지만 제대로 테스트 케이스 만들면서 진행은 하지를 못했습니다. 그래서 테스트 케이스는 올리지 않았습니다.
          def __init__(self,cityNum,trafficList, configureList):
          for trafficData in trafficList:
          for traffic in trafficData[:-1]:
          trafficOfCity.append(int(traffic))
          for configureData in configureList:
          for configure in configureData:
          for conf in configure[:-1]:
          eachConfigure.append(int(conf))
          for configure in self.configureList:
          for con in configure[0]:
          for i in range(2,len(self.trafficList[departureGate-1]),2):
          traffic+=(abs(configure[1].index(arrivalGate)-configure[0].index(departureGate))+1)*self.trafficList[departureGate-1][i+1]
          def __init__(self):
          Data = file("airport.in")
          cityNum = int(Data.readline().split(" ")[0])
          for i in range(0,cityNum):
          trafficList.append(Data.readline().split(" "))
          while Data.readline().split(" ")[0] != '0':
          readLineOne = Data.readline().split(" ")
  • [Lovely]boy^_^/USACO/GreedyGiftGivers . . . . 33 matches
          * 혹시 map에 삽입할때 정렬 안되게 하는 법 없나요?;; 아무리 해도 방법이 안 떠올라서 따로 string 벡터를 만들어서 저장했는데;; 너무 더러워져서;;
         #include <iostream>
         #include <fstream>
         #include <string>
         #include <vector>
         #include <map>
         using namespace std;
         map<string,int> List;
         vector<string> ManList;
         int max_num = 0;
         ifstream fin("gift1.in");
         void InputData();
         int main()
          InputData();
          fin.close();
         void InputData()
          fin >> max_num;
          string name;
          for(int k = 0 ; k < max_num ; ++k)
          fin >> name;
  • 데블스캠프2009/목요일/연습문제/MFC/김태욱 . . . . 33 matches
         #include "stdafx.h"
         #include "zxczxc.h"
         #include "zxczxcDlg.h"
         #define new DEBUG_NEW
          //{{AFX_DATA_INIT(CAboutDlg)
          //}}AFX_DATA_INIT
         BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
          //{{AFX_DATA_INIT(CZxczxcDlg)
          //}}AFX_DATA_INIT
          // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
          m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
         BEGIN_MESSAGE_MAP(CZxczxcDlg, CDialog)
          ON_WM_PAINT()
         BOOL CZxczxcDlg::OnInitDialog()
          CDialog::OnInitDialog();
          // IDM_ABOUTBOX must be in the system command range.
          CString strAboutMenu;
          strAboutMenu.LoadString(IDS_ABOUTBOX);
          pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
          // when the application's main window is not a dialog
  • 데블스캠프2011/둘째날/후기 . . . . 33 matches
         == 김동준/Cracking ==
          * Hacking != Cracking. Cheat Engine, 자바스크립트를 이용한 사이트 공격? 툴을 이용한 Packet Cracking 등 개인적으로 무척 재미있던 세미나였습니다. 뭐... 사실 많이들 관심은 있지만 실제로 하는 걸 보는 건 흔치 않은 만큼 이번에 세미나를 볼 수 있었던 것은 여러모로 행운이었다고 생각합니다. 더군다나 질문을 꽤 많이 했는데 선배님이 친절하게 답변을 해 주셔서 정말 감사했습니다. 웹 쪽은 이래저래 공격을 당할 가능성도 높은 만큼 나중에 그쪽으로 가게 된다면 관련 기술들도 배워둬야 하지 않을까 싶군요.
          * Craking이 우리가 보통때 말하는 Hacking이었다는걸 처음(사실 저번에 한번 들은거 같지만) 깨달았네요. 또, 이전까지 그런 툴을 만드는 사람들은 도대체 어떻게 만드는가! 싶었는데 어셈을 이용해서 만들곤 한다는 걸 보며, 음.. 좋군(?) 쇼핑몰중에 지금도 간단한 방법으로 털리는 곳이 있던데, 비밀번호까지 털 수 있다거나 하는걸 보니 정보보안의식에 대한 자각이 들었던거 같기도 하구요.(캐시 충전사건으로 문제가 생긴적이 있다는걸 듣고 충격!) 뚫을 수 있는 사람이 막을 수도 있다고 하니 정보보안쪽을 공부해보고 싶다면 Craking에 대해서도 아는게 좋을거 같군요. 저는 처음보는 형이었는데, 형 세미나에서 많은걸 배울 수 있었던거 같습니다.
          * 리버싱 프로그래밍 하는 것을 보고, 패킷을 주고 받는 것을 얻어서 사용한다던지 또 웹에서 javascript injection으로 쿠키를 얻어서 그것을 사용할 수 있는 사이트에서 다른 아이디로 로그인 하는 것도 보았다. 정말 신기했지만 그렇게까지 하기 위해서는 무지하게 다양한 내용을 알아야 할 것 같았다.ㅜ
          * 역시 실전 Cracking은 다른 사람 앞에서 보여주려고 하면 잘 안되는 것 같아요. 동준이가 다년간 쌓아왔던 노하우를 그냥 보여주지는 못하게 하는군요 ㅋㅋ 많이 노력한 동준이에게 큰 박수를!!
          * 이번 주제는 1학년 때 새싹 스터디 하면서 잠깐 보여주었던 내용을 다시금 보게 되어서 재미있었습니다. Cheat Engine을 직접 사용해 볼 수 있는 부분도 상당히 매력있었습니다. 많이들 듣던 해킹에 대한 정확한 정의도 알게 되었고 그 과정이 어떻게 되는지 조금이나마 알 수 있었던 부분이었습니다. 세미나에서 보여주고자 했던 게임이 생각되로 되지 않아 아쉽긴 했지만, 한편으로는 저렇기 때문에 보안이 중요하다는 것도 다시금 생각할 수 있었습니다.
          * 씐나는 Cheat-Engine Tutorial이군요. Off-Line Game들 할때 이용했던 T-Search, Game-Hack, Cheat-O-Matic 과 함께 잘 사용해보았던 Cheat-Engine입니다. 튜토리얼이 있는지는 몰랐네요. 포인터를 이용한 메모리를 바꾸는 보안도 찾을수 있는 대단한 성능이 숨겨져있었는지 몰랐습니다. 감격 감격. 문명5할때 문명 5에서는 값을 *100 + 난수로 해놔서 찾기 어려웠는데 참. 이제 튜토리얼을 통해 어떤 숨겨진 값들도 다 찾을 수 있을것 같습니다. 그리고 보여주고 준비해왔던 얘제들을 통해 보안이 얼마나 중요한지 알게되었습니다. 보안에 대해 많은걸 생각하게 해주네요. 유익한시간이었습니다. 다음에 관련 책이 있다면 한번 읽어볼 생각이 드네요.
         == 남상협/Machine Learning ==
         깨닫게 해주는 시간이었습니다! TSP 와 더불어 오늘 했던 Machine Learning 도 방학 중 공부할 목록에 추가해야겠군요 ^^
         링크 : [:데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/김동준 Machine-Learning의 제 코드입니다.]
          * 수식은 어떤식으로 문서를 분석하는건지 알것같은데.. 파일입출력을 제대로 못해서 시도조차 못해봤습니다.ㅠㅠ 기초 능력이 부족한 탓이네요, C로 train 파일을 입력받아 변수에 단어별로 저장하고 단어의 개수를 세는것까지는 했지만 그 이상은 하지 못했습니다.. 능력부족을 실감했어요
         #include <stdio.h>
         #include <math.h>
         #include <string.h>
         main() {
          char* test_string;
          FILE* fpe = fopen("C:\\train\\economy\\index.economy.db", "r");
          FILE* fpp = fopen("C:\\train\\politics\\index.politics.db", "r");
  • 임시 . . . . 33 matches
         http://cs.sungshin.ac.kr/~jwlee/os/chap9.ppt
         http://infosec.kut.ac.kr/sangjin/class/os/
         SearchIndex: Books
         Business & Investing: 3
         Computers & Internet: 5
         Cooking, Food & Wine: 6
         Engineering: 13643
         Entertainment: 86
         Health, Mind & Body: 10
         Medicine: 13996
         Parenting & Families: 20
         http://www.dasomnetwork.com/~leedw/mywiki/moin.cgi/NetworkProgramming
         http://crab.chungbuk.ac.kr/%7Ejchern/ vi명령어, Windows Network Programming API, ..
         String myIP = inet_ntoa(*(in_addr*) *(gethostbyname(myName))->h_addr_list);
         '''WinSock'''
         In the first stage, you will write a multi-threaded server that simply displays the contents of the HTTP request message that it receives. After this program is running properly, you will add the code required to generate an appropriate response.
         &Operation=ItemSearch &SearchIndex=SportingGoods
         &SearchIndex=Books 고정
         an Amazon Standard Item Number (ASIN)
         API Reference - Search Index Values
  • 파스칼삼각형/김수경 . . . . 33 matches
         #include <stdio.h>
         int Pascal(int m, int n){
         void main(){
          int m,n;
          printf("행, 열 차례대로 입력 ex/3,2\n>>>>");
          printf("%d행 %d열의 파스칼의 삼각형 숫자는 %d 입니다.\n",m, n, Pascal(m,n));
         def pascal(line, element):
          if not isinstance(element, int):
          print "E = " , element , " : Please input an Integer"
          print "E = " , element , " : Please input an Integer greater than 0"
          if line < element:
          print "Element must less than line"
          if (line == 1) or (element == 1) or (line == element):
          return pascal(line-1, element-1) + pascal(line-1, element)
          if not isinstance(n, int):
          print "N = " , n , " : Please input an Integer"
          print "N = " , n , " : Please input an Integer greater than 0"
          for j in range(0, n-i):
          print "",
          for j in range(1, i+1):
  • CVS/길동씨의CVS사용기ForLocal . . . . 32 matches
         SET PATH=%PATH%;"C:Program FilesGNUWinCvs 1.3"
          * in Windows
          * in Bash Shell ( 프롬프트에서 직접 실행 해야 적용됨 )
         C:User>cvs init
         cvs init
         cvs -d c:CVSLocal init // -d 태그를 설정안하면 환경변수 CVSROOT의 값을 가져와 쓴다. 모든 cvs사용에 해당한다.
         C:UserHelloJava>cvs import -m "Hello Java를 출력하는 모듈" HelloJava zeropage neocoin
         cvs checkout: Updating HelloJava
          public static void main(String[] args){
          System.out.println("Hello Java");
         cvs add: scheduling file `HelloJava.java' for addition
         Checking in HelloJava.java;
         initial revision: 1.1
         cvs checkout: Updating HelloJava
          String helloScript = "Hello Java";
          System.out.println(helloScript);
          public static void main(String[] args){
         Checking in HelloJava.java;
         Working file: HelloJava.java
         date: 2002/07/31 15:36:21; author: Administrator; state: Exp; lines: +6 -1
  • CubicSpline/1002/test_NaCurves.py . . . . 32 matches
          for x in dataset:
          def testInsertPointX(self):
          self.assertEquals (l.getControlPointListX(), self.dataset)
          def testInsertPointY(self):
          for x in self.dataset:
          self.assertEquals (l.getControlPointListY(), listY)
          for i in range(0, len(self.dataset)):
          for j in range(0, len(self.dataset)):
          for i in range(1, len(self.dataset)):
          for i in range(0, len(self.dataset)):
          def testInterpolation(self):
          for x in self.dataset:
          def testInsertPointX(self):
          self.assertEquals (pl.getControlPointListX(), self.dataset)
          def testInterpolation(self):
          for x in self.dataset:
          def testControlPointPiece(self):
         class TestSpline(unittest.TestCase):
          self.s = Spline(self.dataset)
          def testInterpolation(self):
  • EightQueenProblem/임인택 . . . . 32 matches
          8bit == 1byte 라는 생각을 하고 비트연산만으로 할 수 있을것 같다는 생각을 하였다. 하지만 이 경우는 n-Queen 으로까지 확장하기까지 힘들고 간단한 index 로 값을 참조할수 있는 배열에 비해 비능률적인 방법이다. 단지 속도가 조금 빠를 것으로 믿었는데.. 빨라봤자 얼마나 빠르겠어.--;
         #include <iostream.h>
         #define QUEEN 8
         int Queen[QUEEN][QUEEN]={0};
         int total=0;
         void print_result();
         void reset(int fromline=0);
         void get_Queen(int x, int y);
         int check(int i, int j);
         int main()
          for(int i=0; i<QUEEN; i++)
         void get_Queen(int x, int y)
          if(y==QUEEN-1) print_result();
          for(int i=0; i<QUEEN; i++)
         void print_result()
          int i,j;
          cin.get();
         void reset(int fromline)
          int i,j;
          for(j=fromline; j<QUEEN; j++)
  • MineSweeper/김회영 . . . . 32 matches
         = MineSweeper =
         == {{{~cpp MineSweeper.cpp}}} ==
         #include<iostream>
         using namespace std;
         #define BOMB 100
         void main()
          int count=0;
          int width,height;
          cin>>height;
          cin>>width;
          int* arrayOfMine=new int[width*height];
          for(int a=0;a<height;a++)
          for(int b=0;b<width;b++)
          arrayOfMine[a*width+b]=0;
          for(int i=0;i<height;i++)
          cin>>temp;
          for(int j=0;j<width;j++)
          arrayOfMine[(i-1)*width+(j-1)]++;
          arrayOfMine[(i)*width+(j-1)]++;
          arrayOfMine[(i+1)*width+(j-1)]++;
  • NamedPipe . . . . 32 matches
         A named pipe is a named, one-way or duplex pipe for communication between the pipe server and one or more pipe clients. All instances of a
         named pipe share the same pipe name, but each instance has its own buffers and handles, and provides a separate conduit for client-server communication. The use of instances enables multiple pipe clients to use the same named pipe simultaneously.
         Any process can access named pipes, subject to security checks, making named pipes an easy form of communication between related or unrelated processes. Named pipes can be used to provide communication between processes on the same computer or between processes on different computers across a network.
         Any process can act as both a server and a client, making peer-to-peer communication possible. As used here, the term pipe server refers to a process that creates a named pipe, and the term pipe client refers to a process that connects to an instance of a named pipe.
         == 2. using ==
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         #include <windows.h>
         VOID InstanceThread(LPVOID); // 쓰레드 함수
         int xx = 0;
         DWORD main(VOID)
         // The main loop creates an instance of the named pipe and
          PIPE_WAIT, // blocking mode
          PIPE_UNLIMITED_INSTANCES, // max. instances
          BUFSIZE, // input buffer size
          if (hPipe == INVALID_HANDLE_VALUE)
          (LPTHREAD_START_ROUTINE) InstanceThread, // InstanceThread를 생성시킨다.
         VOID InstanceThread(LPVOID lpvParam)
         // The thread's parameter is a handle to a pipe instance.
  • One/박원석 . . . . 32 matches
         #include <stdio.h>
         void main()
          int i[10],j,k;
          printf("%3d",i[j]);
         #include <stdio.h>
         void main()
          int i;
          int sum=0;
          printf("1부터 10까지의 합은 %d입니다.",sum);
         #include <stdio.h>
         void main()
          int i;
          int sum=1;
          printf("1부터 10까지의 총곱은 %d입니다.",sum);
         #include <stdio.h>
         void main()
          int i;
          continue;
          printf("%3d",i);
         #include <stdio.h>
  • ReverseAndAdd/Celfin . . . . 32 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int testcase, number, i, counting;
         int input[10], temp[10], carry[10];
         int tempNum;
         bool isPanline;
          counting=0;
          while(!isPanline)
          isPanline=true;
          if(input[i]+input[number-i+9]+carry[i]>9)
          temp[i] = (input[i]+input[number-i+9]+carry[i])%10;
          temp[i] = input[i]+input[number-i+9]+carry[i];
          input[i] = temp[i];
          counting++;
          isPanline=false;
          cout << counting << " ";
          cout << input[i];
         int main()
          cin >> testcase;
  • ScheduledWalk/임인택 . . . . 32 matches
         import java.io.DataInputStream;
         import java.io.FileInputStream;
          private int board[][];
          private String schedule;
          private int curX, curY;
          private int size;
          private int dirX[] = {0,1,1,1,0,-1,-1,-1};
          private int dirY[] = {-1,-1,0,1,1,1,0,-1};
          for(int i=0; i<schedule.length(); ++i) {
          int idx = (int)(c - '0');
          DataInputStream din
          = new DataInputStream(new FileInputStream(new File("input2.txt")));
          size = Integer.parseInt(din.readLine());
          board = new int[size][size];
          String pos = din.readLine();
          String startPoint[] = pos.split(" ");
          curX = Integer.parseInt(startPoint[0]);
          curY = Integer.parseInt(startPoint[1]);
          schedule = din.readLine();
          e.printStackTrace();
  • ScheduledWalk/재니&영동 . . . . 32 matches
         #include <iostream>
         using namespace std;
         class Inputer{
          int col, row; // 판 크기
          int startx, starty; // 바퀴 시작 좌표
          Inputer(){
          cin>> col >> row;
          cin >> startx >> starty;
          cin >> journey;
          int* BoardArray;
          int maxCol, maxRow;
          Board (int col, int row)
          BoardArray = new int[row * col + row];
          for (int i = 0 ; i < col ; i++)
          for (int j = 0 ; j < row ; j++)
          void start(int x, int y, char* journey)
          int move[8][2]={{0, -1}, {1, -1}, {1, 0}, {1, 1}, {0, 1}, {-1, 1}, {-1, 0}, {-1, -1}};
          for (int check, direction, i=0 ; check != maxRow * maxCol && CurrentMove != '' ; i++)
          for (int j = 0 ; j < maxRow * maxCol ; j++) // 빈 셀이 있는지 확인
          void print()
  • Temp/Commander . . . . 32 matches
         #VendingMachineCommander.py
         import cmd, cStringIO
         import VendingMachineParser
          for cmd in cmds:
          print cmd
          def __init__(self,handler=defaultHandler):
          cmd.Cmd.__init__(self)
          self.parser = VendingMachineParser.Parser()
          self.doc_header = "Type 'help <topic>' for info on:"
          self.intro = 'Welcome to Vending Machine Simulator!\n'\
          def default(self,line):
          cmds = self.parser.parse(aString=line,aName='Console')
          def do_quit(self,line):
          def postcmd(self,stop,line):
          def help_help(self): print 'I need help!'
          def help_quit(self): print 'Duh.'
          print 'put <10 | 50 | 100 | '\
          print 'put a coin or a paper into the slot'
          print 'push <white | black | sugarwhite | sugarblack>'
          print 'push a button on the front panel'
  • ZPBoard/APM/Install . . . . 32 matches
         === Windows에 Apache+PHP+MySQL 설치하기 ===
          * Apache를 다운 받아 설치한다. (http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.26-win32-x86-no_src.exe)
          * PHP를 다운 받아 c:\php 정도의 적당한 디렉토리에 압축을 푼다. (http://us3.php.net/do_download.php?download_file=php-4.2.2-Win32.zip)
          * PHP 디렉토리에 있는 php4ts.dll 파일을 Windows 디렉토리의 System(Windows 98의 경우) 또는 System32(Windows NT, XP의 경우) 디렉토리에 복사한다.
          * PHP 디렉토리에 있는 php.ini-dist 파일을 Windows 디렉토리에 php.ini 라는 이름으로 바꾸어 복사한다.
          * MySQL을 다운 받아 설치한다. (http://www.mysql.com/downloads/download.php?file=Downloads/MySQL-3.23/mysql-3.23.52-win.zip&download=http://mysql.holywar.net/Downloads/MySQL-3.23/mysql-3.23.52-win.zip)
         phpinfo();
         $link=mysql_connect() or die ("MySQL을 다시 설치하세요.");
         print ("MySQL이 정상적으로 설치되었습니다.");
         mysql_close($link);
         === Windows에 IIS+PHP+MySQL 설치하기 ===
          * 제어판 -> 프로그램 추가/제거 -> Windows 구성 요소 추가/제거 에서 IIS를 설치한다.
          * PHP를 다운 받아 c:\php 정도의 적당한 디렉토리에 압축을 푼다. (http://us3.php.net/do_download.php?download_file=php-4.2.2-Win32.zip)
          * PHP 디렉토리에 있는 php4ts.dll 파일을 Windows 디렉토리의 System(Windows 98의 경우) 또는 System32(Windows NT, XP의 경우) 디렉토리에 복사한다.
          * PHP 디렉토리에 있는 php.ini-dist 파일을 Windows 디렉토리에 php.ini 라는 이름으로 바꾸어 복사한다.
          * MySQL을 다운 받아 설치한다. (http://www.mysql.com/downloads/download.php?file=Downloads/MySQL-3.23/mysql-3.23.52-win.zip&download=http://mysql.holywar.net/Downloads/MySQL-3.23/mysql-3.23.52-win.zip)
         phpinfo();
         $link=mysql_connect() or die ("MySQL을 다시 설치하세요.");
         print ("MySQL이 정상적으로 설치되었습니다.");
         mysql_close($link);
  • [Lovely]boy^_^/Diary/2-2-16 . . . . 32 matches
          * I completely destroy the marriage and family final-exam.--;
          * I borrow the Role Playing Game with DirectX.
          * Today, All final-exams will end.
         DeleteMe) I envy you. In my case, all final-exams will end at Friday. Shit~!!! -_- Because of dynamics(In fact, statics)... -_-;; --["Wiz"]
          * It's 1st day of a winter school vacation. I must do a plan.
          * I read a novel named the Brain all day. Today's reading amount is about 600 pages. It's not so interesting as much as the price of fame.
          * '''When I am given a motive, I can do the things extreme.'''
          * I studied Grammar in Use Chapter 39,40. I have not done study this book since then summer.--;
          * I read a little Power Reading. Today's reading's principle content is using a regulator(ex) pen, pinger. etc). but this method is what I have used all the time.--; I should read a lot more.
          * I studied ProgrammingPearls chapter 3. When I was reading, I could find familiar book name - the Mythical Man Month, and Code Complete.
          * I summarized a ProgrammingPearls chapter 3.
          * I typed directX codes from NeXe sites, because RolePlaying Games with DirectX that I borrowed some days ago is so difficult for me. Let's study slow and steady...
          * I studied ProgrammingPearls chapter 4,5. Both 4 and 5 are using a binary search. Its content is no bug programm.
          * I studied Grammar in Use Chapter 41,42.
          * My mom was leaving a hospital. ^^
          * '''Keeping the code simple is usually the key to correctness.'''
          * I summarized a ProgrammingPearls chapter 4,5.
          * I summarized a ProgrammingPearls chapter 6.
          * I don't know my drinking amount yet.--;
  • whiteblue/MyTermProject . . . . 32 matches
         #include <iostream>
         #include <cstdlib>
         using namespace std;
          int number;
          int kor;
          int eng;
          int math;
          int total;
         void sort (int *);
         int input();
         void result_1(student l[] , int *);
         int select, i, j, check=0;
         int main()
          switch (input())
          switch (input())
          switch (input())
         void result_1(student l[] , int * n)
          cout.setf(ios_base::showpoint);
         void sort(int * x) // 소트 함수
          for (int i = 0 ; i <= 19 ; i++ )
  • 데블스캠프2011/넷째날/Git/권순의 . . . . 32 matches
         #include "stdafx.h"
         #include <iostream>
         using namespace std;
         #include <string.h>
         #include "cmdTest.h"
         #include "rei.h"
         typedef int (*PF)(int, ARGV);
         int parseCommand(char* str, ARGV argv);
         int _tmain(int argc, _TCHAR* argv[])
          char input[256];
          char inputArgv[ARG_NUM][ARG_SIZE] = {0,};
          cout<<"input your command : ";
          cin>>input;
          int inputArgc = parseCommand(input, inputArgv);
          PF pf = getCommander(inputArgv);
          pf(inputArgc, inputArgv);
         int parseCommand(char* str, ARGV argv){
          int i;
          for( int i=0; i<sizeof(cmds)/sizeof(Cmds); i++)
         #include "rei.h"
  • 방울뱀스터디/만두4개 . . . . 32 matches
         from Tkinter import *
          print key
          if key in ['Right', 'Left', 'Up', 'Down', 'Space']:
          print row, col
          print traceList
          #ball = canvas.create_oval(x - 1, y - 1, x + CELL + 1, y + CELL + 1, fill='white', outline = 'white')
          #img2 = canvas.create_oval(1, 1, 13, 13, fill='white', outline = 'white')
          canvas.create_line(row, col, row+speed, col, fill="red")
          canvas.create_line(row, col, row-speed, col, fill="red")
          #canvas.create_line(x, y, row, col, fill="red")
          #print row, col, x, y
          canvas.create_line(row, col, row, col-speed, fill="red")
          canvas.create_line(row, col, row, col+speed, fill="red")
          # canvas.create_line(row, col+8, row + speed, col+8, fill="red")
          # canvas.create_line(row + speed + 8, col+8, row + 8, col+8, fill="red")
          # canvas.create_line(row + 8, col+ speed + 8, row + 8, col + 8 , fill="red")
          # canvas.create_line(row + 8, col, row + 8, col +speed, fill="red")
          print i
          #elif key in ['Space']:
          # if key in ['Right', 'Left', 'Up', 'Down']:
  • 새싹교실/2011/씨언어발전/2회차 . . . . 32 matches
         #include <stdio.h>
         void main(){
          int x,y;
          int result;
          printf("밑변의 길이를 입력하세요 :");
          printf("높이를 입력하세요 :");
          printf("밑변 = %d 높이 = %d 넓이 = %d",x,y,result);
         #include <stdio.h>
         void main(){
          int a,b,c;
          int temp;
          printf("%d %d %d",a,b,temp);
         일단 기타코드를 배울때 밑도끝도없이 C코드부터 가르치는것처럼 printf와 scanf는 일단 이렇게 쓰는거니
         #include<stdio.h>
         void main()
          int a;
          if(a>=90)printf("넌 A다.\n");
          else if(90>a && a>=80)printf("넌 B다.\n");
          else if(80>a && a>=70)printf("넌 C다.\n");
          else if(70>a)printf("넌 F다.\n");
  • 새싹교실/2013/라이히스아우토반/3회차 . . . . 32 matches
          * int에서 탈출해 봅시다.
         #include<stdio.h>
         int main()
          printf("%s%f",asdf,NulbI);
          printf("%s%lf",asdf,NulbI);
          printf("%s%d",asdf,NulbI);
         #include<stdio.h>
         int main()
          int num1 = rand()%10000; //rand()는 임의의 수를 돌려주는 함수.
          int num2 = rand()%10000;
          int sub = num1-num2;
          int ans;
          printf("%d-%i는 뭘까요? : ",num1,num2);
         #include<stdio.h>
         #include<stdlib.h>
         #include<Windows.h>
         #define TURN_GAP 500
         int main()
          int myHP = 10000;
          int GwaJaeHP = 10000;
  • 새싹교실/2013/록구록구/8회차 . . . . 32 matches
         1. 5칸짜리 int형 배열을 선언합니다. 값은 임의로 정합니다.
         2. 5칸짜리 int형 배열을 선언합니다. 값은 scanf와 반복문을 사용하여 입력받습니다.
          int형 이기 때문에 소수점 이하가 잘리는 문제는 그냥 무시합니다. (출력 예시 참고!)
         #include <stdio.h>
         int main()
          int a[]={3,4,12,9,1};
          printf("%d\n", a[0]);
          printf("%d\n", a[1]);
          printf("%d\n", a[2]);
          printf("%d\n", a[3]);
          printf("%d\n", a[4]);
         #include <stdio.h>
         int main()
          int a[5]={0};
          int i;
          int sum=0,average=0;
          printf("합=%d\n",sum);
          printf("평균=%d\n",average);
         #include<stdio.h>
         int main()
  • 압축알고리즘/태훈,휘동 . . . . 32 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         void main()
          ifstream fin("input.txt"); //형식은 3b11a같이
          int num;
          fin >> num; // 포인트...
          fin.get(ch);
          for ( int i = 0 ; i < num ; i++ )
          }while( !fin.eof() );
         #include <iostream>
         using namespace std;
         void main()
          ch = cin.get();
          char initial = ch;
          cout << initial - ch;
          cin.get(initial);
          }while(!(initial == '\n'));
         #include <iostream>
         using namespace std;
  • 이차함수그리기/조현태 . . . . 32 matches
         #include <iostream>
         #include <windows.h>
         using namespace std;
         const int MIN_X=-5;
         const int MAX_X=5;
         int banollim(float number)
          float temp_sosu=number-(int)number;
         void gotoxy(int x, int y)
         void make_image(int where_x, int where_y, float min_x, float max_x, float tab_x, float tab_y)
          int max_y=0;
          int min_y=function_x_to_y(min_x);
          for (register float x=min_x; x<=max_x; x+=tab_x)
          else if (min_y>function_x_to_y(x))
          min_y=function_x_to_y(x);
          for (register float x=min_x; x<=max_x; ++x)
          gotoxy(banollim(x-min_x+1+where_x),(where_y+max_y*tab_y));
          printf (".");
          for (register float y=min_y; y<=max_y; ++y)
          gotoxy(banollim(-min_x+1+where_x),(where_y-banollim(y)*tab_y+max_y*tab_y));
          printf (".");
  • 토이/숫자뒤집기/김남훈 . . . . 32 matches
         #include <stdio.h>
         #include <string.h>
         const int MAX_BUF = 10;
         void inverseNumber(const char * input);
         int main(void) {
          char input[MAX_BUF];
          scanf("%s", input);
          inverseNumber(input);
         void inverseNumber(const char * input) {
          int i;
          int len = strlen(input);
          printf("%c", input[i]);
          printf("\n");
         public class InverseNumber {
          public void inverse(String input) {
          char [] c = input.toCharArray();
          for (int i = c.length - 1; i >= 0; i--)
          System.out.print(c[i]);
          System.out.println();
          public void inverse(int input) {
  • 호너의법칙/조현태 . . . . 32 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int input[11] = {3,3,3,3,3,3,3,3,3,3,3} ;
         const int INPUT_MAX=11;
         int x;
         int number_of_sum=0;
         int number_of_multiply=0;
         int Horner(int);
         void main()
          const int SIZE_OF_LINE=5;
          const int NUMBER_TO_CHAR=48;
          const int SIZE_OF_BLOCK=4;
          cin >> x;
          char write_temp[SIZE_OF_LINE][8+INPUT_MAX*SIZE_OF_BLOCK];
          for (register int i=0; i<8+INPUT_MAX*4; i++)
          strcpy(write_temp[1]," |index|");
          for (register int i=0; i<INPUT_MAX; i++){
          if (10<=input[i])
          write_temp[3][i*SIZE_OF_BLOCK+8]=input[i]/10+NUMBER_TO_CHAR;
  • AcceleratedC++/Chapter1 . . . . 31 matches
         #include <iostream>
         #include <string>
         int main() {
          std::string name;
          std::cin >> name;
          // write a greeting
         // ask for the person's name, and generate a framed greeting
         #include <iostream>
         #include <string>
         int main() {
          std::string name;
          std::cin >> name;
          // build the message that we intend to write
          const std::string greeting = "Hello, " + name + "!";
          // build the second and fourth lines of the output
          const std::string spaces(greeting.size(), ' ');
          const std::string second = "* " + spaces + " *";
          // build the first and fifth lines of the output
          const std::string first(second.size(), '*');
          std::cout << "* " << greeting << " *" << std::endl;
  • EightQueenProblem2/이덕준소스 . . . . 31 matches
         #include <iostream.h>
         #include <math.h>
         bool EightQueens(int level, int queens[]);
         bool Promissing(int level, int queens[]);
         bool WellPutted(int level1, int level2, int queens[]);
         void PrintResult(int queens[]);
         int main(int argc, char* argv[])
          int queens[8],i;
         bool EightQueens(int level, int queens[])
          int i;
          if (Promissing(level,queens))
          PrintResult(queens);//return true;
         bool Promissing(int level, int queens[])
          int i;//,j;
         bool WellPutted(int level1, int level2, int queens[])
         void PrintResult(int queens[])
          for (int i=0;i<8;i++)
  • Gof/Composite . . . . 31 matches
         == Intent ==
         드로우 에디터나 회로설계 시스템과 같은 그래픽 어플리케이션은 단순한 컴포넌트들의 차원을 넘어서 복잡한 도표들을 만들어내는데 이용된다. 사용자는 더 큰 컴포넌트들을 형성하기 위해 컴포넌트들을 그룹화할 수 있고, 더 큰 컴포넌트들을 형성하기 위해 또 그룹화 할 수 있다. 단순한 구현방법으로는 Text 나 Line 같은 그래픽의 기본요소들에 대한 클래스들을 정의한 뒤, 이러한 기본요소들에 대해 컨테이너 역할을 하는 다른 클래스에 추가하는 방법이 있다.
         Line, Rectangle, Text 와 같은 서브 클래스들은 (앞의 class diagram 참조) 기본 그래픽 객체들을 정의한다. 이러한 클래스들은 각각 선이나 사각형, 텍스트를 그리는 'Draw' operation을 구현한다. 기본적인 그래픽 구성요소들은 자식요소들을 가지지 않으므로, 이 서브 클래스들은 자식요소과 관련된 명령들을 구현하지 않는다.
          * Leaf (Rectangle, Line, Text, etc.)
          * Child ordering
          * 성능향상을 위한 caching
         우리는 간단한 방법으로 Cabinet 나 Bus 와 같은 다른 equipment 컨테이너를 정의할 수 있다. 이로서 우리가 개인용 컴퓨터에 equipment들을 조립하기 위해 (꽤 간단하게) 필요로 하는 모든 것들이 주어졌다.
         Cabinet* cabinet = new Cabinet ("PC Cabinet");
         cabinet->Add (chassis);
         bus->Add (new Card("16Mbs Token Ring"));
         chassis->Add (new FloppyDisk ("3.5in Floppy"));
         CompositePattern의 예는 거의 모든 객체지향 시스템에서 찾을 수 있다. Smalltalk 의 Model/View/Container [KP88] 의 original View 클래스는 Composite이며, ET++ (VObjects [WGM88]) 이나 InterViews (Styles [LCI+92], Graphics [VL88], Glyphs [CL90])등 거의 대부분의 유저 인터페이스 툴킷과 프레임워크가 해당 과정을 따른다. Model/View/Controller 의 original View에서 주목할만한 점은 subview 의 집합을 가진다는 것이다. 다시 말하면, View는 Component class 이자 Composite class 이다. Smalltalk-80 의 Release 4.0 은 View 와 CompositeView 의 서브클래스를 가지는 VisualComponent 클래스로 Model/View/Controller 를 변경했다.
         RTL Smalltalk 컴파일러 프레임워크 [JML92] 는 CompositePattern을 널리 사용한다. RTLExpression 은 parse tree를 위한 Component 클래스이다. RTLExpression 은 BinaryExpression 과 같은 서브클래스를 가지는데, 이는 RTLExpression 객체들을 자식으로 포함한다. 이 클래스들은 parse tree를 위해 composite 구조를 정의한다. RegisterTransfer 는 프로그램의 Single Static Assignment(SSA) 형태의 중간물을 위한 Component 클래스이다. RegisterTransfer 의 Leaf 서브클래스들은 다음과 같은 다른 형태의 static assignment 를 정의한다.
          * source register 를 가지지만, destination register 를 가지지 않는, register가 해당 루틴이 리턴 된 뒤에 이용되는 assignment
          * destination register 를 가지지만, source register 를 가지지 않는, 해당 루틴이 시작되기 전에 register 가 assign되는 assignment
         Another subclass, RegisterTransferSet, is a Composite class for representing assignments that change several registers at once.
         Another example of this pattern occurs in the financial domain, where a portfolio aggregates individual assets. You can support complex aggregations of assets by implementing a portfolio as a Composite that conforms to the interface of an individual asset [BE93].
         CompositePattern의 또다른 예는 각각의 자산들을 포함하는 portfolio인 financial domain 에서 나타난다. portfolio 를 각각의 asset 의 인터페이스를 구성하는 Composite 로 구현함으로써 복잡한 asset의 포함관계를 지원할 수 있다.
          * 종종 컴포넌트-부모 연결은 ChainOfResponsibilityPattern에 이용된다.
  • JollyJumpers/강희경 . . . . 31 matches
         #include<iostream>
         using namespace std;
         int* InputList();
         bool Judge(int* aList);
         int GetSumOfGoalGap(int aN);
         bool isCorrectInput;
         void main()
          isCorrectInput = true;
          OutputJudgement(Judge(InputList()));
         int* InputList(){
          bool isInputStart = false;
          int numberOfInputFactor;
          int* inputedList;
          if(!isInputStart){
          if(cin >> numberOfInputFactor){
          inputedList = new int[numberOfInputFactor+1];
          inputedList[0] = numberOfInputFactor;
          isInputStart = true;
          if(numberOfInputFactor < 2){
          isCorrectInput = false;
  • JollyJumpers/남훈 . . . . 31 matches
         def initTable(n):
          diffTable = initTable(n)
          for i in range(n-1):
         def parseInput():
          lines = []
          line = sys.stdin.readline()
          if line == '' or line[0] == '0':
          line = line.rstrip().split(' ')
          inted = []
          for atom in line:
          inted.append(int(atom))
          lines.append(inted[1:])
          return lines
          print 'Jolly'
          print 'Not jolly'
         def main():
          lines = parseInput()
          #print lines
          for line in lines:
          displayDecision(isJolly(line))
  • LUA_2 . . . . 31 matches
         > print(type("TEST")) --- 문자열
         string
         > print(type(1)) --- 숫자
         >print(type(true)) --- 논리 자료형
         >print(type(nil)) --- NULL 값
         > print(type({}))
         > print(t[1])
         > print(1) --- 상수
         > print(0xa) --- 16진수
         > print(1.1) --- 실수
         > print(1e2) --- 지수형 1 * 10^2
         > print(1/0)
         1.#INF
         > print( 1 > 2 )
         nill 은 단순히 자료형일 뿐만 아니라 instance화 되지 않은 모든 객체 형태를 말합니다.
         > print( test )
         > print(sum)
         >print (a)
         >print(b)
         > print (a)
  • NumberBaseballGame/동기 . . . . 31 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int number[3];
         int input[3];
         int random(int[],int);
         void main()
          int strike,ball;
          int i = 0;
          cin>>input[0];
          cin>>input[1];
          cin>>input[2];
          cin.get();
          if (input[0]!=0 && input[0]!=input[1] && input[1]!=input[2] && input[0]!=input[2])
          for (int k=0;k<3;k++)
          if (number[k]==input[k])
          if (number[0]==input[k])
          if (number[1]==input[k])
          if (number[2]==input[k])
  • 김신애/for문예제1 . . . . 31 matches
         #include <iostream.h>
         int main()
          for (int i =1; i < 11 ; i=i++)
         #include <iostream.h>
         int main()
          int b;
          cin >>b;
          for (int a=1;a<10;a=a+1)
         #include <iostream.h>
         int main()
          for (int b=2;b<10;b=b+1)
          for (int a=1;a<10;a=a+1)
         #include <iostream.h>
         int main()
          int array[10] = {1,2,3,4,5,6,7,8,9,10};
          for (int i = 0 ; i < 10 ; i++)
          int array_[10];
         int 형 배열 10개에 cin으로 입력 받은 값을 저장해서 배열의 합을 출력~!
         #include <iostream.h>
         int main()
  • 데블스캠프2010/다섯째날/ObjectCraft/미션1/서민관 . . . . 31 matches
         #include <iostream>
         #include "zergling.h"
         int main(void)
          zergling* z1 = createZergling();
          zergling* z2 = createZergling();
         == zergling.cpp ==
         #include <iostream>
         #include "zergling.h"
         using namespace std;
         zergling* createZergling()
          zergling* z1 = (zergling*)malloc(sizeof(zergling));
         void attack(zergling* z1, zergling* z2)
         == zergling.h ==
         typedef struct zergling
          int atk;
          int def;
          int HP;
         } zergling;
         zergling* createZergling();
         void attack(zergling* z1, zergling* z2);
  • 마방진/곽세환 . . . . 31 matches
         #include <iostream>
         using namespace std;
         int main()
          int input, count, row, col;
          int **mabang;
          int i, j;
          cin >> input;
          while (input % 2 == 0)
          cin >> input;
          mabang = new int*[input];
          for (i = 0; i < input; i++)
          mabang[i] = new int[input];
          for (i = 0; i < input; i++)
          for (j = 0; j < input; j++)
          row = 0; col = input / 2;
          while (count != input * input)
          if (mabang[(row - 1 == -1 ? input - 1 : row - 1)][(col + 1 == input) ? 0 : col + 1] == 0)
          row = input - 1;
          if (col == input)
          for (i = 0; i < input; i++)
  • 하욱주/Crap . . . . 31 matches
         #include<iostream>
         #include<stdlib.h>
         #include<time.h>
         using namespace std;
         void main()
          double beting;
          int num;
          int sq1,sq2;
          << "배팅하실 금액을 적어주세요($10~$100) : $"; cin >> beting;
          if(money<beting)
          continue;
          if(beting >100 || beting <10)
          continue;
          money-=beting;
          cout << "당신이 배팅하신 금액은 $" << beting <<" 입니다." << endl
          <<"배팅 하실 곳은? (1 ~ 3) : "; cin >> num;
          cin >> num;
          beting*=5;
          <<"$" << money << " + "<<"$" <<beting<< " = $" << money+beting;
          money+=beting;
  • 3N+1Problem/Leonardong . . . . 30 matches
          for i in range( aFrom, aTo + 1):
          numFrom = input("")
          numTo = input("")
          print self.getMaximumCycleLength(numFrom, numTo)
         if __name__ == '__main__':
         ## unittest.main()
          def __init__(self):
          for i in range( aFrom, aTo + 1):
          if n not in self.cycleLens:
          numFrom = input("")
          numTo = input("")
          print self.getMaximumCycleLen(numFrom, numTo)
          if n in self.cycleLens:
          if aN not in self.cycleLens:
          # goal = 999,999 in 4 sec
         if __name__ == '__main__':
          unittest.main(argv=('','-v'))
         # 45m after tuning
         def preProcessing():
          interval = 1
  • C++ . . . . 30 matches
         C++ (pronounced "see plus plus") is a general-purpose computer programming language. It is a statically typed free-form multi-paradigm language supporting procedural programming, data abstraction, object-oriented programming, and generic programming. During the 1990s, C++ became one of the most popular commercial programming languages.
         Bell Labs' Bjarne Stroustrup developed C++ (originally named "C with Classes") during the 1980s as an enhancement to the C programming language. Enhancements started with the addition of classes, followed by, among many features, virtual functions, operator overloading, multiple inheritance, templates, and exception handling. The C++ programming language standard was ratified in 1998 as ISO/IEC 14882:1998, the current version of which is the 2003 version, ISO/IEC 14882:2003. New version of the standard (known informally as C++0x) is being developed.
         In C and C++, the expression x++ increases the value of x by 1 (called incrementing). The name "C++" is a play on this, suggesting an incremental improvement upon C.|}}
         C++은 범용성을 가진 컴퓨터 언어이다. 이는 정적으로 분류된(?) 다중 패라다임을 지원하는 언어이다. ( [:절차적프로그래밍 절차적 프로그래밍], [:GenericProgramming 제네릭 프로그래밍]을 지원한다.) 1990년대에 C++은 가장 상업적으로 인기가 있는 언어중의 하나가 되었다.
         벨 연구소의 [http://www.research.att.com/~bs/homepage.html Bjarne Stroustrup]은 1980년대에 당시의 [C]를 개선해 C++을 개발하였다. (본디 C with Classes라고 명명했다고 한다.) 개선된 부분은 클래스의 지원으로 시작된다. (수많은 특징들 중에서 [가상함수], [:연산자오버로딩 연산자 오버로딩], [:다중상속 다중 상속], [템플릿], [예외처리]의 개념을 지원하는) C++ 표준은 1998년에 ISO/IEC 14882:1998로 재정되었다. 그 표준안의 최신판은 현재 ISO/IEC 14882:2003로서 2003년도 버전이다. 새 버전의 표준안(비공식 명칭 [C++0x])이 현재 개발중이다. [C]와 C++에서 ++이라는 표현은 특정 변수에 1의 값을 증가시키는 것이다. (incrementing이라 함). C++이라는 명칭을 이와 동일한 의미를 갖는데, [C]라는 언어에 증가적인 발전이 있음을 암시하는 것이다.
          * [RuminationOnC++]
          * [C++/SmartPointer]
         [ProgrammingLanguage], [C++0x]
         [[include(틀:ProgrammingLanguage)]]
  • Hartals/상협재동 . . . . 30 matches
         #include <iostream>
         using namespace std;
         int term;
         int numberOfHartal;
         int hartal[100] = {0,};
         int strike[3650] = {0,};
         int totalStrike[100] = {0,};
         void input();
         void process(int num);
         void output(int testCase);
         void arrayInit(int* array, int arrayNum);
         void arrayInit(int* array, int arrayNum)
          for(int i = 0; i < arrayNum; i++)
         void main()
          int testCase;
          cin >> testCase;
          for(int i = 0; i < testCase; i++)
          arrayInit(hartal, 100);
          arrayInit(strike, 3650);
          input();
  • HolubOnPatterns/밑줄긋기 . . . . 30 matches
          * faith coding과도 상통하는 말인가ㅋㅋ - [서지혜]
          * 2학년땐 나도 저렇게 생각했다ㅜㅜㅜ [Spring/탐험스터디]에서도 얘기했지만 그래서 객체지향설계라면 메소드만 있는 클래스는 존재해선 안된다고 말한 적도 있음ㅜㅜㅜㅜ 부끄럽다... - [김수경]
          * 켄 아놀드는 다음과 같이 말한다. "정보가 아닌 도움을 요청하라(Ask for help, not for information)."
         interface Employee
          * ''''유일성'과''' ''''전역 접근'이란''' 조건을 만족시키면 Singleton 패턴의 실체화라 할 수 있다. Employee factory는 두 조건을 모두 만족시키므로 합당한 Singleton 패턴 실체화이다.
         ==== Singleton에서의 스레딩 이슈 ====
         class Singleton
         { private static Singleton instance = null;
          public static instance()
          { if( instance == null)
          { instance = new Singleton();
          return instance;
         ==== Double-Checked Locking(사용하지 말라) ====
         ==== Singleton 죽이기 ====
          * 또한 셧다운 훅 안에서 Singleton을 사용한다면 죽었다 되살아나는 좀비 Singleton을 만들 위험도 있다.
          * 그리고 좀비가 너의 뇌를 먹겠지(Zombie ate your brain) - [김준석]
          * 앞에서 객체를 생성할 때 Singleton 패턴과 Abstract Factory 패턴이 자주 함께 사용된다고 설명했다. '''그러므로''' Abstract Factory에 대해 좀 더 알아보기로 하자.
          * 관점을 바꾸어 보면 {{{URLConnection은 InputStream}}} 구현체들을 생성하는 Abstract Factroy이기도 하다.
          * Naver Ending Story.. - [김준석]
          * Naver Anding story? - [서지혜]
  • JollyJumpers/임인택 . . . . 30 matches
          private int array[];
          public void setArray(int[] arr) {
          public String testify() {
          int size = array.length;
          int count=0;
          for(int i=0; i<size-1; ++i) {
          int tmp = Math.abs(array[i]-array[i+1]);
          public static void main(String args[]) {
          int arr[] = new int[args.length];
          for(int i=0; i<arr.length; ++i) {
          arr[i] = Integer.parseInt(args[i]);
          System.out.println(jj.testify());
          int arr1[] = {1,2,3,4};
          int arr2[] = {1,2,3,4,5};
          int arr3[] = {1,1,2,3};
          int arr1[] = {1,2,3};
          int arr1[] = {1,2,3,4,5};
          int arr2[] = {1,4,2,3};
          int arr1[] = {1,4,2,3};
          int arr2[] = {1,2,3,4,5};
  • Marbles/문보창 . . . . 30 matches
         #include <iostream>
         using namespace std;
          int box1;
          int box2;
         const int TYPE1 = 1;
         const int TYPE2 = 2;
         void show(Marble marble, int cheapest);
         Marble find_number_box(int n1, int n2, int n);
         int main()
          int n;
          int c1, n1;
          int c2, n2;
          int cheapest;
          while (cin >> n)
          cin >> c1 >> n1;
          cin >> c2 >> n2;
          marble = find_number_box(n1, n2, n);
          marble = find_number_box(n2, n1, n);
         Marble find_number_box(int n1, int n2, int n)
          int firstModulo;
  • MoinMoin . . . . 30 matches
          * 모인모인 스크린샷 : [http://moinmoin.wikiwikiweb.de/MoinMoinScreenShots]
         === Links ===
          * [http://sourceforge.net/projects/moin/ SourceForge Project Info]
          * [http://moin.sourceforge.net/ Project Homepage]
          * [http://freshmeat.net/projects/moin FreshMeat Entry]
         "Moin" meaning "Good Morning", and "MoinMoin" being an emphasis, i.e. "A ''Very'' Good Morning". The name was obviously chosen for its WikiWikiNess.
         ''No! Originally "MoinMoin" does '''not''' mean "Good Morning". "Moin" just means "good" or "nice" and in northern Germany it is used at any daytime, so "Good day" seems more appropriate.'' --MarkoSchulz
         Mmmmh , seems that I can enrich so more info: "Moin" has the meaning of "Good Morning" but it is spoken under murmur like "mornin'" although the Syllable is too short alone, so it is spoken twice. If you shorten "Good Morning" with "morn'" it has the same effect with "morn'morn'". --Thomas Albl
         We use it all day in the south too. I always thought it just morphed from a morning greeting to an all-day one. -- J
  • RandomWalk/재니 . . . . 30 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int sq();
         int main()
          int n, l_or_r, line, row, passed, count = 0;
          cin >> n;
          cin.get();
          int ** square = new int * [n];
          for (int i = 0 ; i < n ; i++)
          square[i] = new int [n];
          line = rand() % n;
          for (int j = 0 ; j < n ; j++)
          if (line == 0)
          line ++;
          else if(line == n - 1)
          line --;
          line += sq();
          square[line][row]++;
          for (int i = 0 ; i < n ; i++)
  • RandomWalk2/ExtremePair . . . . 30 matches
          def __init__(self):
          self.board = [[0 for c in range(self.col)] for r in range(self.row)]
          self.movingCount = 0
          self.movingCount += 1
          while (len(self.journey) != self.movingCount or self.isBoardAllPassed()):
          for r in range(self.row):
          for c in range(self.col):
          print self.movingCount
          for r in range(self.row):
          for c in range(self.col):
          print self.board[r][c],
          print
         if __name__ == '__main__':
          #unittest.main()
          row = int(raw_input())
          col = int(raw_input())
          startRow = int(raw_input())
          startCol = int(raw_input())
          journeyString = raw_input()
          for i in range(len(journeyString)):
  • Ruby/2011년스터디/서지혜 . . . . 30 matches
          * windows API로 프로세스의 정보 받아오기 ([http://sosal.tistory.com/100 원본])
         #include <stdio.h>
         #include <stdlib.h>
         #include <tchar.h>
         #include <Windows.h>
         #include <TlHelp32.h>
         int _tmain(int argc, TCHAR *argv[]){
          if(hProcessSnap == INVALID_HANDLE_VALUE) {
          _tprintf(_T("CreateToolhelp32Snapshot erre\n"));
          // structure to hold process's inform
          _tprintf(_T("Process32First error!\n"));
          _tprintf(_T("\t[Process name]\t[PID]\t[ThreadID]\t[PPID]\n"));
          int countProcess=0;
          _tprintf(_T("%25s %8d %8d %8d\n"),
          printf("number of process = %d", countProcess);
         #include <stdio.h>
         #include <stdlib.h>
         #include <tchar.h>
         #include <Windows.h>
         #include <TlHelp32.h>
  • [Lovely]boy^_^/USACO/BrokenNecklace . . . . 30 matches
         #include <iostream>
         #include <fstream>
         #include <string>
         using namespace std;
         ifstream fin("beads.in");
         int len = 0;
         string BeadsList;
         void InputData();
         int Process();
         const string CutAndPasteBack(const string& str, int pos);
         int main()
          InputData();
          fin.close();
         void InputData()
          fin >> len;
          fin >> BeadsList;
         int Process()
          int lnum = 0;
          int rnum = 0;
          int max = 0;
  • 김태진/Search . . . . 30 matches
         == Linear Continuous Search ==
         #include <stdio.h>
         int linear_search(int a[], int size, int val);
         int main()
          int arr[10]={5,8,13,2,4,15,13,17,18,20};
          int index, val;
          for(index=1;index>0;){
          index=linear_search(arr,10,val);
          if (index<0) printf("Not found.\n");
          else printf("%d is found in %d-th position in the array.\n", val,index);
         int linear_search(int a[], int size, int val)
          static int check=0;
          int i=0;
  • 데블스캠프2002/진행상황 . . . . 30 matches
          * OOP를 바로 설명하기 전에 나의 프로그래밍 사고 방식을 깨닫고, StructuredProgramming 의 경우와 ObjectOrientedProgramming 의 경우에는 어떠한지, 그 사고방식의 이해에 촛점을 맞추었다.
          * StructuredProgramming - 창준이형이 역사적인 관점에서의 StructuredProgramming에 대해 설명을 하셨다. 그 다음 ["1002"]는 ["RandomWalk2"] 문제에 대해서 StructuredProgramming을 적용하여 풀어나가는 과정을 설명해 나갔다. (원래 예정의 경우 StructuredProgramming 으로 ["RandomWalk2"] 를 만들어가는 과정을 자세하게 보여주려고 했지만, 시간관계상 Prototype 정도에서 그쳤다)
          * ObjectOrientedProgramming - ["RandomWalk2"] 에 대해서 창준이형과 ["1002"] 는 서로 이야기를 해 나가면서 하나씩 객체들을 뽑아내가는 과정을 설명했다. 일종의 CRC 카드 세션이었다. 그러고 나서는 프로젝터를 통해, 직접 Prototype을 만들어 보였다. OOP/OOAD로 접근하는 사람의 사고방식과 프로그래밍의 과정을 바로 옆에서 관찰할 수 있었다.
          * Python 기초 + 객체 가지고 놀기 실습 - Gateway 에서 Zealot, Dragoon 을 만들어보는 예제를 Python Interpreter 에서 입력해보았다.
          * ["RandomWalk2"] 를 ObjectOrientedProgramming 으로 구현하기 - 위의 Python 관련 실습동안 ["1002"] 는 ["RandomWalk2"] 에 대해서 C++ Prototype을 작성. (["RandomWalk2/ClassPrototype"]) 이를 뼈대로 삼아서 ["RandomWalk2"] 를 작성해보도록 실습. 해당 소스에 대한 간략한 설명, 구현의 예를 설명. 중간에 객체들에 대한 독립적인 테스트방법을 설명하면서 assert 문을 이용한 UnitTest 의 예를 보였다.
         Python으로 만든 스타크래프트 놀이는 참가자들이 무척이나 좋아했다. 또 그 직전에 Python Interactive Shell에서 간단하게 남자, 여자, 인간 클래스를 직접 만들어 보게 한 것도 좋아했다. 아주 짧은 시간 동안에 OOP의 "감"을 느끼게 해주는 데 일조를 했다고 본다.
          * '''Pair Teaching''' 세미나를 혼자서 진행하는게 아닌 둘이서 진행한다면? CRC 디자인 세션이라던지, Structured Programming 시 한명은 프로그래밍을, 한명은 설명을 해주는 방법을 해보면서 '만일 이 일을 혼자서 진행했다면?' 하는 생각을 해본다. 비록 신입회원들에게 하고싶었던 말들 (중간중간 팻감거리들;) 에 대해 언급하진 못했지만, 오히려 세미나 내용 자체에 더 집중할 수 있었다. (팻감거리들이 너무 길어지면 이야기가 산으로 가기 쉽기에.) 그리고 내용설명을 하고 있는 사람이 놓치고 있는 내용이나 사람들과의 Feedback 을 다른 진행자가 읽고, 다음 단계시 생각해볼 수 있었다.
         다른 하나는, 요구사항이 어떻게 제시되느냐가 산출물로서의 프로그램에 큰 영향을 끼친다는 점이다. 요구사항이 어떤 순서로 제시되느냐, 심지어는 어떤 시제로 제시되느냐가 프로그램에 큰 영향을 끼친다. 심리학에서 흥미로운 결과를 찾아냈다. "내일은 한국과 브라질의 경기날입니다. 결과가 어떻게 될까요?"라는 질문과, "어제는 한국과 브라질의 경기가 있었습니다. 결과가 어땠나요?"라는 질문에 대해 사람들의 대답은 큰 차이가 있었다. 후자 경우가 훨씬 더 풍부하고, 자세하며, 구체적인 정보를 끌어냈다. 이 사실은 요구사항에도 적용이 되어서, 요구사항의 내용을 "미래 완료형"이나 "과거형"으로 표현하는 방법(Wiki:FuturePerfectThinking )도 생겼다. "This system will provide a friendly user interface"보다, "This system will have provided a friendly user interface"가 낫다는 이야기다. 어찌되었건, 우리는 요구사항이 표현된 "글" 자체에 종속되고, 많은 영향을 받는다.
         처음 ["1002"]가 계획한 세미나 스케쥴은 조금 달랐다. "어떻게 하면 ObjectOrientedProgramming의 기본 지식을 많이 전달할까"하는 질문에서 나온 스케쥴 같았다. 나름대로 꽤 짜임새 있고, 훌륭한(특히 OOP를 조금은 아는 사람에게) 프로그램이었지만, 전혀 모르는 사람에게 몇 시간 동안의 세미나에서 그 많은 것을 전달하기는 무리가 아닐까 하고 JuNe은 생각했다. 그것은 몇 번의 세미나 경험을 통해 직접 느낀 것이었다. 그가 그간의 경험을 통해 얻은 화두는 다음의 것들이었다. 어떻게 하면 적게 전달하면서 충분히 깊이 그리고 많이 전달할까. 어떻게 하면 작은 크기의 씨앗을 주되, 그것이 그들 속에서 앞으로 튼튼한 나무로, 나아가 거대한 숲으로 잘 자라나게 할 것인가.
         그래서 ["1002"]와 JuNe은 세미나 스케쥴을 전면적으로 재구성했다. 가르치려던 개념의 수를 2/3 이하로 확 잘랐고, 대신 깊이 있는 학습이 되도록 노력했다. 가능하면 "하면서 배우는 학습"(Learn By Doing)이 되도록 노력했다.
          * 세미나 - DevelopmentinWindows, EventDrivenProgramming, Web Programming
          * DevelopmentinWindows 세미나는 신입생들에게는 조금 어려웠나봅니다. 준비도 많이 하고 쉽게 설명하려고 복잡한건 다 뺐는데...... 그래도 어려웠나봅니다. 어쨌든 조금이나마 도움이 되었으면 좋겠습니다. --상규
          * Web Programming 때 상규의 보충설명을 보면서 상규가 대단하다는 생각을 해봤다. 간과하고 넘어갈 뻔 했었던 Web Program의 작동원리에 대해서 제대로 짚어줬다고 생각한다. --["1002"]
         EventDrivenProgramming 의 설명에서 또하나의 새로운 시각을 얻었다. 전에는 Finite State Machine 을 보면서 Program = State Transition 이란 생각을 했었는데, Problem Solving 과 State Transition 의 연관관계를 짚어지며 최종적으로 Problem Solving = State Transition = Program 이라는 A=B, B=C, 고로 A=C 라는. 아, 이날 필기해둔 종이를 잃어버린게 아쉽다. 찾는대로 정리를; --["1002"]
          * Unix 가 뭐하는거에요? Linux 랑 다른거에요?
          * ["neocoin"] : 정직, 맘 상했다면 정말 미안하다. 미리 언질을 주고 덧붙이기를 하더라도 해야 했는데, 시간이 모자라서 그냥 막무가내로 나와서 이야기를 풀어 놓았구나. 그리고, 앞에서 이야기 하던 중 영문도 모르게, 박수를 받게 만든 남훈이에게도 미안 하다. 엎드려 있는 사람을 완전히 깨우기 위해 '환기의 큰소리'가 필요 했었다. 앉아 있는 사람들은 못느꼈을지 모르겠지만, 앞에서 보고 있던 나는, 그 박수 소리로 마지막 2명이 일어나 칠판을 바라 보는 큰 효과를 보았다. 박수 후 이야기 중 불쾌한 모습 보이지 않아서 고맙다. --["상민"]
  • 데블스캠프2009/목요일/연습문제/MFC/정종록 . . . . 30 matches
         #include "stdafx.h"
         #include "Test.h"
         #include "TestDlg.h"
         #define new DEBUG_NEW
         int sign = 0;
          //{{AFX_DATA_INIT(CAboutDlg)
          //}}AFX_DATA_INIT
         BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
          //{{AFX_DATA_INIT(CTestDlg)
          //}}AFX_DATA_INIT
          // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
          m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
         BEGIN_MESSAGE_MAP(CTestDlg, CDialog)
         ON_WM_PAINT()
         BOOL CTestDlg::OnInitDialog()
          CDialog::OnInitDialog();
          // IDM_ABOUTBOX must be in the system command range.
          CString strAboutMenu;
          strAboutMenu.LoadString(IDS_ABOUTBOX);
          pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
  • 데블스캠프2010/다섯째날/ObjectCraft/미션2/박재홍 . . . . 30 matches
         #include <stdio.h>
         struct zergling{
          int attack;
          int defense;
          int HP;
         int main()
          int dam1,dam2=0;
          struct zergling a;
          struct zergling b;
          printf("저글링 b가 저글링 a에게 데미지 %d를 입혀 HP가 %d가 되었습니다.\n",dam1,a.HP);
          printf("저글링 a가 저글링 b에게 데미지 %d를 입혀 HP가 %d가 되었습니다.\n",dam2,b.HP);
          printf("저글링 a가 죽었습니다ㅠㅠ.\n");
         #include <stdio.h>
         struct zergling{
          int attack;
          int defense;
          int HP;
          int no;
         int get_damage(zergling a, zergling b){
         void att(zergling & a, zergling &b){
  • 새싹교실/2011/쉬운것같지만쉬운반/2011.3.29 . . . . 30 matches
          1. printf 함수의 작동 원리
          (x와 y는 다음과 같이 선언되어 있다., int x = 31; int y = 9;)
          4. 다음 printf 함수와 scanf 함수 사용 중 틀린 것을 고르고, 제대로 고치시오.
          printf("%d + %d = %d\n", 3, 4);
          printf(3 + 4 = 7);
          printf("Olleh~!\n");
          scanf("%d", x); //x는 int형 으로 선언되어 있다고 가정.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 오늘 배운 것은 printf의 사용법과 각종 연산자에 대한 것이었다. 예전에 배운 적이 있지만 다시 배우니 더 깊이 알게 된 것 같다. 프로그래밍은 배울 수록 느는 것 같다. 앞으로도 복습은 소홀히 하지 않아야겠다. - [장용운]
          printf("%d + %d = %d\n", 3, 4);
          '''printf(3 + 4 = 7);'''
          printf("Olleh~!\n");
          scanf("%d", x); //x는 int형 으로 선언되어 있다고 가정.
          printf("%d + %d = %d\n", 3, 4);
          printf("3 + 4 = 7");
          printf("Olleh~!\n");
          scanf("%d", x); //x는 int형 으로 선언되어 있다고 가정.
         1. 개행 문자(\n)는 printf 함수에서 줄을 넘길 때 사용합니다. 이것에 캐리지 리턴(\r)을 직접 타이핑하지 않는 이유는 printf 함수가 텍스트 모드로 출력하기 때문에 자동으로 캐리지 리턴이 앞에 붙게 되기 때문입니다.
          printf("%d + %d = %d\n", 3, 4 ''', 3+4''');
          printf('''"'''3 + 4 = 7'''"'''); '''//잘 보면 문자열을 감싸는 두 개의 큰따옴표에 하이라이트 되어있습니다'''
  • 새싹교실/2012/새싹교실강사교육/3주차 . . . . 30 matches
         1. Wiki에 Ice breaking 및 진행 상황 정리.
         코딩을 하다 보면 자신의 코드를 다시 한번 점검해야 하는 경우가 꼭 생깁니다. 하지만 항상 문제가 생기죠. 이게 main문의 괄호(curly bracket : {} ) 인지 for문의 {} 인지 헷갈릴 때가 있죠? 이번 시간 이후에 한번 검색해보세요. 코딩 띄어쓰기, 괄호를 어떻게 붙여야 하는지에 대해서 말입니다. 꼭! 잊지 마세요. 중요하답니다.
         #include<stdio.h>
         #include<string.h>
         int calregist(CALORIE *, int);
         float calcalc(CALORIE *, int);
         int main(){
          int cal_num = 6;
          int mode =0;
          printf("칼로리 계산기\n");
          printf("등록은 1, 계산은 2, 종료는 0을 입력하세요 : ");
          else if(mode == 2) printf("총칼로리 : %6.2fkcal\n\n", calcalc(cal, cal_num));
         int calregist(CALORIE *pcal, int num){
          printf("식품명을 입력하세요 : ");
          printf("그 식품의 칼로리를 입력하세요[kcal/100g] : ");
          printf("등록되었습니다.\n\n");
         float calcalc(CALORIE *pcal, int num){
          int i;
          printf("-- 식품명 일람 -------------\n");
          printf("%s\t", (pcal+i)->name);
  • 중위수구하기/정수민 . . . . 30 matches
         #include <stdio.h>
         int search_middleNum(int *, int *, int *);
         void main()
          int a, b, c, middleNum;
          printf("멈추려면 '-999 0 0' 입력\n");
          printf("비교할 A, B, C 값을 차례로 입력 : ");
          printf("중위수 = %d", middleNum);
         int search_middleNum(int *a, int *b, int *c)
          int middleNum_1, middleNum_2, i_1=0, i_2=0;
         #include <stdio.h>
         int search_middleNum(int *, int *, int *);
         void main()
          int a, b, c, middleNum;
          printf("멈추려면 '-999 0 0' 입력\n");
          printf("비교할 A, B, C 값을 차례로 입력 : ");
          printf("중위수 = %d", middleNum);
         int search_middleNum(int *a, int *b, int *c)
          int middleNum_1, middleNum_2;
  • 파스칼삼각형/구자겸 . . . . 30 matches
         #include <stdio.h>
         #define MAX 10
         void main()
          int colum, row; // 행과 열
          int i,j; // 카운터
          int array[MAX][MAX]; // 배열
          printf("%d ", array[i-1][j-1]);
          printf("%d ", array[i-1][j-1]);
          printf("%d\n", array[colum-1][row-1]);
         def getrow(index):
          while (i<index):
          for j in range(r):
          if i>index: break
         def getcol(index):
          for i in range(getrow(index)):
          return index - first + 1
         def getindex(row, col):
          for i in range(row):
          arr = [ 0 for x in range(maxrow) for y in range(x+1) ]
          for i in range(len(arr)):
  • 피보나치/조현태 . . . . 30 matches
         #include <iostream>
         using namespace std;
         int fibonacci1( int prv_answer,int sub_answer, int number )
         void prin(unsigned int num, unsigned int prv_answer )
         void fibonacci2( unsigned int prv_answer,unsigned int sub_answer, unsigned int number, int call)
          unsigned int num=1;
          unsigned int temp=sub_answer;
          prin (num, prv_answer);
          prin (num, prv_answer);
         void main()
          unsigned int number;
          int call;
          cin >> number;
          cin >> number;
          cin >> call;
          print prv_answer
         if __name__ == '__main__':
          t= int (raw_input('느린연산 숫자를 입력해주세요>>'))
          print k
          t= int (raw_input('빠른연산 숫자를 입력해주세요>>'))
  • JollyJumpers/김태진 . . . . 29 matches
         #include <stdio.h>
         int jolly(int A[], int val, int B[]);
         int bubbleSort(int A[], int n);
         int main()
          int a[3001]={0};
          int b[3001]={0};
          int i,val,result;
          if(feof(stdin)) break;
          printf("Jolly\n");
          if(feof(stdin)) break;
          continue;
          if(result==val-2) printf("Jolly\n");
          else printf("Not jolly\n");
          if(feof(stdin)) break;
         int jolly(int A[], int val, int B[])
          int x=0,j;
         int bubbleSort(int C[], int n)
          int i,j,temp;
  • MFC/Print . . . . 29 matches
         #define _MFC_
         = Print in MFC =
          * CView::OnPreparePrinting()
          페이지 카운트를 계산한다. DoPreparePrinting() 호출
          * CView::OnBeginPrinting()
          * CView::OnPrint()
          * CView::OnEndPrinting()
          뷰클래스의 5개의 멤버함수는 프로그래머가 재정의 해야한다. 최소한 5개중에서 OnPreparePrinting(), OnPrepareDC(), OnPrint()는 구현해야한다.
          프린터 작업과 관계되는 모든 함수는 CPrintInfo 형의 객체 포인터가 인자로 전달된다. 이 객체는 프린터 작업을 관리하는 함수들을 연결시켜준다.
         = CPrintInfo =
         || m_pPD || CPrintDialog 객체에 대한 포인터. 출력 대화 상자를 나타낸다. ||
         || m_bPreview || Print Preview 가 선택되면 TRUE, 아니면 FALSE ||
         || m_bContinuePrinting || TRUE로 설정되면 출력 루프를 계속한다. FALSE가 되면 프린트 작업 종료. ||
         || m_nCurPage || UINT형식을 갖는 값으로서 현재 페이지 번호를 저장 ||
         || m_nNumPreviewPages || UINT preview 우니도우에 나타나 있는 페이지들의 번호 1 or 2 ||
         || m_lpUserData || LPVOID 형식을 갖는다. 생성한 객체에 대한 포인터를 저장한다. 출력작업에 관한 추가 정보를 저장하는 객체를 생성할 수 있도록 한다. CPrintInfo 객체와 연계 시킬 수 있도록 한다. ||
         || m_strPageDesc || CString 객체로 프린트 preview 동안에 페이지 번호를 나타내기 위해 프레임 웍에서 사용되는 포맷 문자열을 포함한다. ||
         || m_bDocObject || 응용프로그램이 lPrint 인터페이스를 통하여 출력하면 TRUE로 설정되며, 그렇지 않은 경우에는 FALSE이다. ||
         || m_dwFlags || m_bDocObject가 TRUE일때만 유호. DWORD값으로 lPrint::Print에 전달된 플래그 ||
         || m_nOffsetPage || m_bDocObject가 TRUE일때만 유효. lPrint job 안에서 첫번째 페이지 offset을 준다. ||
  • PythonForStatement . . . . 29 matches
          for i in a:
          print i
          for d in a:
          print d
         비슷한 것을 찾자면 C++의 배열보다는 C++의 string 클래스, Java의 String 클래스와 비슷하다는 점을 알 수 있어. -- [Leonardong]
         for i in 'helloworld':print i,
         for i in [ 'h','e','l','l','o','w','o','r','l','d']:print i,
         for statement definition
         for_stmt ::= "for" target_list "in" expression_list ":" suite
         for 타겟객체리스트(target) in 시퀀스형(expression_list==sequence):
         in 다음에 와야할 문은 시퀀스형 입니다.
         These represent finite ordered sets indexed by non-negative numbers. The built-in function len() returns the number of items of a sequence. When the length of a sequence is n, the index set contains the numbers 0, 1, ..., n-1. Item i of sequence a is selected by a[i].
         {{|There are six sequence types: strings, Unicode strings, lists, tuples, buffers, and xrange objects|}}
         내장형인 strings 도 시퀀스 형이며, {{{a[i]}}} 형태로 접근할수 있습니다. 따라서,
         for i in 'helloworld': print i,
         for i in [ 'h','e','l','l','o','w','o','r','l','d']:print i,
         Java 1.5 에 advanced for statement 라는 이름으로 비슷한 것이 추가되었고, C#에는 언어가 탄생 될때 부터 있었습니다. Java 1.5에서는 수년간 논의 끝에 도입을 했는데, 언어에 녹이기 위해서는 Autoboxing/Unboxing과 편리성을 위해 Template과 같은 여러 필수불가결하고 복잡다난(?)한 개념이 함께 추가되었습니다.
         --NeoCoin
  • RandomWalk/은지 . . . . 29 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         void move(int dir);
         int check_all(int);
         void display(int);
         int **walk;
         int **check;
         int row, col;
         int main()
          int size, i, j;
          int end , direct ;
          cin >> size;
          walk = new int *[size+2];
          walk[i] = new int[size+2];
          check = new int *[size+2];
          check[i] = new int[size+2];
         int check_all(int size)
          int sum =0;
          for(int i=0; i<size+2; i++)
  • STL/map . . . . 29 matches
          * include : map
         #include <map>
         map<string, long> m;
          * STL의 container 들은 모두 비슷한 모양의 순회를 한다.
         for(map<int, int>::iterator i; i = m.begin() ; i != m.end() ; ++i) {
         #include <iostream>
         #include <map>
         #include <string>
         using namespace std;
         int main()
          map<string, long> directory;
          map<string, long>::iterator i;
          i = directory.begin();
          string name;
          while( cin >> name ){
          if (directory.find(name) != directory.end())
         아쉬운점 : VC++ 6.0 에서 map 한번 쓰면 warning 이 72개가 뜬다; STLPort 를 써야 할까..
          warning 의 이유는 STL에서 나오는 디버그의 정보가 VC++ 디버그 정보를 위해 할당하는 공간(255byte)보다 많기 때문입니다. 보통 디버그 모드로 디버깅을 하지 않으면, Project setting에서 C/C++ 텝에서 Debug info 를 최소한 line number only 로 해놓으면 warning 는 없어 집니다. 그래도 warning 가 난다면 C/C++ 텝에서 Generate browse info 를 비활성(기본값)화 시키세요.
         # pragma warning( disable : 4786 ) 하시면 됩니다.
  • Self-describingSequence/1002 . . . . 29 matches
         for i in [100,9999,123456,1000000000]: print selfDescrib(i)
         def findGroupIdx(table,n,startPos=0):
          for i in xrange(len(table)):
          for i in xrange(3,n+1):
          theGroupIdx = findGroupIdx(table,i)
          return findGroupIdx(table,n)
         풀고 나니, 그래도 역시 1000000000 에 대해서는 굉장히 느림. 느릴 부분을 생각하던 중 findGroupIdx 부분이
         문제임을 생각. 이를 binary search 구현으로 바꿈.
         def findGroupIdx(table,n,startPos=0):
          if n<x: return findGroupIdx(table[:midIdx],n,startPos)
          else: return findGroupIdx(table[midIdx+1:],n,startPos+midIdx+1)
         binary search 로 바꾸고 나서도 역시 오래걸림. 다른 검색법에 대해서 생각하던 중, findGroupIdx 함수 호출을 할때를 생각.
         class FindGroupIdxs:
          def __init__(self,table):
          def find(self,n):
          finder = FindGroupIdxs(table)
          for i in xrange(3,n+1):
          theGroupIdx = finder.find(i)
          return finder.find(n)
         def main():
  • SpiralArray/세연&재니 . . . . 29 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         vector< vector<int> > xbox;
         void makeXbox(int, int);
         void fillXbox(int, int);
         void showXbox(int, int);
         int main()
          int nRow, nCol;
          cin >> nRow;
          cin >> nCol;
         void makeXbox(int nRow, int nCol)
          for (int i = 0 ; i < nRow + 2 ; i++)
          for (int j = 0 ; j < nCol + 2 ; j++)
         void fillXbox(int nRow, int nCol)
          int nRowState = 1, nColState = 1;
          int direction = 0, nextCell;
          int movement[4][2] = { {0, 1}, {1, 0}, {0, -1}, {-1, 0} };
          for (int i = 0 ; i < nRow * nCol ; i++)
         void showXbox(int nRow, int nCol)
  • TicTacToe/노수민 . . . . 29 matches
         import javax.swing.*;
          private static final int O = 1;
          private static final int X = 2;
          int board[][];
          int turn = 1;
          board = new int[3][3];
          "Player" + turn + "Win!");
          int row, col;
          row = (int) ((e.getX() - 100) / 100);
          col = (int) ((e.getY() - 100) / 100);
          repaint();
          if (checkWin()) {
          "Player" + turn + "Win!");
          public boolean checkBoard(int r, int c) {
          public boolean checkWin() {
          for (int i = 0; i < 3; i++) {
          public static void main(String args[]) {
          public void paint(Graphics g) {
          for (int i = 0; i <= 3; i++) {
          g.drawLine(100, 100 + 100 * i, 400, 100 + 100 * i);
  • [Lovely]boy^_^/Diary/2-2-15 . . . . 29 matches
          * A data communication course ended. Professor told us good sayings. I feel a lot of things about his sayings.
          * A computer architecture&organization course ended too. I am worrying about a final test.
          * A merriage and family course ended too, Professor is so funny. A final test is 50 question - O/X and objective.
          * My mom went into hospital. My father is not a good status too. I worry their health. I wish that they'll recover a health.
          * A algorithm course ended. This course does not teaches me many things.
          * A object programming course ended. Professor told us good sayings, similar to a data communication course's professor. At first, I didn't like him, but now it's not. I like him very much. He is a good man.
          * Tomorrow is a unix system programming final test. It's so difficult. I'll try hard.
          * I have suprised at system programming's difference. It's so difficult. In my opinion, if I want to do system programming well, I must study OS.
          * sources for Unix system programming's final-test is so strange.--; mis-typings are so many. I am confused professor's intention.
          * Because my mom's absent, I had to work all day at our store. but a dishwashing was so interesting.
          * Today too, I have worked our store. but today is not as busy as yesterday, so I could study rest final-test.
          * I worry about father's smoking... after my mom was hospitalization, he decreases amount of drinking, but increases amount of smoking.
          * Ah.. I want to play a bass. It's about 2 months since I have not done play bass. And I want to buy a bass amplifier. A few weeks ago, I had a chance that can listen a bass amplifier's sound at Cham-Sol's home. I was impressed its sound. ㅠ.ㅠ.
  • 논문번역/2012년스터디/이민석 . . . . 29 matches
          * 「Experiments in Unconstrained Offline Handwritten Text Recognition」 번역
          * 다음 주까지 1학년 1학기에 배운 Linear Algebra and Its Applications의 1.10, 2.1, 2.2절 번역하기
         == Experiments in Unconstrained Offline Handwritten Text Recognition(제약 없는 오프라인 필기 글자 인식에 관한 실험) ==
         오프라인 필기 글자 인식을 위한 시스템을 소개한다. 이 시스템의 특징은 분할이 없다는 것으로 인식 모듈에서 한 줄을 통째로 처리한다. 전처리, 특징 추출(feature extraction), 통계적 모형화 방법을 서술하고 저자 독립, 다저자, 단일 저자식 필기 인식 작업에 관해 실험하였다. 특히 선형 판별 분석(Linear Discriminant Analysis), 이서체(allograph) 글자 모형, 통계적 언어 지식의 통합을 조사하였다.
         필기 글자 인식은 패턴 인식의 도전적인 분야다. 지금까지의 오프라인 필기 인식 시스템들은 대부분 우편 주소 읽기나 은행 수표 같은 형식을 처리하는 데 적용되었다. [14] 이들 시스템이 개별 글자나 단어 인식에 한정된 반면 제약 없는(unconstrained) 필기 글자 인식을 위한 시스템은 거의 없다. 그 이유는 이러한 작업이 크게 복잡하기 때문인데 글자 또는 단어의 경계에 대한 정보가 없는 데다 헤아릴 수 없을 정도로 어휘가 방대한 것이 특징이다. 그럼에도 필기 글자 인식 기법을 더 조사하는 것이 가치 있는 이유는, 계산 능력이 향삼함에 따라 더욱 복잡한 처리를 할 수 있기 때문이다.
         글을 한 걸음 더 처리하기 위해 각각의 줄을 추출하여야 한다. 그러기 위해 이미지를 필기 라인의 핵심 영역(core region)들 사이를 분리한다. 핵심 영역, 즉 텍스트 라인의 위 베이스라인과 아래 베이스라인 사이의 영역은 threshold를 적용하여 찾는다. threshold는 줄들이 핵심 영역에 속하기 위해 필요한 전방foreground 픽셀들의 최소 개수를 나타낸다. 이 threshold는 이진화한 필기 영역의 수평 밀도 히스토그램을 이용하여 Otsu의 방법 [12]를 적용하면 자동으로 결정된다. 그 다음 수평 투영 히스토그램에서 각 줄의 검은 픽셀의 개수가 축적되고 이미지는 이 투영 히스토그램의 minima를 따라 핵심 영역별로 나눠진다.
         수직 위치와 기울임은 [15]에 서술된 접근법과 비슷한 선형 회귀(linear regression)를 이용한 베이스라인 측정법을 적용하여 교정한 반면에, 경사각 계산은 가장자리edge 방향에 기반한다. 그러므로 이미지는 이진화되고 수평 흑-백과 백-흑 전환을 추출하는데 수직 stroke만이 경사 측정에 결정적이다. canny edge detector를 적용하여 edge orientation 자료를 얻고 각도 히스토그램에 누적한다. 히스토그램의 평균을 경사각으로 쓴다.
         필기의 크기를 정규화하기 위해 각 줄의 극값(local extrema) 개수를 세고 줄의 너비와의 비율을 얻는다. 비례(scaling) 계수는 이 비율에 선형인데 비율이 클 수록 글씨체는 더 좁아지기 때문이다.
         필기 줄을 전처리한 이미지는 특징 추출 단계의 입력 자료로 사용된다. sliding window 기법을 [11]이 설명하는 접근법과 비슷하게 적용한다. 우리의 경우 이미지의 높이와 열 네 개 크기의 창이 이미지의 왼쪽에서 오른쪽으로 두 열씩 겹치면서 움직이고 기하 추출의 쌍을 추출한다.
         sliding window의 각 열에서 특징 7개를 추출한다. (1) 흑-백 변화 개수(windowed text image의 이진화 이후), (2) 베이스라인에 대한 강도 분포의 평균 값 위치, (3) 최상단 글자 픽셀에서 베이스라인까지의 거리, (4) 최하단 글자 픽셀에서 베이스라인까지의 거리, (5) 최상단과 최하단 텍스트 픽셀의 거리, (6) 최상단과 최하단 텍스트 픽셀 사이의 평균 강도, (7) 그 열의 평균 강도. 특징 (2)-(5)는 core size, 즉 하단 베이스라인과 상단 베이스라인(극대값을 통한 line fitting으로 계산)의 거리에 의해 정규화되어, 글씨 크기의 변동에 대해 더욱 굳건해진다. 그 후에 모든 특징은 윈도우의 네 열에 걸쳐 평균화된다.
         강도 분포의 평균값의 변화 뿐 아니라 하단 contour와 상단 contour의 방향을 고려하기 위해 추가적으로 세 가지 방향성 특징을 계산한다. 말인 즉 우리는 네 lower countour 점, upper contour 점, sliding window 내 평균값을 통해 줄들을 재고 선 방향들을 (8), (9), (10) 특성으로 각각 사용한다. (뭔 소리) 더 넓은 temporal context를 고려하여 우리는 특징 벡터의 각 성분마다 근사적인 수평 미분을 추가로 계산하고 결과로 20 차원 특징 벡터를 얻는다. (윈도우당 특징 10개, 도함수 10개)
         특징 벡터들을 decorrelate하고 종류 분별력을 향상하기 위해 우리는 훈련 단계와 인식 단계에서 LDA를 통합한다. (cf. [6]) 원래 특징 표현을 일차 변환하고 특징 공간의 차원을 점차 줄이며 최적화한다. 일차 변환 A를 구하기 위해 훈련 자료의 클래스내 분산(within class scatter) 행렬 Sw와 클래스간 분산(between class scatter) 행렬 Sb를 이용하여 고유 벡터 문제를 해결한다. 이 분산(scatter) 행렬들을 계산하여 각 특징 벡터의 HMM 상태와 함께 이름표를 붙여야 한다. 우리는 먼저 일반적인 훈련을 수행하고 훈련 자료들을 상태를 기준으로 정렬한다. 분산 행렬을 구했으면 LDA 변환은 다음 고유 벡터 문제를 풀어 계산한다.
         필기 글자 인식을 위한 HMM의 구성, 훈련, 해독은 ESMERALDA 개발 환경[5]이 제공하는 방법과 도구의 틀 안에서 수행된다. HMM의 일반적인 설정으로서 우리는 512개의 Gaussian mixtures with diagonal covariance matrice(더 큰 저자 독립 시스템에서는 2048개)를 포함하는 공유 코드북이 있는 semi-continuous 시스템을 사용한다. 52개 글자, 10개 숫자, 12개 구두점 기호와 괄호, 공백 하나를 위한 기본 시스템 모형은 표준 Baum-Welch 재측정을 사용하여 훈련된다. 그 다음 한 줄 전체를 인식하기 위해 글자 모형에 대한 루프로 구성된 conbined model이 사용된다. 가장 가능성 높은 글자 시퀀스가 표준 Viterbi beam- search를 이용하여 계산된다.
         위 식에서 P(W)는 글자 시퀀스 w의 언어 모형 확률이고 P(X|W)는 이 글자 시퀀스를 그 글자 모형에 따라 입력 데이터 x로서 관찰한 확률이다. 우리의 경우 absolute discounting과 backing-off for smoothing of probability distribution을 이용한 바이그램 언어 모형을 적용하였다. (cf. e.g. [3])
         추가로 Bern 대학의 Institute of Informatics and Applied Mathematics, 즉 Horst Bunke와 Urs-Viktor Marti에게 감사한다. 이들은 우리가 필기 양식 데이터베이스인 IAM[10]을 인식 실험에 쓰는 것을 허락하였다.
         == Linear Algebra and Its Applications (4th ed.) by David C. Lay ==
  • 데블스캠프2009/월요일/연습문제/svn코드레이스/서민관 . . . . 29 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         int main(void)
          int num = 0, ent, min = 1, max = 50;
          int i = 0, j = 0;
          printf("UP & DOWN GAME\n");
          printf("숫자를 입력해 주세요.(%d~%d) => ", min, max);
          printf("범위를 넘어가지 않았습니까. 정신은 멀쩡하신가요?\n");
          else if(ent <= 0||ent <min)
          printf("범위를 넘어가지 않았습니까. 정신은 멀쩡하신가요?\n");
          printf("입력한 숫자가 작습니다.\n");
          min = ent+1;
          printf("입력한 숫자가 큽니다.\n");
          printf("정답입니다.\n");
          if(min == max)
          printf("제가 마셔야겠군요. 젠장.\n");
         #include <stdio.h>
         void main()
          int a = 0, i=0,j=0;
  • 데블스캠프2010/다섯째날/ObjectCraft/미션1/김정욱 . . . . 29 matches
         #include<stdio.h>
         #include<stdio.h>
          char zergling;
          int attack;
          int def;
          int hp ;
         int main()
          struct craft zergling[2];
          zergling[0].attack=10;
          zergling[0].def=0;
          zergling[0].hp=100;
          zergling[1].attack=5;
          zergling[1].def=0;
          zergling[1].hp=50;
          zergling[0].hp -= zergling[1].attack;
          printf("저글링1-->저글링0공격 저글링[0]의 hp = %d \n",zergling[0].hp) ;
          if (zergling[0].hp==0){
          zergling[1].hp -= zergling[0].attack;
          printf("저글링0-->저글링1공격 저글링[1]의 hp = %d \n",zergling[1].hp) ;
          if (zergling[1].hp==0){
  • 만년달력/방선희,장창재 . . . . 29 matches
         #include <iostream>
         using namespace std;
         int def_max_month(int temp_year, int temp_month);
         int array[100000][12];
         void main()
          int temp_sum = 0;
          int year,month;
          cin >> year;
          cin >> month;
          for (int y = 1 ; y < year ; y++) // 여기서부터(1)
          for (int i = 1 ; i < 13 ; i++)
          for (int a = 1 ; a < month ; a++)
          for (int k = 1 ; k < year ; k++)
          for (int te=1 ; te < 13 ; te++)
          for (int b = 1 ; b < month ; b++)
          int start = temp_sum % 7;
          int start_copy = start;
          int calen[6][7];
          int one = 1;
          for (int m = 0 ; m < 6 ; m++)
  • 몸짱프로젝트/BinarySearch . . . . 29 matches
         #include <stdio.h>
         int * sort(int aArr[]);
         void swap(int & aVal1, int & aVal2);
         const int SIZE = 10;
         int search(const int aArr[], const int aNum, int front, int rear);
         void main()
          int arr[SIZE] = {1,13,11, 22,6,4,72,11,9,10};
          int * p_arr = sort(arr);
          int result = search(arr, 1, 0, SIZE);
          printf("Position : %d\n", result);
         int * sort(int aArr[])
          for ( int i = 0 ; i < SIZE ; i++)
          for ( int j = 0 ; j < SIZE ; j++)
         void swap(int & aVal1, int & aVal2)
          int temp = aVal1;
         int search(const int aArr[], const int aNum, int front, int rear)
          int mid = (front + rear)/2;
  • 1thPCinCAUCSE/ProblemA/Solution/zennith . . . . 28 matches
         #include <stdio.h>
         int solve(int *);
         int evalMeets(int);
         int accumCount(int);
         double meetPins[11] = {0, 5.5 + 1 * 60, 10.5 + 2 * 60, 16.5 + 3 * 60,
         int main(void) {
          int num, input[4], i, j, output[10] = {0, };
          scanf("%d%d%d%d", &input[0], &input[1], &input[2], &input[3]);
          output[i] = solve(input);
          printf("%d\n", output[i++]);
         int solve(int * arg) {
          int startTime, endTime, ret = 0;
         int evalMeets(int curTime) {
          int prev, present;
         int accumCount(int time) {
          int i, ret;
          if (time < meetPins[i])
  • 2002년도ACM문제샘플풀이/문제C . . . . 28 matches
         #include <iostream>
         using namespace std;
         struct InputData
          int s;
          int f;
          int k;
         InputData* inputData;
         int numberOfData;
         void input()
          cin >> numberOfData;
          inputData = new InputData[numberOfData];
          for(int i = 0;i < numberOfData;i++)
          cin >> inputData[i].s >> inputData[i].f >> inputData[i].k;
          int count;
          for(int i =0;i < numberOfData;i++) {
          count = inputData[i].f - inputData[i].s - 1;
          if(inputData[i].s % 2 == 0)
          if( ((count / inputData[i].k) % 2 == 1 && (count % inputData[i].k) == 0)
          || ((count / inputData[i].k) % 2 == 0 && (count % inputData[i].k) != 0))
          for(int i = 0;i < numberOfData;i++)
  • DataCommunicationSummaryProject/Chapter8 . . . . 28 matches
         = The Air Link =
         = Voice Infrastructure =
         == Switching Centers ==
          * moblie voice 네트워크에서 가장 복잡한 구성요소는 MSC(Mobile Switching Center)이다.
         === The Messaging Center ===
         == Trunking ==
          * 초기 핸드폰 네트워크에서 MSC가 그물망처럼 되었는데, 이건 곧 제어하기 힘들게 되었다. 그래서 TSCs(Trunking Switching Centers)가 씌여지게 되었다.
          * The Gateway Mobile Switching Center (GMSC)는 스위칭 체계의 최 상위에 있다.
          * 그것은 모바일 네트워크를 전화 네트워크(PSTN)나 다른 roaming 협약을 맵은 운영자와 연결한다.
          * 이것은 가장큰 역할은 핸드폰 시스템 자체의 신호 프로토콜을 보통 전화선에서 전화번호와 같은 정보를 나르는데 사용하는 Signaling System 7(SS7)로 변환하는 것이다.
         = Data Infrastructure =
         == Serving Support ==
          * Serving GPRS Support Node (SGSN)은 data infrastructure 에서 MSC와 비슷한 것이다.
          * 인터넷에서 사용되는 IP와 비슷한 GTP(GPRS Tunneling Protocol)라는 프로토콜을 사용한다.
         == Optional GPRS Infrastructure ==
          * The Point-to-Multipoint Service Center(PTM SC), Qos 문제를 다루는 서버이다. 돈을 더 많이 낸 고객에게 통신에서 우선권을 준다. 그리고 소리와 그림과 같이 데이터의 종류에 따라 우선권을 달리 준다.(소리가 더 속도에 민감하다.)
          * The Border Gateway(BG), roaming을 다룬다. 이것은 주로 필터링을 통해서 원하지 않는 연결을 막는 방화벽에 연결되어 있다.
          * The GPRS Charging Gateway(GCG), 요금 지불 옵션을 전문적으로 하기 위해서 필요하다.
          * The Lawful Interception Gateway(LIG), 당국이 GPRS 네트워크에 있는 이동 데이터를 중간에서 엿보는것을 허락한다.
         == GPRS Roaming ==
  • DermubaTriangle/허준수 . . . . 28 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int ax1,ax2,ax3,ay1,ay2,ay3;
         int bx1,bx2,bx3,by1,by2,by3;
         void findPoint()
         int findRow(int x)
          int row = ceil(sqrt(x+1)) * (-1);
         void findLength()
          cout.setf(ios::showpoint);
         void process(int x, int y)
          int row_a = findRow(x);
          int row_b = findRow(y);
          int col_a = (x - pow((row_a+1), 2))/2;
          int col_b = (y - pow((row_b+1), 2))/2;
          findPoint();
          findLength();
         int main()
          int x, y;
          while (cin >> x >> y)
  • EightQueenProblem/nextream . . . . 28 matches
         function safe(line) {
          for (var i=0; i<line; i++)
          if (positions[line]==positions[i] || i+positions[i]==line+positions[line] || i-positions[i]==line-positions[line])
         function check(line) {
          if (line>=8) { display(); return; }
          positions[line] = i;
          if (safe(line)) check(line+1);
         function printBefore(position) {
         function printAfter(position) {
          printBefore(positions[i]);
          printAfter(positions[i]);
         function safe(line) {
          for (var i=0; i<line; i++)
          if (positions[line]==positions[i] || i+positions[i]==line+positions[line] || i-positions[i]==line-positions[line])
         function check(line) {
          if (line>=8) { display(); return; }
          positions[line] = i;
          if (safe(line)) check(line+1);
  • EightQueenProblem/밥벌레 . . . . 28 matches
         interface
          Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
          procedure FormPaint(Sender: TObject);
          i, j: Integer;
         begin
         function CountRow(row: Integer): Integer;
          i: Integer;
         begin
          Inc(Result);
         procedure SetQueens(n: Integer); // 퀸 배치하기. 이 소스의 핵심함수. n은 현재 사용안한다. 처음엔 RandomSeed로 쓰려했음..-_-;
          i, row: Integer;
         begin
          begin
          function CountColumn(column: Integer): Integer;
          i: Integer;
          begin
          Inc(Result);
          function CountSlash(column: Integer): Integer;
          i: Integer;
          x, y: Integer;
  • EuclidProblem/곽세환 . . . . 28 matches
         #include <iostream>
         using namespace std;
         #include <climits>
         #include <cmath>
         int main()
          int a, b;
          while (cin >> a >> b)
          /*int u = a, v = b;
          int temp = u % v;
          int gcd = u;
          int i, j;
          int x = 0, y = 0;
          int a2 = a / gcd;
          int b2 = b / gcd;
          int minsum = INT_MAX - 1;
          int temp1, temp2;
          int min, max;
          min = a2;
          min = b2;
          if ((max * i - 1) % min == 0)
  • Gof/Mediator . . . . 28 matches
         == Intent ==
         MediatorPattern은 객체들의 어느 집합들이 interaction하는 방법을 encapsulate하는 객체를 정의한다. Mediator는 객체들을 서로에게 명시적으로 조회하는 것을 막음으로서 loose coupling을 촉진하며, 그래서 Mediator는 여러분에게 객체들의 interactions들이 독립적으로 다양하게 해준다.
         비록 하나의 시스템에 많은 객체들이 참여하는 것이 일반적으로 재사용성을 강화할지라도 interconnections이 늘어나는 것은 재사용성을 감소시키려는 경향이 있다. 너무나 많은 객체간의 상호 연결들은 객체들의 독립성을 떨어뜨릴 수 있다. - 그런 시스템은 마치 완전히 통일된 것 같이 행동한다.
         다른 다이얼로그 박스들은 도구들 사이에서 다른 dependency들을 지닐 것이다. 그래서 심지어 다이얼로그들이 똑같은 종류의 도구들을 지닌다 하더라도, 단순히 이전의 도구 클래스들을 재사용 할 수는 없다. dialog-specific dependency들을 반영하기 위해서 customize되어져야 한다. subclassing에 의해서 개별적으로 도구들을 Customize하는 것은 지루할 것이다. 왜냐하면 많은 클래스들이 그렇게 되어야 하기 때문이다.
         별개의 mediator 객체에서 집단의 행위로 encapsulate하는 것에 의해서 이런 문제를 피할 수 있다. 하나의 mediator는 객체들 그룹 내의 상호작용들을 제어하고 조정할 책임이 있다. 그 mediator는 그룹내의 객체들이 다른 객체들과 명시적으로 조회하는 것을 막는 중간자로서의 역할을 한다. 그런 객체들은 단지 mediator만 알고 있고, 고로 interconnection의 수는 줄어 들게 된다.
         예를 들면, FontDialogDirector는 다이얼로그 박스의 도구들 사이의 mediator일 수 있다. FontDialogDirector객체는 다이얼로그 도구들을 알고 그들의 interaction을 조정한다. 그것은 도구들 사이의 communication에서 hub와 같은 역할을 한다.
         다음 interaction diagram은 객체들이 리스트박스의 선택에서 변화를 다루기 위해 협동하는 방법을 묘사하고 있다.
          * 어떤 객체들의 집합이 잘 정의되었지만, 복잡한 방법으로 통신할 때. interconnection의 결과는 구조화되지 못하고 이해를 어렵게 한다.
          * 몇몇의 클래스들 사이에 분산되어진 하나의 행위가 많은 subclassing하는 작업 없이 customize되어져야 할 때.
          1. MediatorPattern은 subclassing을 제한한다. mediator는 다시말해 몇몇개의 객체들 사이에 분산되어질 행위를 집중한다. 이런 행위를 바꾸는 것은 단지 Mediator를 subclassing하기만 하면 된다. Colleague 클래스들은 재사용되어질 수 있다.
          2. MediatorPattern은 colleague들을 떼어놓는다. Mediator는 colleague들 사이에서 loose coupling을 촉진한다. colleagued와 Mediator를 개별적으로 다양하게 할 수 있고, 재사용 할 수 있다.
          4. MediatorPattern은 객체가 협동하는 방법을 추상화 시킨다. Mediation를 독립적인 개념으로 만들고 하나의 객체에 캡슐화하는 것은 여러분으로 하여금 객체의 행위는 제쳐두고 그 interaction에 집중하게 해준다. 이는 객체가 시스템 내에서 어떻게 interact하는 방법을 명확히 하는데 도움을 준다.
          5. MediatorPattern은 제어를 집중화한다. Mediator는 interaction의 복잡도를 mediator의 복잡도와 맞바꿨다. Mediator가 protocol들을 encapsulate했기 때문에 colleague객체들 보다 더 복잡하게 되어질 수 있다. 이것이 mediator를 관리가 어려운 monolith 형태를 뛰게 만들 수 있다.
          1. 추상 Mediator 클래스 생략하기. 추상 Mediator 클래스를 선언할 필요가 없는 경우는 colleague들이 단지 하나의 mediator와만 작업을 할 때이다. Mediator클래스가 제공하는 추상적인 coupling은 colleague들이 다른 mediator subclass들과 작동학게 해주며 반대의 경우도 그렇다.
         또 다른 방법은 colleague들이 보다 더 직접으로 communication할 수 있도록 특별한 interface를 mediator에게 심는 것이다. 윈도우용 Smalltalk/V가 대표적인 형태이다. mediator와 통신을 하고자 할 때, 자신을 argument로 넘겨서 mediator가 sender가 누구인지 식별하게 한다. Sample Code는 이와 같은 방법을 사용하고 있고, Smalltalk/V의 구현은 Known Uses에서 다루기로 하겠다.
         우리는 DialogDirector를 Motivation에서 보았던 것처럼 font dialog를 구현하기 위해서 사용할 것이다. 추상 클래스 DialogDirector는 director들을 위한 interface를 정의 하고 있다.
          // assemble the widgets in the dialog
         ET++[WGM88]와 THINK C class library[Sm93b]는 다이얼로그에서 widget들 사이에 mediator로서 director와 유사한 객체를 사용한다.
         윈도우용 Smalltalk/V의 application구조는 mediator 구조에 가반을 두고 있다.[LaL94] 그런 환경에서 application은 윈도우를 pane들의 모음으로 구성하고 있다. library는 몇몇의 이미 정의된 pane들을 가지고 있다. 예를 들자면 TextPane, ListBox, Button등등이 포함된다. 이러한 pane들은 subclassing없이 이용될 수 있다. Application 개발자는 단지 inter-pane coordination할 책임이 있는 ViewManager만 subclassing할 수 있다. ViewManage는 Mediator이고 각각의 pane들은 자신의 owner로서 단지 자신의 ViewManager를 알고 있다. pane들은 직접적으로 서로 조회하지 않는다.
         MediatorPattern의 또다른 application은 coordinating complex updates에 있다. 하나의 예는 Observer로서 언급되어지는 ChangeManager class이다. ChangeManager는 중복 update를 피하기 위해서 subjects과 observers중간에 위치한다. 객체가 변할때, ChangeManager에게 알린다. 그래서 ChangeManager는 객체의 dependecy를 알리는 것으로 update를 조정한다.
  • HanoiProblem/상협 . . . . 28 matches
         void hanoi(int n,int a, int b) //실제 구현
          hanoi(n-1, a,inout(a,b)); //1 번 단계 시작점 a에서 입력된 목적지링(b) 말고 다른 쪽으로 옮긴다.
          hanoi(n-1, inout(a,b),b); //3번 단계 첫번째 단계에서 간곳-inout(a,b) 에서 목적지링(b) 으로 간다..
         #include <iostream>
         using namespace std;
         void hanoi(int n,int a, int b); //a, 가 출발 b 가 목적지 n 이 갯수
         int inout(int i,int j);
         int main()
          int n;
          cin>>n; // 입력을 받는다.
         int inout(int i, int j) // 1,2,3중에서 i,j (1,2,3중 하나인 숫자)가 아닌 숫자가 리턴됨
         void hanoi(int n,int a, int b) //실제 구현
          hanoi(n-1, a,inout(a,b));
          hanoi(n-1, inout(a,b),b);
  • HanoiTowerTroublesAgain!/이도현 . . . . 28 matches
         2006-01-17 11:15:29 Accepted 0.000 Minimum 56031 C++ 10276 - Hanoi Tower Troubles Again!
         // Hanoi Tower Troubles Again
         #include <iostream>
         using namespace std;
         int process(int input);
         int main()
          int i, testCase, input;
          cin >> testCase;
          cin >> input;
          cout << process(input) << endl;
         int process(int input)
          if ((input & 1) == 1)
          input++;
          input /= 2;
          return 2 * input * input - 1;
          input /= 2;
          return 2 * input * input + 2 * input - 1;
  • Java Study2003/첫번째과제/장창재 . . . . 28 matches
          - 자바(Java)를 이야기할 때 크게 두 가지로 나누어 이야기 할 수 있습니다. 먼저, 기계어, 어셈블리어(Assembly), 포트란(FORTRAN), 코볼(COBOL), 파스칼(PASCAL), 또는 C 등과 같이 프로그래밍을 하기 위해 사용하는 자바 언어가 있고, 다른 하나는 자바 언어를 이용하여 프로그래밍 하기 위해 사용할 수 있는 자바 API(Application Programming Interface)와 자바 프로그램을 실행시켜 주기 위한 자바 가상머신(Java Virtual Machine) 등을 가리키는 자바 플랫폼(Platform)이 있습니다. 다시 말해서, 자바 언어는 Visual C++와 비유될 수 있고, 자바 플랫폼은 윈도우 95/98/NT 및 윈도우 95/98/NT API와 비유될 수 있습니다.
          자바 언어(Java Language)를 이용하여 작성한 자바 프로그램(Java Program)은 자바 컴파일러(Java Compiler)를 이용하여 자바 바이트코드(Java Byte code)로 컴파일 되고, 이 자바 바이트코드는 자바 가상머신에 의해 해석되어 실행되는데, 이때 자바 가상머신은 자바 바이트코드에 대한 해석기 즉 인터프리터(interpreter)로 동작하게 됩니다. 이렇게 자바 프로그램은 컴파일 방식 및 인터프리터 방식이 모두 적용된다는 것입니다.
         자바 언어로 작성된 자바 프로그램을 중간 언어(intermediate language) 형태인 자바 바이트코드로 컴파일 합니다<.
         자바 인터프리터(Java Interpreter) 또는 자바 가상머신(Java Virtual Machine):
         자바 가상머신(Java Virtual Machine; Java VM):
         자바 가상머신은 자바 플랫폼의기반을 이루며, 다양한 하드웨어기반 플랫폼에 포팅(poring) 됩니다. 다시 말해서, 자바 가상머신은 윈도우 95/98/NT, 유닉스, 또는 매킨토시 등과 같은 기존의 운영체제 또는 인터넷 익스플로러와 넷스케이프 등과 같은 웹 브라우저 등, 여러 가지 플랫폼에 설치되어 사용될 수 있으며, 사용자는 자바 바이트코드로 컴파일된 자바 프로그램을 실행시키기 위해서 이 자바 가상머신을 이용하면 됩니다.
         자바 API(Java Application Programming Interface):
         자바의 주된 특징은 기존의 C/C++ 언어의 문법을 기본적으로 따르고, C/C++ 언어가 갖는 전처리기, 포인터, 포인터 연산, 다중 상속, 연산자 중첩(overloading) 등 복잡하고 이해하기 난해한 특성들을 제거함으로써 기존의 프로그램 개발자들이 쉽고 간단하게 프로그램을 개발할 수 있도록 합니다.
         자바는 C++와는 달리 처음부터 객체지향 개념을 기반으로 하여 설계되었고, 객체지향 언어가 제공해 주어야 하는 추상화(Abstraction), 상속(Inheritance), 그리고 다형성(Polymorphism) 등과 같은 특성들을 모두 완벽하게 제공해 주고 있습니다. 또한, 자바의 이러한 객체지향적 특성은 분산 환경, 클라이언트/서버 기반 시스템이 갖는 요구사항도 만족시켜 줄 수 있습니다.
         자바는 서로 다른 이종(Heterogeneous)의 네트워크 환경에서 분산 되어 실행될 수 있도록 설계되었습니다. 이와 같은 환경에서는 응용 프로그램들이 다양한 하드웨어 아키텍쳐 위에서 실행될 수 있어야만 합니다. 이를 위해 자바 컴파일러는 이종의 하드웨어 및 소프트웨어 플랫폼에서 효율적으로 코드를 전송하기 위해 설계된 아키텍쳐 중립적인 중간 코드인 바이트코드를 생성합니다. 이는 동일한 자바 프로그램의 자바 바이트코드가 자바 가상머신이 설치되어 있는 어떤 플랫폼에서도 실행될 수 있도록 하는 것입니다. 또한, 자바는 기본 언어 정의를 엄격하게 함으로써 효율적인 이식성을 제공해 주고 있습니다. 예를 들어, int 형과 같은 기본 데이터형의 크기를 플랫폼과 무관하게 일정하게 하고, 연산자의 기능을 확실하게 규정하고 있습니다. C 언어를 이용하여 int 형을 선언할 때, 도스에서는 16비트, 윈도우 95/98/NT 등 32비트 운영 체제 환경에서는 32비트, 유닉스에서는 32비트 등 그 플랫폼에 따라 크기가 다르지만, 자바에서는 플랫폼에 상관없이 32비트로 고정되도록 하였습니다. 이는 자바 프로그램이 실행되는 환경이 자바 가상머신으로 동일하기 때문입니다.
         인터프리터(Interpreter) 방식이다:
         자바 언어로 작성된 자바 프로그램을 중간언어 형태인 자바 바이트코드로 컴파일하고, 이렇게 생성된 자바 바이트코드를 자바 인터프리터가 해석함으로써, 자바 인터프리터와 런타임 시스템이 이식(porting)된 모든 플랫폼에서 자바 바이트코드를 직접 실행할 수 있습니다.
         JIT(Just-In-Time):
         캐싱(Caching):
         이러한 문제는 자바가 스레드 스케줄링 정책 구현에 의존하고, synchronized 명령어가 모니터 기반의 동기화 기법만 제공하고 큐 대기 시간을 예측할 수 없으며, notify() 메소드가 스레드를 깨우는 순서가 불명확하고, 우선순위 역전(priority inversion_의 가능성이 있습니다. 이러한 문제는 API 수준에서 해결되어야 하고, 실시간 타스크 처리를 위한 우선순위 레벨을 확장하고, 우선순위 상속(priority inheritance) 또는 우선순위 최고 한도 제한(priority ceiling) 등과 같은 우선순위 역전 방지 (priority inversion avoidance) 프로토콜을 사용하고, MuteX, 이진 세마포어(Binary Semaphore), 계수 세마포어(Counting Semaphore) 등을 사용할 수 있습니다.
         이러한 문제점은 느린(Lazy) 클래스 로딩에서 발생하거나 메모리 할당과 가비지 콜렉션이 비결정적이고 느린 최악의 경우(worst-case) 특성을 가지며 stop-start 방식으로 모든 스레드를 멈출 수 있다는 문제점이 있습니다. 이를 해결하기 위해 클래스를 미리 로딩(class preloading)한다거나 정적 초기화(static initializer)를 제거하여 패키지 라이브러리에 대해서는 가상머신 초기화를 사용하고 응용프로그램에서는 명시적인 초기화 를 사용하게 하는 등의 기법을 사용할 수 있습니다. 그리고, 메모리 할당과 쓰레기 수집(garbage collection)에 대해서는 정해진 시간 내에 입터럽트 가능한 쓰레기 수집을 하는 것입니다. 또는 표준화된 실시간 API를 제공함으로써 해결할 수 있습니다.
         C언어를 이용하여 C 프로그램을 작성한다면 반드시 main이라는 시작 함수를 정의해 주어야 하고, 윈도우 응용프로그램을 작성한다고 하면 WinMain이라는 함수를 꼭 작성해 주어야 하지요. 이러한 것을 규약(protocol)이라 합니다. 마찬가지로, 자바 언어를 이용하여 여러 가지 종류의 자바 프로그램을 작성할 수 있는데, 이 때 각 자바 프로그램의 종류에 따라 해당 규약이 서로 다릅니다. 이렇듯 자바를 이용하여 자바 프로그램을 작성한다는 것은 각 자바 프로그램에서 제시하고 있는 규약을 지켜 프로그램을 작성한다는 것입니다. 자바 언어를 이용하여 작성할 수 있는 자바 프로그램의 종류를 살펴보면 다음과 같습니다.
         public static void main(String args[]) {
         System.out.println("Hello World!"); // Display the string
  • LoadBalancingProblem/Leonardong . . . . 28 matches
         == LoadBalancingProblem ==
          def __init__(self):
          self.minWork = 0
          def computeMinMaxWork(self):
          self.minWork = self.eachWork[0]
          for i in range( 1, self.numOfCPU):
          if self.minWork > self.eachWork[i]:
          self.minWork = self.eachWork[i]
          if self.maxWork - self.minWork > 1:
          def input(self, aNumOfCPU, aEachWorks):
          self.computeMinMaxWork()
          self.computeMinMaxWork()
          if self.getWork(aID) > self.minWork:
          self.increaseWork(aID-1)
          self.increaseWork(aID+1)
          def increaseWork(self, aID):
          for id in range( 1, self.numOfCPU+1 ):
          print self.eachWork
          print self.eachWork
          print "??"
  • SignatureSurvey . . . . 28 matches
         Seminar:SignatureSurvey
         HTML Template 부분을 Generating 하는 부분을 하던중, 디자이너가 툴로 만든 HTML 코드를 분석해볼때 SigntureSurvey 의 방법을 적용해보면 어떤 일이 일어날까 의문이 들었다. 그래서 간단하게 실험해보고, 어떠한 View 를 얻을 수 있을까 구경해보다.
         import StringIO
          self.begin('')
          def repl_normalString(self, aText):
          self.begin('tag')
          (AnyChar, repl_normalString),
          def __init__(self, aStream):
          Scanner.__init__(self, self.lexicon, aStream)
          writer = StringIO.StringIO("")
         if __name__=="__main__":
          surveyer = HtmlSigSurveyer(StringIO.StringIO(data))
          lines = [line for line in result.splitlines() if line.strip() != '']
          for line in lines:
          print count, line
         이를 분석할때는 4-5point 로 레이저로 2단 나누어서 찍었다. 별로 종이를 많이 차지하지 않는다.
         정확히 분석을 한 것은 아니지만. <> 태그 안으로 쓴 글자수가 같다면 화면상에서도 비슷한 것을 보이게 하기 위해 C & P 를 했을 확률이 높다. 그러면 그 부분에 대해서 looping 을 하는 식으로 묶으면 될것 같다. 종이로 찍어놓고 보면 반복되는 부분에 대해서 일반화된 패턴이 보인다는 것을 알 수 있다. 그 부분에 대해 적절히 1차적으로 검색을 하고, generating 할때의 단위들을 끄집어내면 되는 것이다.
  • [Lovely]boy^_^/Diary/2-2-9 . . . . 28 matches
         == In Korean ==
          * Power Reading, Methapors we live by 제본판 입수.
         == In English ==
          * The computer classic study - The Mythical Man Month Chapter 3&4 - meeting is on today P.M. 7 O'clock, at SinChon Min.To.
          * I'll never type smalltalk digital clock example again.
          * I learned a moving bar techinique using timer from Sanghyup.
          * I add a missile skill to my arcanoid game, and now on refactoring.
          * I borrow the UML for beginner. Translator is Kwak Yong Jae.(His translation is very good)
          * 5:30 ZP Regular meeting.
          * I'll never advance arcanoid.--; It's bored. I'll end the refactoring instantly, and do documentaion.
          * My arcanoid running is not same any computer. Some computers are running this game very well, others are blinking screen, anothers are not able to move the bar.
          * I get Power Reading, and Methapors we live by BindingBook
          * If my page is helpful to some person, It's very delightful. I feel that feeling these days.
          * I'll delight The AcceleratedC++, that I summary on wiki pages is helpful for beginner of C++.
          * The computer classic study - The Mythical Man Month Chapter 5&6 - meeting is on today P.M. 5 O'clock, at SinChon Min.To.
          * This meeting is also helpful. Although a half of members don't attend, I can think many new things.
  • hanoitowertroublesagain/이도현 . . . . 28 matches
         2006-01-17 09:55:33 Accepted 0.002 Minimum 56031 C++ 10276 - Hanoi Tower Troubles Again!
         // Hanoi Tower Troubles Again
         #include <iostream>
         using namespace std;
         int process(int input);
         int main()
          int i, testCase, input;
          cin >> testCase;
          cin >> input;
          cout << process(input) << endl;
         int process(int input)
          if ((input & 1) == 1)
          input++;
          input /= 2;
          return 2 * input * input - 1;
          input /= 2;
          return 2 * input * input + 2 * input - 1;
  • radiohead4us/SQLPractice . . . . 28 matches
         1. Find the names of all branches in the loan relation. (4.2.1 The select Clause)
         2. Find all loan numbers for loans made at the Perryridge branch with loan amounts greater that $1200. (4.2.2 The where Clause)
         3. For all customers who have a loan from the bank, find their names, loan numbers and loan amount. (4.2.3 The from Clause)
         4. Find the customer names, loan numbers, and loan amounts for all loans at the Perryridge branch. (4.2.3 The from Clause)
         5. For all customers who have a loan from the bank, find their names, loan numbers, and loan amount. (4.2.5 Tuple Variables)
         6. Find the names of all branches that have assets greater than at least one branch located in Brooklyn. (4.2.5 Tuple Variables)
         7. Find the names of all customers whose street address includes the substring 'Main'. (4.2.6 String Operations)
         8. Find the average account balance at each branch. (4.4 Aggregate Functions)
         9. Find the number of depositors for each branch. (4.4 Aggregate Functions)
         10. Find the average balance for all accounts. (4.4 Aggregate Functions)
         11. Find the average balance for each customer who lives in Harrison and has at least three accounts. (4.4 Aggregate Functions)
         12. Find all customers who have both a loan and an account at the bank. (4.6.1 Set Membership)
         13. Find all customers who have both an account and a loan at the Perryridge branch. (4.6.1 Set Membership)
         14. Find the names of all branches that have assets greater than those of at least one branch located in Brooklyn. (4.6.2 Set Comparison)
         15. Find the branch that has the highest average balance. (4.6.2 Set Comparison)
         16. Find all customers who have both an account and a loan at the bank. (4.6.3 Test for Empty Relations)
         17. Find all customers who have an account at all the branches located in Brooklyn. (4.6.3 Test for Empty Relations)
         18. Find all customers who have at most one account at the Perryridge branch. (4.6.4 Test for the Absence of Duplicate Tuples)
         19. Find all customers who have at least two accounts at the Perryridge branch. (4.6.4 Test for the Absence of Duplicate Tuples)
  • 데블스캠프2005/월요일/BlueDragon . . . . 28 matches
         # -*- coding: cp949 -*-
          def __init__(self):
          def __init__(self):
          print '보물상자를 발견했습니다.'
          print '보물상자를 열쇠로 엽니다.'
          print '축하합니다. 보물을 발견했습니다.'
          print '게임을 끝냅니다.'
          print '열쇠를 찾아오세요/'
          print self.name, '은',
          for room in self.aRoom.place:
          print room,',',
          print '에 갈 수 있습니다.'
          place = raw_input("어디로 갈까요?")
          print self.name, self.place , '에 들어왔습니다.'
          print '청룡을 공격합니다.'
          print '청룡의 hp는 ', self.aDragon.hp, '입니다.'
          print '청룡을 무찔렀습니다.'
          print '열쇠를 취득했습니다.'
          def __init__(self, user):
          print '당신을 물어뜯습니다.'
  • 레밍즈프로젝트/프로토타입/파일스트림 . . . . 28 matches
         || MFC 파일 스트림 || [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring.asp] ||
         || m_hFile || Usually contains the operating-system file handle. ||
         || Abort || Closes a file ignoring all warnings and errors. ||
         || Open || Safely opens a file with an error-testing option. ||
         '''Input/Output'''
         || ReadHuge || Can read more than 64K of (unbuffered) data from a file at the current file position. Obsolete in 32-bit programming. See Read. ||
         || Write || Writes (unbuffered) data in a file to the current file position. ||
         || WriteHuge || Can write more than 64K of (unbuffered) data in a file to the current file position. Obsolete in 32-bit programming. See Write. ||
         || Seek || Positions the current file pointer. ||
         || SeekToBegin || Positions the current file pointer at the beginning of the file. ||
         || SeekToEnd || Positions the current file pointer at the end of the file. ||
         '''Locking'''
         || LockRange || Locks a range of bytes in a file. ||
         || UnlockRange || Unlocks a range of bytes in a file. ||
         || GetPosition || Retrieves the current file pointer. ||
         {{{#include "stdafx.h"
         #include "FileioView.h"
          ::MessageBox(NULL, "Can't Create testfile.txt !", "Warning", MB_OK | MB_ICONHAND);
          for(int i=0;i<26;i++)
          ::MessageBox(NULL, "Can't Open testfile.txt !", "Warning",
  • 새싹교실/2011/무전취식/레벨11 . . . . 28 matches
         == Ice Breaking ==
          * String
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         #include <stdio.h>
         #define N 12
         #define RIGHT 0
         #define LEFT 1
         #define UP 2
         #define DOWN 3
         int xpos, ypos, dir;
         void print_maze();
         int main()
          int i;
          print_maze(); // printf maze
          print_maze();
          print_maze();
          // and the initial direction is RIGHT
          int i,j;
         void print_maze()
          int i,j;
  • 서지혜 . . . . 28 matches
         Someday you'll say something that you'll wish could take back - drama, House
          * dead line, 중간 목표 필요
          * Accountable Goal Setting
          1. Training 1000시간
         == ON DOING ==
          1. Training Diary
          * 위키 : [http://swmaestro.openflamingo.org]
          1. English Speaking Study
          * see also [EnglishSpeaking/2012년스터디]
          * see also [Spring/탐험스터디]
          1. English Speaking Study
          * see also [EnglishSpeaking/2012년스터디]
          * 기념으로 Jetbrain사의 RubyMine구매 (12/21 지구멸망기념으로 엄청 싸게 팔더라)
          * see also [Spring/탐험스터디]
          1. Training Diary
          * 디버거를 사용할 수 없는 환경을 난생 처음 만남. print문과 로그만으로 디버깅을 할 수 있다는 것을 깨달았다. 정보 로그, 에러 로그를 분리해서 에러로그만 보면 편하다. 버그가 의심되는 부분에 printf문을 삽입해서 값의 변화를 추적하는 것도 효과적이다(달리 할수 있는 방법이 없다..). 오늘 보게된 [http://wiki.kldp.org/wiki.php/HowToBeAProgrammer#s-3.1.1 HowToBeAProgrammer]에 이 내용이 올라와있다!! 이럴수가 난 삽질쟁이가 아니었음. 기쁘다.
          1. [Spring/탐험스터디/wiki만들기]
          * Spring Study는 참 오래 하는듯
          * 하지만 아직도 beneficiary일 뿐 contributor가 아니다.. spring project에 기여하기 프로젝트를 했으면 어땟을까? 처음엔 작게 bug fix부터..
          1. [http://nforge.zeropage.org/projects/mymensingh 동네 검색 종결자]
  • 숫자야구/조재화 . . . . 28 matches
         #include <iostream> // 랜덤함수는 iostream에 포함되어 있습니다.
         #include <ctime> // time(0)의 사용을 위해 필요합니다.
         using namespace std;
         int main()
          int a = rand() % 10 ;
          int b = rand() % 10 ;
          int c = rand() % 10 ;
          int i,j;
          int input;
          cin>>input;
          if(input/100 ==a)
          if(input/10-(input/100)*10 ==b )
          if( input-(input/10)*10 ==c )
          if(input/100 ==b || input/100 ==c)
          if(input/10-(input/100)*10 ==a ||input/10-(input/100)*10==c )
          if(input-(input/10)*10 ==a || input-(input/10)*10 ==b )
  • 파스칼삼각형/김태훈zyint . . . . 28 matches
         #include <stdio.h>
         int factorial(int n);
         int permutation(int n, int r);
         int combination(int n,int r);
         int main(int argc, char* argv[])
          int col,row;
          printf("행 : "); scanf("%d",&row);
          printf("열 : "); scanf("%d",&col);
          printf("result = %d\n",combination(row-1,col-1));
         int factorial(int n)
         int permutation(int n, int r)
         int combination(int n,int r)
          헐헐;;; 이런 과찬의 말씀을 'ㅅ';; - 태훈[zyint]
  • AKnight'sJourney/강소현 . . . . 27 matches
         ||Problem|| 2488||User||talin0528||
         public class Main{
          public static int [][] savePath;
          public static int [][] direct = {{-1,-2},{1,-2},{-2,-1},{2,-1},{-2,1},{2,1},{-1,2},{1,2}};
          public static void main(String [] args){
          Scanner sc = new Scanner(System.in);
          int count = sc.nextInt();
          for(int i=1; i<=count; i++){
          int p = sc.nextInt();
          int q = sc.nextInt();
          System.out.println("Scenario #"+i+":");
          int [][] path = new int[p+1][q+1];
          savePath = new int[p*q][2];
          if(isPromising(1,1, path,0)){
          for(int k=0; k<savePath.length; k++){
          System.out.printf("%c%d",savePath[k][1]+64, savePath[k][0]);
          System.out.print("impossible");
          System.out.println("\n");
          private static boolean isPromising(int p, int q, int [][] path, int count){
          for(int i=0; i<direct.length; i++){
  • DebuggingSeminar_2005/DebugCRT . . . . 27 matches
         || _CRTDBG_CHECK_ALWAYS_DF || _CrtCheckMemory() 함수를 모든 new, delete 함수에 대해서 자동 호출 되도록 지정한다.[[BR]] 이 함수는 할당된 공간의 유효성을 지속적으로 체크한다. 즉 domainerror나 기타 메모리 access에 관한 부분을 검사한다. 대신 오버헤드가 상당하다. 그러나 그만큼 디버깅의 효율성을 높여줄 수 있다. ||
         int flas = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
         //this define must occur before any headers are included.
         //반드시 include 전처리기의 앞부분에 선언되어야함.
         #define _CRTDBG_MAP_ALLOC
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         #include <tchar.h>
         // include crtdbg.h after all other headers.
         // 전처리 문장이 끝난뒤에 include
         #include <crtdbg.h>
         int main(int argc, char *argv[]) {
          //turn on the full heap checking
         {{{~cpp int _CrtSetReportMode(int reportType, int reportMode);
         {{{~cpp _HFILE _CrtSetReportFile(int reportType, _HFILE reportFile);
         = output in debug console (vc++6) =
          참조) [http://zeropage.org/wiki/AcceleratedC_2b_2b_2fChapter11#line287 The rule of Three]
         [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/_core_c_run2dtime_library_debugging_support.asp MSDN]
         [DebuggingSeminar_2005]
  • DispatchedInterpretation . . . . 27 matches
         == Dispatched Interpretation ==
         역시 코드로 이해하는 것이 빠르다. Shape 객체는 line, curve, stroke, fill 커맨드들의 순차적인 조합으로 이루어져 있다. 이것은 commandAt(int)라는 n번째 커맨드를 리턴해주는 메세지와, argumentsAt(int)라는 커맨드에 넘겨줄 인자들의 배열을 리턴해주는 메세지를 제공해준다.
         class PostScriptShapePrinter
          for(int i = 0 ; i < aShape.size() ; ++i)
          if(command == lineFunc)
          printPoint(argument.at(1));
          printPoint(argument.at(2));
          nextPutAll("line");
         모든 커맨드를 위한 case 구문을 쓰지 말고, PostScriptShapePrinter에 모든 커맨드를 두자.
         void PostScriptShapePrinter::line(Point& from, Point& to)
          printPoint(from);
          printPoint(to);
          nextPutAll("line");
         void PostScriptShapePrinter::curve(/* ... */) { /* ... */ }
         또한, commantAt이나 argumentAt같은 메세지 말고, sendCommand(at,to) 같은 메세지를 제공하자. 위의 line,curve도 이꼴이므로 같이 다룰수 있다.
         void PostScriptShapePrinter::display(Shape& aShape)
          for(int i = 0 ; i < aShape.size() ; ++i)
          for(int i = 0 ; i < size() ; ++i)
         void PostScriptShapePrinter::display(Shape& aShape)
  • EuclidProblem/차영권 . . . . 27 matches
         #include <iostream.h>
         #define MAX 50
          int X;
          int Y;
         int gcd(int max, int min);
         int main()
          int a, b;
          while (cin >> a >> b)
          int i = 1, j;
          int GCD, reminder;
          reminder = a%b;
          while (reminder != 0)
          reminder = a%b;
          a = b; b = reminder;
         int gcd(int max, int min)
          if (max%min == 0)
          return min;
          return gcd(min, max%min);
  • Interpreter/Celfin . . . . 27 matches
         #include <iostream>
         #include <stdlib.h>
         #include <stdio.h>
         using namespace std;
         int regist[10], ram[1000];
         int testcase, number;
         int i, counting;
         int nResult;
         int a, b, c;
         int process()
          counting =0;
          while(ram[counting]!=100)
          a = ram[counting]/100;;
          b = (ram[counting]/10)%10;
          c = ram[counting]%10;
          counting++;
          counting = regist[b];
         int main()
          cin >> testcase;
          cin.getline(temp, 4);
  • IsbnMap . . . . 27 matches
         WowBook http://www.wowbook.com/generic/book/info/book_detail.asp?isbn=ISBN$ISBN2 http://image.wowbook.com/book/large_image/$ISBN2.gif
         AladdinMusic http://www.aladdin.co.kr/music/catalog/music.asp?ISBN= http://www.aladdin.co.kr/CDCover/$ISBN2_1.jpg
         AladdinBook http://www.aladdin.co.kr/catalog/book.asp?ISBN= http://www.aladdin.co.kr/Cover/$ISBN2_1.gif
          /!\ 일종의 InterWiki Map인 것이죠.
         [[ISBN(8986190842,AladdinBook)]]
         [[ISBN(8932905819,AladdinBook)]]
         [[ISBN(9049741495,AladdinMusic)]] [[ISBN(9049740871,AladdinMusic)]]
          http://www.aladdin.co.kr/music/catalog/music.asp?ISBN=9049741495
          [http://www.aladdin.co.kr/CDCover/2452436078_1.jpg]
          * 새책 : jpg {{{http://image.aladdin.co.kr/cover/cover/ISBN$_1.jpg}}}
          * 이전책 : gif {{{http://image.aladdin.co.kr/cover/cover/ISBN$_1.gif}}}
          IsbnMap 에서 map 을 분리해서 사용하는 방법이 있을 수 있고 - 이 경우 출판년도에 따라서 옵션을 달리 줘야 하는 불편함이 있습니다. - ISBN 매크로를 고쳐서 (가능하다면 jpg가 없을 때 gif를 찾는 어떤 로직을 넣는 방법이 있을지 않을까 하는 생각이 듭니다. 제가 coding에 능력이 전혀 없는지라, 이게 구현할 수 있는 방법인지는 모르겠지만 논리적 차원에서는 이게 사용자 정신건강에 이로운 해결책이 아닐까합니다. (제 위키에서 책목록을 관리하는데 수작업으로 바꿔 줄 생각을 하니 조금 끔직합니다. - 스크립트를 돌려도 되기는 하지만 ... )
         AladdinBOOK http://www.aladdin.co.kr/shop/wproduct.aspx?ISBN= http://image.aladdin.co.kr/cover/cover/$ISBN2_1.gif
         AladdinBook http://www.aladdin.co.kr/shop/wproduct.aspx?ISBN= http://image.aladdin.co.kr/cover/cover/$ISBN2_1.jpg
          모니위키 1.1.3에서는 이와 관련된 버그가 고쳐졌고, 알라딘 같은 경우는 확장자가 jpg/gif인 경우를 자동으로 검출합니다. 이 경우 php.ini에 {{{'allow_url_fopen=1}}}같은 식으로 설정이 되어있어야 합니다. 또, config.php에 {{{$isbn_img_download=1;}}} 와 같이 옵션을 넣으면 이미지를 다운로드할 수도 있게 하여, 일부 referer를 검사하여 이미지를 보이지 않게 하는 사이트에서도 활용하기쉽게 하였습니다. -- WkPark [[DateTime(2009-01-13T07:14:27)]]
         {{{[wiki:AladdinMusic:9049741495 http://www.aladdin.co.kr/CDCover/2452436078_1.jpg]}}}
         [wiki:AladdinMusic:9049741495 http://www.aladdin.co.kr/CDCover/2452436078_1.jpg]
  • JavaScript/2011년스터디/JSON-js분석 . . . . 27 matches
          * stringify의 return문에서 쓰는 fake root의 역할
         if (Object.prototype.toString.apply(value) === '[object Array]') {
          '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
          '[' + partial.join(',') + ']';
          gap = mind;
          return isFinite(this.valueOf()) ?
          f(this.getUTCMinutes()) + ':' +
          // String 객체
          String.prototype.toJSON =
         // 1. partial.length === 0 ? '{}' : gap, gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}'
         // 2. gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}', partial.length === 0 ? '{}' : gap
          '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
          '{' + partial.join(',') + '}';
          * '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
         //유니코드로 변환하는 과정 : .charCodeAt로 가져온 아스키코드를 toString(16)로 16진수 변환
          * String.prototype.toJSON =
          * str function에서 'string', 'number', 'boolean', 'null' 은 모두 string로 변환한다. 그런데 'object'의 NULL은 뭐지??
          * line 177 : Date.prototype.toJSON = function (key) 에서 key는 왜 넘겨주는가?
          * line 195 : cx의 의미는 무엇인가?
          * line 237 : value는 왜 holder[key]로 가져오는가?
  • JavaStudy2002/상욱-2주차 . . . . 27 matches
          public static void main(String[] args) {
          int xRoach = 1 , yRoach = 1;
          int tempX = 0, tempY = 0;
          continue;
          for (int i = 0 ; i <= 11 ; i++){
          for (int j = 0 ; j <= 11 ; j++){
          for (int k = 1 ; k <= 10 ; k++){
          for (int l = 1 ; l <= 10 ; l++){
          public boolean boardState(int x , int y ) {
          public int randomNumber_1() {
          return rand.nextInt(10000);
          public int randomNumber_2() {
          return rand.nextInt(40000);
          public int moveUpandDown() {
          public int moveSide() {
          private int boardCount[][] = new int [10][10];
          for (int i = 0 ; i <= 9 ; i++){
          for (int j = 0 ; j <= 9 ; j++){
          public void checkStay(int x, int y) {
          for (int i = 0 ; i <= 9 ; i++){
  • Map연습문제/노수민 . . . . 27 matches
         #include <vector>
         #include <map>
         #include <iostream>
         #include<fstream>
         using namespace std;
          string name;
          int score;
         int main()
          ifstream fin("input.txt");
          while(fin.get(ch))
         //input.txt
         // ing..
         #include <vector>
         #include <map>
         #include <iostream>
         #include<fstream>
         using namespace std;
          string name;
          int score;
         int main()
  • NSISIde . . . . 27 matches
         == Opening Statement ==
         Solo Programming 으로 진행. XP 공부한거 소폭 적용해봄.
         == Engineering Task ==
         한 Iteration 을 2시간으로 잡음. 1 Task Point는 Ideal Hour(?)로 1시간에 할 수 있는 양 정도로 계산. (아.. 여전히 이거 계산법이 모호하다. 좀 더 제대로 공부해야겠다.)
         || Rich Edit Control 의 이용. 편집. 자료구조와 sink. || 0.5 ||
         || CInnerProcess Class 의 이용. 약간 수정. makensis 이용. || 0.5 ||
         || Output Windows 의 생성 || 0.5 ||
         0.4 + 0.4 + 0.5 + 0.5 + 0.5 + 0.5 + 0.7 = 3.5 (전체 3.5 Task Point) [[BR]]
         Planning & 중간 휴식시간 포함 1시간 추가 = 8 시간
          * CInnerProcess Class 0.5
          * Output Window 0.5 - 1 * 2 = 2
          * velocity : 1.3 task point
          CInnerProcess Class 이용, Nsis 연결하기 - 0.5
          Output Window 0.5 - 1 * 2 = 2
          -> Singleton 으로 있어야 할 녀석임.
          -> AppClass 에 있으면 자동으로 Singleton 이 되겠군. ^-^;
          -> 어차피 Execute Process 는 Blocking Call 임.
          * velocity : 1.7 task point
          * average : 1.5 task point
          * velocity : 0.7 task point.
  • One/구구단 . . . . 27 matches
         #include <stdio.h>
         int main()
         int number; /*입력받을 숫자*/
         int count; /*구구단의 2에서 9까지의 수*/
         printf("알고 싶은 구구단 단수를 입력하세요!!!\n");
          printf("구구단이 아닙니다!!!\n");
          printf("당신이 알고 싶은 %d 단은 다음과 같습니다.\n", number);
          printf("%d*%d=%d\n", number, count, number*count);
         #include <stdio.h>
         void main()
          int a;
          int b;
          printf("구구단을 입력하세요");scanf("%d",&a);
          printf("%d * %d= %d\n",a,b,a*b);
         #include <stdio.h>
         void main()
          int i,j;
          printf("단을 입력하세요."); scanf("%d",&i);
          printf("구구단이 아닙니다.");
          printf("%d * %d = %d\n",i,j,i*j);
  • StacksOfFlapjacks/이동현 . . . . 27 matches
         #include <iostream>
         using namespace std;
          int* cake; //케이크들
          int arr_size; //케익 개수
          void flip(int n){ //n번에다가 주걱 넣고 뒤집어!
          int k = (arr_size-n+1)/2;
          for(int i=0; i<k; i++){
          int searchBigIndex(int end){ //0~end index까지 검사하여 가장 큰 수의 index리턴.
          int big_index=0;
          for(int i=1;i<=end;i++){
          if(cake[big_index]<cake[i])
          big_index = i;
          return big_index;
          for(int i=1;i<arr_size;i++){
          void run(int*arr, int size){
          for(int j=arr_size-1, n=1;j>=0;j--, n++){
          if(searchBigIndex(j)==j) //제일 큰 케익이 놓일자리에 이미 놓여있다면 다음뒤집기로.
          continue;
          if(searchBigIndex(j)!=0) //맨위에 제일큰케익이 있으면 뒤집을 필요가 없다.
          flip(arr_size-searchBigIndex(j));
  • 금고/문보창 . . . . 27 matches
         #include <iostream>
         using namespace std;
         #define MAXN 500
         static int d[MAXN+1][MAXN+1];
         static int n, k;
         void init_table()
          for (int i = 1; i <= MAXN; i++)
         int find_max_n(int k, int value)
          for (int i = 1; i <= MAXN; i++)
         void fill_cell(int k)
          int a, b, t, value;
          a = find_max_n(k - 1, value);
          for (int i = b + 1; i <= __min(t,MAXN); i++)
          init_table();
          for (int k = 2; k <= MAXN; k++)
         inline void show()
         int main()
          int nCase;
          cin >> nCase;
          for (int i = 0; i < nCase; i++)
  • 데블스캠프2005/금요일/OneCard . . . . 27 matches
         # -*- coding: UTF-8 -*-
          def __init__(self, shape=None, number=None):
          for number in cardsNums:
          for shape in cardShapes:
         def printCardDeck(pcCards, myCards, cardOnTable):
          for job in jobs:
          printDeck(job)
         def printDeck(cards):
          for card in cards:
          print upperCrossBar
          print '%s%s%s' % (post, allCards, post)
          print lowerCrossBar
          printCardDeck(pcCards, myCards, cardOnTable)
          printCardDeck(pcCards, myCards, cardOnTable)
          select = input('card index (-1:skip) : ')
          print 'you cannot handout that card'
          continue
          printDeck([cardOnTable])
          printDeck(myCards)
          continue
  • 데블스캠프2006/월요일/함수/문제풀이/윤성준 . . . . 27 matches
         #include <iostream>
         using namespace std;
         bool team684(int member, int gun, int boat);
         int main(void)
          int member, gun, boat;
          cin >> member;
          cin >> gun;
          cin >> boat;
         bool team684(int member, int gun, int boat)
         #include <iostream>
         #include <time.h>
         using namespace std;
         int dice();
         int main(void)
         int dice()
         #include <iostream>
         using namespace std;
         void prin();
         void main(void)
          prin();
  • 미로찾기/곽세환 . . . . 27 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         const int Max_x = 30;
         const int Max_y = 20;
         int array[Max_y][Max_x];
         void find(int cur, int x, int y);
         void main()
          int temp[Max_y][Max_x];
          int i, j, k;
          ifstream fin("maze.txt");
          array[i][j] = fin.get() - '0';
          while (fin.get() != '\n');
          find(i, 0, 0); // 처음 위치
         void find(int cur, int x, int y)
          int temp[Max_y][Max_x];
          int i, j, k;
          find(i, x, y);
          for(int i = 0; i < Max_y; i++)
          for (int j = 0; j < Max_x; j++)
  • 새싹교실/2012/강력반 . . . . 27 matches
         새로만들기 - win32 콘솔 프로젝트(빈프로젝트에 체크)
         int - 4바이트의 정수
         printf - 콘솔창에 출력을 위한 함수
          * 설유환 - printf함수, scanf함수, if문, else if문, switch 제어문을 배웠다. 특히 double, int, float의 차이를 확실히 배울 수 있었다. 잘이해안갔던 #include<stdio.h>의 의미, return 0;의 의미도 알수 있었다. 다음시간엔 간단한 알고리즘을 이용한 게임을 만들것같다. 그리고 printf("숫자%lf",input);처럼 숫자를 이용해 소숫점 표현량을 제한하여 더 이쁘게 출력하는법도 배웠다.
          * 장재영 - printf와 scanf. swtich, if else if등을 배웠고 수업시간에 배운것 말고 새로운 이론도 배웠다 그래도 이론수업보다는 실습시간이 더 재밌다. 다음시간에는 반복문에 대해서 배우고 실습해 볼 것이다. 아픙로 수업시간에 듣는것 말고도 다른 것도 좀 배워보면 조헥ㅆ다. 이해가 안가는 이론을 한번더 들을 수 있어서 수업과정을 이해하는 데도 도움이 많이 되었다. 또 적은 수의 사람이 모여서 하기 때문에 프로그래밍할때 이해가 안되는 부분을 더 자세히 들을 수 있어서 이해하는데 도움이 되었다.
          * 황현제 - 우선 c언어에서 쓰이는 기본적인 연산자가 무엇이 있는지에 대해서 배웠다. 또한 함수 4가지에 대해서 배웠는데, printf, scanf,switch, if에 대해서 배웠고 그리고 새싹강사님께 C를 이용해 작성하신 프로그램을 구경하기도 했는데, C로 이런것도 할 수 있다는 것을 알았다. 새싹 강사님께서 우선적으로 설명을 해주신다음 새싹들이 실습하는 방식으로 수업이 진행됬는데, 옆에서 강사님이 지속적인 피드백을 해주셔서 이해하기가 편했다. 다음에는 반복문에 대해서 배우고, 실습도 해봐야겠다.
         #include <stdio.h>
         int main()
          int i;
          printf("%d\n", i);
         #include <stdio.h>
         int main()
          int i, j;
          printf("%d*%d=%d\n", i,j,i*j);
          printf("\n");
         #include <stdio.h>
         int main()
          int i, j;
          printf("*");
          printf("\n");
  • 수학의정석/집합의연산/이영호 . . . . 27 matches
         input은 9 {1,2,3,4,5,6,7,8,9}로 테스트를 해 보았다. 결과는 아래.
         #include <stdio.h>
         #include <time.h>
         #include <string.h>
         int print(char *set, int size);
         int main()
          int size;
          int i;
          clock_t time_in;
          time_in = clock();
          print(set, size);
          printf("CLOCK_TIME = %d\n", clock() - time_in);
         int print(char *set, int size)
          int count;
          int i, j, t;
          continue;
          printf("{");
          printf("\b},{");
          printf("%d,", buf[i]);
          printf("\b}\n");
  • 숫자야구/장창재 . . . . 27 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int tri(int a);
         void main()
          int key_first = rand()%10;
          int key_second = rand()%10;
          int key_third = rand()%10;
          int i,strike=0 , ball=0;
          int key = key_first*100 + key_second*10 + key_third;
          cin >> i;
          int input_first = i / 100;
          int input_second = (i - 100 *(i /100))/10;
          int input_third = i-(100*(i/100)) - (10*((i - 100 *(i /100))/10));
          if (key_first == input_first)
          if (key_second == input_second)
          if (key_third == input_third)
          if (key_first == input_second)
          if (key_first == input_third)
          if (key_second == input_third)
  • 중위수구하기/허아영 . . . . 27 matches
         #include <stdio.h>
         int search_middleNum(int *, int *, int *);
         void changeXY(int *, int *);
         void main()
          int a, b, c, middleNum;
          printf("멈추려면 '-999 0 0' 입력\n");
          printf("비교할 A, B, C 값을 차례로 입력 : ");
          printf("중위수 = %d", middleNum);
         int search_middleNum(int *a, int *b, int *c)
          int middle;
         void changeXY(int *x, int *y)
          int temp;
          printf("중위수 = %d", middleNum);
          printf("중위수 = %d", search_middleNum(&a, &b, &c));
         그리고 int search_middleNum(int *a, int *b, int *c) 이함수는 구지 포인터로 값을 넘겨받을 필요는 없지 않나..
         두 친구가 젤 활발하군요. A 코드를 B로 바꾸면 중간 변수의 메모리도 낭비되지 않고, 좀더 최적화에 다가간 코드가 됩니다. 하지만 A를 B로 바꾸면 가독성이 떨어집니다. 상황에 따라 다르겠지만 running time에 별 차이가 없다라고 본다면, 저라면 가독성을 택할 것 같습니다. -- 보창
  • 진법바꾸기/문보창 . . . . 27 matches
         #include <iostream>
         using namespace std;
         const int LEN = 50;
         bool input(int & num, int & base);
         void parse_base(const int num, const int base);
         void show_num(const int * parse_num, const int length);
         int main()
          int num, base;
          isEnd = input(num, base);
         bool input(int & num, int & base)
          cin >> num;
          cin >> base;
         void parse_base(const int num, const int base)
          int parse_num[LEN];
          int length = 0;
          int temp = num;
         void show_num(const int * parse_num, const int length)
          for (int i = length-1; i >= 0; i--)
  • 파스칼삼각형/강희경 . . . . 27 matches
         #include <iostream>
         using namespace std;
         void printArray(int *arr, int n); //각 행을 출력하는 함수
         void copyArray(int *fArr, int *arr); //이전의 행을 임시저장하는 함수
         int column;
         int main(){
          cin >> column;
          int *array = new int[column]; //출력되는 행의 값
          int *foreArray = new int[column]; //이전의(상위의) 행의 값
          for(int i = 0; i<column; i++){
          for(int j = 1; j < column-1; j++){ //숫자는 자신의 머리 위에 있는 2개의 숫자를 더한 값
          printArray(array, i); //행의 내용을 출력한다.
         void printArray(int *arr, int n){
          int blank = (column - n)/2;
          for(int j = 0;j < blank; j++){ //행 출력전의 빈칸 출력
          for(int i = 0; i <= n; i++){ //숫자 사이 사이의 빈칸 출력
         void copyArray(int *fArr, int *arr){
          for(int i = 0; i < column; i++){
  • 프로그래밍/DigitGenerator . . . . 27 matches
          private static int processOneCase(String line) {
          int number = Integer.parseInt(line);
          for(int i = 1; i < number; i++) {
          int bitSum = 0;
          String str = Integer.toString(i);
          String [] bits = str.split("");
          for(String each : bits) {
          continue;
          bitSum += Integer.parseInt(each);
          public static void main(String[] args) {
          String line = br.readLine();
          int testCase = Integer.parseInt(line);
          for(int i = 0; i < testCase; i++) {
          line = br.readLine();
          int result = processOneCase(line);
          System.out.println(result);
          e.printStackTrace();
          e.printStackTrace();
  • 헝가리안표기법 . . . . 27 matches
         솔직히 필자도 얼마전까지 이런 변수 명명에 대한 관례를 잘 지키지 않았다. 그러나 변수 명명에 관한 표준화된 관례를 지켜주면 코드의 가독성을 높여줄 뿐 아니라 예를 들어 카운터 변수를 count라고 지을지 cnt라고 지을지 고민하지 않아도 되는 편리함을 누릴 수 있다. - [http://dasomnetwork.com/~leedw/mywiki/moin.cgi/_c7_eb_b0_a1_b8_ae_be_c8_20_c7_a5_b1_e2_b9_fd?action=edit 출처]
         || i || int || integer for index || int iCars ||
         || n || int || number, quantity || int nNum ||
         || d || double || double floating point || double dPercent ||
         || f || float || floating point || float fPercent ||
         || p || * || any pointer || int *piAddr ||
         || sz || * || null terminated string of characters || char szText[16] ||
         || pfn || * || function pointer || int (*pifnFunc1)(int x, int y) ||
         || t || struct || a user defined type || ... ||
         || g_ || Global || Global Variable || String *g_psBuffer ||
         || m_ || Member || class private member variable || int m_iMember ||
         || str || String || string class(C++) || String strName ||
         || h || handle || handle to something || hMenu ||
         || x/y || ... || used as size || int xWitdth, yHeight ||
  • 호너의법칙/김태훈zyint . . . . 27 matches
         #include <stdio.h>
         void fstring(FILE* f,char c, int n)
          int i;
          fprintf(f,"%c",c);
          fprintf(f,"\n");
         int main()
          int a[11] = {3,3,3,3,3,3,3,3,3,3,3};
          int asize = (sizeof(a)/sizeof(int));
          int i,x,f,addcount,mulcount;
          //input x
          printf("x = ");
          fstring(file,'=',53);
          fprintf(file,"|index|");
          for(i=0;i<asize;i++) fprintf(file," %d |",i);
          fprintf(file,"\n");
          fstring(file,'=',53);
          fprintf(file,"| data|");
          for(i=0;i<asize;i++) fprintf(file," %d |",a[i]);
          fprintf(file,"\n");
          fstring(file,'=',53);
  • 2학기파이선스터디/모듈 . . . . 26 matches
         ['__builtins__', '__doc__', '__file__', '__name__', 'add', 'c', 'mul']
          print '전역변수:', globals()
          print '지역변수:', locals()
         print '모듈 수준에서의 전역변수:', globals()
         print '모듈 수준에서의 지역변수:', locals()
         >>> import string
         >>> dir(string)
         ['_StringTypes', '__builtins__', '__doc__', '__file__', '__name__', '_float', '_idmap', '_idmapL', '_int', '_long', 'ascii_letters', 'ascii_lowercase', 'ascii_uppercase', 'atof', 'atof_error', 'atoi', 'atoi_error', 'atol', 'atol_error', 'capitalize', 'capwords', 'center', 'count', 'digits', 'expandtabs', 'find', 'hexdigits', 'index', 'index_error', 'join', 'joinfields', 'letters', 'ljust', 'lower', 'lowercase', 'lstrip', 'maketrans', 'octdigits', 'printable', 'punctuation', 'replace', 'rfind', 'rindex', 'rjust', 'rstrip', 'split', 'splitfields', 'strip', 'swapcase', 'translate', 'upper', 'uppercase', 'whitespace', 'zfill']
         import string
         string.__dict__
         >>> string.b
          File "<pyshell#17>", line 1, in ?
          string.b
         >>> string.b=2
         >>> string.b
  • 5인용C++스터디/클래스상속보충 . . . . 26 matches
         #include <iostream>
         #include <string>
         using namespace std;
          void SendToSMSServer(string number, string message)
          void SendMessage(string number, string message)
          void SendToSMSServer(string number, string message)
          void SendToSMSServer(string number, string message)
         void main()
         #include <iostream>
         #include <string>
         using namespace std;
          virtual void SendToSMSServer(string number, string message)
          void SendMessage(string number, string message)
          void SendToSMSServer(string number, string message)
          void SendToSMSServer(string number, string message)
         void main()
  • 8queen/곽세환 . . . . 26 matches
         #include <iostream>
         using namespace std;
         const int Max = 8;
         int check, cnt;
         int ar[Max][Max];
         void block(int, int);
         void find(int, int);
         void main()
          int i, j, k;
          int cnt = 0;
          find(0, i);
         void block(int row, int col)
          int crow, ccol;
          int i;
         void find(int row, int col)
          int i, j, k;
          int temp[Max][Max];
          int tcheck;
          cin.get();
          find(row + 1, i);
  • Chapter I - Sample Code . . . . 26 matches
          === Installing uCOS-II ===
          === INCLUDES.H ===
          === Compiler-Independent Data Types ===
          각각의 프로세서마다 int 형 데이터의 크기 char 형 데이터의 크기.. 등등이 다르기 때문에 다음과 같은 식으로 재정의를 해준다.
          typedef unsigned char INT8U
          typedef signed int INT16S
          // 형 재정의 (#define이용)
          #define BYTE INT8S
          OS 를 작성하다보면 전역변수가 필요한 경우가 있다. 전역변수는 어떻게 선언하는가? extern 키워드를 사용하면 된다. 하지만 uCOS-II 에서는 extern 키워드마저 #define 해서 다른 매크로로 사용한다.
         #define OS_EXT
         #define OS_EXT_extern
         OS_EXT INT32U OSIdleCtr;
         OS_EXT INT32U OSIdleCtrRun;
         OS_EXT INT32U OSIdleCtrMax;
         extern INT32U OSIdleCtr;
         extern INT32U OSIdleCtrRun;
         extern INT32U OSIdleCtrMax;
         #define OS_GLOBALS
         #include "inlcudes.h"
         INT32U OSIdleCtr;
  • CheckTheCheck/Celfin . . . . 26 matches
         #include <iostream>
         using namespace std;
         int exit_cond;
         int i, j, m, n;
         int gameNum=0;
         bool checkPp(int x, int y, char Pp)
         bool checkRr(int x, int y, char Rr)
         bool checkBb(int x, int y, char Bb)
         bool checkQq(int x, int y, char Qq)
         bool checkKk(int x, int y, char Kk)
         bool checkNn(int x, int y, char Nn)
          cout << "Game #" <<gameNum << ": black king is in check."<<endl;
          cout << "Game #" <<gameNum << ": white king is in check."<<endl;
          cout << "Game #" <<gameNum << ": no king is in check." <<endl;
         int main()
          cin >> chess[j][i];
  • ContestScoreBoard/허아영 . . . . 26 matches
         #include <iostream>
         using namespace std;
         #define MAX_OF_TEAM_NUM 100
         #define MAX_OF_Q 9
         int main()
          int case_num;
          int team_data[MAX_OF_TEAM_NUM+1][MAX_OF_Q+1]; // 0번째 배열은 시간 벌점 다음부터는
          int temp_team_num, q_num, q_index[MAX_OF_TEAM_NUM]; // 문제 푼 index
          int temp_time;
          int case_count = 0;
          int i;
          q_index[i] = 1;
          for(int j = 1; j <= MAX_OF_Q; j++)
          cin >> case_num; // case num
          cin >> temp_team_num;
          cin >> q_num;
          cin >> temp_time;
          cin >> moment;
          team_data[temp_team_num][q_index[temp_team_num]] = q_num; // 문제번호 넣기
          q_index[temp_team_num]++;
  • EightQueenProblem/용쟁호투SQL . . . . 26 matches
         y int NULL,
         x1 int NULL,
         x2 int NULL,
         x3 int NULL,
         x4 int NULL,
         x5 int NULL,
         x6 int NULL,
         x7 int NULL,
         x8 int NULL,
         fx int NULL,
         fy int NULL)
          INSERT INTO temp_queen_attack VALUES(1,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(2,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(3,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(4,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(5,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(6,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(7,0,0,0,0,0,0,0,0,0,0)
          INSERT INTO temp_queen_attack VALUES(8,0,0,0,0,0,0,0,0,0,0)
         CREATE PROCEDURE p_check_attack @x int, @y int
  • EmbeddedSystemClass . . . . 26 matches
         http://www.huins.com/new1//img/u-51.jpg
         Intel XScale PXA255 400MHz processor 탑재
         Linux, WinCE. Nucleus/uCOS-II RTOS운영체제 채택.
         [http://www.huins.com/new1/sub/sub2-3-6.htm HUINS 보드 소개 페이지]
         [http://zeropage.org/common-ftp/@embedded-system-cd/HUINS/pxa255_pro3v5.2A.iso 내장형시스템 보드 CD DOWNLOAD] : PXA255A (Intel XScale 400Mhz)
         패키지 묶음 설치에서 '''Standard Package''' 만을 선택한다. (x-windows, gnome 은 차후 필요한 부분만을 설치한다.)
         최신 버전의 리눅스를 구해서 할 경우 페도라 Full install 의 경우 큰 문제가 없으나,
         aptitude install linux-headers-''[version]''
         aptitude install linux-image-''[version]''
         aptitude install gcc
         aptitude install make
         // tftp 터널링에 필요한 inetd 설치, tftpd 설치
         aptitude install openbsd-inetd
         aptitude install tftp-hpa tftpd-hpa
         aptitude install minicom
         aptitude install nfs-kernel-server
         aptitude install nfs-client
         // 필요할 경우 다음의 명령어를 통해서 x-window, gnome 을 설치한다.
         aptitude install x-window-system
         aptitude install gnome
  • Expat . . . . 26 matches
         Expat is a stream-oriented XML 1.0 parser library, written in C. Expat was one of the first open source XML parsers and has been incorporated into many open source projects, including the Apache HTTP Server, Mozilla, Perl, Python and PHP.
         James Clark released version 1.0 in 1998 while serving as technical lead on the XML Working Group at the World Wide Web Consortium. Clark released two more versions, 1.1 and 1.2, before turning the project over to a group led by Clark Cooper, Fred Drake and Paul Prescod in 2000. The new group released version 1.95.0 in September 2000 and continues to release new versions to incorporate bug fixes and enhancements. Expat is hosted as a SourceForge project. Versions are available for most major operating systems.
         To use the Expat library, programs first register handler functions with Expat. When Expat parses an XML document, it calls the registered handlers as it finds relevant tokens in the input stream. These tokens and their associated handler calls are called events. Typically, programs register handler functions for XML element start or stop events and character events. Expat provides facilities for more sophisticated event handling such as XML Namespace declarations, processing instructions and DTD events.
         Expat's parsing events are similar to the events defined in the Simple API for XML (SAX), but Expat is not a SAX-compliant parser. Projects incorporating the Expat library often build SAX and DOM parsers on top of Expat.
         http://www.xml.com/pub/a/1999/09/expat/index.html
  • Marbles/신재동 . . . . 26 matches
         #include <iostream>
         using namespace std;
         const int MAX_NUMBER = 1000;
         unsigned int testCase = 0;
         unsigned int marbles[MAX_NUMBER] = {0,};
         unsigned int c1[MAX_NUMBER] = {0,};
         unsigned int n1[MAX_NUMBER] = {0,};
         unsigned int c2[MAX_NUMBER] = {0,};
         unsigned int n2[MAX_NUMBER] = {0,};
         unsigned int m1[MAX_NUMBER] = {MAX_NUMBER,};
         unsigned int m2[MAX_NUMBER] = {MAX_NUMBER,};
         void input();
         int main()
          input();
         void input()
          cin >> marbles[testCase];
          cin >> c1[testCase] >> n1[testCase];
          cin >> c2[testCase] >> n2[testCase];
          for(int i = 0; i < testCase; i++)
          int maxX = marbles[i] / n1[i];
  • Plugin/Chrome/네이버사전 . . . . 26 matches
          * 크롬은 아시다시피 Plug-in을 설치할수 있다 extension program이라고도 하는것 같은데 뭐 쉽게 만들수 있는것 같다. 논문을 살펴보는데 사전기능을 쓰기위해 마우스를 올렸지만 실행이 되지 않았다.. 화난다=ㅂ= 그래서 살짝 살펴보니 .json확장자도 보이는것 같지만 문법도 간단하고 CSS와 HTML. DOM형식의 문서구조도 파악하고 있으니 어렵지 않을것 같았다. 그래서 간단히 네이버 링크를 긁어와 HTML element분석을 통해 Naver사전을 하는 Plug-in을 만들어볼까 한다.
         크롬의 개발자 API주소는 지금 사이트 이전을 하고있는데 맨앞에 code가 developer로 이전하는것 같았다. 여튼 index의 주소는 다음과 같다.
         http://code.google.com/chrome/extensions/index.html
         // found in the LICENSE file.
          "sort=relevance&" + // another good one is "interestingness-desc"
          <title>Getting Started Extension's Popup</title>
          min-width:357px;
          margin:5px;
          <!-- JavaScript and HTML must be in separate files for security. -->
          * window.open함수를 이용하여 body를 '''더블''' 클릭하면 새로운 팝업창을 띄운다.
          * index.html
         function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar,
          window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height
         <body ondblclick = "na_open_window('win', 'popup.html', 50, 100, 100, 30, 0, 0, 0, 0, 0)">
          * 위의 na-open_window는 임의로 만든 함수긴한데 status_bar나 기타 스크롤이 가능하지 않은 popup을 만들고 있다. 0은 false니까.
          "name" : "BrowsingData API: Basics",
          "browsingData"
          * inline script를 cross script attack을 방지하기 위해 html과 contents를 분리 시킨다고 써있다. 이 규정에 따르면 inline으로 작성되어서 돌아가는 javascript는 모두 .js파일로 빼서 만들어야한다. {{{ <div OnClick="func()"> }}}와 같은 html 태그안의 inline 이벤트 attach도 안되기 때문에 document의 쿼리를 날리던가 element를 찾아서 document.addEventListener 함수를 통해 event를 받아 function이 연결되게 해야한다. 아 이거 힘드네. 라는 생각이 들었다.
  • Ruby/2011년스터디/세미나 . . . . 26 matches
          * 1.0/0.0 -> infinity
          * initialize 함수로 객체 선언하기
          * 루비의 생성자 initialize. ( 디폴트 생성자가 있나봄)
          def initialize
          # init variables
          def initialize
          @var # this is the way how declaring variable
          def initialize
          # init variables
          def initialize
          # this is overriding
          Some2.function2 # undefined method
          {| parameters| do something with parameters..}
          * 출력 <- puts, print
          * Pair Programming : Pair를 밸런스에 맞게 짜드림.
          def initialize
          printLocation
          print " -> "
          printLocation
          print "\n"
  • [Lovely]boy^_^/EnglishGrammer/ReportedSpeech . . . . 26 matches
          A. You want to tell somebody else what Tom said. There are two ways of doing this :
          ex) Tom said, "I'm feeling sick."
          ex) Tom said that he was feeling sick.
          B. When we use reported speech, the main verb of the sentence is usually past. The rest of the sentence is usually past, too :
          C. The simple past can usually stay the same in reported speech, or you can change it to the past perfect.
          ex) Tom said he woke up feeling sick, so he stayed in bed. or
          Tom said he had woken up feeling sickm so he stayed in bed.
          A. It is not always necessary yo change the verb when you use reported speech. If you report something and it is still true, you do not need to change the verb.
          ex) direct : Tom said, "New York is more exciting than London."
          reported : Tom said that New York is more exciting than London. (New York is stlll more exciting. The situation hasn't changed.)
          Is is also correct to change the verb into the past.(--;)
          ex) Tom said that New York was more exciting than London.
          Later that day you see Jim. He is looking fine and carrying a tennis racquet. You say :
          Use tell when you say who you are talking to ( Tell Somebody(O) )
          But you can say something to somebody.
          C. Tell/ask somebody to do something.
          We also use the infinitive(to do/ to stay, etc...) in reported speech, especially with tell and ask(for orders and requests)
          ex1) direct : "Stay in bed for a few days," the doctor said to me.
          reported : The doctor told me to stay in bed for a few days.
  • joosama . . . . 26 matches
         [[HTML(<left><span style="font-size:7pt; letter-spacing:-1px;"><font face="Verdana" color=black><b>)]]bgm : 솔아솔아 푸르른 솔아 - MC Sniper[[HTML(</b></font></span></left>)]]
         http://members.tripod.co.jp/pochi2_2/line_kisha.gif http://members.tripod.co.jp/pochi2_2/line_kisha.gif
         [[HTML(<center><span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=ff4500><b>)]]
         [[HTML(<center><span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=ffa500><b>)]]ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ[[HTML(</b></font></span></center>)]]
         [[HTML(<center><span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=ffd700 ><b>)]]ㅎㅎㅎㅎㅎㅎㅎ[이연주/공부방]ㅎㅎㅎㅎㅎㅎㅎ[[HTML(</b></font></span></center>)]]
         [[HTML(<center><span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=9acd32 ><b>)]]ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ[[HTML(</b></font></span></center>)]]
         [[HTML(<center><span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=87cefa ><b>)]]ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ[[HTML(</b></font></span></center>)]]
         http://members.tripod.co.jp/pochi2_2/line_kisha.gif http://members.tripod.co.jp/pochi2_2/line_kisha.gif
         [[HTML(<span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=navy><b>)]] 3월 25일 근황보고~(∀`)」
         http://bingoimage.naver.com/data3/bingo_36/imgbingo_80/kims1331/32788/kims1331_1.gif
         [[HTML(<center><span style="font-size:15pt; letter-spacing:4px;"><font face="Verdana" color=gray><b>)]]독도는 아름다운 우리땅입니다![[HTML(</b></font></span></center>)]]
         [[HTML(<span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=gray><b>)]]
         || http://bingoimage.naver.com/data/bingo_40/imgbingo_78/sali51/35258/sali51_29.gif ||
         || http://bingoimage.naver.com/data3/bingo_93/imgbingo_84/whgudwn4/29813/whgudwn4_15.gif ||
         || http://bingoimage.naver.com/data/bingo_76/imgbingo_17/msj0824/30669/msj0824_5.jpg ||
         [[HTML(<span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=black><b>)]]
  • 금고/조현태 . . . . 26 matches
          <embed src="http://zerowiki.dnip.net/~undinekr/lunia_ost1.mp3">
         #include <iostream>
         #include <vector>
         #include <numeric>
         using namespace std;
         int GetMaxTryNumber(int buildingHeight, int tryNumber)
          int countNumber = 0;
          vector<int> nodes;
          while (accumulate(nodes.begin(), nodes.end(), 0) <= buildingHeight)
          for (register int i = 1; i < (int)nodes.size(); ++i)
         void main()
          int testNumber;
          cin >> testNumber;
          for (register int i = 0; i < testNumber; ++i)
          int buildingHeight;
          int tryNumber;
          cin >> buildingHeight;
          cin >> tryNumber;
          cout << GetMaxTryNumber(buildingHeight, tryNumber) << endl;
  • 데블스캠프2005/금요일/OneCard/이동현 . . . . 26 matches
          int num;
          int face;
          Card delete(int n){
          int search(int num, int face){
          for(int i=0; i<arr.size(); i++){
          int size(){
          for(int i=0; i<arr.size(); i++){
          System.out.print(i+".("+card.face+" "+card.num+") ");
          System.out.print("\n");
          void initCards(){
          for(int i=0; i<4; i++){
          for(int j=0; j<13; j++){
          for(int i=0; i<10; i++){
          comCards.add(stack.delete(rand.nextInt(stack.size()-1)));
          playerCards.add(stack.delete(rand.nextInt(stack.size()-1)));
          discard.add(stack.delete(rand.nextInt(comCards.size())));
          System.out.println("컴퓨터카드");
          System.out.println("마지막으로 낸 카드");
          System.out.println(discard.retTop());
          System.out.println("플레이어카드");
  • 데블스캠프2010/다섯째날/ObjectCraft/미션2/김상호 . . . . 26 matches
         {{{#include<stdio.h>
         #include<stdlib.h>
         #include<time.h>
          int gong;
          int bang;
          int hp;
         int main()
          int sel;
          printf("저글링 0이 저글링 1에게 데미지 %d를 입혀 HP가 %d가 되었다.\n", a[0].gong, a[1].hp);
          printf("저글링 1이 저글링 0에게 데미지 %d를 입혀 HP가 %d가 되었다.\n", a[1].gong, a[0].hp);
          printf("저글링 0이 전사했습니다.\n");
          printf("저글링 1이 전사했습니다.\n");
         #include<stdio.h>
         #include<stdlib.h>
         #include<time.h>
          int gong;
          int bang;
          int hp;
          int name;
          printf("저글링 %d이 저글링 %d에게 데미지 %d를 입혀 HP가 %d가 되었다.\n", a.name, b.name, a.gong, b.hp);
  • 마름모출력/임다찬 . . . . 26 matches
         #include <stdio.h>
         int main(void){
          int k,i,j,byun;
          int max;
          printf("패턴입력 : "); scanf("%c",&ma);
          printf("변의 길이 입력 : "); scanf("%d",&byun);
          printf(" ");
          printf("%c",ma);
          printf("\n");
          printf(" ");
          printf("%c",ma);
          printf("\n");
         #include <stdio.h>
         int main(void){
          int i,j,k;
          int B_length;
          printf("패턴입력 : "); scanf("%c",&pattern);
          printf("변의 길이 입력 : "); scanf("%d",&B_length);
          for(k=1;k<B_length-i;k++) printf(" ");
          for(j=1;j<=2*i+1;j++) printf("%c",pattern);
  • 빵페이지/소수출력 . . . . 26 matches
         #include <iostream>
         using namespace std;
         int main()
          int a;
          cin >> a;
          for(int i=2;i<=a;i++)
          int count = 0;
          for(int j=2;j<i;j++)
         #include<iostream>
         using namespace std;
         int main()
          int num;
          cin>>num;
         for(int k=2;k<num;k++)
          int count=0;
          for(int i=1;i<=num;i++)
          for(int j=2;j<=num;j++)
         #include <iostream.h>
         void main()
          int num;
  • 새싹교실/2011/學高/5회차 . . . . 26 matches
         #include<stdio.h>
         int main()
          int a=1,b=2,c=3,d=4,e=5;
          printf("%d\n",(++a)+(b++)*(c+d)%e);
          * redirection: input: <, output: >
          * increment/decrement, postfix/prefix: 이거 모르면 곧바로 질문합니다. 저 자는데 깨워도 되요(물론 ~~안~~못 받겠지만)
         === 자기 반성 및 수정할 점(feeling/finds) ===
         -increment operator ++i는 expression이 실행되기 전, i++는 후에 1을더해준다
         === 자기 반성 및 고칠 점(feeling/finds) ===
         #include<stdio.h>
         int main()
          int a=1,b=2,c=3,d=4,e=5;
          printf("%d\n",(++a)+(b++)*(c+d)%e);
         === 자기 반성 및 고칠 점(feeling/finds) ===
         #include<stdio.h>
         int main()
          int a=1,b=2,c=3,d=4,e=5;
          printf("%d\n",(++a)+(b++)*(c+d)%e);
         === 자기 반성 및 고칠 점(feeling/finds) ===
  • 최대공약수/허아영 . . . . 26 matches
          int temp;
         잘못된 변수로 print한 것을 발견..
         #include <stdio.h>
         void main()
          int x2, y2, x, y,remainder;
          printf("두 숫자 입력 (ex| 5 6):");
          int temp;
          remainder = x2 % y2; // x2= 나눠질 값. y2= 나누는 값. remainder= 나머지.
          y2 = remainder;
          printf("x = %d, y = %d\n GCD is %d", x, y, x2);
         #include <stdio.h>
         void Eu_clidian(int x, int y);
         void main()
          int x, y;
          printf("두 숫자 입력 (ex| 5 6):");
         void Eu_clidian(int x, int y)
          int x2, y2, remainder;
          remainder = x2 % y2;
          y2 = remainder;
          printf("The GCD of %d and %d is %d\n", x, y, x2);
  • 8queen/강희경 . . . . 25 matches
         #include<iostream>
         #include<ctime>
         using namespace std;
         void eraser(int row, int col);
         int board[8][8];
         int count = 0;
         int main()
          for(int i = 0; i<8;i++)
          for(int j = 0; j<8; j++)
          int row = rand() % 7 + 0;
          int col = rand() % 7 + 0;
          for(int k = 0; k<8;k++)
          for(int l = 0; l<8; l++)
         void eraser(int row, int col)
          for(int m = 1; row+m< 8;m++)
          for(int n = 1; row-n >=0;n++)
          for(int o = 1; col+o< 8;o++)
          for(int p = 1; col-p>=0;p++)
          for(int q = 1; row+q<8 && col-q>=0;q++)
          for(int r = 1; row+r<8 && col+r<8 ;r++)
  • ConstructorMethod . . . . 25 matches
         class Point
          void setXnY(int x, int y) { /* ... */ }
         Point* pt = new Point;
         class Point
          void setXnY(int x, int y) { /* ... */ }
          static Point* makeFromXnY(int x, int y)
          Point* pt = new Point;
         Point* pt = Point::makeFromXnY(0,0);
         class Point
          void setXnY(int x, int y) { /* ... */ }
          static Point* makeFromXnY(int x, int y) { /* ... */ }
          static Point* makeFromRnTheta(int r, int theta)
          return makeFromXnY(r*cos(theta),r*sin(theta));
  • EightQueenProblem/Leonardong . . . . 25 matches
         [Debugging]을 준비하다가 DebugJournal을 적으려고 풀어 본 문제
          def __init__(self):
          for i in range( aSize ):
          for p in self.positions:
          def findNext(self, aRow, aCol):
          return self.findNext(aRow, aCol+1)
          for row in range(aSize/2):
          row, col = self.findNext(row, col)
          print
          for b in self.board:
          print b
          ## invalid
          def testFindNext(self):
          row, col = q.findNext(0, 0)
          row, col = q.findNext(row+1,0)
          row, col = q.findNext(row+1,0)
          row, col = q.findNext(row+1,0)
          row, col = q.findNext(row+1,0)
          row, col = q.findNext(row+1,0)
          ## back again
  • EightQueenProblem/이덕준소스 . . . . 25 matches
         #include <iostream.h>
         #include <math.h>
         bool EightQueens(int level, int queens[]);
         bool Promissing(int level, int queens[]);
         bool WellPutted(int level1, int level2, int queens[]);
         int main(int argc, char* argv[])
          int queens[8],i;
         bool EightQueens(int level, int queens[])
          int i;
          if (Promissing(level,queens))
         bool Promissing(int level, int queens[])
          int i,j;
         bool WellPutted(int level1, int level2, int queens[])
  • FactorialFactors/조현태 . . . . 25 matches
          결국 입력은 무슨 말인지 몰라서 내맘대로 정해버렸다. cin..ㅎㅎㅎ 누가 설명좀 해주..ㅎㅎ
         #include <iostream>
         #include <math.h>
         using namespace std;
         unsigned int factorial_factors(unsigned int);
         void main()
          cin >> input_number;
          cout << factorial_factors(input_number) << "\n";
          cin >> input_number;
         unsigned int factorial_factors(unsigned int answer)
          unsigned int *log_answer = (unsigned int*)malloc((answer+2)*sizeof(unsigned int));
          unsigned int sum = 1;
          unsigned int gab;
          unsigned int suchEnd = (unsigned int)sqrt((double)answer);
          for (register unsigned int i=4; i<=answer;i+=2)
          for (register unsigned int i=3; i<=suchEnd; ++i)
          for(register unsigned int j = i * i; j <= answer; j+= gab)
          for (register unsigned int i = suchEnd + 1; i <= answer; ++i)
  • InWonderland . . . . 25 matches
         || Upload:MainWindow.zip || 철민 || 홈페이지 ||
         || Upload:EC_AliceCardHome002.zip || cheal min || 홈페이지 ||
         public bool CertifyStore(string storeReg, string storeAuth) // -인자: 사업자 등록 번호, 가맹점 비밀 번호
         public int ReferPoint(string cardNum, string cardPwd) // -인자: 카드 번호 -결과: 포인트
         public bool SavePoint(string storeReg, string storeAuth, string cardNum, string cardPwd, int money, int point) // -인자: 사업자 등록 번호, 카드 번호, 돈, 적립할 포인트
         public bool UsePoint(string storeReg, string storeAuth, string cardNum, string cardPwd, int money, int point) // -인자: 사업자 등록 번호, 카드 번호, 돈, 사용한 포인트
  • MoinMoinNotBugs . . . . 25 matches
         == This is *NOT* a Browser bug with CSS rendering ==
         <b>window</b> <ul>
          The main, rectangular background, control and data area of an application. <p></ul>
          A temporary, pop-up window created by the application, where the user can
         enter information and provide commands. <p></ul>
         '''The HTML being produced is invalid:''' ''Error: start tag for "LI" omitted, but its declaration does not permit this.'' That is, UL on its lonesome isn't permitted: it must contain LI elements.
         Also worth noting that ''Error: Missing DOCTYPE declaration at start of document'' comes up at the HEAD tag; and ''Error: document type does not allow element "FONT" here'' for a FONT tag that's being used inside a PRE element.
         ''Indeed the <ul> should be a <dl> or so for pure indents. I'll add HTML conformity checking as a todo.''
         Please note also that to be "identical," the second P tag should ''follow'' the /UL, not precede it. The implication as-is is that the P belongs to the UL block, when it doesn't. It may be worth using closing paragraph tags, as an aide to future XHTML compatibility, and to make paragraph enclosures wholly explicit.
         This is not an Opera bug. The HTML is invalid. '''The blocks are overlapping, when they are not allowed to:''' P UL P /UL UL P /UL is not a sensible code sequence. (It should be P UL /UL P UL /UL P... giddyupgiddyup?)
         I suspect this problem is pervasive, and I also suspect that the solution is almost moot; probably a one-off counting problem, or a mis-ordered "case" sort of sequence. If the /UL closing tag were to precede the P opening tag, all would be well.
         Hey! That ToC thing happening at the top of this page is *really* cool!
         ''This issue will be resolved in the course of XML formatting -- after all, XML is much more strict than any browser.''
  • MoreEffectiveC++/C++이 어렵다? . . . . 25 matches
         작성자 : 류상민(["neocoin"], ZP 99) [[BR]]
          === Inheritance - Overriding - virtual ===
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fEfficiency#head-fe2478216366d160a621a81fa4e3999374008afa Item 24 Virtual 관련], [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fMiscellany#head-ce86e4dc6d00b898731fbc35453c2e984aee36b8 Item 32 미래 대비 프로그램에서 String문제]
          * Multiinheritance 에서 제기되는 문제
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fEfficiency#head-4e0fa0edba4b5f9951ea824805784fcc64d3b058 Item 24 다중 상속 관련]
          === RTTI (Real Time Type Information) ===
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fEfficiency#head-df8e5cb1fbb906f15052798c446df0ed08dfeb91 Item 24 RTTI 관련]
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fTechniques3of3 Item 31]
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fTechniques3of3#head-85091850a895b3c073a864be41ed402384d1868c RTTI를 이용해 구현 부분]
          === Polymorphism - Overloading ===
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fMiscellany#head-a8fe938a36d3be47de007ce24f1d367295cd7ea7 Item 34 name mangle 관련]
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fMiscellany#head-9b5275859c0186f604a64a08f1bdef0b7e9e8e15 Item 34]
          * 생각해볼 name mangling - overloading
          [http://zeropage.org/moin/moin.cgi/MoreEffectiveC_2b_2b_2fMiscellany#head-a8fe938a36d3be47de007ce24f1d367295cd7ea7 Item 34 name mangle 관련]
  • NoSmokMoinMoinVsMoinMoin . . . . 25 matches
         || 기능 || Moin 1.1 || Nosmok moinmoin || 비고 ||
         || 속도 || 느림 || 보통 || 이건 좀 개인적 느낌임. 다른 사람 생각 알고 싶음. nosmok moinmoin 은 action 으로 Clear History 지원 ||
         || login || u-id || id/pass || 이건 nosmok 쪽이 더 익숙하고 편리한 형태라 생각. 기존 u-id 식 로그인이 사람들 고생 좀 시킨것을 생각하면.||
         || page 별 접근권한 || 지원 || 지원 || login 해야만 글을 쓸 수 있는 페이지들 지정가능(nosmok)||
         || 부가기능 || Hot Draw Plugin 지원, 간단한 벡터 그래픽 첨부 가능. 페이지 미리보기 기능, RecentChanges 에 변경사항에 대한 Comment 기능 지원. go 입력창에 새 페이지 작성시 자동으로 이미 만들어진 비슷한 이름(Like Page) 페이지들 리스트 보여줌.(1.1 이상) || go 입력창에 새 페이지 작성시 자동으로 이미 만들어진 비슷한 이름(Like Page) 페이지들 리스트 보여줌. InterWiki 등록을 위키내에서 수정가능. || . ||
         || 기타 Spec || [http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/moin/dist/CHANGES?rev=1.111&content-type=text/vnd.viewcvs-markup CHANGES] 참조 || NoSmok:노스모크모인모인 참조 || . ||
          * nosmok moin인 moin 0.9를 기반으로 하여 업그레이드 되었고, moinmoin 1.1은 http://sf.net 에 올라와 있는 버전들의 가장 상위 버전입니다. 석천 차이좀 간단히 써주라. --["상민"]
         moinmoin 1.1 에서 타이틀바에 있는 숫자가 보기 좀 거슬리네요... 노스모크는 색깔 자체가 노스모크에 거주하는 사람들에겐 매우 친숙하지요..^^ --창섭
         전 현재 배포판인 MoinMoin 1.0 을 커스터마이징해서 썼으면 합니다. ''(http://acup.wo.to 에 가보시면 MoinMoin 1.0 을 커스터마이징한 위키를 구경할 수 있습니다.)'' ["노스모크모인모인"]에도 현재 욕심나는 기능이 많긴 하지만 MoinMoin 1.0 의 AttachFile 기능이 참 유용하다고 생각하고 있습니다. 그 밖에 Seminar:YoriJori 프로젝트가 다소 정체되어 있다는 느낌이 들기도 한 것이 이유가 될수 있겠습니다. MoinMoin 1.0 설치 및 커스터마이징은 2 ManDay 정도만 투자하면 가능하리라 생각됩니다. --["이덕준"]
  • PPProject/20041001FM . . . . 25 matches
         #include <iostream>
         #include <string>
         using namespace std;
         void roll( string str, int i );
         void main()
          string str = "abcde";
          int i = 3;
         void roll( string str, int i )
          int n = str.length();
          for ( int tag = 0 ; tag < n ; tag++ ){
         #include<iostream.h>
         #include<cstring>
         void roll(int i);
         char * string="ABCDEFGHIJKLMNOPQRSTUV";
         const int SIZE = strlen(string);
         void main()
         void roll(int i)
          strncpy(buffer1, string, i);
          strcpy(buffer2,string+i);
         첫 모임이라 스터디 방식을 정하는데 시간이 오래 걸렸다. 회영이와 PairProgramming 을 하는데 너무 여유가 없었다.
  • ReverseAndAdd/허아영 . . . . 25 matches
         #include <iostream>
         using namespace std;
         #include <math.h>
         unsigned int numLength(unsigned int num)
          unsigned int turn = 0;
         bool isPalindrome(unsigned int *num, unsigned int length)
          unsigned int i;
         unsigned int ReverseAndAdd(unsigned int *num, unsigned int length)
          unsigned int i, reverseNum = 0, Num = 0;
          unsigned int *temp = new unsigned int [length];
         unsigned int main()
          unsigned int addNum, length, i, turn = 0, testCaseNum;
          unsigned int num;
          unsigned int * store_numbers;
          cin >> testCaseNum;
          cin >> num;
          store_numbers = new unsigned int[numLength(num)];
          if(isPalindrome(store_numbers, length))
  • SOLDIERS/송지원 . . . . 25 matches
         #include <iostream>
         #include <algorithm>
         #include <cmath>
         using namespace std;
         void main () {
          // input data
          int num;
          int x[10001], y[10001];
          int i, k;
          int minX, minY, maxX, maxY;
          int sumXmove, sumYmove;
          int minMoveX = INT_MAX;
          int minMoveY = INT_MAX;
          int resx, resy;
          // data input
          minX = x[1];
          minY = y[1];
          for(i=minX; i<=maxX; i++){
          printf("%d", minMoveX + minMoveY);
  • ZeroPage_200_OK . . . . 25 matches
          * Cascading Style Sheet
          * '''JavaScript 1.4~1.6''' / JScript (ECMAScript)''' - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
          * Google Chrome for Windows
         == Integrated Development Environment ==
          * JetBrains WebStorm
          * Mozilla Bespin -> Mozilla Skywriter -> Ajax.org Ace -> Cloud9 -> http://c9.io/
          * http://support.cloud9ide.com/entries/21068062-ide-file-saving-hangs ... 풋!
          * 위에 링크한 저의 Workspace Project의 index.html 파일에 메뉴 샘플을 구현해두었습니다. 상단의 Preview로 확인하면서 적절히 참조해서 만들면 도움이 될겁니다.
          * 자바스크립트에서 자주 this 얘기가 나오던데, 이번에 이야기를 들을 수 있어서 좋았습니다. 개인적인 느낌을 말하자면 함수가 데이터로 취급되는데 함수 내부에서 함수를 호출한 객체(execution context)의 정보를 사용하기 위해서 this를 사용한다는 느낌이는데 맞는지 모르겠군요. p.print를 넘기는 것도 실제로 class p에 있는 함수를 넘기는 게 아니라 p.print에 바인딩 된 어떤 함수를 넘기는 것이니까 내부의 this가 기존 OOP와 같이 해당 class의 인스턴스는 될 수 없겠죠. 그리고 제일 마음에 들었던 것은 역시 예전에 했던 스터디에서 다뤘던 자바스크립트의 네 가지 특징에 대해서 들을 수 있었다는 점이었습니다. 사실 예전 스터디 떄 무척 듣고 싶었는데 개인적인 사정으로 참가를 할 수 없어서 꽤 아쉬웠던 터라 ;;; 마지막에는 개인적인 사정으로 시간이 안 맞아서 좀 급하게 나갔는데, 그래도 최대한 들을 수 있는 데까지 듣기를 잘 한 것 같은 느낌이 들었습니다. - [서민관]
          * 서버에서 데이터를 가져와서 보여줘야 하는 경우에 싱글스레드를 사용하기 때문에 생기는 문제점에 대해서 배우고 이를 처리하기 위한 방법을 배웠습니다. 처음에는 iframe을 이용한 처리를 배웠는데 iframe 내부는 독립적인 페이지이기 때문에 바깥의 렌더링에 영향을 안주지만 페이지를 이동하는 소리가 나고, iframe이 서버측의 데이터를 읽어서 렌더링 해줄 때 서버측의 스크립트가 실행되는 문제점 등이 있음을 알았습니다. 이를 대체하기 위해 ajax를 사용하는데 ajax는 렌더링은 하지 않고 요청 스레드만 생성해서 처리를 하는 방식인데 xmlHttpRequest나 ActiveXObject같은 내장객체를 써서 요청 스레드를 생성한다는걸 배웠습니다. ajax라고 말은 많이 들었는데 구체적으로 어떤 함수나 어떤 객체를 쓰면 ajax인건가는 잘 몰랐었는데 일반적으로 비동기 처리를 하는거면 ajax라고 말할 수 있다고 하셨습니다. 그리고 중간에 body.innerHTML을 직접 수정하는 부분에서 문제가 생겼었는데 innerHTML을 손대면 DOM이 다시 만들어져서 핸들러가 전부 다 사라진다는 것도 기억을 해둬야겠습니다. - [서영주]
          * JSON.stringify() 메소드와 JSON.parse() 메소드를 이용해서 JSON의 Serialization <-> Deserialization이 가능하다.
          * Builder Pattern의 일종으로 jQuery의 메소드를 실행한 이후에 jQuery 배열 객체를 반환함으로써 함수의 chainning을 해서 사용할 수 있다.
          * DOM 객체를 wrapping 한 것으로 CSS selector 문법으로 DOM에서 Element를 찾아 올 수 있다.
          * Private instance property
          * escape, unescape (deprecated) : encoding 스펙이 정해져 있지 않아서 브라우저마다 구현이 다를 수 있다.
          * window.history
          * window.location
          * Same origin policy
          * document.domain
          * window.navigator
  • zennith/source . . . . 25 matches
         #include <stdio.h>
         int main(void) {
          int num;
          unsigned long int fac = 1;
          printf("Enter Number : ");
          printf("%u\n", fac);
         #include <stdio.h>
         #include <time.h>
         #define MAX_PRIME 50000
         int main(void) {
          int i, j, flag, arr_p, tmp;
          int arr[10000] = {0, };
          printf("%d ", arr[i++]);
          printf("\n%f\n", (double)(end - start) / CLK_TCK);
         int factorial(int arg) {
         int permutation(int arg1, int arg2) {
         int combination(int arg1, int arg2) {
  • 구구단/조재화 . . . . 25 matches
         #include<iostream>
         using namespace std;
         int main()
          for(int i=1; i<10 ; i++)
          for(int j=2; j<6; j++)
          for(int d=1; d<10 ; d++)
          for(int k=6; k<10; k++)
          instanceVariableNames: ''
          * printGugudan 메소드
         printGugudan
         gugudan printGugudan.
         (define (inter x y)
          (begin (inter (+ x 1) 1) )
          (begin (print x)(print *)(print y)(print =)(print (* x y))(newline) (inter x (+ y 1)) )
         (inter 2 1)
  • 데블스캠프2006/월요일/함수/문제풀이/윤영준 . . . . 25 matches
         #include <iostream.h>
         bool team684(int, int, int);
         void main(void){
          int member, gun, boat;
          cin >> member;
          cin >> gun;
          cin >> boat;
         bool team684(int member, int gun, int boat){
          int power;
         #include <iostream>
         using namespace std;
         #include <time.h>
         int dice(void);
         void main(void){
         int dice(void){
         #include <iostream>
         using namespace std;
         #include <time.h>
         int a(void);
         void main(void)
  • 데블스캠프2010/다섯째날/ObjectCraft/미션2/허준 . . . . 25 matches
         == main.cpp ==
         #include <stdio.h>
          int att;
          int def;
          int HP;
         void main() {
          printf("저글링1이 저글링2에 데미지 %d를 입혀서 저글링2의 HP가 %d가 되었습니다.\n", zeli1.att, zeli2.HP);
          printf("저글링2가 죽었습니다.\n");
          printf("저글링2이 저글링1에 데미지 %d를 입혀서 저글링1의 HP가 %d가 되었습니다.\n", zeli2.att, zeli1.HP);
          printf("저글링1가 죽었습니다.\n");
         == main.cpp(수정) ==
         #include <stdio.h>
          int no;
          int att;
          int def;
          int HP;
         void init_unit() {
         int get_damage(unit a1, unit a2) {
          int damage = get_damage(a1, a2);
          printf("저글링%d이 저글링%d에 데미지 %d를 입혀서 저글링%d의 HP가 %d가 되었습니다.\n", a1.no, a2.no, damage, a2.no, a2.HP);
  • 데블스캠프2011 . . . . 25 matches
          * [https://docs.google.com/spreadsheet/ccc?key=0AtizJ9JvxbR6dGNzZDhOYTNMcW0tNll5dWlPdFF2Z0E&usp=sharing 타임테이블링크]
          || 1 || [송지원] || [:데블스캠프2011/첫째날/오프닝 오프닝] || [강성현] || [:데블스캠프2011/둘째날/Scratch Scratch] || [김수경] || [:데블스캠프2011/셋째날/String만들기 String만들기] || [이원희] || [:데블스캠프2011/넷째날/Android Android] || [조현태] || [:데블스캠프2011/다섯째날/PythonNetwork Python으로 하는 네트워크] || 8 ||
          || 2 || [송지원] || [:데블스캠프2011/첫째날/오프닝 오프닝] || [강성현] || [:데블스캠프2011/둘째날/Scratch Scratch] || [김수경] || [:데블스캠프2011/셋째날/String만들기 String만들기] || [이원희] || [:데블스캠프2011/넷째날/Android Android] || [조현태] || [:데블스캠프2011/다섯째날/PythonNetwork Python으로 하는 네트워크] || 9 ||
          || 3 || [변형진] || [:데블스캠프2011/첫째날/개발자는무엇으로사는가 개발자는 무엇으로 사는가] || [강성현] || [:데블스캠프2011/둘째날/Scratch Scratch] || [김수경] || [:데블스캠프2011/셋째날/String만들기 String만들기] || [이원희] || [:데블스캠프2011/넷째날/Android Android] || [조현태] || [:데블스캠프2011/다섯째날/PythonNetwork Python으로 하는 네트워크] || 10 ||
          || 4 || [변형진] || [:데블스캠프2011/첫째날/개발자는무엇으로사는가 개발자는 무엇으로 사는가] || [김동준] || [:데블스캠프2011/둘째날/Cracking Cracking - 창과 방패] || [김준석] || [:데블스캠프2011/셋째날/RUR-PLE RUR-PLE] || [이승한] || [:데블스캠프2011/넷째날/ARE Android Reverse Engineering] || [이정직] || [:데블스캠프2011/다섯째날/Lua Lua] || 11 ||
          || 5 || [변형진] || [:데블스캠프2011/첫째날/개발자는무엇으로사는가 개발자는 무엇으로 사는가] || [김동준] || [:데블스캠프2011/둘째날/Cracking Cracking - 창과 방패] || [김준석] || [:데블스캠프2011/셋째날/RUR-PLE RUR-PLE] || [이승한] || [:데블스캠프2011/넷째날/Git Git-분산 버전 관리 시스템] || [변형진] || [:데블스캠프2011/다섯째날/HowToWriteCodeWell How To Write Code Well] || 12 ||
          || 7 || [송지원] || [:데블스캠프2011/첫째날/Java Play with Java] || [:상협 남상협] || [:데블스캠프2011/둘째날/Machine-Learning Machine-Learning] || [윤종하], [황현] || [:데블스캠프2011/셋째날/Esolang 난해한 프로그래밍 언어] || [이승한] || [:데블스캠프2011/넷째날/Git Git-분산 버전 관리 시스템] || [변형진] || [:데블스캠프2011/다섯째날/HowToWriteCodeWell How To Write Code Well] || 2 ||
          || 8 || [송지원] || [:데블스캠프2011/첫째날/Java Play with Java] || [:상협 남상협] || [:데블스캠프2011/둘째날/Machine-Learning Machine-Learning] || [윤종하], [황현] || [:데블스캠프2011/셋째날/Esolang 난해한 프로그래밍 언어] || [서지혜] || [:데블스캠프2011/넷째날/루비 루비] || [변형진] || [:데블스캠프2011/다섯째날/HowToWriteCodeWell How To Write Code Well] || 3 ||
          || 9 || [송지원] || [:데블스캠프2011/첫째날/Java Play with Java] || [:상협 남상협] || [:데블스캠프2011/둘째날/Machine-Learning Machine-Learning] || [윤종하], [황현] || [:데블스캠프2011/셋째날/Esolang 난해한 프로그래밍 언어] || [서지혜] || [:데블스캠프2011/넷째날/루비 루비] || [김수경] || [:데블스캠프2011/다섯째날/Cryptography Cryptography], 회고 || 4 ||
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/정의정,김태진 . . . . 25 matches
         import java.io.PrintStream;
          public static final int RUNNING = 1;
          public static final int SHUT_DOWN = 2;
          public static final int GUARDS_RESPONSE = 3;
          public static final int OVER_WEIGHT = 4;
          public static final int ROBOT = 5;
          public int status;
          public int floor;
          public Elevator(int i, int j) {
          public void goTo(int i) {
          public int floor() {
          public int status() {
          public void underMinFloor() {
          public void callElevatorUp(int i) {
          public void callElevatorDown(int i) {
         import java.io.PrintStream;
          assertEquals(elevator.RUNNING, elevator.status());
          assertEquals(elevator.RUNNING, elevator.status());
          elevator.overMaxFloor(); // print 하늘나라로.
          elevator.underMinFloor(); // print 지옥으로.
  • 미로찾기/김태훈 . . . . 25 matches
         #include <stdio.h>
         #include <time.h>
         #include <conio.h>
         #define MAP_X 5
         #define MAP_Y 5
          int row;
          int col;
         int move(ztype );
         void prtpoint();
         int map[MAP_X][MAP_Y]={
         int map[MAP_X][MAP_Y]={
         int main()
          int x,y,run=0;
          if(x==0 && y==0) continue;
          printf("%d ケー スヌヌ狠゚\n",run);
          prtpoint();
          printf("%dケクソ。 ナサテ・シコー!\n",run);
         int move(ztype to)
         void prtpoint()
          int i,j;
  • 비밀키/노수민 . . . . 25 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
          int key,index=-1;
         // cin >> "
          cin >> fileName;
          ifstream fin(fileName);
          cin >> key;
          while(fin.get(buffer[++index]))
          cout << char( int(buffer[index]) + key) << " ";
          int key,index=-1;
         // cin >> "
          cin >> fileName;
          ifstream fin(fileName);
          cin >> key;
          while(fin.get(buffer[++index]))
          cout << char( int(buffer[index]) -n key) << " ";
         int main()
  • 비밀키/임영동 . . . . 25 matches
         #include<iostream>
         #include<fstream>
         #include<string>
         using namespace std;
         int main()
          ifstream fin("input.txt");
          string str;
          int key;
          cin>>key;
          int count=1;
          while(!fin.eof())
          if(fin.get()=='\n')
          fin.close();
          ifstream fin1("input.txt");
          for(int i=0;i<count;i++)
          getline(fin1, str);
          for(string::iterator i=str.begin();i!=str.end();i++)
          for(i=str.begin();i!=str.end();i++)
          fin1.close();
  • 숫자를한글로바꾸기/김태훈zyint . . . . 25 matches
         #include <stdio.h>
         #include <string.h>
         #define TRUE 1
         #define FALSE 0
         char* num2str(int num); //숫자를 문자로 변경시켜줍니다.
         int is_numarray(char getdata[]); //char 배열의 요소가 숫자인지 확인 - 맞으면 TRUE 리턴
         void inputdata(char *getdata); // 5자리이하 숫자를 문자로 getdata에 배열로 입력받기
         int main(int argc, char* argv[])
          inputdata(getdata);
          printf("\n");
         void inputdata(char *getdata)
          printf("숫자 5자리를 입력해주세요 >> ");
          if(strlen(getdata)>5) continue;
          if(!is_numarray(getdata)) continue;
         char* num2str(int num)
         int is_numarray(char getdata[])
          unsigned int i=0;
          int i,pjari=0;
          for( i=0 ; i<(int)strlen(getdata) ; ++i){
          printf("%s",num2str(getdata[i]-48));
  • 이영호/끄적끄적 . . . . 25 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         #include <math.h>
         int check(int array[]);
         void print_card();
          int num;
         main(int argc, char *argv[]){
         int i, j;
         int array[52]; // 다음 체크할 배열.
         int count; // 총 몇 번 체크해야하는가?
          fprintf(stderr, "Usage: %s input_file", argv[0]), exit(1);
          fprintf(stderr, "fopen error(%s)", argv[1]), exit(1);
          if(i==1 && j ==1) continue;
          sprintf(buf->name, "%s of %s",
          i==10?"Jack":i==11?"Queen":i==12?"King":i==13?"Ace":itoa_buf,
         int check(int array[])
         void print_card()
         int i;
          printf("%s\n", buf->name);
  • 캠이랑놀자/아영 . . . . 25 matches
         print "Testing..."
         #print t
         for x in range(50,100):
          for y in range(50,100):
         for x in range(100,150):
          for y in range(100,150):
         for x in range(150,200):
          for y in range(150,200):
         for x in range(256):
          for y in range(256):
         for x in range(256):
          for y in range(256):
         print "Testing..."
         #print t
         for x in range(256):
          for y in range(124):
          for y in range(125,256):
         for x in range(256):
          for y in range(256):
         for x in range(256):
  • 큰수찾아저장하기/문보창 . . . . 25 matches
         #include <iostream>
         using namespace std;
         const int SIZE = 4;
         void input_arr(int arr[][SIZE]);
         void find_max(int arr[][SIZE]);
         void show_arr(int arr[][SIZE]);
         int main()
          int arr[SIZE][SIZE];
          input_arr(arr);
          find_max(arr);
         void input_arr(int arr[][SIZE])
          for (int i = 0; i < SIZE - 1; i++)
          for (int j = 0; j < SIZE - 1; j++)
          cin >> arr[i][j];
         void find_max(int arr[][SIZE])
          for (int i = 0; i < SIZE-1; i++)
          for (int j = 1; j < SIZE-1; j++)
         void show_arr(int arr[][SIZE])
          for (int i = 0; i < SIZE; i++)
          for (int j = 0; j < SIZE; j++)
  • 토이/삼각형만들기/김남훈 . . . . 25 matches
         다만 걱정되는게 있었다면, visual studio 띄우기도 귀찮아서.. 그리고 요즘에는 이런거 짜는데 마소 비주얼 스튜디오 형님까지 끌어들이는건 좀 미안하게 느껴져서 그냥 zp server 에서 vi 로 두들겼는데.. 나 gdb 쓸 줄 모르니까. malloc 쓰면서 약간 두려웠지. 흐흐흐. 다행이 const int 를 case 에서 받을 수 없는거 (이런 줄 오늘 알았다) 말고는 별달리 에러 없이 한방에 되주셔서 즐거웠지.
         #include <stdio.h>
         #include <stdlib.h>
         #define FORWARD 1
         #define BACKWARD 2
         #define BIDIR 3
         void getUserInput(int * sel, int * num) {
         char * makeBuffer(int num) {
         void forwardTriangle(int num, char * buffer) {
          int i;
          printf("%s\n", buffer);
         void backwardTriangle(int num, char * buffer) {
          int i;
          printf("%s\n", buffer);
         int calcBidirTriangleSize(int num) {
         void bidirTriangle(int num, char * buffer) {
          int i, center;
          printf("%s\n", buffer);
         void produceTriangle(int sel, int num) {
         int main(void) {
  • 2학기파이선스터디/문자열 . . . . 24 matches
          1. 인덱싱(Indexing) = [k]
          2. 슬라이싱(Slicing) = [[ s : t ]
          5. 멤버십 데스트(Membership Test) = in
         >>> s = 'i like programing'
         'I LIKE PROGRAMING'
         'i like programing'
         'I like programing' # 첫 문자를 대문자로
         >>> s = 'i like programing, i like swimming'
         >>> s.find('like')
         >>> s.find('my')
         >>> s.rfind('like')
         >>> s.index('like')
         >>> s.index('my')
          File "<pyshell#40>", line 1, in ?
          s.index('my')
         valueError : substring not found in string.index
         >>> ':'.'''join(t)''' # ':' 문자로 결합. 틀리기 쉬우니 주의할것!!
         >>> print '\n'.join(t) # 줄바꾸기로 결합.
          2. 문서 문자열(doucmentation string)을 이용하는 방법
  • ACM_ICPC . . . . 24 matches
         = ACM International Collegiate Programming Contest =
          * [http://acm.kaist.ac.kr/2000/standing.html 2000년]
          * [http://acm.kaist.ac.kr/2001/standing.html 2001년]
          * [http://acm.kaist.ac.kr/2002/standing.html 2002년]
          * [http://acm.kaist.ac.kr/2005/standing2005.html 2005년 스탠딩]
          * [http://acm.kaist.ac.kr/2007/standing2006.html 2006년 스탠딩] - ZeroPage Rank 17
          * [http://acm.kaist.ac.kr/2007/standing2007.html 2007년 스탠딩] - ZeroPage Rank 30
          * [http://acm.kaist.ac.kr/2009/rank/new_summary_full.html 2009년 스탠딩] - No attending
          * [http://acm.kaist.ac.kr/phpBB3/viewtopic.php?f=7&t=129 2010년 스탠딩] - No attending
          * [http://acm.kaist.ac.kr/phpBB3/viewtopic.php?f=35&t=5728 2014년 스탠딩] - ZeroPage Rank 32 (CAU - Rank 18, including Abroad team)
          * [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)
         || 네트워크플로우 || . || Big Integer || . ||
         == ExternalLink ==
         , [ACM_ICPC/PrepareAsiaRegionalContest], [(zeropage)ProgrammingContest]
  • BeingALinuxer . . . . 24 matches
         Being A Linuxer는 '리눅서가 되는' 정도의 뜻으로 해석할 수 있다. 이는 완료형이 아니라 진행형이다. 이 스터디로 인해 참가자들이 리눅스를 조금이나마 이해하고 리눅스 환경에 익숙해지는 것을 최종 목표로 한다.
          || 김정현 || 01 || interaction21@hotmail.com || 저두요^^; ||
          || 윤성복 || 05 || cutlife@hotmail.com || Linux는 오랜만 ^^;; ||
          2. Linux 배포본 설치, APM 및 여러 개발환경 설치.
          * 일단, 개별학습을 의도하였으나 예상외료 신청자가 폭주하는 바람에 집에 오다가 다음의 방법을 생각해봄. (TokenRing 에서 아이디어를 얻어옴).
          2. 각 조는 2개의 작은 조로 나눔. 2인이 다시 하나의 작은 조를 이루어 같이 실습하고 학습함. (SeeAlso PairProgramming)
          * 첫 번째 - 간단한 리눅스 소개, 서버 접속법(terminal, sftp), 파일 목록보기, 디렉토리 옮겨다니기 ([http://zeropage.org/~linuxer/documents/BeingALinuxer01.odt 자료01], [http://zeropage.org/~linuxer/documents/BeingALinuxer01.pdf PDF버전])
          * 두 번째 - VI Improved 에디터 ([http://zeropage.org/~linuxer/documents/BeingALinuxer02.odt 자료02], [http://zeropage.org/~linuxer/documents/BeingALinuxer02.pdf PDF버전])
          [http://zeropage.org/~linuxer/tools/FileZilla_2_2_14_setup.exe FileZilla_2_2_14_setup.exe] - FTP, SFTP Client
          [http://zeropage.org/~linuxer/tools/putty.exe putty.exe] - TELNET, SSH Client
          - ls directory 하면 그 안에 있는 내용도 보여주는데.. ls pu* 하면. pu로 시작하는 파일하고 pu로 시작하는 디렉토리 안의 내용을 보여주겠지. 글고 linux, unix, bsd 계열의 OS에서는 폴더보다는 디렉토리라고 부르는게 맞는듯. - 인택
          뿌띠에서 logout명령어를 치면 왜 프로그램이 종료되어버리는지?(다시 login name을 입력하도록 나오는것이 정상 아닐까?)
  • Bridge/권영기 . . . . 24 matches
         #include<stdio.h>
         #include<memory.h>
         #include<algorithm>
         #include<queue>
         using namespace std;
         #define N 1020
         queue < pair< int, int> > ans2;
         int main(void)
         // freopen("input.txt","r",stdin);
          int t, n, tempn, p, ans = 0;
          int man[N];
          for(int i = 0; i<t; i++){
          memset(man, 0, sizeof(int) * N);
          for(int j = 0; j<n; j++){
          printf("%d\n", ans);
          pair <int, int> temp;
          printf("%d", temp.first);
          if(temp.second != -1)printf(" %d", temp.second);
          printf("\n");
          if(i != t-1)printf("\n");
  • Class로 계산기 짜기 . . . . 24 matches
         #include <iostream>
         using namespace std;
          int firstNumber;
          int secondNumber;
          int resultNumber;
          void setFirstNumber(int firstNumber){ this->firstNumber = firstNumber;}
          void setSecondNumber(int secondNumber){ this->secondNumber = secondNumber;}
          void setResultNumber(int resultNumber){ this->resultNumber = resultNumber;}
          int getFirstNumber(){ return firstNumber;}
          int getSecondNumber(){ return secondNumber;}
          int getResultNumber(){ return resultNumber;}
         class NumberInputer
          inputFirstNumber(memory);
          inputSecondNumber(memory);
          inputSign(memory);
          void inputFirstNumber(Memory * memory)
          int firstNumber;
          cin >> firstNumber;
          void inputSecondNumber(Memory * memory)
          int secondNumber;
  • HelpOnConfiguration . . . . 24 matches
         MoniWiki는 `config.php`에 있는 설정을 입맛에 맛게 고칠 수 있다. config.php는 MoniWiki본체 프로그램에 의해 `include`되므로 PHP의 include_path변수로 설정된 어느 디렉토리에 위치할 수도 있다. 특별한 경우가 아니라면 MoniWiki가 설치된 디렉토리에 config.php가 있을것이다.
          * VimProcessor 혹은 CodeColoringProcessor
         그 하위에 {{{bin}}} 디렉토리를 새롭게 만든 후에 {{{rcs}}}관련된 실행파일([[MoniWikiRCS]] 페이지 참조)을 {{{moniwiki/bin}}}아래에 복사하고
         {{{$path}}}에 {{{./bin}}} 디렉토리를 추가한다.
         $path='/usr/bin:/bin:/usr/local/bin:./bin'; # 유닉스의 기본 실행파일 디렉토리 + ./bin
         $path='/usr/bin:/bin:/usr/local/bin:/home/to_your_public_html/moniwiki/bin'; # 유닉스의 기본 실행파일 디렉토리 + bin의 full path
         $path='./bin;c:/windows/command;c:/Program Files/gnuplot;c:/Program Files/vim/vim71'; # for win32
         config.php에 `$security_class="needtologin";`를 추가하면 로그인 하지 않은 사람은 위키 페이지를 고칠 수 없게 된다. 로그인을 하지 않고 편집을 하려고 하면 경고 메시지와 함께, 가입을 종용하는 간단한 안내가 나온다.
          * SecurityPlugin
          * $logo_string과 $logo_img
         $logo_img를 간단히 조정하거나, $logo_string을 통해서 미세한 조정을 할 수 있다.
         [[Navigation(HelpOnAdministration)]]
  • One/남상재 . . . . 24 matches
         #include <stdio.h>
         void main()
          int a =0 ;
          continue ;
          printf("%d " , a);
         #include <stdio.h>
         void main()
          int a;
          int b=0;
          printf("%d", b ) ;
         #include <stdio.h>
         void main()
          int a ;
          printf("숫자를 입력하세요 \n 입 력 란 : ") ;
          printf("64");
          printf("10");
          printf("23");
          printf("에러잔아 이자식아 \n");
         #include <stdio.h>
         void main()
  • PrimaryArithmetic/1002 . . . . 24 matches
         음.. 이 부분을 작성하던 중, 생각해보니 입력 데이터가 스트링이면 더 간단할 것 같았다. integer 단위로 더하기 보다는 자리수 단위로 생각할 것이란 생각이 들었다. 그래서 테스트 코드를 다시 바꾸었다. 그러고 보니, 그냥 구현할 방법이 떠오른다.
          return [int(each) for each in numberStr]
          for eachOne,eachTwo in zip(oneList,twoList):
          result = [0 for each in range(10-len(numberStr))]
          numbers = [int(each) for each in numberStr]
          for idx in range(9,-1,-1):
         이쯤 되니, 테스트 코드들은 전부 통과. main 코드 작성하고 약간 리팩토링.
          for eachTest in testSet:
          for idx in range(LIMIT_NUMBER-1,-1,-1):
          return [0 for each in range(LIMIT_NUMBER-nullCount)]
          return [int(each) for each in numberStr]
          for eachTest in testSet:
         def main():
          f=open("input.txt")
          for eachLine in f:
          one,two = eachLine.split()
          print "%s carry %s." % (count, operationMessage)
         if __name__=="__main__":
          unittest.main(argv=('','-v'))
          #main()
  • ProgrammingLanguageClass/Report2002_2 . . . . 24 matches
         = Principles of Programming Languages Spring, 2002 Programming Assignment #2 =
         Design and implement simple test programs in Visual C++(V6.0), Visual Basic(V6.0) and Java(JDK 1.4).
          1. To find out the maximum length of a variable name
          1. To evaluate the security of pointers in the Compilers;
          1. To check the evaluation order of operands in the Compilers by raising the functional side-effects if possible;
          1. To identify a situation in which the “add” operator would not be associative;
          1. To determine the largest and smallest positive floating point number in Intel Pentium processor.
          * Intel Pentium processor 상에서 양수인 부동 소수점의 가장 큰값과 작은 값 결정
         == Hand In ==
         As usual, you shall submit a floppy diskette with a listing of your program and a set of test data of your own choice, and the output from running your program on your test data set.
         Be sure to design carefully your test data set to exercise your program completely. You are also recommended in your documentation to include the rationale behind your test programs.
         In order words, explain why you design them in such a way and what you intend to demonstrate
         ["ProgrammingLanguageClass"]
  • ProjectZephyrus/간단CVS사용설명 . . . . 24 matches
         = CVS 사용 in linux =
         = WinCVS in Windows =
          설치 [http://www.wincvs.org WinCVS]를 [http://sourceforge.net/project/showfiles.php?group_id=10072&release_id=83299 다운로드] 해서 설치
          === WinCVS Gui 환경 ===
          메뉴->Admin->Preference
          메뉴->Admin->login , 암호입력
          === Command line에서 ===
         cvs98 login
         = Admin 세팅 in ZeroPage Server(2002.5) =
          설치 과정은 생략 (linux 배포본에 들어 있다.)
         cvs -d /home/CVS init
         cvs:x:536:neocoin,reset
          '''2. ZeroPage 서버는 현재 Redhat 7.0이므로 xinetd를 이용하므로 세팅'''
         vi /etc/xinetd.d/cvspserver
          server = /usr/bin/cvs
         /etc/rc.d/init.d/xinetd restart
         cvs_man:*:548:536:Pubilc CVS Account for Project Dummy:/home/CVS/:/bin/false
  • RandomWalk/종찬 . . . . 24 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          int size;
          int end=0;
          cin >> size;
          int ** data = new int *[size];
          for (int i=0;i<size;i++) {
          data[i] = new int [size];
          for (int j=0;j<size;j++) {
          int x=rand()%size;
          int y=rand()%size;
          int x_move = rand()%3;
          int y_move = rand()%3; // 이부분을 루프안에 안 넣어서 고생..
          for (int i=0;i<size;i++) {
          for (int j=0;j<size;j++) {
          int sum=0;
          for (int c=0; c<size;c++) {
          for (int d=0;d<size;d++)
  • RandomWalk/현민 . . . . 24 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          int i,j,num;
          cin >> num;
          int ** data = new int *[num];
          data[i] = new int [num];
          int dir_x[8]={0,1,1,1,0,-1,-1,-1};
          int dir_y[8]={-1,-1,0,1,1,1,0,-1};
          int line,col,count=0; // count는 총 움직인 횟수
          line = rand() % num ;
          int check=1;
          int direction = rand() % 8;
          int next_x = col + dir_x[direction];
          int next_y = line + dir_y[direction];
          next_y = line + dir_y[direction];
          line = line + dir_y[direction];
          data[line][col]++;
  • Randomwalk/조동영 . . . . 24 matches
         #include <iostream>
         #include <ctime>
         #include <iomanip>
         using namespace std;
         void main(){
          int imove[] = {-1,0,1,1,1,0,-1,-1};
          int jmove[] = {1,1,1,0,-1,-1,-1,0};
          int Xroom;
          int Yroom;
          int ibug;
          int jbug;
          int count = 0; // 총이동한 횟수를 계산하게될 integer 값
          int i,j;
          cin >> Xroom;
          cin >> Yroom;
          int **room;
          room = new int*[Xroom];
          room[i] = new int[Yroom];
          cin >> ibug;
          cin >> jbug;
  • RefactoringDiscussion . . . . 24 matches
         Refactoring 과 관련된 토론, 질문/답변의 장으로 활용한다.
         refactoring 의 전제 조건은, '''Refactoring 전 후의 결과가 같아야 한다.''' 라는 것이다.
         Martin Folwer의 Refactoring p326(한서), 10장의 Parameterize Method 를 살펴보면 다음과 같은 내용이 나온다.
          double result = Math.min(lastUsage(),100) * 0.03;
          result += (Math.min (lastUsage(),200) - 100) * 0.05;
          double result = usageInRange(0, 100) * 0.03; //--(1)
          result += usageInRange (100,200) - 100) * 0.05;
          result += usageInRange (200, Integer.MAX_VALUE) * 0.07;
         protected int usageInRange(int start, int end) {
          if (lastUsage() > start) return Math.min(lastUsage(),end) - start;
         '''"MatrinFowler의 추종자들은 lastUsage()가 0 이상인 값에 대해 동작하는것일테니 (코드를 보고 추정하면 그렇다) 당연한거 아니냐?"''' 라고 이의를 제기할지는 모르지만, 이건 Refactoring 에서 한결같이 추구했던 "의도를 명확하게"라는 부분을 Refactoring이라는 도구에 끼워맞추다보니 의도를 불명확하게 한 결과를 낳은것 같다. (["망치의오류"])
         위의 (1)번 코드는 원래처럼 그대로 두거나, usageInRange(Integer.MIN_VALUE, 100)으로 호출하는게 맞을 듯 하다.
         하지만 이것도 임시 방편일뿐, '''위험은 존재한다'''. lastUsage()의 값이 Integer.MIN_VALUE 이거나, Integer.MAX_VALUE 라면? (이런일이 결코 일어날 수 없다고 장담할 수 있는가?)
          * 코드의 의도가 틀렸느냐에 대한 검증 - 만일 프로그램 내에서의 의도한바가 맞는지에 대한 검증은 UnitTest Code 쪽으로 넘기는게 나을 것 같다고 생각이 드네요. 글의 내용도 결국은 전체 Context 내에서 파악해야 하니까. 의도가 중시된다면 Test Code 는 필수겠죠. (여기서의 '의도'는 각 모듈별 input 에 대한 output 정도로 바꿔서 생각하셔도 좋을듯)
         로직이 달라졌을 경우에 대한 검증에 대해서는, Refactoring 전에 Test Code 를 만들것이고, 로직에 따른 수용 여부는 테스트 코드쪽에서 결론이 지어져야 될 것이라는 생각이 듭니다. (아마 의도에 벗어난 코드로 바뀌어져버렸다면 Test Code 에서 검증되겠죠.) 코드 자체만 보고 바로 잘못된 코드라고 단정짓기 보단 전체 프로그램 내에서 의도에 따르는 코드일지를 생각해야 될 것 같다는 생각.
          * 예제 코드로 적절했느냐 - 좀 더 쉽게 의도에 맞게 Refactoring 되어진 것이 이 예제 바로 전인 Raise 이긴 하지만. 그리 좋은 예는 아닌듯 하다. usageInRange 로 빼내기 위해 약간 일부러 일반화 공식을 만들었다고 해야 할까요. 그 덕에 코드 자체만으로 뜻을 이해하기가 좀 모호해졌다는 부분에는 동감.
          * ["Refactoring"]의 Motivation - Pattern 이건 Refactoring 이건 'Motivation' 부분이 있죠. 즉, 무엇을 의도하여 이러이러하게 코드를 작성했는가입니다. Parameterize Method 의 의도는 'couple of methods that do similar things but vary depending on a few values'에 대한 처리이죠. 즉, 비슷한 일을 하는 메소드들이긴 한데 일부 값들에 영향받는 코드들에 대해서는, 그 영향받게 하는 값들을 parameter 로 넣어주게끔 하고, 같은 일을 하는 부분에 대해선 묶음으로서 중복을 줄이고, 추후 중복이 될 부분들이 적어지도록 하자는 것이겠죠. -- 석천
         > { Refactoring(by Martin Fowler)의 잘못된 refactoring }
         > 위의 (1)번 코드는 원래처럼 그대로 두거나, usageInRange(Integer.MIN_VALUE, 100)으로
         > lastUsage()의 값이 Integer.MIN_VALUE 이거나, Integer.MAX_VALUE 라면?
  • Slurpys/박응용 . . . . 24 matches
         # -*- coding: euc-kr -*-
         ** find slurpy!
          def __init__(self, *args):
          self._remain = ''
          def remain(self):
          return self._remain
          self._remain = target[1:]
          for arg in self.args:
          target = arg.remain()
          self._remain = target
          for arg in self.args:
          self._remain = arg.remain()
          for count, t in enumerate(target):
          self._remain = target[count:]
          def remain(self):
          return self.pat.remain()
          def __init__(self):
          def __init__(self):
          if pat.remain(): return False
          self.assertEquals('EF', word.remain())
  • Temp/Parser . . . . 24 matches
         #VendingMachineParser.py
         from cStringIO import StringIO
         class VendingCmd:
          def __init__(self,cmd,**kwargs):
          for item in self.__dict__.items():
          def __init__(self,aStream=sys.stderr):
          def next_number(self,func=int):
          if num not in (10,50,100,500,1000):
          if tok not in ('black','white','sugar_black','sugar_white'):
          if money: return VendingCmd('put',arg=money)
          if button: return VendingCmd('push',arg=button)
          def parse(self,aString=None,aStream=None,aName=None):
          if aString:
          aStream=StringIO(aString)
          lexer.source = 'include'
          continue
          continue
         if __name__=='__main__':
          err=StringIO()
          print cmds
  • WheresWaldorf/Celfin . . . . 24 matches
         #include <iostream>
         #include <cstdlib>
         using namespace std;
         int testcase, testNum;
         int row, col, i, j, k, n;
         bool check(int ax, int ay, char *temp)
          int x=ax; int y=ay;
          int length = strlen(temp);
         int main()
          cin >> testcase;
          cin.getline(temp, 255);
          cin.getline(temp, 255);
          cin >> row >> col;
          cin>>list[i][j];
          cin >> testNum;
          cin.getline(temp, 255);
          cin.getline(testlist[i], 50);
  • 레밍즈프로젝트/박진하 . . . . 24 matches
         Fighting-_-/
          int GetSize() const;
          int GetUpperBound() const;
          void SetSize(int nNewSize, int nGrowBy = -1);
          // Accessing elements
          TYPE GetAt(int nIndex) const;
          void SetAt(int nIndex, ARG_TYPE newElement);
          TYPE& ElementAt(int nIndex);
          // Potentially growing the array
          void SetAtGrow(int nIndex, ARG_TYPE newElement);
          int Add(ARG_TYPE newElement);
          int Append(const CArray& src);
          TYPE operator[](int nIndex) const;
          TYPE& operator[](int nIndex);
          void InsertAt(int nIndex, ARG_TYPE newElement, int nCount = 1);
          void RemoveAt(int nIndex, int nCount = 1);
          void InsertAt(int nStartIndex, CArray* pNewArray);
          int m_nSize; // # of elements (upperBound - 1)
          int m_nMaxSize; // max allocated
          int m_nGrowBy; // grow amount
  • 몸짱프로젝트/InfixToPostfix . . . . 24 matches
         #define __STACK__H__
          int precedence;
         const int LEN = 4;
         const int MAX = 10;
         int top = -1;
         Element push(int * top, Element aItem)
         Element pop(int * top)
         ''main.cpp''
         #include <iostream.h>
         #include <cstring>
         #include "stack.h"
         void main()
          int len = strlen(aTerm);
          Element income;
          /*income.op.token = 'b';
          income.op.precedence = 0;
          push(top, income);
          for ( int i = 0 ; i < len ; i++ )
          income.op = toOperator(aTerm[i]);
          if ( income.op.precedence < stack[top].op.precedence )
  • 반복문자열/허아영 . . . . 24 matches
         #include <stdio.h>
          int i;
          printf("CAUCSE LOVE.\n");
         void main()
         #include <stdio.h>
          printf("CAUCSE LOVE.\n");
         void main()
          int i;
         #include <stdio.h>
          printf("CAUCSE LOVE.\n");
         void messages(int n)
          int i;
         void main()
          int messagesLength = 5;
         #include <iostream>
         using namespace std;
         void printMessages(const char* message, int messageLength);
         int main()
          printMessages("CAUCSE LOVE.\n", 5);
         void printMessages(const char* message, int messageLength)
  • 식인종과선교사문제/조현태 . . . . 24 matches
         #include <vector>
         #include <map>
         using namespace std;
          party(int inputWhite, int inputBlack)
          white = inputWhite;
          black = inputBlack;
          int white;
          int black;
         const int NUMBER_MOVE_TYPE = 5;
         const int CAN_MOVE_WHITE[NUMBER_MOVE_TYPE] = {0, 0, 1, 1, 2};
         const int CAN_MOVE_BLACK[NUMBER_MOVE_TYPE] = {1, 2, 0, 1, 0};
         int Parse(party& left, party& right, int where)
         bool MoveNext(vector<party>& moveData, map<int, bool>& isChecked, int where, party left, party right)
          for (register int i = 0; i < NUMBER_MOVE_TYPE; ++i)
         int main()
          map<int, bool> isChecked;
          for (register int i = 0; i < (int)moveData.size(); ++i)
  • CuttingSticks/김상섭 . . . . 23 matches
         #include <iostream>
         using namespace std;
         #include <vector>
         int main()
          int length, tokennum, token, l, i, j, m;
          vector< vector<int> > Data;
          vector<int> temp;
          cin >> length;
          cin >> tokennum;
          for(int i = 0 ; i < tokennum; i++)
          cin >> token;
          cin >> length;
          int store[51][51];
          for(vector< vector<int> >::iterator k = Data.begin(); k != Data.end(); k++)
          int temp1,min = INT_MAX;
          if(min > temp1)
          min = temp1;
          store[i][i+m] = min + temp[i+m] - temp[i];
          cout << "The minimum cutting is " <<store[0][tokennum] << ".\n";
  • DPSCChapter3 . . . . 23 matches
         == Intent ==
         http://zeropage.org/~comein2/design_pattern/31page.gif
          구조를 가지게 된다. 가령 CarEngine 하위 구조의 엔진들, CarBody 구조의 body 등등을 가지게 된다.
          (결국, 각각이 CarEngine을 Base Class로 해서 상속을 통해 Ford Engine,Toyota Engine등등으로 확장될 수 있다는 말이다.)
          http://zeropage.org/~comein2/design_pattern/32page.gif
          구체화 없이 관계된 혹은 의존적인 객체 집합을 만들기 위한 인터페이스를 제공하는" (Intent 부분에서 언급한 내용)
          클래스이다. 그것은 추상적인 상품 생성 함수들(makeCar,makeEngine,makeBody)을 정의한다. 그 때 우리는 상품 집합 당
          http://zeropage.org/~comein2/design_pattern/33page.gif
          CarPartFactory>>makeEngine
          FordFactory>>makeEngine
          ^FordEngine new
          ToyotaFactory>>makeEngine
          ^ToyotaEngine new
          http://zeropage.org/~comein2/design_pattern/34page.gif
          "Create the top-level part, the car object which starts out having no subcomponents, and add an engine, body, etc."
          addEngine: factory makeEngine;
          만약, 팩토리가 FordFactory의 인스턴스였다면, 자동차에 추가되기 위해 얻어진 엔진은 FordEngine일 것이다. 만약 팩토리가 ToyotaFactory였다면, ToyotaEngine은 팩토리의 makeEngine에 의해서 만들어 질 것이고, 그 때 자동차에 추가될 것이다.
          car addEngine:
          ifTrue: [FordEngine new]
  • EightQueenProblem/서상현 . . . . 23 matches
         #include <stdio.h>
         #define NUM 8
         int n = NUM;
         int board[NUM][NUM] = {0,};
         void print()
          int i, j;
          printf("%d", board[i][j]);
          printf(" ");
          printf("\n");
         int safe(int x, int y)
          int d;
          int xx, yy;
          int drct[8][2] = {{-1, -1}, {0, -1}, {1, -1}, {-1, 0}, {1, 0}, {-1, 1}, {0, 1}, {1, 1}};
         int recur(int level)
          int i, j;
          print();
         void main()
         void recur(int level)
          int i, j;
          print();
  • EightQueenProblem/임인택/java . . . . 23 matches
          int QUEEN;
          int Queen[][];
          Queen(int noq)
          Queen = new int[QUEEN][QUEEN];
          for(int i=0; i<QUEEN; i++)
          public void get_Queen(int x, int y)
          if(y==QUEEN-1) print_result();
          for(int i=0; i<QUEEN; i++)
          public void print_result()
          int i,j;
          System.out.print(Queen[j][i] + " ");
          System.out.println();
          public void reset(int fromline)
          int i,j;
          for(j=fromline; j<QUEEN; j++)
          public boolean check(int i, int j)
          int x, y, sum=0;
          public static void main(String args[])
          System.out.println("ex) java Queen NumofQueens");
          Queen myqueen = new Queen(Integer.parseInt(args[0]));
  • HanoiTowerTroublesAgain!/황재선 . . . . 23 matches
          public int readNumber() {
          return new Scanner(System.in).nextInt();
          public boolean canBallPut(int[] prev, int peg, int ballNumber) {
          public int maxBall(int numOfPeg) {
          int[] prevNumber = new int[numOfPeg + 1];
          int ballNumber = 1;
          int oldBallNumber = 0;
          for(int peg = 1; peg <= numOfPeg; peg++) {
          if (ballNumber == Integer.MAX_VALUE) {
          public void printNumberOfBall(int numOfBall) {
          System.out.println(numOfBall);
          public static void main(String[] args) {
          int testCase = hanoi.readNumber();
          for(int i = 0; i < testCase; i++) {
          int numOfPeg = hanoi.readNumber();
          int numOfBall = hanoi.maxBall(numOfPeg);
          hanoi.printNumberOfBall(numOfBall);
         [HanoiTowerTroublesAgain!]
  • MoinMoinWikis . . . . 23 matches
         Wikis that use MoinMoin:
          * [wiki:PythonInfo:Python20Info Python 2.0 Info Area]
          * [http://www.bioinformatics.org/piperwiki/moin.cgi Wiki for the Piper project]
          * [http://pgdn.org/wiki CultureWiki] (online again, but still dead)
          * [http://compsoc.dur.ac.uk/~tsp/cgi-bin/triki.cgi TrikiWiki] (private wiki for the Transformers holiday - uses a mildly hacked MoinMoin)
          * [http://www.keitee.net/ Keiteedot] (Slash like wiki in Japanese)
          * [http://www.gembook.org/moin/ WikiArea] (Japanese)
          * [http://www.thinkware.se/cgi-bin/thinki.cgi/ Thinki]
          * [http://www.cdegroot.com/cgi-bin/photowiki/ Photo Wiki]
          * [http://www.cdegroot.com/cgi-bin/moin/ cdegroot.com's MoinMoin]
          * [http://www.linuxvideo.org/docs/wiki/ LiViD Wiki]
          * [http://lightingwiki.com/FrontPage The Lighting Wiki]
         For more wikis, see the InterWiki list.
  • NumberBaseballGame/jeppy . . . . 23 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         #include <conio.h>
         void main() {
          int i;
          printf("%d input number : ", i+1);
          printf(" 중복된 숫자를 입력하시면 안됩니다. 다시 입력해주세요.\n");
          //printf("%d : %s\n", i, number_log[i]);
          printf("You lose~\nThe answer is %c%c%c", hidden_num[0], hidden_num[1], hidden_num[2]);
          int number[3];
          int i, temp_i, num, j;
          printf("Make number..\n");
          //printf("%c %c %c \n", p[0], p[1], p[2]);
          //printf("%d %d %d \n", number[0], number[1], number[2]);
          int i, j, k;
          int strike = 0;
          int ball = 0;
          printf("You win~!!\n");
          printf("out!!\n");
  • Slurpys/곽세환 . . . . 23 matches
          * 예전같으면 일일이 만들었을 함수들을 그냥 string 함수로 해결
         #include <iostream>
         using namespace std;
         #include <string>
         bool isSlump(string str)
          int length = str.length();
          int temp = -1;
          temp = str.find_first_not_of('F', 2);
         bool isSlimp(string str)
          int length = str.length();
         bool isSlurpy(string str)
          int i, j, temp = -1; // temp는 Slimp의 마지막 문자 위치
          int length = str.length();
          temp = str.find_last_of('C');
          temp = str.find_last_of('H');
         int main()
          int numberOfCase;
          cin >> numberOfCase;
          int testCase, i, j;
          string str;
  • TkinterProgramming/Calculator2 . . . . 23 matches
         from Tkinter import *
          def __init__(self, master, left1, right1):
          Frame.__init__(self, master, bg='gray40')
          def __init(self, master, font=('arial', 8, 'bold'), fg='white',
          apply(Button.__init__, (self, master), kw)
          def __init__(self):
          exec code in self.myNameSpace, self.myNamespace
          def __init__(self, parent = None):
          Frame.__init__(self, bg='gray40')
          self.master.title('Tkinter Toolkit TT - 42')
          'sin' : self.doThis, 'cos' : self.doThis,
          print '"%s" has not been implemented' % action
          self.display.insert(END, '\n')
          self.display.insert(END, '%s\n' % result, 'ans')
          self.display.insert(END, key)
          ('Del', 'Ins', '', KC1, FUN, 'delete'),
          ('Sin', 'Sin-1', 'E', KC1, FUN, 'sin'),
          self.display.component('text').bind('<Key>', self.doKeypress)
          self.display.component('text').bind('<Return>', self.doEnter)
          for row in keys:
  • WeightsAndMeasures/문보창 . . . . 23 matches
         #include <iostream>
         #include <algorithm>
         using namespace std;
         //#include <fstream>
         //fstream fin("in.txt");
         #define MAX_SIZE 5608
         #define MAX_WEIGHT 10000000
          int weight;
          int strength;
         inline
         void input(Turtle* t, int* numT)
          while (cin >> t[*numT].weight >> t[*numT].strength)
         void process(Turtle* t, int numT)
          int i, j;
          int dynamic[2][MAX_SIZE];
          int result;
         int main()
          int numTurtle;
          input(turtle, &numTurtle);
  • Yggdrasil/020523세미나 . . . . 23 matches
         #include<iostream.h>
         main()
          int i;
          int temp;
          int sum[2]={1,1};
          int decide;
          cin>>decide;
         #include<iostream.h>
         int main()
          int select;
          int i,k;
          int array[10]={0,};
          cin>>select;
          cin>>array[k];
         #include<iostream.h>
         int main()
          int select;
          int i,k;
          int array[10]={0,};
          cin>>select;
  • [Lovely]boy^_^/USACO/YourRideIsHere . . . . 23 matches
         #include <iostream>
         #include <fstream>
         #include <string>
         #include <cassert>
         using namespace std;
         bool IsSameCode(const string& comet, const string& group);
         int AlphabetToNumber(char ch);
         int main()
          string comet, group;
          ifstream fin("ride.in");
          fin >> comet;
          fin >> group;
          fin.close();
         bool IsSameCode(const string& comet, const string& group)
          basic_string<char>::const_iterator i;
          for(i = comet.begin() ; i != comet.end() ; ++i)
          for(i = group.begin() ; i != group.end() ; ++i)
         int AlphabetToNumber(char ch)
  • 가위바위보/동기 . . . . 23 matches
         #include <iostream>
         #include <fstream>
         #include <cstring>
         using namespace std;
         void main()
          ifstream fin("data1.txt");
          fin.getline(name1,10);
          fin.getline(name2,10);
          int win=0;
          int draw=0;
          int lose=0;
          while(!fin.eof())//0:가위 1:바위 2:보
          fin.getline(test,4);
          win++;
          win++;
          win++;
          cout <<win<<" win\t"<<draw<<" draw\t"<<lose<<" lose \n";
  • 데블스캠프2009/월요일/연습문제/svn코드레이스/박근수 . . . . 23 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         void main()
          int number = rand()%50+1;
          int a=0,min=0,max=51;
          printf("이거슨 업다운 게임~\n답은 %d\n",number);
          printf("숫자를 입력하세요(범위: %d~%d): ",min+1,max-1);
          if(a<min+1||a>max-1)
          printf("%d부터 %d까지 숫자를 넣으라고 말하는 겁니다아아!!!\n",min+1,max-1);
          printf("업입니다아아아\n");
          min=a;
          printf("다운이다 ㅇㅇ\n");
          if(number==min+1&&number==max-1)
          printf("패배자 ㄳ\n");
          printf("정답입니다아!\n");
         #include<stdio.h>
         int a,i,j;void main(){scanf("%d",&a);for(;i<a;i++){for(j=0;j<a;j++)printf(j==0||j==a-1||i==0||i==a-1?"*":" ");puts("");}}
  • 새싹교실/2013/양반/3회차 . . . . 23 matches
         분기문 : goto문, return문, break문, continue문
         if(a < min)
          min = a;
         if(a < min){
          min = a;
          printf("%d", min);
          min = a;
          min = b;
         if(a < b){ min = a;
         }else { min = b;}
         === dangling else problem ===
          min = num1;
          min = num3;
         #include<stdio.h>
         int main(){
          int n, i, j;
          printf("*");
          printf("\n");
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 숫자야구/ 변준원 . . . . 23 matches
         #include <iostream> // 랜덤함수는 iostream에 포함되어 있습니다.
         #include <ctime>
         using namespace std;
         int main()
          int base = rand() % 1000; // % 9를 하면 0~9까지의 숫자가 들어갈 수 있고
          int a,b,c,d,e,f;
          int S=0,B=0,O=0;
          int input;
          cin >> input;
          d = input/100;
          e = (input%100)/10;
          f = (input%100)%10;
          int abc[3]={a, b, c};
          int def[3]={d, e, f};
          int i,j;
          cin >> input;
          def[0] = input/100;
          def[1] = (input%100)/10;
          def[2] = (input%100)%10;
  • 알고리즘8주숙제 . . . . 23 matches
         ==== 1. Friendly Coins ====
         Given the denominations of coins for a newly founded country, the Dairy Republic, and some monetary amount, find the smallest set of coins that sums to that amount. The Dairy Republic is guaranteed to have a 1 cent coin.
         The kanpsack problem is defined as follows:
         Given positive integers P<sub>1</sub>, P<sub>2</sub>, ..., P<sub>n</sub>, W<sub>1</sub>, W<sub>2</sub>,..., W<sub>n</sub> and M.
         Find X<sub>1</sub>, X<sub>2</sub>, ..., X<sub>n</sub>, 0 ≤ X<sub>i</sub> such that
         Give a greedy method to find an optimal solution of the knapsack problem and prove its correctness.
         ==== 4. Job Scheduling ====
         Consider the problem of scheduling n jobs on one machine. Describe an algorithm to find a schedule such that its average completion time is minimum. Prove the correctness of your algorithm.
         ==== 5. Optimal Binary Tree ====
         Optimal Binary Tree는 Dynamic Programming 기법으로 풀리는 유명한 문제입니다. 그누스 형님 방법에 의하면 O(n<sup>2</sup>)으로 풀립니다. 그러나 우리는 이보다 점근적으로 더 빠른 휴리스틱 버전을 작성해야 합니다.
         다음과 같이 input 이 들어온다고 가정합시다. 여기서 맨 앞 하나의 정수는 노드의 수를 나타냅니다. 그 밑으로 노드에 대한 정보가 입력됩니다. 노드의 처음은 key 값이고, 그 다음 값은 확률(확률은 1이상의 정수로 임의로 입력) 입니다. 하나의 노드를 검색했을때 실패하는 경우는 없다고 가정합시다. 최적의 평균탐색시간을 가지는 이진탐색트리를 구현하고 다음을 출력하시오.
         Inorder 순회를 통해 각 키값을 모두 출력하고, 또한 각 키값의 탐색시간의 합계를 출력하시오.
         ===== input =====
         || [Leonardong] || 2h || [http://wiki.zeropage.org/trac/leonardong/browser/AlgorithmTrainning/OptimalBST.py] ||
         || 김상섭 || 엄청 || [AproximateBinaryTree/김상섭] ||
  • 이영호/nProtect Reverse Engineering . . . . 23 matches
         특정한 게임을 Cracking 하려고 했더니 nProtect와 비슷한 녀석이 디버그 되는 것을 방해하고 있었다.
         게임 : 마비노기(Mabinogi)
         (누군가가 nProtect가 함수를 hooking을 하고, 게임 자체 소스에 포함 되는 것이 아니라 바이너리 형식으로 덧 붙여진다고 하였는데,
         마비노기가 아닌 다른 nProtect를 사용하는 게임을 확인한 결과 소스에 포함되어 Exception Handling을 한다는 것을 발견하였다.)
         이것을 인라인 패치하였지만, OpenProcess로 디버그 Process를 Hooking하는 함수는 gc_proch.dll에 있다는 것을 확인하였다.
         성공 하였다. 다행히 이 guardcat은 Packing, Enchypher로 인한 encoding이 되지 않아서 인라인 패치가 쉬웠다.
         몇몇개의 함수만을 수정하고 guardcat.exe만 실행하였으나 gc_proch.dll의 hooking 루틴때문에 막혀버렸다.
         중요한것은 update를 어떻게 막느냐이다. 아마도 gc_proch.dll이 없더라도 mabinogi.exe는 제대로 실행될 것이다.
         => mabinogi.exe -> client.exe -> gcupdater -> guardcat.exe -> gc_proch.dll
         1. mabinogi.exe(게임 자체의 업데이트 체크를 한다. 그리고 createprocess로 client.exe를 실행하고 종료한다.)
         3. gcupdater(실행시 항상 서버에 접속하여 파일 3개를 받아온다. guardcat.exe, INST.dat, gc_proch.dll을 순서대로 받아와 자체적으로 wsprintf를 이용하여 복사한다.-아마 디버거에 API를 걸리기 싫었는지 모른다. createprocess로 guardcat.exe를 실행시킨다.)
         5. gc_proch.dll(이 파일은 debugger를 잡는 역할을 한다. 분석이 더 필요하다.) -> 이 파일은 dll injection 또한 막아낸다.
         client.exe가 실행될 때, 데이터 무결성과 디버거를 잡아내는 루틴을 제거한다면, updater의 사이트를 내 사이트로 변경후 인라인 패치를 통한 내 protector를 올려 mabinogi를 무력화 시킬 수 있다.
         mabinogi.exe -> client.exe로 넘어가는 부분
         |CommandLine = ""C:\Program Files\Mabinogi\client.exe" code:1622 ver:237 logip:211.218.233.200 logport:11000 chatip:211.218.233.192 chatport:8000 setting:"file://data/features.xml=Regular, Korea""
         |InheritHandles = FALSE
         |CurrentDir = "C:\Program Files\Mabinogi"
         |pStartupInfo = 0012E4F0
         |pProcessInfo = 0012E4E0
         client.exe code:1622 ver:237 logip:211.218.233.200 logport:11000 chatip:211.218.233.192 chatport:8000 setting:"file://data/features.xml=Regular, Korea" 로 실행시키면 된다.
  • 코드레이스/2007.03.24상협지훈 . . . . 23 matches
          print "red"
          print "green"
         num = input(">>")
          print "red"
          print "green"
         numList = raw_input(">>")
         year, month, day, time, minute, sec = map(int,numList.split(" "))
         sec = ((((((year-2000)*12 + month)*30 + day)*24 + time)*60 + minute)*60 + sec )
         manNum = input()
         for i in range(0,manNum):
          numList = raw_input(">>")
          year, month, day, time, minute, sec = map(int,numList.split(" "))
          sec = ((((((year-2000)*12 + month)*30 + day)*24 + time)*60 + minute)*60 + sec )
         print breakCt
         manNum = input()
         for i in range(0,manNum):
          numList = raw_input(">>")
          year, month, day, time, minute, sec = map(int,numList.split(" "))
          sec = ((((((year-2000)*12 + month)*30 + day)*24 + time)*60 + minute)*60 + sec )
         print breakCt
  • Ant . . . . 22 matches
         Platform 독립적인 Java 의 프로그램 컴파일, 배포 도구 이다. 비슷한 역할로 Unix의 make 툴과 Windows에서 프로그램 Installer 를 생각할수 있다.
         Ant 는 OS Indepenent 하게 프로그램을 Build 할 수 있는 환경을 제공해준다. build.xml 이란 Build 파일을 작성해서 그 내용에 따라 Build 를 진행해 나갈 수 있다. Ant 는 ["Java"] 에서 거의 표준으로 굳혀져가고 있으며, 거의 모든 IDE들이 Ant 를 지원한다.
         === Install ===
         현재 Ant 는 Binary 와 Source 두가지를 배포하고 있습니다.
          * http://jakarta.apache.org/ant/index.html 에서 최신버전의 binary, source 를 얻을 수 있다. CVS 를 이용, source 를 얻을 수도 있다.
          Ant 의 몇몇 특정 Task 들의 경우 (JUnit, FTP, Telnet 등) 해당 라이브러리가 필요하다. 이는 http://jakarta.apache.org/ant/manual/install.html#librarydependencies 항목을 읽기 바란다.
          3. Install
          바이너리 파일을 기준으로 설명하겠습니다. 설치는 Windows 기반으로 설명하겠습니다. Unix/Linux 기반을 비슷하니 알아서(?) 하세요. ^^;
          * 일단 받은 Ant 압축파일을 C:\Ant 에 풀어 놓고 시작해봅시다. 하위 디렉토리는 bin,doc,lib 등이 있겠죠. ^^ (''Win 9x 시리즈에서는 환경변수에 들어가는 긴 파일명이 문제가 될 수 있으니 위와 같이 C:\Ant 에 설치하는 것이 좋습니다.'')
          * PATH 환경변수에 Ant 아래에 bin 디렉토리를 추가합니다. 즉 C:\Ant\bin 을 추가합니다.
         ===== Windows Shell =====
          set PATH=%PATH%;%ANT_HOME%\bin
         ===== Unix(Linux) (bash) =====
          export PATH=${PATH}:${ANT_HOME}/bin
         === Running ===
          이것은 바로 위에 있는 것에다가 dist라는 것이 붙었는데 이것은 target 을 나타냅니다. Unix/Linux 에서 make 명령으로 컴파일 해보신 분들을 아실껍니다. 보통 make 명령으로 컴파일 하고 make install 명령으로 인스톨을 하죠? 거기서 쓰인 install 이 target 입니다. Ant 에서는 Build 파일 안에 다양한 target 을 둘 수 있습니다. 예를 들면 debug 모드 컴파일과 optimal 모드 컴파일 2개의 target 을 만들어서 테스트 할 수 있겠죠? ^^
          실행 파일 ant는 Unix 계열에서는 shell 스크립트로 Windows 계열에서는 ant.bat 라는 배치파일로 배포됩니다. 내부에 보면 java 프로그램을 실행하는데, 다음과 같이 자신이 직접할 수도 있습니다.
          % java -Dant.home=c:\ant org.apache.tools.ant.Main [options] [target]
          * ["Eclipse"], ["IntelliJ"]
          * [http://jstorm.pe.kr/BBS/files/colJApp/ant_jinho.pdf] - JStorm ant document
  • EightQueenProblem/김준엽 . . . . 22 matches
         #include <iostream>
          for (int i=0; i<8; ++i)
          for (int j=0; j<8; ++j)
          void applyQueen(int x, int y)
          for (int i=0; i<8; ++i)
          for (int j=0; j<8; ++j)
          bool isEmptyCell(int x, int y)
          for (int i=0; i<8; ++i)
          for (int j=0; j<8; ++j)
         void applyCell(ChessBoard cboard, int x, int y);
         void find8Queen(ChessBoard& cboard, int y)
          for (int x=0; x<8; ++x)
         void applyCell(ChessBoard cboard, int x, int y)
          find8Queen(cboard, y+1);
         int main()
          find8Queen(cboard, 0);
  • HanoiTowerTroublesAgain!/조현태 . . . . 22 matches
          == [HanoiTowerTroublesAgain!/조현태] ==
         #include <iostream>
         #include <Windows.h>
         #include <vector>
         #include <cmath>
         using namespace std;
         bool IsCanPut(int baseBallNumber, int putBallNumber)
          if (sqrtNumber == (double)(int)sqrtNumber)
         int GetMaxBallNumber(int stickNumber)
          int ballCount = 0;
          vector<int> lastBallNumbers;
          for (register int i = 0; i < stickNumber; ++i)
         void main()
          int testCaseNumber;
          cin >> testCaseNumber;
          for (int i = 0; i < testCaseNumber; ++i)
          int stickNumber;
          cin >> stickNumber;
         [HanoiTowerTroublesAgain!]
  • JUnit/Ecliipse . . . . 22 matches
         O'REILLY 사의 Eclipse(저자 Steve Holzner) 를 구입하시거나 제본하신 분들께서는 CHAPTER 3. Testing and Debugging 을 보시면 Sample 예제와 함께 자세한 설명이 있음을 알려드립니다.
         Eclipse 플랫폼을 실행하시고, Window->Preference 메뉴를 선택하시면 Preferences 대화창이 열립니다. 왼쪽의 트리구조를 보시면 Java 라는 노드가 있고, 하위 노드로 Build Path 에 보시면 Classpath Varialbles 가 있습니다.
         clipse/plugins/org.junit_3.8.1/junit.jar
          private int[] array;
          public int[] allocate() {
          public int get(int index) {
          return array[index];
          public boolean set(int index, int value) {
          if(index < array.length && index >= 0) {
          array[index] = value;
         다음으로 자신이 테스트를 하고 싶은 메서드에 체크를 하고 Finish 하면 TestCase를 상속받는 새 클래스를 자동으로 생성하여 줍니다.
         여기서는 샘플소스의 메소드 3개( allocate(), get(int), set(int,int) )를 모두 체크합니다.
          public int[] allocate() {
          array = new int[3];
  • JollyJumpers/문보창 . . . . 22 matches
         #include <iostream>
         using namespace std;
         const int MAX = 3000;
         bool isJolly(int n);
         inline void showJolly(bool w) { w ? cout << "Jolly\n" : cout << "Not jolly\n"; }
         inline void eatline() { while(cin.get() != '\n') continue; };
         int main()
          int n; // 뒤에 이어지는 정수들의 개수
          while (cin >> n)
          eatline();
         bool isJolly(int n)
          int i;
          int ftemp, ltemp; // 앞숫자, 뒷숫자
          cin >> ftemp;
          int gap;
          cin >> ltemp;
  • Linux/디렉토리용도 . . . . 22 matches
         윈도우의 Windows, ProgramFiles 만으로 이루어진 그 구조가 왜 그렇게 그립던지 ㅠ.ㅠ
         참고) Running Linux/매트 웰시, 라 카우프만, 칼레달하이머 저, Oreilly
         == /bin ==
          * 리눅스의 기본 명령어(binary)들이 들어있는 디렉토리
         == /sbin ==
          * reboot, modprobe, insmod 등등의 root 가 시스템을 관리하는데 필요한 명령어들이 존재한다.
         lib 디렉토리에는 컴파일러를 통해서 혹은 만들어진 파일들이 잠조하는 라이브러리들이 존재한다. 또한 하부에 modules 디렉토리에 존재하는 커널 모듈은 특수장치를 설치했거나 제거했을 경우 커널이 자동적으로 모듈을 올리지 못할 경우 insmod, rmmod, modprobe 명령어를 통해서 이런 모듈을 다룰때 이용된다. 커널 모듈의 경우 2.4커널에서는 *.o, 2.6 커널에서는 *.ko의 확장자를 가지고 있다.
          * 예) 인터럽트 정보 확인 ---> cat /proc/interrupts'''
          * /etc/xinetd.d : 슈퍼데몬 xinetd.d의 서비스 영역을 설정하는 디렉토리.
         아파치를 비롯한 모든 서버의 환경설정 파일이 관리 되는 곳이다. 물론 사용자가 직접 바이너리로 설치했을 경우에는 이 곳에 위치하지 않을 수도있다. 그러나 대부분 패키지 관리자를 통해서 설치된 프로그램의 경우 이곳에서 설정이 가능하다. 직접 설치를 하는 경우라면 '''X11, apache2, init.d, rc.*, skel, xinitd.d''' 디렉토리를 많이 다루게 된다.
          * /usr/bin : 응용 프로그램의 실행 파일이 위치
          * /usr/sbin : 주로 네트워크 관련 실행 명령어와 실행 데몬들을 많이 포함하고 있음.
          * /usr/X11R6 : X-window 시스템에 관련된 파일 존재.
          * /usr/include : 기본 C 라이브러리 헤더 파일과 각종 라이브러리 헤더파일들이 있음.
          * /usr/lib : /usr/bin과 /usr/sbin에 있는 실행 바이너리를 실행하기 위한 라이브러리 존재.
          * /usr/local : 새로운 프로그램들이 설치되는 곳(windows의 Program Files 와 유사)
         이 디렉토리에는 커널의 바이너리 이미지가 위치한다. 보통은 부트로더를 /vmlinuz 로 부팅하게 설정하고, 현재 내가 쓰고 싶은 커널의 심볼릭 링크를 /vmlinuz 로 설정하여서 이용한다. 이 경우 커널의 버전업이나 테스팅을 위해서 커널의 버전이 필요할 경우 관리상 용이하다.
  • MineSweeper/허아영 . . . . 22 matches
         || 2006-01-07 14:23:36 0.008 Minimum ||
         #include <iostream>
         using namespace std;
         int main()
          int m, n, i, j; // field size
          int fieldNum = 1; // field number
          char ** inputField;
          int ** outputField;
          while(cin >> m >> n && m != 0 && n != 0){
          inputField = new char *[m+2];
          outputField = new int *[m+2];
          inputField[i] = new char[n+2];
          outputField[i] = new int[n+2];
          for(i = 1; i <= m; i++) //input
          cin >> inputField[i] + 1;
          if(inputField[i][j] == '*') //주의 : * + 1
          for(int j = 1; j <= n; j++)
          delete[] inputField[i];
          delete inputField;
         [MineSweeper]
  • MySQL/PasswordFunctionInJava . . . . 22 matches
         // JDK 1.5 이상에서 동작. (String.format 함수 때문에)
          public static String toMySQLPassword(String aStr) {
          int nr = 1345345333;
          int add = 7;
          int nr2 = 0x12345671;
          int size = aStr.length();
          for(int i=0;i<size;i++)
          if(aStr.charAt(i) == ' ' || aStr.charAt(i) == '\t') continue; /* skipp space in password */
          int tmp = (aStr.charAt(i));
          int result1=nr & ((1 << 31) -1); /* Don't use sign bit (str2int) */
          int result2=nr2 & ((1 << 31) -1);
          String result = String.format("%08x%08x",new Object[]{new Integer(result1),new Integer(result2)});
          public static void main(String[] args) {
          System.out.println(MySqlUtil.toMySQLPassword("hahaha"));
          System.out.println(MySqlUtil.toMySQLPassword("testing"));
          System.out.println(MySqlUtil.toMySQLPassword("abcd1234"));
  • OOP . . . . 22 matches
         '''Object Oriented Programming''' : 객체 지향 프로그래밍. ~~객체를 지향하는 프로그래밍입니다.~~이 이전에 Object Based Progamming 것이 있었다.이 다음 세대의 프로그래밍 기법은 GenericProgramming이라고 이야기된다.
         === Definition ===
         Object-oriented programming is based in the principle of recursive design.
         1. Everything is an object.
         2. Objects perform computation by making requests of each other through the passing of messages.
         4. Every object is an instance of a class. A class groups similar objects.
         6. Classes are organized into singly-rooted tree structure, called an inheritance hirearchy.
         It’s a natural way for people to ”think in objects”.
         Program consists of objects interacting with eachother Objects provide services.
         Easier to maintain
          * [Instance]
          * [Inheritance](상속)
          * [Interface]
          * [Generic programming]
         === Basic rules to define objects ===
  • Refactoring/BadSmellsInCode . . . . 22 matches
         Refactoring이 동작하는 매커니즘을 아는 것 만큼 중요한 것은, 언제 Refactoring을 적용할까 하는 것이다.
         여기서 딜레마가 온다. 어떻게 인스턴스 변수를 삭제하거나 클래스 계증구조를 만드는가를 표현하는 것은 쉽다. 그건 사소한 문제들이다. 하지만 언제 이러한 것들을 해야 할 것인지 표현하는 것은 쉽지 않다. 나는 (여기서의 I는 Martin Fowler) 프로그래밍 미학이라는 모호한 표현으로 얼버무리지 않고 좀 더 확실한 것을 원했다.
         내가 이 문제로 Kent Beck 을 방문했을 때 그는 "언제" 를 설명하기 위해서 "Smell" 이라는 표현을 사용했다. 우리는 많은 코드들을 보았고, 그것들을 보면서 Refactoring이 적용가능한 어떤 구조를 발견했다.
         여기에서 우리는 Refactoring이 적용가능한 아주 정확한 척도를 제공하려고는 하지 않을 것이다. 경험상, 어떠한 측정도구들도 숙련된 인간의 직관의 경쟁상대가 될 수는 없었다. 우리가 하려는 것은 Refactoring에 의해 해결될 수 있는 문제들이 있는 몇몇 부분을 지적하려는 것이다.
         어떠한 Refactoring을 해야 할 지 확신할 수 없을때 이 부분을 읽어라. 정확하게 똑같은 Smell을 발견할 순 없더라도 Refactoring에 대한 올바른 방향을 가리켜 줄 지침이 될 것이다.
          * ExtractMethod 하는중 parameter를 많이 넘겨야 하거나, 임시변수를 많이 사용하게 되는 경우 - ReplaceTempWithQuery, IntroduceParameterObject, PreserveWholeObject, ReplaceMethodWithMethodObject
          * AWT -> Swing Component로 바꿀때 - DuplicateObservedData
         ExtractClass, ExtractSubclass, ExtraceInterface, ReplaceDataValueWithObject
          * When you can get the data in one parameter by making a request of an object you already know about - ReplaceParameterWithMethod
          * logic을 가지지 않는 여러개의 data item을 가지는 경우 - IntroduceParameterObject
         ReplaceParameterWithMethod, IntroduceParameterObject, PreserveWholeObject
          * 모든 행위들의 묶음을 가지기 위해 - InlineClass
          * Divergent Change - one class that suffers many kinds of changes
         MoveMethod, MoveField, InlineClass
          * ExtractClass, IntroduceParameterObject or PreserveWholeObject
         ExtractClass, IntroduceParameterObject, PreserveWholeObject
         ReplaceValueWithObject, ExtraceClass, IntroduceParameterObject, ReplaceArrayWithObject, ReplaceTypeCodeWithClass, ReplaceTypeCodeWithSubclasses, ["ReplaceTypeCodeWithState/Strategy"]
          * 조건 case 에 null 이 있는 경우 - IntroduceNullObject
         ReplaceConditionalWithPolymorphism, ReplaceTypeCodeWithSubclasses, ["ReplaceTypeCodeWithState/Strategy"], ReplaceParameterWithExplicitMethods, IntroduceNullObject
         == Parallel Inheritance Hierarchies ==
  • Self-describingSequence/조현태 . . . . 22 matches
          == [Self-describingSequence/조현태] ==
         #include <iostream>
         #include <Windows.h>
         #include <map>
         using namespace std;
         int GetSolomonGolombNumber(int pointNumber)
          map<int, int> numbers;
          int nowNumber = 1;
          register int suchNumber;
          for (register int i = 1; nowNumber < pointNumber; ++i)
          for(suchNumber = i; numbers.end() == numbers.find(suchNumber); --suchNumber);
          for(suchNumber = pointNumber; numbers.end() == numbers.find(suchNumber); --suchNumber);
         void main()
          int calculateNumber = 0;
          cin >> calculateNumber;
         [Self-describingSequence]
  • SuperMarket/세연 . . . . 22 matches
         #include<iostream.h>
          int money;
          int max_num;
          int cost;
          int quanty;
          void Inventory();
          int temp;
          cin >> temp;
          int choice;
          int quanty;
          for(int i = 0 ; i < max_num ; i++)
          cin >> choice;
          cin >> quanty;
         void supermarket::Inventory()
          for(int i = 0 ; i < max_num ; i++)
          int choice;
          int quanty;
          cin >> choice;
          cin >> quanty;
         int main()
  • ToyProblems . . . . 22 matches
         ToyProblems를 풀게 하되 다음 방법을 이용한다. Seminar:TheParadigmsOfProgramming [http://www.jdl.ac.cn/turing/pdf/p455-floyd.pdf (pdf)]을 학습하게 하는 것이다.
          *준비물: 기본적으로 이클립스와 Python 2.3b1( + idlefork), NetMeeting 설치
         ToyProblems를 풀면서 접하게 될 패러다임들(아마도): CSP, Generators, Coroutines, Various Forms of Recursion, Functional Programming, OOP, Constraint Programming, State Machine, Event Driven Programming, Metaclass Programming, Code Generation, Data Driven Programming, AOP, Generic Programming, Higher Order Programming, Lazy Evaluation, Declarative Programming, ...
          * PairProgramming
          - 창준 - Higher Order Programming과 로우레벨에서의 설명(예컨대 단순한 함수 포인터로 설명하는 것)의 차이는 미묘하고, 또 크다. 동사(달리다)를 명사(달림)의 품 안에 넣는 것이다. 이 사고에서 엄청난 차이가 생길 수 있다.
          - 창준 - 교육의 3단계 언급 Romance(시, Disorder)-Discipline(예, Order)-Creativity(악, Order+Disorder를 넘는 무언가) , 새로운 것을 배울때는 기존 사고를 벗어나 새로운 것만을 생각하는 배우는 자세가 필요하다. ( 예-최배달 유도를 배우는 과정에서 유도의 규칙만을 지키며 싸우는 모습), discipline에서 creativity로 넘어가는 것이 중요하다.
         Higer order programming에서 중요한 것은 동사를 명사화해준다는 것인데, Command Pattern도 이와 비슷한 것 같습니다.
          * CTMCP http://www.info.ucl.ac.be/~pvr/
          * The Art and Craft of Problem Solving
  • 가위바위보/성재 . . . . 22 matches
         #include<iostream>
         #include<fstream>
         using namespace std;
         int main()
          fstream fin;
          fin.open("data1.txt");
          int win=0;
          int lose=0;
          int moo=0;
          while(fin.get(ch))
          fin.get();
          fin.get(str);
          fin.get();
          win++;
          win++;
          win++;
          continue;
          cout << "이선호의 이긴 수는 " << win <<"번이고," <<endl
          <<"진 횟수는 "<< win <<"번이고,"<< endl
          fin.close();
  • 가위바위보/은지 . . . . 22 matches
         #include <iostream.h>
         #include <fstream.h>
         int main()
          int num1, num2;
          int win1=0, same1=0, lose1=0;
          int win2=0, same2=0, lose2=0;
          ifstream fin("test1.txt");
          fin.getline(name1, 20);
          fin.getline(name2, 20);
          while (!fin.eof())
          fin >> num1;
          char ch = fin.get();
          fin >> num2;
          win2++; lose1++;
          win1++; lose2++;
          cout << name1 << " : " << win1 << "승 " << same1 << "무 " << lose1 << "패\n";
          cout << name2 << " : " << win2 << "승 " << same2 << "무 " << lose2 << "패\n";
  • 고슴도치의 사진 마을처음화면 . . . . 22 matches
         ▶ID : celfin ( Computer Elfin )
         ▶Hobby : Taking a picture
         ▶E-mail : celfin_2002@hotmail.com(MSN), celfin@lycos.co.kr(nateon), celfin_2000@hanmail.net
         ▷Phillippines tour
         ▷Bagic Java & Linux
         || [Picture Link] ||
         || [http://165.194.17.5/wiki/index.php?url=zeropage&no=3818&title=알고리즘&login=processing&id=celfin&redirect=yes algorithms] ||
         || [http://165.194.17.5/wiki/index.php?url=zeropage&no=3817&title=경시대회준비반&login=processing&id=celfin&redirect=yes preparing the ACM] ||
         || [Celfin's ACM training] ||
         || [Celfin's English] ||
         === Information ===
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/권순의,김호동 . . . . 22 matches
          private int max;
          private int min;
          private int floor;
          private boolean inElevator;
          public Elevator(int i, int j) {
          min = j;
          inElevator = false;
          public int floor() {
          public void goTo(int i) {
          if(i <= max && i >= min && inElevator ){
          } else if (i < min){
          floor = min;
          public void in() {
          inElevator = true;
          inElevator = false;
          elevator.in();
          elevator.in();
          elevator.in();
          elevator.in();
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/임상현,서민관 . . . . 22 matches
          assertEquals(-2, el3.minFloor);
          assertEquals(-2, el3.minFloor);
          assertEquals(-20, el3.minFloor);
          assertEquals(3, el3.minFloor);
          public String direction;
          public int currentFloor;
          public int maxFloor;
          public int minFloor;
          public int Turn;
          public Elev(int i, int j) {
          this.minFloor = j;
          this.minFloor = i;
          if(minFloor <= 1 && maxFloor>=1)
          currentFloor = minFloor;
          if(minFloor < 0 && maxFloor < 0)
          public void goTo(int i) throws Exception {
          if ( i >= minFloor && i <= maxFloor && i != 0 ) {
          public void downTo(int i) throws Exception {// 외부에서 엘리베이터가 내려오도록 함.
          public void push(int i) throws Exception { // 엘리베이터 내부에서 i층으로 이동.
          public void upTo(int i) throws Exception { // 외부에서 엘리베이터가 올라오도록 함.
  • 데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/namsangboy . . . . 22 matches
         #-*-coding:utf8-*-
         def readtrain():
          path1 = "/home/newmoni/workspace/svm/package/train/economy/index.economy.db"
          path2 = "/home/newmoni/workspace/svm/package/train/politics/index.politics.db"
          makedir = lambda i : "/home/newmoni/workspace/svm/package/train/"+i+"/index."+i+".db"
          for eachclass in classlist:
          for line in doclist:
          for word in line.split(" "):
          for word in document.replace("\n"," ").split(" "):
         if __name__=="__main__":
          classfreqdic, wordfreqdic, prob1, classprob1, classprob2 = readtrain()
          for eachclass in classlist:
          for line in doclist:
          totalprob = classifydocument(line)
          print eachclass, totalprob
          print correctct,totalct, correctct/float(totalct)
  • 마방진/민강근 . . . . 22 matches
         #include<iostream>
         #include<vector>
         using namespace std;
         int main()
          int m;
          cin>>m;
          vector <vector <int> > ma;
          for (int i = 0 ; i < m ; i++)
          int h=0, y, input=1;
          for(h = 0 , y = m/2 ; input == m*m ; h--, y++, input++)
          ma[h][y]=input;
          ma[h][y]=input;
          ma[h][y]=input;
          ma[h][y]=input;
         /* for(h = -1 , y = 1 , input =2 ; input <= (m*m) ; h-- , y ++, input ++)
          ma[h%m][(first+y)%m] = input;
          ma[h%m+1][(first+y)%m] = input;
  • 미로찾기/이규완오승혁 . . . . 22 matches
         #include <iostream>
         #include <ctime> using namespace std;
         int main()
          int walk = 0;
          int movement = 0;
          int row, colum;
          cin >> row;
          cin >> row;
          cin >> colum;
          cin >> colum;
          int **tile;
          tile = new int *[row+2];
          int crs, avn;
          tile[crs] = new int [colum+2];
          int path;
          cin >> path;
          int i = 1;
          int j = 1;
          int imove[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
          int jmove[8] = {-1, -1, -1, 0, 1, 1, 1, 0};
  • 비밀키/김태훈 . . . . 22 matches
         #include <fstream>
         #include <iostream>
         using namespace std;
         void main()
          ifstream fin ("source.txt");
          int x;
          cin >> x;
          int temp;
          fin.get(ch);
          temp = (int) ch;
          }while(!(fin.eof()));
         #include <iostream>
         #include <fstream>
         using namespace std;
         void main()
          ifstream fin("source_enc.txt");
          int y;
          cin >> y;
          int temp;
          fin.get(ch);
  • 새싹교실/2011 . . . . 22 matches
          * [새싹교실/2011/AmazingC]
         내가 짠 코드를 직접 출력을 통해 확인하는 것은 분명 매력적인 일입니다. 그러나 처음 익힌 코딩 습관은 버리기 매우 어렵습니다. 많은 학생들이 처음 프로그래밍을 배우며 printf 함수를 사용하여 코드를 검증하는 습관을 들입니다. 그 때문에 상당수의 졸업할때까지 테스트보다는 직접 눈으로 확인하는 것을 선호합니다. 그런데 작성한 코드가 잘 돌아가는지 알기 위해 직접 눈으로 확인해야만 하는 것은 매우 많은 문제가 있습니다.(이것에 대해서 더 적자면 정말 길어질테니 일단 이 페이지엔 적지 않겠습니다.)
          * 학교 수업에서 사용하기 때문에 printf 함수를 소개할 필요는 있습니다. 그러나 새싹교실에서 실습한 코드들을 검증하기 위해 매번 printf를 사용하는 것은 권장하지 않습니다.
          * 테스트는 [http://winapi.co.kr/clec/reference/assert.gif assert]함수를 통해 간단히 만들 수 있습니다.
          각 파트의 역할, program의 실행원리, software(layer 활용), complier와 interpreter 역할
          프로그래밍 단계(code 작성->compile->link->generating .exe file)
          stdio.h: printf, scanf function
          type casting
          increment/decrement, postfix/prefix
          infinite loop, break/continue
         달력을 하던 sorting을 하던 알아서 할 것
          initialization
         ||10||pointer:
          pointer arithmetic
         array와 pointer의 관계||
         string:
          string.h
          string I/O||
  • 숫자를한글로바꾸기/조현태 . . . . 22 matches
         #include <iostream>
         using namespace std;
         const int MAX_LONG=5;//최대가 5자리 숫자이기때문.
         const int MAX_NUMBER=10000;//최대가 10000이기때문.
          int where_is_save;
          int max_size_of_stack;
          stack( int data_size )
          bool get_in(char save_data)
         void main()
          stack print_number(MAX_LONG);
          int input_number=-1;
          while (input_number<0 || input_number>=MAX_NUMBER)
          cin >> input_number;
          while (input_number>0)
          print_number.get_in(input_number%10);
          input_number/=10;
          while (print_number.get_out(&temp))
  • 최소정수의합/이도현 . . . . 22 matches
         #include <stdio.h>
         void min_int_sum(void);
         int main(void)
          min_int_sum();
         void min_int_sum()
          int n = 1;
          printf("n = %d, sum = %dn", n, (n * n + n) / 2);
         #include <stdio.h>
         void min_int_sum(void);
         int main(void)
          min_int_sum();
         void min_int_sum()
          int n = 0, sum = 0;
          printf("n = %d, sum = %dn", n, sum);
  • 큰수찾아저장하기/김영록 . . . . 22 matches
         #include <stdio.h>
         static int space[4][4];
         int width_sort(int a);
         int height_sort(int a);
         int all_sort();
         void main()
         int i,j;
          printf("input[%d][%d] = ",i,j);
         int width_sort(int a){
         int max=0,i;
         int height_sort(int a){
         int max=0,i;
         int all_sort(){
         int max=0,i,j;
         int i,j;
          printf("\n");
          printf("%d ",space[i][j]);
  • Atom . . . . 21 matches
         Atom is an XML-based document format and HTTP-based protocol designed for the syndication of Web content such as weblogs and news headlines to Web sites as well as directly to user agents. It is based on experience gained in using the various versions of RSS. Atom was briefly known as "Pie" and then "Echo".
         The completed Atom syndication format specification was submitted to the IETF for approval in June 2005, the final step in becoming an RFC Internet Standard. In July, the Atom syndication format was declared ready for implementation[1]. The latest Atom data format and publishing protocols are linked from the Working Group's home page.
         Before the Atom work entered the IETF process, the group produced "Atom 0.3", which has support from a fairly wide variety of syndication tools both on the publishing and consuming side. In particular, it is generated by several Google-related services, namely Blogger and Gmail.
         As well as syndication format, the Atom Project is producing the "Atom Publishing Protocol", with a similar aim of improving upon and standarizing existing publishing mechanisms, such as the Blogger API and LiveJournal XML-RPC Client/Server Protocol.
         [http://www.intertwingly.net/wiki/pie/Rss20AndAtom10Compared RSSAtomCompare]
  • BeeMaja/고준영 . . . . 21 matches
         #include <stdio.h>
         #include <stdlib.h>
         #define NORTH 1
         #define NORTH_WEST 2
         #define SOUTH_WEST 3
         #define SOUTH 4
         #define SOUTH_EAST 5
         #define CAL(x) ((3*x*x)+(3*x)+1)
         struct coordinate{
          int x;
          int y;
         void move_posi(struct coordinate *, int);
         int main(void)
          int willy, row, seq, i;
          printf("윌리의 좌표계를 입력하세요 : ");
          printf("(%d, %d)\n\n", posi.x, posi.y);
          printf("윌리의 좌표계를 입력하세요 : ");
         void move_posi(struct coordinate *posi, int direc)
  • DPSCChapter4 . . . . 21 matches
         '''["Adapter"](105)''' Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
         '''Bridge(121)''' Decouple an abstraction from its implementation so that the two can vary independently
         '''Composite(137)''' Compose objects into tree structrures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
         '''Decorator(161)''' Attach Additional responsibilities and behavior to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
         '''Facade(179)''' Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
         '''Flyweight(189)''' Use sharing to support large numbers of fine-grained objects efficiently.
         '''Facade(179)'''는 확장된 시스템에서(하위, 상속받은) interface들의 조합에 대한 일관적인 접근(interface)을 제공한다. Facade는 확장 시스템(하위, 상속받은)을 좀더 사용하게 쉽도록 높은 단계의 interface를 정의한다.
  • EightQueenProblem/이창섭 . . . . 21 matches
         #include <iostream>
         using namespace std;
         int array[20][20] = {0,};
         bool exam(int r, int c);
         int main()
          for (int r = 7; r <= 14; r++)
          for (int c = 7; c <= 14; c++)
          for (int i = 7; i <= 14; i++)
          for (int j = 7; j <= 14; j++)
          for (int a = 0; a <= 19; a++)
          for (int b = 0; b <= 19; b++)
         bool exam(int r, int c)
          for (int i = 0; i <= 7; i++)
          for (int i = 0; i <= 7; i++)
          for (int j = 0; j <= 7; j++)
          int counter = 0;
          for (int i = 7; i <= 14; i++)
          for (int j = 7; j <= 14; j++)
  • EuclidProblem/문보창 . . . . 21 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int gcd(int p, int q, int & x, int & y);
         int main()
          int a, b;
          int x, y;
          int g; // gcd
          while (cin >> a >> b)
         int gcd(int p, int q, int & x, int & y)
          int x1, y1; // 이전계수
          int g; // gcd
  • GofStructureDiagramConsideredHarmful . . . . 21 matches
          * 원문 : http://www.industriallogic.com/pulse/20001001.html
         There's a mistake that's repeated throughout the Design Patterns book, and unfortunately, the mistake is being repeated by new patterns authors who ape the GoF style.
         Each GoF pattern has a section called "Structure" that contains an OMT (or for more recent works, UML) diagram. This "Structure" section title is misleading because it suggests that there is only one Structure of a Pattern, while in fact there are many structures and ways to implement each Pattern.
         But inexperienced Patterns students and users don't know this. They read the Patterns literature too quickly, often thinking that they understand a Pattern merely by understanding it's single "Structure" diagram. This is a shortcoming of the GoF Form, one which I believe is harmful to readers.
         What about all those important and subtle Implementation notes that are included with each GoF Pattern? Don't those notes make it clear that a Pattern can be implemented in many ways? Answer: No, because many folks never even read the Implementation notes. They much prefer the nice, neat Structure diagrams, because they usually only take up a third of a page, and you don't have to read and think a lot to understand them.
         Diagrams are seductive, especially to engineers. Diagrams communicate a great deal in a small amount of space. But in the case of the GoF Structure Diagrams, the picture doesn't say enough. It is far more important to convey to readers that a Pattern has numerous Structures, and can be implemented in numerous ways.
         I routinely ask folks to add the word "SAMPLE" to each GoF Structure diagram in the Design Patterns book. In the future, I'd much prefer to see sketches of numerous structures for each Pattern, so readers can quickly understand that there isn't just one way to implement a Pattern. But if an author will take that step, I'd suggest going even further: loose the GoF style altogether and communicate via a pattern language, rich with diagrams, strong language, code and stories.
  • HanoiTowerTroublesAgain!/문보창 . . . . 21 matches
         || 2006-01-12 Accepted 0.092 Minimum ||
         // 10276 - HanoiTowerTroublesAgain!
         #include <iostream>
         using namespace std;
         #include <cmath>
         #define MAX_SIZE 50
         static int stick[MAX_SIZE+1];
         void initStick(int n)
          for (int i = 1; i <= n; i++) stick[i] = 0;
         void process(int n)
          initStick(n);
          int number = 1;
          for (int i = 1; i <= n; i++)
         int main()
          int nCase, n;
          cin >> nCase;
          for (int i = 0; i < nCase; i++)
          cin >> n;
         [HanoiTowerTroublesAgain!]
  • HowManyZerosAndDigits/김회영 . . . . 21 matches
         #include<iostream>
         using namespace std;
         struct info_number
          int zero_count;
          int total_count;
         int factorial(int);
         void test(int,int,info_number*);
         void main()
          int number,result_number,radix;
          info_number temp;
          cin>>number>>radix;
         int factorial (int n)
         void test(int n,int radix,info_number* temp)
          int zero_count=0;
          int total_count=1;
  • JTDStudy/두번째과제/장길 . . . . 21 matches
         == TestButtonMain ==
         public class TestButtonMain extends Applet implements ActionListener{
          public TestButtonMain(){
         public class TestFrame extends Frame implements WindowListener{
          this.addWindowListener(this);
          public void windowClosing(WindowEvent e) {
          public void windowActivated(WindowEvent e) {}
          public void windowClosed(WindowEvent e) {}
          public void windowDeactivated(WindowEvent e) {}
          public void windowDeiconified(WindowEvent e) {}
          public void windowIconified(WindowEvent e) {}
          public void windowOpened(WindowEvent e) {}
         * 너무 오랫만에 숙제를 했네요....... windfencer.zerpage.org 여기에 들어가면 위 소스로 만든 애플릿을 확인하실수 있습니다. - 장길 -
  • JollyJumpers/신재동 . . . . 21 matches
         import java.io.InputStreamReader;
          int listSize = aList.size();
          for(int i = 0; i < listSize - 1; i++) {
          public int getGap(Vector aList, int i) {
          int gap = ((Integer)aList.get(i)).intValue() - ((Integer)aList.get(i + 1)).intValue();
          private void inputNumbers(Vector list) {
          BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
          String line = reader.readLine();
          String [] numbersStr = line.split(" ");
          for(int i = 0; i < numbersStr.length; i++) {
          list.add(new Integer(Integer.parseInt(numbersStr[i])));
          e.printStackTrace();
          public static void main(String[] args) {
          jollyJumper.inputNumbers(list);
          System.out.println("Jolly");
          System.out.println("Not jolly");
          vec.add(new Integer(1));
          vec.add(new Integer(1));
          vec.add(new Integer(4));
          vec.add(new Integer(10));
  • MineSweeper/김상섭 . . . . 21 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         struct point
          int row;
          int col;
         vector<point> test;
         int col, row, i, j,temp_row, temp_col, map[101][101];
         int director_row[8] = {-1,-1,-1,0,0,1,1,1};
         int director_col[8] = {-1,0,1,-1,1,-1,0,1};
         int count = 1;
         point temp_point;
         int main()
          cin >> row >> col;
          cin >> temp_char;
          temp_point.row = i;
          temp_point.col = j;
          test.push_back(temp_point);
          cin >> row >> col;
  • Ones/송지원 . . . . 21 matches
         #include <stdio.h>
         #define LENBOUND 10000
         #define ARRBOUND 2500 // LENBOUND/4
         typedef struct longint {
          int length;
          int digits[ARRBOUND]; // 0000~9999
         } longint;
         void ones( longint *pns, int len )
          int i;
          int j;
         int division( longint *pns, int divisor ) {
          int i = ARRBOUND - (pns->length + 3) / 4;
          int rem = 0;
         void main() {
          longint ns;
          int n;
          int i;
          if( i <= LENBOUND ) printf("%d\n", i);
  • ProjectPrometheus/DataBaseSchema . . . . 21 matches
         || bookid || isbn || totalpoint || title ||
         || uid || bookid || relbookid || relpoint ||
         || uid || bookid || userid || viewpoint || hviewpoint || lviewpoint ||
         uid int (11) NOT NULL auto_increment,
         relpoint int(11) NOT NULL DEFAULT 0,
         uid int (11) NOT NULL auto_increment,
         viewpoint int(11) NOT NULL DEFAULT 0,
         hviewpoint int(11) NOT NULL DEFAULT 0,
         lviewpoint int(11) NOT NULL DEFAULT 0,
         totalpoint int(11) NOT NULL DEFAULT 0,
         uid int (11) NOT NULL auto_increment,
  • RandomWalk/동기 . . . . 21 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         void main()
          int size;
          cin>> size;
          int MAX=size-1;
          int spawnX = rand()%size;
          int spawnY = rand()%size;
          int **data = new int*[size];
          for(int i=0;i<size;i++) {
          data[i] = new int[size];
          for(int k=0;k<size;k++)
          for(int j=0;j<size;j++)
          int out = 0;
          int move= rand()%8;
          for(int j=0;j<size;j++)
          for(int j=0;j<size;j++){
          int p=0;
          for(int j=0;j<size;j++)
  • ReverseAndAdd/김회영 . . . . 21 matches
         #include<iostream>
         #include<math.h>
         using namespace std;
         long inverseDigit(long num);
         int main()
          int testCount=0;
          cin>>testCount;
          int* calCount=new int[testCount];
          int i=0;
          cin>>number[i];
          number[i]=number[i]+inverseDigit(number[i]);
         long inverseDigit(long num)
          int arrayOfDigit[10];
          int count=-1;
          for(int i=count ; i>=0 ; i--)
          int arrayOfDigit[10];
          int count=-1;
          int i=0;
          int j=count;
  • TestFirstProgramming . . . . 21 matches
         ExtremeProgramming에서는 UnitTest -> Coding -> ["Refactoring"] 이 맞물려 돌아간다. TestFirstProgramming 과 ["Refactoring"] 으로 단순한 디자인이 유도되어진다.
         요새는 ["TestDrivenDevelopment"] 라고 한다. 단순히 Test 를 먼저 작성하는게 아닌, Test 주도 개발인 것이다. TestDrivenDevelopment 는 제 2의 Refactoring 과도 같다고 생각. --["1002"]
          * wiki:Wiki:CodeUnitTestFirst, wiki:Wiki:TestFirstDesign, wiki:Wiki:TestDrivenProgramming
          * wiki:NoSmok:TestFirstProgramming
          * wiki:Wiki:ExtremeProgrammingUnitTestingApproach
         === Test Code Refactoring ===
         프로그램이 길어지다보면 Test Code 또한 같이 길어지게 된다. 어느정도 Test Code 가 길어질 경우에는 새 기능에 대한 테스트코드를 작성하려고 할 때마다 중복이 일어난다. 이 경우에는 Test Code 를 ["Refactoring"] 해야 하는데, 이 경우 자칫하면 테스트 코드의 의도를 흐트려뜨릴 수 있다. 테스트 코드 자체가 하나의 다큐먼트가 되므로, 해당 테스트코드의 의도는 분명하게 남도록 ["Refactoring"] 을 해야 한다.
          * wiki:Wiki:RefactoringTestCode
          wiki:Wiki:DoTheSimplestThingThatCouldPossiblyWork
         Test Driven 에 대한 접근 방법에는 End-To-End (BlackBoxTesting) 식의 접근 방법과 WhiteBoxTesting 의 접근방법이 있을 수 있겠다.
         Test Code 를 작성하진 않았지만, 이런 경험은 있었다. PairProgramming 을 하는 중 파트너에게
         이 경우에도 ["MockObjects"] 를 이용할 수 있다. 기본적으로 XP에서의 테스트는 자동화된 테스트, 즉 테스트가 코드화 된 것이다. 처음 바로 접근이 힘들다면 Mock Server / Mock Client 를 만들어서 테스트 할 수 있겠다. 즉, 해당 상황에 대해 이미 내장되어 있는 값을 리턴해주는 서버나 클라이언트를 만드는 것이다. (이는 TestFirstProgramming 에서보단 ["AcceptanceTest"] 에 넣는게 더 맞을 듯 하긴 하다. XP 에서는 UnitTest 와 AcceptanceTest 둘 다 이용한다.)
         TddRecursiveDescentParsing
         ["ExtremeProgramming"]
  • Trac . . . . 21 matches
         Trac is an enhanced wiki and issue tracking system for software development projects. Trac uses a minimalistic approach to web-based software project management. Our mission; to help developers write great software while staying out of the way. Trac should impose as little as possible on a team's established development process and policies.
         It provides an interface to Subversion, an integrated Wiki and convenient report facilities.
         Trac allows wiki markup in issue descriptions and commit messages, creating links and seamless references between bugs, tasks, changesets, files and wiki pages. A timeline shows all project events in order, making getting an overview of the project and tracking progress very easy.
         Trac 은 이슈에 대한 서술과 커밋 메세지에 대해서 위키 태그를 지원하며, 버그,테스크,체인지셋,화일,그리고 위키 페이지들 간에 대해서 seamless 한 참조가 가능하게 해준다. timeline(타임라인)은 모든 프로젝트 이벤트를 순서에 맞게 보여주며, 프로젝트에 대한 오버뷰를 얻는 것과 트래킹 진행을 매우 쉽게 해준다.
         dev를 위해서는 사실 위의 링크들의 설치 방법은 거의다 쓸모 없다. Trac이 10->11로 넘어가는데 오래 정체되고 있는 이유는 내부를 대폭 개선하고 있기 때문이다. Template engine과 소스 컬러링 엔진을 바꾸었고, 기존의 plugin으로 존재하던 유용한 관리 도구들을 모두 결합하고 있다. 자료 구조도 손보고 있다. NeoCoin이 몇달간 dev버전을 사용해 보면서 별 무리 없이 이용하고 있다.
         [http://neocoin.cafe24.com/cs/moin.cgi/Trac 아파치 없이, 설치 방법과 운용 방법]
          http://biohackers.net/yongslib/timeline
          * 데미안이면 아마 apt 로 설치 가능할걸? (요새 linux 쪽은 거의 손을 놓아서 상황이 어떻게 굴러가는지도 모르겠군;) --[1002]
  • 고슴도치의 사진 마을 . . . . 21 matches
         ▶ID : celfin ( Computer Elfin )
         ▶Hobby : Taking a picture
         ▶E-mail : celfin_2002 at hotmail dot com(MSN), celfin at lycos dot co dot kr(nateon), celfin_2000 at hanmail dot net
         ▷Bagic Java & Linux
         || [Picture Link] ||
         || [http://165.194.17.5/wiki/index.php?url=zeropage&no=3818&title=알고리즘&login=processing&id=celfin&redirect=yes algorithms] ||
         || [http://165.194.17.5/wiki/index.php?url=zeropage&no=3817&title=경시대회준비반&login=processing&id=celfin&redirect=yes preparing the ACM] ||
         || [Celfin's ACM training] ||
         || [Celfin's English] ||
         === Information ===
  • 미로찾기/최경현김상섭 . . . . 21 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <time.h>
         int main()
          int count = 0;
          int row = 5;
          int col = 5;
          int nowr = 1,nowc = 1;
          int abc[row+2][col+2];
          int i,j;
          int n;
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("(%d,%d) ",nowr,nowc);
          printf("%d",count);
  • 미로찾기/황재선허아영 . . . . 21 matches
         #include <stdio.h>
         #define MAX 7
         #define GO 0
         #define BLOCKED 1
         #define HADGONE 2
         int board[MAX][MAX];
         int xPos[8] = {1, 1, 0, -1, -1, -1, 0, 1};
         int yPos[8] = {0, 1, 1, 1, 0, -1, -1, -1};
         int nextX, nextY;
         int x = 1;
         int y = 1;
         int count = 0;
         int count2 = 0;
          int i;
          int i;
         void main()
          int i, j;
          printf("현재\n(%d,%d)\n", x, y);
          printf("(%d,%d)\n", x, y);
          printf("%d ", board[i][j]);
  • 여사모 . . . . 21 matches
          * 다음 주제는 문자열(String), 스택(Stack)과 큐(Queue) 입니다. 단어 뜻 정도는 알아오는게 좋겠죠?
         #include <iostream>
         using namespace std;
         #include <string.h>
         int main()
          int b=4;
          cin>>b;
         #include <iostream>
         using namespace std;
         int main()
          int front[5] = {1,2,3,4,5};
          int b;
          cin >> b;
          int array[b]; // array 배열이 할당해야할 값을 정확하게 알지 못하여 에러가 난다. */
          int b;
          cin >> b;
          int * a = new int[b]; // 이와 같은 경우에는 원하는 값을 할당받아 사용하므로 올바르게 실행된다. */
  • 이영호/문자열검색 . . . . 21 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
         #include <signal.h>
         void handler(int sig)
          fprintf(stderr, "\n프로그램을 종료합니다.\n");
         int main()
          char x[40] = "His teaching method is very good.";
         // signal handling
          sigaction(SIGINT, &act, 0);
          fprintf(stderr, "fopen() error: result.out\n"), exit(-1);
          fprintf(fp, "자료 -> %s\n", x);
          fprintf(fp, "찾을 문자열 -> ");
          printf("찾을 문자열 -> ");
          fgets(buf, sizeof(buf), stdin); // 문자열이라고 했으니 space를 포함한다.
          fprintf(fp, "%s\n", buf);
          fprintf(fp, "Not Found!\n");
          fprintf(fp, "first found -> %d\n", loc-x);
         자료 -> His teaching method is very good.
         자료 -> His teaching method is very good.
  • 큰수찾아저장하기/허아영 . . . . 21 matches
         #include <stdio.h>
         #define MATRIX_SIZE 4
         void search_max(int matrix[][MATRIX_SIZE]);
         void print_matrix(int matrix[][MATRIX_SIZE]);
         void change(int *, int *);
         int i, j;
         void main()
          int matrix[MATRIX_SIZE][MATRIX_SIZE] = {{0,}};
          printf("matrix[%d][%d] = ", i, j);
          print_matrix(matrix);
         void search_max(int matrix[][MATRIX_SIZE])
          int temp_matrix[4][4], a, b;
         void print_matrix(int matrix[][MATRIX_SIZE])
          printf("%5d", matrix[i][j]);
          printf("\n");
         void change(int *a, int *b)
          int temp;
  • 2011년독서모임 . . . . 20 matches
          * [김준석] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8934940069 나는 아직 어른이 되려면 멀었다]
          * [김수경] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8955614101 왜 사람들은 이상한 것을 믿는가]
          * [서지혜] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8988964373 작심후 3일]
          * [강소현] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8984314307 1등만 기억하는 더러운 세상]
          * [김수경] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8986509814 우리말 달인]
          * [강소현] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=896330020X 중독의 이해와 상담의 실제]
          * [정의정] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8956604231 꿈의 도시]
          * [김준석] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8952723147 나니아 연대기]
          * [강소현] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=890110511X 더 박스]
          * [권순의] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8937831090 GO] (가네시로 가즈키)
          * 이와 관련해서 외국 음악이랑 외국 영화에 나오는 한국에 대해 찾아보려 했는데요,, 급 귀차니즘 때문에 외국 음악에 나오는 한국 관련된 것만 찾았다는...; 뭐,, 그래서 찾은 것이 Gary Moore의 Murder in the skies 라는 노래인데, 이 노래는 1983년 9월 1일에 뉴욕에서 출발한 한국행 비행기가 소련의 영공에 침범 했나(? -_-;; 죄송;;) 그래서 소련의 전투기가 Kal기를 격추시키는 일이 발생하였는데, 그것을 내용으로 소련의 만행으로 무고한 사람들이 죽음을 당했다는 것을 비판한 노래라 소개 했었고, 또 하나 찾아봤었던게 Deftones의 Korea라는 노래인데... 알고보니까 그냥 노래 내용이 어떤 소녀에 대한 이야기인데 그 소녀의 이름이 한국인 성과 비슷해서 그냥 그렇게 썻다고 해서 패스했습니다.
          * [강소현] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8937831090 GO] (가네시로 가즈키)
          * [권순의] - [http://book.interpark.com/meet/webzinePapa.do?_method=intvDetail&sc.mreviewNo=26730&bkid1=webzin&bkid2=main&bkid3=flashBan&bkid4=004 고구려] (김진명)
          * [강소현] - [http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=899006225X 수집이야기]
          * [강소현] - '''[http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8990984610 자존감]'''
          * [김태진] - 이번주도 어려운(아마 내일 무슨 책을 읽었는가 정모에서 물어본다면 대답하지 못할..) 책 제목이네요. 음.. 책읽으면서 느낀 결론은, 아 영어 공부 해야지 -_- 였습니다. 1년간 반쯤 손 놓고 있었더니 Eng2에서도 EnglishClinic에서도 말이 제대로 안나오는군요. 흠..
  • 3N+1Problem/문보창 . . . . 20 matches
         #include <iostream>
         using namespace std;
         int findMaxCycle(int a, int b);
         int main()
          int a, b; // 입력되는 두 개의 수
          while (cin >> a >> b)
          int maxCycle = findMaxCycle(a, b); // 최대 사이클
         int findMaxCycle(int a, int b)
          int t;
          int nCycle; // 사이클 길이
          int maxCycle = 0; // 최대 사이클
          int i;
  • AncientCipher/강소현 . . . . 20 matches
         ||Problem||2159||User||talin0528||
         public class Main{
          public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          char[] c = sc.nextLine().toCharArray();
          char[] p = sc.nextLine().toCharArray();
          System.out.println("YES");
          System.out.println("NO");
          int[] cSpread = new int[26];
          int[] pSpread = new int[26];
          for(int i=0; i<c.length; i++){
          for(int i=0; i<cSpread.length; i++)
          if(!find(cSpread,pSpread[i],check))
          private static boolean find(int[] cSpread, int pWord, boolean[] check) {
          for(int i=0; i<cSpread.length;i++)
  • BirthdayCake/허준수 . . . . 20 matches
         #include <iostream>
         #include <vector>
         using namespace std;
          int x;
          int y;
         void input(int x, int y)
         void process(int num)
          for(int k = 0; k<Gradient.size()-1; k++)
          for(int j = k+1; j<Gradient.size(); j++) {
          int b = (Gradient[num/2].x + Gradient[num/2 + 1].x)*(-1);
          int a = Gradient[num/2].y + Gradient[num/2 + 1].y;
         int main()
          int numCherry, i;
          int x, y;
          cin >> numCherry;
          cin >> x >> y;
          input(x, y);
  • EightQueenProblem2 . . . . 20 matches
         ||이준욱|| 0m (소스수정 없음) || 40 lines || C ||
         ||["이덕준"]|| 4m || 73 lines ["EightQueenProblem2/이덕준소스"]|| C++ ||
         ||["최태호"]|| 4m || 69 lines ["EightQueenProblem/최태호소스"]|| C++ ||
         ||["최광식"]|| 8m || 141 lines || C++ ||
         ||이선호|| 32m || 64 lines || C++ ||
         ||강석천|| 2m || 131 lines (+ 82 line for testcode. total 213 lines) || python ||
         ||임인택|| 0m (소스수정 없음) || 75 lines || C++ ||
         ||이선우|| 1m || 114 lines || java ||
         ||최봉환|| 24m || 86 lines ["EightQueenProblem2/최봉환"] || C++ ||
         ||이강성|| 15m || 43 lines ["EightQueenProblem2/이강성"] || python ||
         ||강인수|| || 67 lines/28 lines ["EightQueenProblem/강인수"] || C++/python ||
         ||icarus|| 5m || 40 lines [" Eight Queen Problem/lasy0901"] || C++ ||
         ||nextream|| 0.1m || 21 lines ["EightQueenProblem/nextream"] 에서 check(1)을 check(0)으로 || Javascript ||
         ||da_answer|| 5m || 135 lines ["EightQueenProblem/da_answer"] showMessage부분을 리커시브 안쪽으로 이동 || Delphi ||
         ||밥벌레|| 37m || 197 lines ["EightQueenProblem/밥벌레"] || Delphi ||
         ||김준엽|| 65m || 71 lines ["EightQueenProblem/김준엽"] || C++ ||
         ||안정원|| 1m || 6 lines ["EightQueenProblem/안정원"] || Python ||
  • HanoiProblem/임인택 . . . . 20 matches
          for(int i=0; i<3; i++)
          public void solve(int numOfDiscs) {
          for(int i=numOfDiscs; i>0; i--)
          public void moveDiscs(int numOfDiscs, int from) {
          int to = (from==0)?1:0;
          towers[2].bringDisc(towers[from]);
          towers[to].bringDisc(towers[from]);
          towers[to].bringDisc(towers[2]);
          towers[2].bringDisc(towers[from]);
          towers[from].bringDisc(towers[to]);
          towers[2].bringDisc(towers[to]);
          towers[2].bringDisc(towers[from]);
          System.out.println("Tower Created.");
          public boolean movable(Integer discNum){
          Integer iObj = (Integer)lastObj;
          if( iObj.intValue() > discNum.intValue() )
          public void putOnDisc(int discNum) {
          Integer i = new Integer(discNum);
          public Integer getTopDisc() {
          Integer topDisc = (Integer)(discsAtPillar.lastElement());
  • HelpOnLinking . . . . 20 matches
         #keywords inter wiki,moniwiki,wiki,wiki name,링크
         {{{WikiName}}}라고 쓰면 WikiName이 자동으로 링크가 걸립니다.
         {{{[[모니위키]]}}}라고 적으면 [[모니위키]]처럼 링크가 됩니다. 이것은 MoinMoin 최신이나 MediaWiki에서 쓰이는 페이지 이름 연결 문법으로, 모니위키에서도 호환성 측면에서 지원합니다.
          * Wiki:SixSingleQuotes 를 이용한다.
         WikiName과 같은 식으로 연결되는 것을 방지하고 있는 그대로 보여지는 것을 원한다면 느낌표(''bang'')를 다음과 WikiName앞에 붙여서 다음과 같이 사용할 수 있습니다. {{{!WikiName}}} `!WikiName`. 또한 물음표를 임의의 단어 앞에 붙이면 강제로 링크가 걸리게 됩니다. i.e. {{{?Hello}}} `?Hello`.
         그밖에 위키 문법은 HelpOnEditing 페이지를 참조하세요.
          * InterWiki
          * MeatBall:InterWiki
          * wiki:MeatBall:InterWiki
          * [wiki:MeatBall:InterWiki]
          * [wiki:MeatBall:InterWiki InterWiki page on MeatBall]
          * InterWiki
          * MeatBall:InterWiki
          * wiki:MeatBall:InterWiki
          * [wiki:MeatBall:InterWiki]
          * [wiki:MeatBall:InterWiki InterWiki page on MeatBall]
         /!\ 혼란을 피하기 위해서, {{{wiki:InterWiki/Page}}} 와 같은 링크는 모니위키에서 지원하지 않습니다.
         모인모인에서는 {{{wiki:MeatBall/InterWiki}}}와 같은 링크가 {{{wiki:MeatBall:InterWiki}}}로 인식됩니다. 하지만 이것은 {{{wiki:WikiPage/SubPage}}} 문법과 일관성이 떨어져 혼란을 주므로 이와같은 모인모인 방식의 인터위키 링크는 모니위키에서 지원하지 않습니다.
         === single bracketed syntax ===
          * {{{[Hello World]}}} link to [HelloWorld] (no space inserted)
  • MagicSquare/재니 . . . . 20 matches
         #include <iostream>
         using namespace std;
         int main()
          int num, line, row;
          cin >> num;
          cin >> num;
          int mbj[9][9] = {0,0 };
          line = num - 1;
          for (int i = 0 ; i < num * num ; i++)
          mbj[line][row] = i + 1;
          if (line == num - 1)
          line = 0;
          else line++;
          if (mbj[line][row] != 0)
          if(line == 0 && row == 0)
          line = num - 2;
          line -= 2;
          for (int j = 0 ; j < num ; j++)
  • Map/임영동 . . . . 20 matches
         #include<iostream>
         #include<string>
         #include<vector>
         #include<map>
         using namespace std;
         int main()
          string input="ad md$ =i@@9z xy*@ -9z";
          for(it=decoder.begin();it!=decoder.end();++it)
          /*for(int i=0;i!=input.size();++i)
          input[i]=(*it)[input[i]];
          for(string::iterator i=input.begin();i!=input.end();i++)
          cout<<input;
  • Map연습문제/임영동 . . . . 20 matches
         #include<iostream>
         #include<string>
         #include<vector>
         #include<map>
         using namespace std;
         int main()
          string input="wjgydlrtyffworxjbdzyrsybfwlrobffylryjbkyjrtbdcyyrvmbjlsrkugjglrmdcgdarjbjyftr";
          for(it=decoder.begin();it!=decoder.end();++it)
          /*for(int i=0;i!=input.size();++i)
          input[i]=(*it)[input[i]];
          for(string::iterator i=input.begin();i!=input.end();i++)
          cout<<input;
  • MoinMoinDiscussion . . . . 20 matches
         Talk about the things on MoinMoinTodo and MoinMoinIdeas in this space...
         '''Q''': How do you inline an image stored locally? (e.g. ../wiki-moimoin/data/images/picture.gif)
          * '''R''': The Icon macro worked well. I wanted to avoid the fully qualified URL because to access the Wiki in question requires password authentication. Including an image using the full URL caused my webserver (Apache 1.3.19) to reprompt for authentication whenever the page was viewed or re-edited. Perhaps a default {{{~cpp [[Image]]}}} macro could be added to the distribution (essentially identical to {{{~cpp [[Icon]]}}} ) which isn't relative to the data/img directory. (!) I've actually been thinking about trying to cook up my own "upload image" (or upload attachment) macro. I need to familiarize myself with the MoinMoin source first, but would others find this useful?
          * '''Note:''' Regarding the upload feature - pls note that the PikiePikie also implemented in Python already has this feature, see http://pikie.darktech.org/cgi/pikie?UploadImage ... so I guess you could borrow some code from there :) -- J
  • NumberBaseballGame/영록 . . . . 20 matches
         #include <iostream>
         #include <stdlib.h>
         #include <ctime>
         using namespace std;
         int main()
          unsigned int number1,number2,number3;
          unsigned int a,b,c;
          int count1=0,count2=0,count3=0;
          char input[3];
          cin.get(input[0]);
          cin.get(input[1]);
          cin.get(input[2]);
          cin.get();
          number1 = input[0]-48;
          number2 = input[1]-48;
          number3 = input[2]-48;
  • RUR-PLE/Etc . . . . 20 matches
         == Amazing Part 1 ==
          * amazing1.wld 월드 파일을 연다.
         == Amazing Part 2 ==
          * amazing2.wld 월드 파일을 연다.
         == Amazing Part 3,4 ==
          * amazing3.wld 월드 파일을 연다.
         == Amazing Part 5 ==
          * amazing5.wld 월드 파일을 연다.
         == 이제 만든 amazing을 써먹어 보자 ==
          * amazing을 해보면서 느낀점을 각자 이야기 해봅시다~!
         == rain1 ==
          * rain1.wld 월드 파일을 연다.
         def close_window():
          close_window()
         == rain2 ==
          * rain2.wld 월드 파일을 연다. rain1과 좀 다르게 생겼다.
          * rain1의 코드를 여기서도 돌아가도록 만든다.
         def close_window():
          close_window()
  • Random Walk2/곽세환 . . . . 20 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         void main()
          ifstream fin("input.txt");
          int m, n;
          fin >> m >> n;
          int i, j, k;
          int **array = new int*[m];
          array[i] = new int[n];
          int x, y;
          fin >> y >> x;
          while (fin.get() != '\n')
          int dirsu = 0;
          while ((temp = fin.get()) && temp != '\n') //방향있는 한 줄 입력받음
          int cx = x, cy = y;
          int cnt = 0;
          continue;
  • RandomWalk2/Vector로2차원동적배열만들기 . . . . 20 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         vector< vector<int> > ar; // 반드시 공백 줘야 한다! 안주면 에러난다.
         void Alloc(int nRow, int nCol);
         void SetArrayAsZero(int nRow, int nCol);
         void Show(int nRow, int nCol);
         int main()
          int row, col;
          cin >> row;
          cin >> col;
         void Alloc(int nRow, int nCol)
          for(int i = 0 ; i < nRow ; i++)
          * [http://www.parashift.com/c++-faq-lite/containers-and-templates.html#faq-33.1 Why Arrays are Evil]
          * array보다 vector를 먼저 가르치는 대표적인 책으로 "진정한 C++"을 가르친다는 평가를 받고 있는Seminar:AcceleratedCPlusPlus
  • ReverseAndAdd/신재동 . . . . 20 matches
          for i in range(len(numberStr)):
          return int(reverseStr)
          def isPalindrome(self, number):
          for i in range(len(numberStr)):
          for i in range(1000):
          if(self.isPalindrome(number)):
          print 'No reverse and add'
          def testIsPalindrome(self):
          self.assertEquals(False, raa.isPalindrome(4321))
          self.assertEquals(True, raa.isPalindrome(12321))
          self.assertEquals(True, raa.isPalindrome(1221))
         if __name__ == '__main__':
          #unittest.main()
          result = raa.reverseAndAdd(int(input()))
          print str(result[0]) + ' ' + str(result[1])
         >>> int(str(n)[::-1]) #python 2.3이상
         >>> int(''.join(reversed(str(d)))) #python 2.4이상
         >>> def rev(d): return int(str(d)[::-1])
  • ScheduledWalk/권정욱 . . . . 20 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main(){
          ifstream fin("input.txt");
          int length;
          int walk[100][100];
          int i, j;
          int x , y;
          int temp;
          fin >> length;
          fin >> x;
          fin >> y;
          while (!fin.eof()){
          int directer = direct - 48;
          direct = fin.get();
          continue;
          direct = fin.get();
  • TellVsAsk . . . . 20 matches
         Alec Sharp, in the recent book Smalltalk by Example [SHARP], points up a very valuable lesson in few words:
         Procedural code gets information then makes decisions. Object-oriented code tells objects to do things.
         The problem is that, as the caller, you should not be making decisions based on the state of the called object
         that result in you then changing the state of the object. The logic you are implementing is probably the called object's
         Sure, you may say, that's obvious. I'd never write code like that. Still, it's very easy to get lulled into
         examining some referenced
         object and then calling different methods based on the results. But that may not be the best way to go about doing it. Tell the object
         what you want. Let it figure out how to do it. Think declaratively instead of procedurally!
         exam) 아마 Refactoring 책에도 나올것이지만.
         It is easier to stay out of this trap if you start by designing classes based on their responsibilities,
         you can then progress naturally to specifying commands that the class may execute, as opposed to queries
         that inform you as to the state of the object.
  • ThePriestMathematician/김상섭 . . . . 20 matches
         #include <iostream>
         using namespace std;
         #include <vector>
         #include <cmath>
         unsigned int hanoi[10001] = {0,1,};
         int a[10000];
         int main()
          vector<int> test;
          int num;
          unsigned min, temp;
          for(int i = 1; i < 10001; i++)
          min = 4000000000;
          for(int k = 0; k < i; k++)
          if(temp <= min)
          min = temp;
          hanoi[i] = min;
          while(cin >> num)
          for(vector<int>::iterator j = test.begin(); j != test.end(); j++)
  • ThinkRon . . . . 20 matches
         aka {{{~cpp WhatTheyWouldDoInMyShoes}}}
         여기서 Ron은 Think Big에서처럼 부사의 역할을 하며, "RonJeffries처럼"을 뜻한다.
         저는 이미 RonJeffries를 어느 정도 내재화(internalize)하고 있는 것은 아닌가 생각이 듭니다. 사실 RonJeffries나 KentBeck의 언변은 "누구나 생각할 수 있는 것"들이 많습니다. 상식적이죠. 하지만 그 말이 그들의 입에서 나온다는 점이 차이를 만들어 냅니다. 혹은, 그들과 평범한 프로그래머의 차이는 알기만 하는 것과 아는 걸 실행에 옮기는 것의 차이가 아닐까 합니다. KentBeck이 "''I'm not a great programmer; I'm just a good programmer with great habits.''"이라고 말한 것처럼 말이죠 -- 사실 훌륭한 습관을 갖는다는 것처럼 어려운 게 없죠. 저는 의식적으로 ThinkRon을 하면서, 일단 제가 가진 지식을 실제로 "써먹을 수" 있게 되었고, 동시에 아주 새로운 시각을 얻게 되었습니다.
         전문가 비전문가 PairProgramming을 하다가 문제에 직면했습니까? 스스로에게 물어보십시오. 만약 KentBeck이나 WardCunningham, RonJeffries 같은 사람이 이 자리에 나 대신 있었다면 이 문제에 어떻게 대응했을런지. 그리고 거기서 얻은 해답을 꼭 실행에 옮겨 보세요. 자신은 물론 상대방도 놀라게 될 것입니다. 해답은 늘 안에 있습니다.
         Let me tell a brief story about how that came about. Our president, at the time was Bob Doherty. Doherty came from General Electric via Yale, and had been one of the bright young men who were taken under the wing of the famous engineer Stiglitz. Every Saturday, Stiglitz would hold a session with these talented young men whom General Electric had recruited and who were trying to learn more advanced engineering theory and problem-solving techniques. Typically, Bob Doherty would sometimes get really stuck while working on a problem. On those occasions, he would walk down the hall, knock on Stiglitz’s door, talk to him — and by golly, after a few minutes or maybe a quarter of an hour, the problem would be solved.
         One morning Doherty, on his way to Stiglitz’s office, said to himself, "Now what do we really talk about? What’s the nature of our conversation?" And his next thought was, "Well Stiglitz never says anything; he just asks me questions. And I don’t know the answer to the problem or I wouldn’t be down there; and yet after fifteen minutes I know the answer. So instead of continuing to Stiglitz’s office, he went to the nearest men’s room and sat down for a while and asked himself, "What questions would Stiglitz ask me about this?" And lo and behold, after ten minutes he had the answer to the problem and went down to Stiglitz’s office and proudly announced that he knew how to solve it.
  • WikiSandPage . . . . 20 matches
          <input type="hidden" name="action" value="userform">
          <input type="hidden" size="15" maxlength="20" name="password" value="">
          <input type="hidden" size="15" maxlength="20" name="passwordagain" value="">
          <input type="hidden" size="40" name="email" value="">
          <input type="hidden" class="button" value="Local timezone">
          <input type="hidden" size="40" name="user_css" value="">
          <span class="button"><input type="submit" class="button" name="logout" value="로그아웃"></span>
         [[RSS("http://zerowiki.dnip.net/zero/index.php?mode=getRSS&url=namsang",6)]]
          말이 되냐 Uplode ;; 아 moin 1.0 대로 업그레이드 해도, 이런식으로 InterMap 이면 변화없이
         int main()
         [http://www.u-blog.net/gorbinsk/img/logo.png]
         http://www.nbc.com/Saturday_Night_Live/index.html
         [http://www.nbc.com/Saturday_Night_Live/index.html]
         [http://www.nbc.com/Saturday_Night_Live/index.html 쌩토요일밤]
         http://zeropage.org/wikis/nosmok/moinmoin.gif
         [http://zeropage.org/wikis/nosmok/moinmoin.gif 이쁜이사진]
         KIN
  • XOR삼각형/이태양 . . . . 20 matches
         #include<stdio.h>
         int xor[MAX][MAX]={0,};
         int computeXor(int num1, int num2)
         int input()
          int n;
          printf("n 값을 입력해주세요:");
          int i,j;
         void print(int n)
          int i,j;
          printf(" ");
          printf(" %d",xor[i][j]);
          printf("\n");
         void main()
          int x = input();
          print(x);
  • 개인키,공개키/김회영,권정욱 . . . . 20 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         const int key = 50;
         const int askii = 256;
         int main(){
          cin >> secret;
          ifstream fin(secret);
          fin.get(text);
          while (!fin.eof()){
          if (int(ch)> 255) ch = ch % askii;
          fin.get(text);
          fin.close();
          int key2;
          cin >> unsecret >> key2;
          ifstream ffin(unsecret);
          ffin.get(text);
          while (!ffin.eof()){
          ffin.get(text);
  • 데블스캠프2012/넷째날/묻지마Csharp/김태진 . . . . 20 matches
         using System;
         using System.Collections.Generic;
         using System.ComponentModel;
         using System.Data;
         using System.Drawing;
         using System.Linq;
         using System.Text;
         using System.Windows.Forms;
         namespace WindowsFormsApplication1
          int t;
          String str;
          InitializeComponent();
          MessageBox.Show((B.Year-A.Year).ToString());
          label2.Text = t.ToString();
          label3.Text = str.Substring((t%10), 10);
          private void pictureBox1_Paint(object sender, PaintEventArgs e)
          label4.Text = e.Location.ToString();
  • 테트리스만들기2006/예제1 . . . . 20 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <Windows.h>
         void main()
          int number = 0;
          printf("%d", number);
         #include <stdio.h>
         #include <stdlib.h>
         #define SCREEN_WIDTH 17
         #define SCREEN_HEIGHT 9
         #define ID_BLOCK 1
         void main()
          int screenArray[SCREEN_HEIGHT][SCREEN_WIDTH] = {0,};
          int x, y;
          for(int i = 0; i < SCREEN_HEIGHT; ++i)
          for (int j = 0; j < SCREEN_WIDTH; ++j)
          printf("■");
          printf(" ");
          printf("\n");
  • 2학기파이선스터디/함수 . . . . 19 matches
         >>> print a
         >>> print a
         == Scoping Rule ==
          * 내장 영역(built-in scope) - 파이썬 언어 자체에서 정의한 내용
         LGB는 Local, Global, Built-in 의 약자로 지역, 전역, 내장 순으로 이름 공간이 적용된다.
          print x
         >>> def incr(a, step=1):
         >>> b = incr(b) # 1 증가
         >>> b = incr(b, 10) # 10 증가
          print height, width
          print a, arg
          print width, height
          print kw
          print a,b,c
         >>> incr = lambda x, inc=1: x+inc
         >>> incr(10)
         >>> incr(10,5)
  • ActiveTemplateLibrary . . . . 19 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.
         === String Conversion ===
         OLE String 과 PSTR 등의 일반 스트링형 간 형변환 할 일이 있을때.
          * [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_atl_string_conversion_macros.asp ATL and MFC String Conversion Macros]
         ex) OLE2CA : '''OLE''' string '''2'''(to) '''C'''onst '''A'''nsi sting
         ATL string의 형변환시에는 {{{~cpp USES_CONVERSION}}} macro를 형변환 전에 호출하여야함.
         {{{~cpp QueryInterface}}} 까지 대신 해주는 smart pointer class
         CComQIPtr<IOleWindow> pOleWin(pUnk);
         //일반적인 COM interface 사용은
         IOleWinodow* pOleWin;
         pUnk->QueryInterface(IOleWindow, IID_IOleWindow, &pOleWin);
         pOleWin->Release();
  • BusSimulation/영동 . . . . 19 matches
         #include<iostream.h>
         #define road 300 //길은 한바퀴 순회하는데 300킬로미터. 즉 5시간 걸린다.
          int bus_loc;//버스의 위치
          void move(int x_min);
          void show(int a);
         void Bus::move(int x_min)
          if(x_min<=30){
          bus_loc=bus_loc+x_min;//분당 1킬로를 가므로 x분 후의 위치는 x킬로 뒤
          x_min=0;//0으로 초기화. 다음 계산에 이상한 값이 들어가지 않도록.
          if(x_min>30){
          x_min=x_min-30;
         void Bus::show(int a)
         void main()
          int time=0;
          int i;
          cin>>time;
  • Chapter II - Real-Time Systems Concepts . . . . 19 matches
         리얼 타임이라는 말은 Timing 의 correctness (정확성)에 의해 결정되는 말이다. 이러한 리얼타임은 대략 두가지 부류를 가지고 있다.
         Food processing, Chemical plants, Engine controls, Antilock braking systems, Fax machines, ETC
         작은 시스템에서는 시스템의 효율성을 위해 보단 간편하고 일반적인 디자인을 사용한다고 한다. 실제로 어플리케이션이 작동하는 부분을 Background System이라고 하며 ISR (interrupt service rountines) 라고 불리우는 인터럽트 부분을 Foreground system이라고 한다.
         태스크에 의해 쓰여지는 빈 공간을 말한다. 이러한 리소스는 I/O , Printer , Memory , KeyBoard 가 될 수 있으며 다른 기타 자원도 있다.
         === Multitasking ===
         RUNNING :: 지금 활동 중인 상태[[BR]]
         WAITING :: 이벤트를 기다리며 휴식 중인 상태[[BR]]
         ISR(interrupted) :: 인터럽트를 수행 중인 상태 [[BR]]
         int Temp; // 언제 바뀔지 모르는 전역 변수
         void swap(int *x,int *y)
         === Round Robin Scheduling ===
         Time Slicing 이라고도 한다. 또한 이 수행 시간을 quantum 이라고 한다.
         === Priority Inversions ===
         === Assigning Task Priorities ===
          * Rate Monotonic Scheduling (RMS)
         === Intertask Communication ===
         === Interrupts ===
         === Interrupt Latency ===
         === Interrupt Response ===
         === Interrupt Recovery ===
  • Data전송 . . . . 19 matches
         == Explaination ==
         ID : <input type="text" name="id"> <br>
         PW : <input type="password" name="pass">
         <input type="submit" value="전송">
         <input type="checkbox" name="hobby" value="sport">sport
         <input type="checkbox" name="hobby" value="music">music
         <input type="checkbox" name="hobby" value="movie">movie
         <input type="checkbox" name="hobby" value="drama">drama
         <input type="radio" name="season" value="spring" checked>spring<br>
         <input type="radio" name="season" value="summer">summer<br>
         <% String id = request.getParameter("id");
          String pass = request.getParameter("pass");
          String list = request.getParameter("name");
          String hobby[] = request.getParameterValues("hobby");
          String hobby_list = " ";
          String season = request.getParameter("season");
          for(int i=0; i < hobby.length; i++) {
  • HelpOnFormatting . . . . 19 matches
         #keywords Formatting,Help,wiki,포매팅,문법
         === TextFormattingExample ===
         #include <stdio.h>
         int main() {
          printf("Hello, world!\n");
         #include <stdio.h>
         int main() {
          printf("Hello, world!\n");
         For more information on the possible markup, see HelpOnEditing.
         phpinfo();
         이와 같은 소스 코드 컬러링은 모니위키의 ProcessorPlugin이라 불리 고급기능중의 한가지 입니다.
         Please see CodeColoringProcessor
         == SixSingleQuotes and backticks ==
         /!\ 모인모인은 {{{^MoinMoin 윗첨자^}}} 라고 하면 윗첨자가 되지만 모니위키는 공백이 없어야 합니다. 공백이 있는 경우에는 {{{^^모니위키는 이렇게^^}}} ^^모니위키는 이렇게^^ 하시면 됩니다.
         [[Navigation(HelpOnEditing)]]
  • HelpOnLists . . . . 19 matches
         See also ListFormatting, HelpOnEditing.
         If you indent text
          then it is indented
          in the output
          levels of indent
         And if you put asterisks at the start of the line
          * which can also be indented
         If you indent text
          like this, then it is indented in the output
          you can have multiple levels of indent
         And if you put asterisks at the start of the line
          * which can also be indented
         [space]'''term WikiName''':: definition WikiName
         [space]another term:: and its definition
          '''term WikiName''':: definition WikiName
          another term:: and its definition
         [[Navigation(HelpOnEditing)]]
  • HowManyFibs?/황재선 . . . . 19 matches
         반복적인 계산을 줄이기 위해서, bottom-up 방식으로 수열을 처음부터 계산하였다. 계산된 이전 값을 사용하여 다음 수열을 빠르게 얻을 수 있었다. Dynamic Programming을 처음으로 해보았다 :)
         import java.math.BigInteger;
          public String readLine() {
          return new Scanner(System.in).useDelimiter("\n").next().trim();
          public int howManyFib(BigInteger start, BigInteger end) {
          int howMany = 0;
          BigInteger zero = new BigInteger("0");
          BigInteger one = new BigInteger("1");
          BigInteger two = new BigInteger("2");
          BigInteger[] fibRoom = new BigInteger[4];
          public void printNumOfFibs(int numOfFibs) {
          System.out.println(numOfFibs);
          public static void main(String[] args) {
          String line = fib.readLine();
          if (line.equals("0 0")) {
          BigInteger start = new BigInteger(line.split(" ")[0]);
          BigInteger end = new BigInteger(line.split(" ")[1]);
          int numOfFibs = fib.howManyFib(start, end);
          fib.printNumOfFibs(numOfFibs);
         import java.math.BigInteger;
  • JavaStudy2003/세번째수업 . . . . 19 matches
         == 오버로딩(Overloading) 및 리팩토링 ==
          * 오버로딩 - C++에서 cin을 cin.get(), cin.get(ch), cin.get(ch,50) 이렇게 쓰는 것처럼 같은 이름의 함수로 비슷한 기능의 역할을 하는 함수들을 만들었다.
          public Circle(int xValue, int yValue, int width, int height) {
          middlePoint = new Point(xValue, yValue);
          public Circle(int xValue, int yValue, int r){
          middlePoint = new Point(xValue, yValue);
          * 또 Point(int xValue, int yValue) -> 같이 전달인자를 바로 넣어주어서 보다 간편하게 자료를 입력받을 수 있게 했다.
  • Lotto/송지원 . . . . 19 matches
         #include <stdio.h>
         #include <stdlib.h>
         int nc6( int n ) { // nC6 함수
          int res = 1;
          int i;
         int dscanf( int *pnum ) {
         void main()
          int n;
          int *nums;
          int dmy[6]; // dummy variable set
          int i, j, k;
          nums = (int *)malloc(sizeof(int) * n);
          printf("%d", nums[dmy[j]]);
          if( j != 5 ) printf(" ");
          else printf("\n");
          printf("\n");
  • MagicSquare/동기 . . . . 19 matches
         #include <iostream>
         using namespace std;
         int number[9][9]={{0,},};
         void main()
          int k;
          int i=0;
          cin >> k;
          int MAX = k-1;
          int x = k/2;
          int y = 0;
          int col=1;
          int final = k*k;
          int count= 1;
          for(count=2;count<=final;count++)
          int newy=y;
          int newx=x;
          for (int p=0;p<=MAX;p++)
          for (int l=0;l<=MAX;l++)
  • PythonLanguage . . . . 19 matches
         '~을 하기에 적합한' 언어는 있어도 '~을 하기 위한' 것이란 없다. -_-; ('~을 하기 위한 API'는 존재할 수 있겠다.) 이녀석도 프로그래밍 언어이므로 프로그래밍을 하기 위한 언어이다. ^^; (PHP도 사람들이 웹프로그래밍으로만 접근해서 그렇지 원래는 shell script programming 도 가능하다. perl 보다 편하게 쓰는 사람들이 많다.)
          * '''ExtremeProgramming 과 잘 어울린다.'''
          * TestFirstProgramming, UnitTest(PyUnit 참고), ["Refactoring"] 등의 방법론을 같이 접목시키면 더욱 큰 효과를 발휘할 수 있다.
          * ["wxPython"] - linux, windows 둘 다 이용가능한 GUI Toolkit.
          * [PythonNetworkProgramming]
          * [GuiTestingWithWxPython]
          * [PythonMultiThreading]
          * [PythonWebProgramming]
          * [Seminar:HotShot]
          * [PythonThreadProgramming]
         이미 다른 언어들을 한번쯤 접해본 사람들은 'QuickPythonBook' 을 추천한다. 예제위주와 잘 짜여진 편집으로 접근하기 쉽다. (두께도 별로 안두껍다!) Reference 스타일의 책으로는 bible 의 성격인 'Learning Python' 과 Library Reference 인 'Python Essential Reference' 이 있다.
         Python 으로 무엇을 할 수 있는지를 알고 싶다면 'Programming Python'를 추천.
         ~~http://python.netian.com/index.html~~
          * ~~http://fallin.lv/PythonRumors~~
          * http://www.gpgstudy.com/gpgiki/python_script - 파이썬의 Extending 과 Embedding 의 응용.
          * http://www.hanb.co.kr/network/networkmain.html - python 으로 search 해보시라. 재미있는 기사들이 많다.
  • StacksOfFlapjacks/조현태 . . . . 19 matches
         #include <stdio.h>
         #include <string.h>
         void print_flap(char*, int);
         const int SIZE_BUFFER=100;
         void main()
          int number_cake=0;
          printf("팬케이크의 크기를 순서대로 입력해주세요. (0은 종료 또는 입력완료)\n>>");
          print_flap(cakes_size, number_cake);
         void print_flap(char* cakes_size, int number_cake)
          printf ("결과 : ");
          for (register int i=number_cake-1; i>=0; --i)
          int maximum=i;
          for (register int j=0; j<=i; ++j)
          printf("%d ",number_cake-maximum);
          printf("%d ",number_cake-i);
          printf ("0 \n");
  • User Stories . . . . 19 matches
         원문 : http://www.extremeprogramming.org/rules/userstories.html
         User stories serve the same purpose as use cases but are not the same. They are used to create time estimates for the release planning meeting. They are also used instead of a large requirements document. User Stories are written by the customers as things that the system needs to do for them. They are similar to usage scenarios, except that they are not limited to describing a user interface. They are in the format of about three sentences of text written by the customer in the customers terminology without techno-syntax.
         One of the biggest misunderstandings with user stories is how they differ from traditional requirements specifications. The biggest
         difference is in the level of detail. User stories should only provide enough detail to make a reasonably low risk estimate of how long the story will take to implement. When the time comes to implement the story developers will go to the customer and receive a detailed description of the requirements face to face.
         Developers estimate how long the stories might take to implement. Each story will get a 1, 2 or 3 week estimate in "ideal development time". This ideal development time is how long it would take to implement the story in code if there were no distractions, no other assignments, and you knew exactly what to do. Longer than 3 weeks means you need to break the story down further. Less than 1 week and you are at too detailed a level, combine some stories. About 80 user stories plus or minus 20 is a perfect number to create a release plan during release planning.
         Another difference between stories and a requirements document is a focus on user needs. You should try to avoid details of specific technology, data base layout, and algorithms. You should try to keep stories focused on user needs and benefits as opposed to specifying GUI layouts.
  • ViImproved/설명서 . . . . 19 matches
         1.VI(Visual interface Editor)
         ▶파일 데이터 파일 응용 프로그램의 데이터(binary)
         ▶Editor(unix system) Line editor 줄 단위 편집(ex ed)
         ▶Vi 저자 vi와 ex는 The University of California, Berkeley California computer Science Division, Department of Electrical Engineering and Computer Science에서 개발
         삽 입(insert)
          ^D 한 문자 back tab. autointent의 왼쪽 마진을 리셋
          행의 선두에 back tab. autointent의 왼쪽 마진을 리셋하지 않음
          O^D 행의 선두에 back tab autointent의 왼쪽 마진을 리셋
         0(영) 현 line의 첫번째 문자로 이동 I 줄의 첫번째에 삽입 :11,22w <file> 줄 11과 12사이 내용 저장
         $ 현 line의 끝으로 이동 ^i tab (삽입모드에서) :w >> <file> 작업중인 화일<file>에 저장
         ^ 현 line의 첫번째 문자로 이동 j 아래로 이동 :w! 작업중인 화일 덮어쓰기
         autoindent(ai) noai 들여 쓰기 기능 자동설정
         autoprint(ap) ap 각 명령 후에 변화를 자동적으로 화면출력
         beautify(bf) nobf 입력하는 동안 모든 제어 문자를 무시 단 tab, newline, formfeed는 제외
         lisp nolisp indentation을 lisp형식으로 삽입
         showmode noshowmode 입력 모드에서 화면의 우측하단에 "input mode"출력
         window=(w=) 편집된 내용이 저장되지 않고 쉘 명령을 사용할 경우 경고 메시지를 출력
         wrapmargin=(wm=) 0 화면상에 보여줄 행의 수를 설정
  • WikiProjectHistory . . . . 19 matches
         || [PaintBox] || 여러명, 각자 적으셔 || - || 종료 ||
         || [WritingOS] || 여러명, 각자 적으셔 || - || 종료 ||
         || ["ProjectZephyrus"] || ["1002"], ["neocoin"], ["상규"], 이영서(["Lupin'sHome"]) , ["신재동"], ["창섭"]|| 2002.5.12~6.10. Java Study. Java Messenger 제작 || 종료 ||
         || ["MineFinder"] || ["1002"] || 2002.2.20~3.1. Win 지뢰찾기의 지뢰 찾아주는 프로그램 제작 || 종료 ||
         || ["NSIS_Start"] || ["1002"] || 2002.2.1~2.9. NSIS Installer에 대한 사용법 작성 ||종료||
         || ["ExtremeProgramming"] || ["1002"] || 2002.1.9~1.31. ExtremeProgramming 에 대한 개념이해 & 정리 ||종료||
         || ["MoreEffectiveC++"] || ["neocoin"] || 2002.1.14~3.8 '''More Effective C++''' 예제 중심 한글화 || 종료 ||
         || ["KDPProject"] || ["1002"], ["neocoin"], ["comein2"], ["JihwanPark"] || Design Pattern Study. Wiki 활성화 첫 프로젝트. 종료후 남은 Pattern 은 개인적 담당. || 종료 ||
         || ["ZIM"] || ["1002"], ["이덕준"] || ZeroPage Instant Messenger Project || 유보 ||
         || ["D3D"] || ["erunc0"], ["woodpage"] || "Advanced 3D Game Programming using DirectX"|| 유보 ||
         || ["Refactoring"] || ["neocoin"], ["1002"] || 책요약 "Refactoring"의 요약 || 유보 ||
         || ["OpenGL_Beginner"] || ["neocoin"] || OpenGL의 기초를 공부하고, 3D로 바꿀만한 꺼리를 찾는다. ||유보||
  • randomwalk/홍선 . . . . 19 matches
         const int Direction = 8; // 바퀴벌레가 움직이는 8방향
         const int imove[8] = {-1,0,1,1,1,0,-1,-1}; // 바퀴벌레가 움직이는 방향의 x 좌표 증감
         const int jmove[8] = {1,1,1,0,-1,-1,-1,0}; // 바퀴벌레가 움직이는 방향의 y 좌표 증감
         int Tile[40][20] = {0,}; // 바퀴벌레가 돌아다니는 타일의 배열화
         int size_x, size_y; // x, y 좌표의 타일 갯수
         int count,t,R_count=0; // 바퀴벌레의 이동횟수, 랜덤 숫자, 바퀴벌레가 모든 타일을 돌아다니도록 하는 카운터
          int Pos_x, Pos_y; // 바퀴벌레의 위치
          void Initiation(); // 타일의 초기화
          void Input(); // 바퀴벌레의 시작위치 입력함수
         void Roach :: Initiation() // 타일의 초기화
          while(!(cin >> size_x) || size_x<3 || size_x > 40)
          while(!(cin >> size_y) || size_y < 3 || size_y >20)
         void Roach :: Input() // 바퀴벌레의 시작위치 입력함수
          int i,j;
          cin >> i;
          cin >> j;
          for(int m=0; m < size_x; m++){
          for(int n=0; n < size_y; n++)
         #include <iostream.h>
         #include <cstdlib>
  • 데블스캠프2004/세미나주제 . . . . 19 matches
          * ObjectOrientedProgramming
          * 개발 방법론( ExtremeProgramming )
          * Linux (또는 UNIX) 기초. 간단한 커맨드들과 쉘 프로그래밍
         || 목 || [STL] || 영동 || 2h || [STL/string]이나 [STL/vector] 등의 1학년도 쓰기 편리한 자료구조 위주로 ||
         || 금 || OOP(ObjectOrientedProgramming) || 수민 석천이형 || ? || OOP ||
          - [STL]의 경우 사용법을 세미나하는것도 좋지만 GenericProgramming 의 개념과 왜 그러한 패러다임이 나왔는지, 그 배경에 대한 설명도 있으면 좋을 것 같습니다 - [임인택]
          - 그 정도 주제까지 간다면, ProgrammingLanguage 관련 전체를 다루는 수업의 연장선에 놓는게 좋지 않을까요? --NeoCoin
          * 월요일 처음 시작 3~4시간을 저 주시면 안될까요? --NeoCoin
          * [NeoCoin/Temp] CrcCard
          정도로 계획을 짜 놓았는데 전부다하기에는 캠프의 첫날이 다 필요합니다. 월요일에 저렇게 예약된게 많으니, 3시간 정도만 해서 Wiki탐험과 ZeroPage역사+OT 정도만 진행할수 있으면 좋겠어요. 흐흐 벌써 [1002]를 섭외(?)해 놓았고, 다른 분들도좀 섭외를 해서 적절한 요일에 만나면 될것 같습니다. :) --NeoCoin
          * RevolutionOS 별로 재미없습니다. 다 아는 내용이고, 당시의 장미빛 미래와 지금이 많이 달라진 상황이라, 슬픈 느낌마져 들었습니다. 시청하는데 의의가 있었죠. :) 제 생각은 ZeroPage 역사를 가지고 스냅샷으로 몇장 정도면 어떨까 합니다. 즉석 역할극도 재미있겠네요. 그런데 [1002] 시험은 언제 끝나요? --NeoCoin
          * 예로서는 좋은데, 직접 보기에는 너무 단조롭더라. 설명 자체도 그리 친절하지 않고, 암튼 그런 좋은 영화 같은거 없나? --NeoCoin
          * 월요일 처음 시작 3~4시간을 저 주시면 안될까요? 시작이 아니면 그리 큰 의미가 없는데요. 재동, 상규 의 그래픽스 시간이 힘든가요? --NeoCoin
          * 지금 Accelerated C++을 보고 있는데 STL에 대해 흥미가 생기네요... 그래서 이거 세미나 계획하고 있습니다. 세미나 방향은 char배열을 대신해서 쓸 수 있는 string이나, 배열 대신 쓸 수 있는 vector식으로 기존의 자료구조보다 편히 쓸 수 있는 자료구조를 설명하려 합니다.-영동
          영웅인가요? :) 제가 기억하는 영웅들은 ZeroPage(페이지 하단 기재) 91,92,93 년도에 경진대회로 학교 PC실을 하나 새로 만든 분들 정도 아닐까요? --NeoCoin
         --NeoCoin
         [STL]을 할때 단순히 자료구조를 사용하는 방법을 같이 보는것도 중요하겠지만 내부구조 (예를 들어, vector는 동적 배열, list은 (doubly?) linked list..)와 같이 쓰이는 함수(sort나 또 뭐가있드라..그 섞는것..; ), 반복자(Iterator)에 대한 개념 등등도 같이 보고 더불어 VC++6에 내장된 STL이 ''표준 STL이 아니라는 것''도 같이 말씀해 주셨으면;; (SeeAlso [http://www.stlport.org/ STLPort]) - [임인택]
         컥 역시 내가 알려줄게 하나도 없구나- 공부를 안하니까 알려줄게 없다. ㅠㅠ[fnwinter]
  • 데블스캠프2006/월요일/함수/문제풀이/김준석 . . . . 19 matches
         #include<iostream>
         #include<time.h>
         using namespace std;
         bool team684(int daewon, int weapon_num, int boat_num){
         void main(){
          int daewon, weapon_num, boat_num;
          cin >> daewon >> boat_num >> weapon_num;
          cout << "대원 한명당" <<(rand()%(daewon/10) +1) * (int)(weapon_num/daewon) << "명죽이고 " << endl;
         #include<iostream>
         #include<time.h>
         using namespace std;
         int dice(){
         void main(){
         #include<iostream>
         #include<time.h>
         using namespace std;
         void main(){
  • 데블스캠프2009/금요일/연습문제/ACM2453/송지원 . . . . 19 matches
         #include <iostream>
         int main(){
          int input, i=2, b=1, count=0, temp = 0;
          scanf("%d", &input);
          if(input == 0) return 0;
          temp = input;
          if(input%2 == 1) break;
          printf("b = %d, i = %d\n", b, i);
          printf("temp : %d\n", temp);
          printf("count : %d\n", count);
          input = ((input >> b+count) + 1);
          input <<= b+1;
          input <<= 1;
          input++;
          printf("output : %d\n", input);
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/김준석,서영주 . . . . 19 matches
          public int MAX_HEIGHT;
          public int MIN_HEIGHT;
          public int floor;
          public Elevator(int max_height, int min_height, int basic_height) {
          MIN_HEIGHT = min_height;
          public int getFloor() {
          public void goTo(int i) {
          if(i <= MAX_HEIGHT && i >= MIN_HEIGHT)
          public String callElevator(int i) {
          public int getMaxHeight() {
          public int getMinHeight() {
          return MIN_HEIGHT;
          int temp = el.getFloor();
          public void printTest(){
          public void getMinHeightTest(){
          assertEquals(el.getMinHeight(), -5);
  • 문자반대출력/조현태 . . . . 19 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
          int where_is_save;
          int max_size_of_stack;
          stack( int data_size )
          bool get_in(char save_data)
         int main()
          ifstream inputFile("source.txt");
          if(!inputFile)
          inputFile.seekg(0,ios_base::end);
          stack file_data(inputFile.tellg());
          inputFile.seekg(0);
          while (inputFile.get(temp))
          file_data.get_in(temp);
          inputFile.close();
         reverse([First|Remain]) -> reverse(Remain) ++ [First].
  • 숫자야구/강희경 . . . . 19 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         void loading();
         int strike, ball, select, count;
         int main()
          loading();
          if(cin >> select )
          int num = rand() % 899 + 100;
          int num_m[3];
          loading();
          int answer;
          if(cin >> answer)
          int ans_m[3];
          for(int i = 0; i<3; i++)
          for(int j = 0; j<3; j++)
         void loading()
          for(int i = 0; i < 50000000; i++)
  • 숫자야구/민강근 . . . . 19 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          int x = rand() % 1000;
          int input,a,b,c,i,j,q,st,ba;
          cin>>input;
          a = input/100;
          b = input/10%10;
          c = input%10;
          cin>>input;
          a = input/100;
          b = input/10%10;
          c = input%10;
          }while(input!=x);
  • 조동영 . . . . 19 matches
          === Windows API ===
         #include <stdio.h>
         main ()
          int num,i,j,k;
          printf("숫자를 입력하시오 :");
          printf(" ");
          printf("*");
          printf("\n");
         #include <stdio.h>
         main ()
          int num,i,j,k;
          printf("패턴을 입력하시오 : ");
          printf("변의 길이를 입력하시오 : ");
          printf(" ");
          printf("%c", pattern);
          printf("\n");
          printf(" ");
          printf("%c", pattern);
          printf("\n");
  • 캠이랑놀자/051228 . . . . 19 matches
         >>> print x
         >>> print x
         range, for-in
         >>> for i in range(5):
         ... print i
         for-in, list
         >>> for i in s:
         ... print i
          print x
          print x+10
         == Python Image Processing ==
         Using [PIL]
         === whitening ===
         for x in range(256):
          for y in range(256):
         === darkening ===
         for x in range(256):
          for y in range(256):
         === overlap (blending) ===
  • 후각발달특별세미나 . . . . 19 matches
         Upload:0503_RefactoringSeminar.hwp - 발표 자료.
         Upload:0503_RefactoringSeminarSrc.zip - 예제 파일들.
         [Refactoring]
         [Refactoring/BadSmellsInCode]
         #include <iostream>
         using namespace std;
         #define ARRSIZE 1024
         #define FUNMAX 10;
         int funcCount = 0;
         int main()
          int f[ARRSIZE];
          cout << "addr of f in " << funcCount << "th call : " << f << endl;
          cin.get();
          int b[ARRSIZE];
          cout << "addr of b in " << funcCount << "th call : " << b << endl;
          cin.get();
  • ATmega163 . . . . 18 matches
          * 130 Powerful Instruction - RISC MPU
          * Master / Slave SPI Serial Interface
          * Byte - oriented 2-wire Serial Interface
         == 웨비 사운드에서 구한 ATmega 163 L 보드에 관한 Testing ==
          * 용산 가서 9 pin 짜리 Serial Port 잭과 5.5volt 어덥터에 끼울 것을 준비한다.
          * 9 pin 에서 TX는 2번 RX 3번 접지는 5번에 연결 시킨다.
          * 이후 새롬 데이타맨에서 모뎀에 의한 연결로 SETTING하고 baud rate를 19300(ㅠㅠ) 로 설정 후 reset 버튼을 누르면 [[BR]]
         === AVR GCC Programming ===
          c:\avrgcc>에서 install을 실행 시킨 후 바탕화면의 avr-gcc 배치파일을 이용해 도스창을 열어서 쓴다.
         include $(AVR)/include/make1
         ########### change this lines according to your project ##################
          HEADER = ../Include
         #INCDIR means .h file search path
          INCDIR = . -I$(HEADER)
         #put the name of the target mcu here (at90s8515, at90s8535, attiny22, atmega603 etc.)
         #additional libraries and object files to link
         #additional includes to compile
          INC =
         #INCDIR means .h file search path
          INCDIR = . -I$(HEADER)
  • AntOnAChessboard/문보창 . . . . 18 matches
         || 2006-02-01 Accepted 0.000 Minimum ||
         #include <iostream>
         using namespace std;
         #include <cmath>
         static int t;
         inline void show(const int i, const int j)
         void show_typeA(const int x, const int y)
         void show_typeB(const int y, const int x)
         void show_typeS(const int x)
          int x = floor(sqrt(t));
         int main()
          while (cin >> t && t != 0)
  • BasicJAVA2005/실습1/송수생 . . . . 18 matches
          public static void main(String[] args) {
          int[] arry = new int[3];
          int[] temp = new int[3];
          int strike=0;
          int ball=0;
          for(int i=0; i<3; i++)
          arry[i]=number.nextInt(9);
          System.out.println("입력:");
          Scanner scannumber = new Scanner(System.in);
          for(int i =0; i<3; i++)
          temp[i]=scannumber.nextInt();
          for(int i=0; i<3; i++)
          else for(int j=0; j<3; j++)
          System.out.print("Strike=");
          System.out.print(strike);
          System.out.print("Ball=");
          System.out.println(ball);
  • C++3DGame . . . . 18 matches
         struct Point3D
          Point3D center; // the center of CPU. in world coordinates
          Point3D coord[8]; // the 8 corners of the CPU box relatives to the center point
          Point3D center;
          Point3D coord[8];
          Point3D GetWorldCoord (int index)
          Point3D result;
          result.x = center.x + coord[index].x;
          result.y = center.y + coord[index].y;
          result.z = center.z + coord[index].z;
         CPU::GetWorldCoord(int index)는 그 세계의 원점에 대해 CPU 여덟개 점 중의 하나를 반환한다. 단지 coord[index]를 반환한다면, CPU중앙에 해당하는 CPU점을 반환하기 때문에 나중에 CPU를 그랠 때 원하는 대로 그릴 수 없게 된다. 중앙을 움직이면서도 CPU점 여덟개를 모두 옮기는 효과를 낼 수도 있다.
  • DebuggingSeminar_2005 . . . . 18 matches
          || [DebuggingSeminar_2005/UndName] || UndName 사용법 ||
          || [DebuggingSeminar_2005/DebugCRT] || Debug CRT 라이브러리 활성화 예제. extracted from Debugging Application ||
          || [DebuggingSeminar_2005/AutoExp.dat] || VC IDE의 Watch 윈도우에 사용자 데이터형의 표현형을 추가하는 파일 ||
          || [http://www.sysinternals.com/ SysInternal] || [http://www.sysinternals.com/Utilities/ProcessExplorer.html Process Explorer Page] ||
          || [http://www.dependencywalker.com/ DependencyWalker] || Dependency Walker (Included at VS6) ||
          || [http://www.compuware.com/products/devpartner/softice.htm SoftIce for DevPartner] || 데브파트너랑 연동하여 쓰는 SoftIce, [http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/SoftICE.shtml Freeware Download] ||
          || [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/rebase.asp ReBase MSDN] || Rebase is a command-line tool that you can use to specify the base addresses for the DLLs that your application uses ||
          || [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_viewing_decorated_names.asp undname.exe] || C++ Name Undecorator, Map file 분석툴 ||
          || [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/_core_c_run2dtime_library_debugging_support.asp Debug CRT] || VC++4 에서 지원하기 시작한 C런타임 라이브러리 ||
         [Debugging] [Debugging/Seminar_2005] [Seminar] [DebuggingApplication]
  • EcologicalBinPacking/임인택 . . . . 18 matches
         indexes = '123 132 213 231 312 321'.split()
         def RecycleBin():
          data = raw_input().split()
          for str in indexes : # seq in indexes
          num=[int(str[0])-1, int(str[1])+2, int(str[2])+5]
          for i in range(0,9):
          sum+=int(data[i])
          min=1000
          for i in range(len(results)):
          if min>results[i]:
          min=results[i]
          print chars[idx],results[idx]
         RecycleBin()
  • EffectiveSTL/Iterator . . . . 18 matches
          * container<T>::iterator, reverse_iterator : T*
          * container<T>::const_iterator, const_reverse_iterator : const T*
         = Item27. Use distance and advance to convert a container's const_iterators to iterators. =
          * 다음엔 C++의 casting에 관한 무슨 함축적인 의미가 담긴 말을 하고 있는데.. 아시는분은 좀 가르쳐 주세요. 이런생각을 가지고 있는것에 대해 부끄러워 하라네요.
         Iter i( const_cast<Iter>(ci) ) // 역시 안된다. vector와 string에서는 될지도 모르지만... 별루 추천하지는 않는것 같다.
          * string, vector가 될수도 있는 이유
          * string::iterator는 char*의 typedef, string::const_iterator는 const char*의 typedef이다. 따라서 const_cast<>가 통한다. (역시 클래스가 아니다.)
         Iter i(d.begin()); // d는 어떤 컨테이너의 인스턴스다.
         vector<int> v;
         typedef vector<int>::reverse_iterator VIRI;
         VIRI ri = find(v.rbegin(), v.rend(), 3); // 거꾸로 순회하면서 3을 찾는다.
         typedef vector<int>::iterator VIIT;
         || rend() || || || ri || || rbegin() || ||
         || || begin() || || || i || || end() ||
          * 만약에 ri가 가르키는 위치에다 새로운 원소를 삽입하고 싶다고 하자. 하지만 insert 메소드는 reverse_iterator는 인자로 받지 않는다. iterator형만 인자로 받는다. 즉 직접은 못한다는 것이다. 지울때도 이와 같은 문제가 발생한다. 그래서 base()를 쓰는 것이다.
         = Item29. Consider istreambuf_iterators for character-by-characer input. =
  • FromCopyAndPasteToDotNET . . . . 18 matches
          * [http://zeropage.org/~lsk8248/wiki/Seminar/FromCopyAndPasteToDotNET/FromCopyAndPasteToDotNET.doc 세미나 자료]
          * [http://zeropage.org/~lsk8248/wiki/Seminar/FromCopyAndPasteToDotNET/DLLExample.zip DLLExample]
          * [http://zeropage.org/~lsk8248/wiki/Seminar/FromCopyAndPasteToDotNET/UsingDLL.zip UsingDLL]
          * [http://zeropage.org/~lsk8248/wiki/Seminar/FromCopyAndPasteToDotNET/ATLCOMExample.zip ATLCOMExample]
          * [http://zeropage.org/~lsk8248/wiki/Seminar/FromCopyAndPasteToDotNET/UsingCOM.zip UsingCOM]
          * [http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/dataexchange/dynamicdataexchange/aboutdynamicdataexchange.asp About Dynamic Data Exchange]
          * [http://msdn.microsoft.com/workshop/components/activex/intro.asp Introduction to ActiveX Controls]
          * [http://msdn.microsoft.com/library/en-us/cossdk/htm/betaintr_6d5r.asp Introducing COM+]
          * [http://msdn.microsoft.com/library/en-us/cpguide/html/cpovrintroductiontonetframeworksdk.asp Overview of the .NET Framework]
          * 듣고 싶은데 아쉽군 --["neocoin"]
  • Hessian . . . . 18 matches
         Resin 을 이용하는 경우라면 Hessian 이용해서 간단하게 RPC 를 구현할 수 있다.
         hessian simple tutorial (홈페이지의 Servlet 예제) - 이는 Resin Servlet Container 가 동작해야 함.
         === interface 의 정의 ===
         RPC 를 위해서는 서버-클라이언트의 대화를 위한 interface 의 정의가 필요하다. 간단하게 정의해본다.
         public interface Basic {
          public String hello();
          public int returnInt();
         이를 컴파일 하기 위해서는 hessian-2.1.3.jar 화일과 jsdk23.jar, resin.jar 화일이 classpath 에 맞춰줘야 한다. (이는 resin 의 lib 폴더에 있다. hessian jar 화일은 [http://caucho.com/hessian/download/hessian-2.1.3.jar hessian] 를 다운받는다)
          public String hello () {
          public int returnInt() {
         Java 와 Python 둘 다 구현이 가능하다. 여기서는 간단하게 Python Interpreter 를 이용해보자.
         >>> proxy.returnInt()
         Java 의 경우는 다음과 같다. 위에서 정의한 interface 인 Basic 이 있어야 한다.
          public static void main(String[] args) throws MalformedURLException {
          String url = "http://localhost:8080/servlet/RpcTest";
          System.out.println("Hello ():" + basic.hello());
          System.out.println("returnInt : " + basic.returnInt());
  • Java/ReflectionForInnerClass . . . . 18 matches
         [http://groups.google.co.kr/groups?hl=ko&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&threadm=3A1C1C6E.37E63FFD%40cwcom.net&rnum=4&prev=/groups%3Fq%3Djava%2Breflection%2Binnerclass%26hl%3Dko%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26newwindow%3D1%26selm%3D3A1C1C6E.37E63FFD%2540cwcom.net%26rnum%3D4 구글에서 찾은 답변]
         innerclass 에서는 기본적으로 Inner Class 를 포함하고 있는 상위클래스의 레퍼런스가 생성자로 들어간다. 마치 C++ 에서 메소드들에 대해 this 가 기본 파라메터로 넘어가는 것과 같은 이치랄까.
         public class InnerConstructorTest {
          public static void main(String[] args) {
          Object outer = outerClass.newInstance();
          Class innerClass = Class.forName("Outer$Inner");
          Constructor innerCons =
          innerClass.getDeclaredConstructor(consParamClasses);
          Object inner = innerCons.newInstance(consParams);
          System.out.println(inner.toString());
          System.out.println("Exception: " + e.getMessage());
          int y = 3;
          class Inner {
          public String toString() {
  • MagicSquare/인수 . . . . 18 matches
          int _size;
          int _x, _y;
          int _board[][];
          public MagicSquare(int size) {
          _board = new int[_size][_size];
          for(int i = 0 ; i < _size ; ++i)
          for(int j = 0 ; j < _size ; ++j)
          int oldX = _x;
          int oldY = _y;
          int setValidCoord(int c) {
          for(int i = 1 ; i <= _size*_size ; ++i) {
          for(int i = 0 ; i < _size ; ++i) {
          for(int j = 0 ; j < _size ; ++j)
          System.out.print( _board[i][j] + " ");
          System.out.println(" ");
          public static void main(String args[]) {
  • MineSweeper/김민경 . . . . 18 matches
         Describe MineSweeper/김민경 here.
         #MineSweeper
         #MineSweeper
         def in_put():
          size1,size2=input('사이즈를 입력하세요(n1,n2 형식으로 입력하세요)')
          for i in range(size1):
          check.append([0 for j in range(size2)])
          for i in range(size1):
          temp=raw_input()
          for x in range(size1):
          for y in range(size2):
          for i in range(8):
          for i in range(size1):
          for j in range(size2):
          print check[i][j],
          print
         if __name__=="__main__":
          in_put()
  • PairProgrammingForGroupStudy . . . . 18 matches
         PairProgramming이란 ExtremeProgramming이라고 하는 새로운 소프트웨어 개발 방법론의 한가지 기법으로, 두명이 한 컴퓨터를 이용해서 같이 프로그래밍을 하는 것을 말합니다.
         저는 여기서 PairProgramming의 교육적 효과와 이를 그룹 스터디나 프로젝트 팀 교육에 응용하는 방법을 간략히 서술하겠습니다.
         이 방식을 소프트웨어 개발 업체에서 적용한 것은 Apprenticeship in a Software Studio라는 문서에 잘 나와 있습니다. http://www.rolemodelsoft.com/papers/ApprenticeshipInASoftwareStudio.htm (꼭 읽어보기를 권합니다. 설사 프로그래밍과는 관련없는 사람일지라도)
         여기서는 단기간에 이런 PairProgramming을 통해서 팀 내에 지식이 확산되게 하거나, 그룹 스터디에 이용할 수 있는 방법을 보도록 하죠.
         이렇게 되면 E와 F는 전문가인 A와 B와 직접 PairProgramming을 하고 나머지 네명은 자기들끼리 PairProgramming을 하게 되죠. 처음 pairing에서 C와 G, D와 H는 태스크를 완수해지 못해도 괜찮습니다 -- 대신 문제 영역을 탐색하는 동안 어느 정도의 학습은 발생하거든요.
         이 상태에서는 A와 B는 ExpertRating이 0이고, E와 F는 1이 됩니다. 이 개념은 Erdos라는 수학자가 만든 것인데, Expert 자신은 0이 되고, 그 사람과 한번이라도 pairing을 했으면 1이 됩니다. 그리고, expert와 pairing한 사람과 pairing을 하면 2가 됩니다. expert는 사람들의 ExpertRating을 낮추는 식으로 짝짓기 스케쥴링을 맞춰갑니다. 물론 처음에는 C,D,G,H는 아무 점수도 없죠. 이럴 때는 "Infinite"이라고 합니다.
         이렇게 pairing을 할 수 있겠죠. 역시 아까와 동일한 태스크를 수행합니다. 대신 좀전 pairing에서 얻은 지식을 기반으로 좀 더 나은 프로그램을 새로 작성하는 겁니다. 각자 이전 경험이 다르므로(다른 사람과 짝짓기를 했으므로) 둘이 협력하면 서로 가르쳐 주고 배우면서 시너지 효과를 낼 수도 있습니다.
         여기서는 각각의 ExpertRating은, C=2, D=2, E=1, F=1, G=1, H=1이 되겠죠. (A,B는 시원source이므로 여전히 0)
         너무나 좋은 글을 읽은 것 같습니다. 선배님이 써주신 PairProgramming에 관한 글을 순식간에 읽었습니다 ^^ 이런 방법이 스터디의 방법으로 자리잡는다면 초보자의 실력향상에 엄청난 도움이 되겠군요
  • PragmaticVersionControlWithCVS/WhatIsVersionControl . . . . 18 matches
         || [PragmaticVersionControlWithCVS] || [PragmaticVersionControlWithCVS/Getting Started] ||
         == Where Do Versions Come In? ==
         개발중심축(mainline) : 일반적인 개발환경하에서 개발자들은 동일한 코드 기반을 가지고 작업을 한다. 체크아웃, 개정판을 만들어서, 변경사항을 체크인하면 모든 개발자가 서로의 작업을 공유하게 되는 것이다. 이러한 개발흐름을 일컬어 개발중심축이라 함.
         mainline : 1.14 -> 1.15
         == Merging ==
         브랜치를 이용하면 한명의 개발자가 한개의 컴퓨터를 가지고도 릴리즈 버전의 버그 수정작업과 mainline상의 프로그램의 개발을 동시에 하는 것이 가능하다.
         이 경우 브랜치에서 수정된 사항이 mainline상에도 반영되어야할 필요가 있을때 이를 병합의 과정을 통해서 하는 것이 가능하다.
         == Locking Options ==
         '''Original'''
          public String getName() {
          public int getSize() {
          public String getName() {
          public int getSize() {
          public String getName() {
          public int getSize() {
  • QuestionsAboutMultiProcessAndThread . . . . 18 matches
          1. Single CPU System에서 프로세서 A 가 Run 중일 때, I/O 작업을 해야 돼서 다른 프로세서 B로 스위칭을 하는 상황이다.
          * 만약 그것이 아니라면, I/O 작업을 CPU가 담당하지 않는 것인가? CPU 내부 ALU와 I/O 작업 회로가 따로 있는 Independent 상황이기 때문에 그런 것인가?
          2. Single CPU & Single-processor & Multi-thread 환경이다.
          * 그렇다면 개념적으로 Single CPU에서 Processor Switching과 같은 것인가?
          * A) processor라고 쓰신 것이 아마도 process를 의미하는 것 같군요? scheduling 기법이나, time slice 정책, preemption 여부 등은 아키텍처와 운영체제 커널 구현 등 시스템에 따라 서로 다르게 최적화되어 설계합니다. thread 등의 개념도 운영체제와 개발 언어 런타임 등 플랫폼에 따라 다를 수 있습니다. 일반적으로 process의 context switching은 PCB 등 복잡한 context의 전환을 다루므로 단순한 thread 스케줄링보다 좀더 복잡할 수는 있으나 반드시 그런 것은 아닙니다. - [변형진]
          * Single Processor & Single Thread
          * Single Processor & Multi Thread
          * Multi Processor & Single Thread
          * Single CPU 환경이라면
          * 어느 바쁜 음식점(machine)입니다. 두 명의 요리사(processor)가 있는데, 주문이 밀려서 5개의 요리(process)를 동시에 하고 있습니다. 그 중 어떤 한 요리는 소스를 끓이면서(thread) 동시에 양념도 다지고(thread), 재료들을 오븐에 굽는데(thread) 요리를 빠르게 완성하기 위해 이 모든 것을 동시에 합니다. 한 명의 요리사는 특정시점에 단 한 가지 행위(instruction)만 할 수 있으므로, 양념을 다지다가 (context switching) 소스가 잘 끓도록 저어주기도 하고 (context switching) 다시 양념을 다지다가 (context switching) 같이 하던 다른 요리를 확인하다가, 오븐에 타이머가 울리면(interrupt) 구워진 재료를 꺼내어 요리합니다. 물론 두 명의 요리사는 같은 시점에 각자가 물리적으로 서로 다른 행위를 할 수 있으며, 하나의 요리를 두 요리사가 나눠서(parallel program) 동시에 할 수도 있습니다. - [변형진]
  • ReverseAndAdd/남상협 . . . . 18 matches
         class Palindrome:
          for i in range(1,100):
          for i in range(1,self.count+1):
          for i in range(0,101):
          print numbers
          print self.reverseNumber
          print "------------"
         class testPalindrome(unittest.TestCase):
          self.exPalindrome=Palindrome()
          self.assertEquals(951,self.exPalindrome.Reverse(159))
          self.assertEquals(265,self.exPalindrome.Reverse(562))
          self.assertEquals(57,self.exPalindrome.Reverse(750))
          self.assertEquals((4,9339),self.exPalindrome.run(195))
          self.assertEquals((5,45254),self.exPalindrome.run(265))
          self.assertEquals((3,6666),self.exPalindrome.run(750))
         if __name__=='__main__':
          unittest.main()
  • SeparatingUserInterfaceCode . . . . 18 matches
         전에 TDD 기사 썼을때 읽으면서 굉장히 감명깊었던 구절. 디자인에서 로직/UI 분리가 어떻게 이루어져야 하는가를 아주 간단하면서도 명료하게 말해준다. 개인적으론 RefactoringBook 을 읽었을때보다 이 글을 본 것이 더 충격적이였던것으로 기억된다. (특히, RefactoringBook 을 읽었을때보다 상대적으로 디자인에 대한 지식이 더 있었을때임에도 충격이 더 컸음에.) :
         When separating the presentation from the domain, make sure that no part of the domain code makes any reference to the presentation code. So if you write an application with a WIMP (windows, icons, mouse, and pointer) GUI, you should be able to write a command line interface that does everything that you can do through the WIMP interface -- without copying any code from the WIMP into the command line.
         도메인모델로부터 프레젠테이션 부분이 분리되었을때, 도메인 코드의 어떠한 부분도 presentattion 코드와 관련이 없도록 해야 한다. 그리하여 만일 WIMP GUI 어플리케이션을 작성했을때 당신은 WIMP 인터페이스를 통해 할 수 있는 모든 것들을 command line interface 로 작성할 수 있어야 한다. WIMP 코드로부터 어떠한 코드도 복사하지 않고.
         이는 UI 부분에만 적용되지 않는다. 일종의 InformationHiding 의 개념으로 확장할 수 있다. 예를 들면 다음과 같이 응용할 수 있지 않을까.
         도메인모델로부터 퍼시스턴스 부분이 분리되었을때, 도메인 코드의 어떠한 부분도 퍼시스턴트 레이어 코드와 관련이 없도록 해야 한다. 만일 MySQL Repository을 작성했을때 당신은 MySQL 인터페이스를 통해 할 수 있는 모든 것들을 Flat File Repository interface 로 작성할 수 있어야 한다. MySQL 코드로부터 어떠한 코드도 복사하지 않고.
  • SmallTalk/강좌FromHitel/강의4 . . . . 18 matches
         nosmokmoin 으로 변경시에 이 페이지가 에러가 발생하는 대표적인 예이다. 이 외에도
         아직까지 자료실에서 Dolphin Smalltalk를 내리받아 설치하지 않으신 분이라
         Smalltalk 환경을 끝낼 때 File > Exit Dolphin 명령을 내리는 대신 알림판
         객체 탐색기(object inspector)는 명령을 실행할 떄 나 글
         위의 명령을 글쇠로 실행해 보면 "Inspecting a SortedCollection"
         서 'Dolphin'이라는 낱말이 들어간 것을 지금 쓰고 있는 본(image)에서 죄다
          SmalltalkSystem current browseContainingSource: 'Dolphin'
         생각보다 많은 길수에 "Dolphin"이라는 글귀가 포함되어있습니다. 이 길수
         있는 창은 현재 Dolphin Smalltalk 환경에 설치되어있는 꾸러미들을 늘어놓
         (class definition)을, 길수가 돋이되어 있다면 바탕글 등을 보여줍니다.
         창맵씨(View Composer)는 사용자 접속 환경(User Interface)를 만드는 도구
         여기서 여러분은 창(window)이나 대화 상자(Dialog box)를 만들어서 프로그
         다. "발자취 창"(walkback window)은 Smalltalk 프로그램이 실행되는 상태에
         위 명령을 실행하자마자 "SmallInteger does not understand #hello"라는 제
         목이 붙은 발자취 창이 표시될 것입니다. 이 내용인즉슨 "SmallInteger는
          SmallInteger(Object)>>doesNotUnderstand:
          UndefinedObject>>{unbound}doIt
         Dolphin의 경우 꾸러미 탐색기나 창맵씨, 자원 탐색기가 있으며, Smalltalk
         Windows와 같이 그림 위주의 사용자 환경(GUI)에서는 마우스가 필수적인 입
         쪽으로 이동하고, 은 왼쪽으로 이동합니다. 이는 Windows
  • VimSettingForPython . . . . 18 matches
         Python Programming 을 위한 VIM Setting.
         http://bioinfo.sarang.net/wiki/VimRc 추천.
         Seminar:VimEditor 참조.
         Python extension 을 설치하고 난뒤, BicycleRepairMan 을 install 한다. 그리고 BRM 의 압축화일에 ide-integration/bike.vim 을 VIM 설치 디렉토리에 적절히 복사해준다.
         === 1002's Setting ===
         "source $VIMRUNTIME/mswin.vim
         "behave mswin
          silent execute '!C:Vimvim62diff -a ' . opt . v:fname_in . ' ' . v:fname_new . ' > ' . v:fname_out
         set ai showmatch hidden incsearch ignorecase smartcase smartindent hlsearch
         set fileencoding=korea
         set foldminlines=3
         set lines=40
         filetype plugin on
         filetype indent on
  • [Lovely]boy^_^/Arcanoid . . . . 18 matches
          * 지난번엔 x로 1, y로 1 이렇게 움직였지만.. 이번에 대각선 길이 루트2에다가 cos22.5, sin22.5 이런걸 해버리면.. 캐스팅 될때 1,0 이 되면서 수직, 또는 수평으로만 움직일 수가 있다.
         // 소스 OnInitialUpdate() 맞나? 어쨌든 초기화 하는거에서
          나는 좀더 욕심을 부려서, pDC 까지 보관하여 {{{~cpp GetDC}}}로 얻지도 않고 그릴려고 시도 했는데, 해봐 결과를 알수 있을꺼야. pDC는 끊임없이 변화를 시도하는 녀석이라 상태 유지가 되지 않더군. 바로 전까지 가진 pDC는 옛날 녀석이라 이거지, 결론으로 네가 의도하는 대로 상태 저장이 가능한 GDI Object를 그렇게 쓰는거 부담없다. --["neocoin"]
         여담으로, 전에 MFCStudy 로 할때 각도 계산까지 넣었다면 좋을뻔 했지? ^^;; 하지만 아마 그때 넣었으면 더 시간이 걸렸을꺼 같아서;; 어이 인수 과거 소스를 나에게 넘겨 쿨럭. 농담이고, 아 진작 소스 겉어 둘껄 ^^;; --["neocoin"]
          진짜 소스 겉어서 링크 해둘껄 다들 옛날 소스 보면 정말 재미있을텐데 --["neocoin"]
          * I change a background picture from a Jang na ra picture to a blue sky picture. but my calculation of coordinate mistake cuts tree picture.
          * When a ball collides with a moving bar, its angle changes, but it's crude. Maybe it is hard that maintains a speed of a ball.
          * Now sources become very dirty, because I add a new game skill. I always try to eliminate a duplication, and my source has few duplication. but method's length is so long, and responsiblity of classes is not divided appropriately. All collision routine is focusing on CArcaBall class.
          * I don't want pointers in container, so I had to make a copy constructor, substitute operator.--;
          * I change a design of a arcanoid. - previous version is distribute, but this version is that god class(CArcanoidDoc)' admins a total routine. in my opinion, it's more far from OOP.--;
  • django . . . . 18 matches
          * mysql 은 사용자를 생성하고 settings.py 파일을 설정한다. 그리고 pysqlite와 다른 점은 DB 이름을 넣고 나서 mysql 들어가서 따로 DB를 만들어 줘야 한다. 그리고 사용자도 만들어 줘야 한다.
          * syncdb 해도 admin 에서 추가한 것이 보이지 않을때는 runserver 한거를 중지 시키고 다시 서버를 시작 하면 보인다.
          * [http://linux.softpedia.com/progDownload/PySQLite-Download-6511.html pysqlite다운로드]
          * [http://www.initd.org/tracker/pysqlite/wiki/PysqlitePackages 각Linux별설치]
          SetEnv DJANGO_SETTINGS_MODULE <프로젝트 이름>.settings
         [예시] /path/to/project/mysite 에 settings.py 파일이 있는 경우
          SetEnv DJANGO_SETTINGS_MODULE mysite.settings
         == For Linux ==
         == For Windows ==
         http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/
         = mod_python으로 동작시 admin 화면 깨짐 해결 =
          * settings.py 아래 부분처럼 수정
         ADMIN_MEDIA_PREFIX = '/'
          * 그리고 C:\Python24\Lib\site-packages\Django-0.95-py2.4.egg\django\contrib\admin\media 에 있는 css 폴더를 docuemntRoot(www 이나 htdoc) 폴더에 복사하면 해결됨.
          * [http://www2.jeffcroft.com/2006/feb/25/django-templates-the-power-of-inheritance/] : Template HTML 파일 사용법
          * [django/ModifyingObject]
          * [django/RetrievingObject]
  • lostship/MinGW . . . . 18 matches
          * MinGW 인스톨 후 MSYS 를 인스톨 한다. [http://www.mingw.org/index.shtml MinGW & MSYS]
          * 환경변수 path 에 /MinGW/bin 을 추가 한다.
          || ex || /MinGW/STLport-4.5.3 ||
          * /STLport-4.5.3/doc/index.html 에서 컨피그 셋팅을 보고 필요하면 수정한다.
          * /mingw/STLport-4.5.3/src 로 이동한다.
          * make -f gcc-mingw32.mak clean install 를 실행한다. 그러면 /STLport-4.5.3/lib 에 생성된다.
          || {{{~cpp g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32}}} ||
          || {{{~cpp g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32 -mwindows}}} ||
  • neocoin/Log . . . . 18 matches
          * 작성자 : 류상민(99,["neocoin"])
          || [http://www.ocu.or.kr/ Unix 프로그래밍(U)]|| [http://cvlab.cau.ac.kr/ Object Programming(OP)]|| [http://cvlab.cau.ac.kr/ 정보 표준화(IS)] ||.||
          * IS - 11/4 Working Draft 작성 ( text + CD or Floppy)
          * OP- 9월 24일 Object Programming C++ 시험
          * Object Programming 모자이크 숙제 (숙제가 취소 되었음)
          * Win32 API
          * OP - Object Programming Mosaic 프로그램 숙제
          * ["neocoin/SnakeBite"] 진행
          * Eclipse MySQL plugin 작성
          * Grid Computing에 관한 리포트
          * SWEBOK (Software Engineering Body of Knowledge) : SE Reference
          * 프로그래밍 언어론 4th 한서 ( Concepts of Programming Language ) : PL 수업
          * ["OpenGL_Beginner"] : 3월중에 관련 내용을 딱 두번 보았지만, 문서화 시킬만한 꺼리는 아니다. 유보 할것이고, 포기하는 만큼 학교 공부를 하자.
          * ["OpenGL_Beginner"] : 진행하다가, MEC++로 집중, 자세한 로그는 해당 페이지 기록
          - JXTA는 과거 JXTA를 기고했던 마소 필자가 강의자(숭실대 대학원) 였는데, 거기에서 크게 발전한 것은 없다. JXTA의 구현 방향이 IPv6와 겹치는 부분이 많고, P2P의 서비스의 표준을 만들어 나가는 것에 많은 난관이 있다는 것이 느껴졌음. JMF는 강의자가 JMF의 초심자에 가까웠다. JMF가 계획 시행 초기의 당초 원대한 목표에 따르지 못했고, 미래 지향적인 프레임웍만을 남기고 현재 미미하다는 것에 중점, JavaTV가 일부를 차용하고, 그 일부가 무엇인지만을 알게되었음. JavaTV가 정수였다. 이 강연이 없었다면, 이날 하루를 후회했을 것이다. 현재 HDTV에서 JavaTV가 구현되었고, 올 7,8월 즈음에 skylife로 서비스 될 것으로 예상한다. 그리고 가장 궁금했던 "HDTV 상에서의 uplink는 어떻게 해결하는가"의 대답을 들어서 기뻤다.
          * ["Refactoring"] : Reference 부분 1차 초안 완료
         ["neocoin"]
  • 가위바위보/재니 . . . . 18 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin("gawi.txt");
          int choose[2], result[3] = {0,};
          fin.getline(name[0],7);
          fin.getline(name[1],7);
          for (int i = 0 ; i < 100 ; i++)
          choose[0] = (int)fin.get();
          fin.get();
          choose[1] = (int)fin.get();
          fin.get();
  • 데블스캠프2005/주제 . . . . 18 matches
         || 금 || ? || [신재동], [임인택] , 이정직[fnwinter] || 실습까지 3시간 예상 , 윈도우즈 프로그래밍 || 네트워크 이용한 게임 정도 ||
         [Refactoring], [TestDrivenDevelopment], [STL], [ObjectOrientedProgramming],
         C//C++의 차이, JAVA 맛보기, 네트워크, 자료구조, Linux, C(주입식교육), 알고리즘,
         [http://gvr.sourceforge.net/ Guido van Robot], PairProgramming 시연(?),
         Recursion 과 Iteration (IndexCard 등을 이용해서.. ToyProblems 따위의 문제 풀어보기,
         PairProgramming 하면 더 좋을듯)
         In my life, I have seen many programming courses that were essentially like the usual kind of driving lessons, in which one is taught how to handle a car instead of how to use a car to reach one's destination.
         My point is that a program is never a goal in itself; the purpose of a program is to evoke computations and the purpose of the computations is to establish a desired effect.
         -Edsger W. Dijkstra, 'Notes on structured programming'
         - Guido van Robot 보니까 옛날 LOGO 프로그램 생각나네.. 비슷한거 같은데 아닌가? - fnwinter
         [DevelopmentinWindows] 여기에 메세지 루프에 관한 설명하고 툴 디버깅에 대한 얘기 하면 되겠다. 감기가 걸려서 오늘 갈 수 있을 란지...
  • 몸짱프로젝트/BubbleSort . . . . 18 matches
         #include <stdio.h>
         int * sort(int aArr[]);
         void swap(int & aVal1, int & aVal2);
         const int SIZE = 10;
         void main()
          int arr[SIZE] = {1,13,11, 22,6,4,72,11,9,10};
          int * p_arr = sort(arr);
          for ( int i = 0 ; i < SIZE ; i++, p_arr++)
          printf("%d\n", *p_arr);
         int * sort(int aArr[])
          for ( int i = 0 ; i < SIZE ; i++)
          for ( int j = 0 ; j < SIZE ; j++)
         void swap(int & aVal1, int & aVal2)
          int temp = aVal1;
  • 비밀키/조재화 . . . . 18 matches
         #include <fstream>
         #include <string>
         #include <iostream>
         using namespace std;
         int main()
          ifstream fin("source.txt"); // fininput.txt를 연결
          int counter = 0;
          for(int i=0; !fin.eof(); i++)
          array[i]=fin.get(); // cin으로 화면에서 입력받는다면, fin은 연결된 파일로부터 입력받는다.
          int key;
          cin >> key;
  • 새싹교실/2011/무전취식/레벨8 . . . . 18 matches
          * pointer
         == Ice Breaking ==
         김준석 : 이번주금요일에 IFA 에 참여를 합니다. Ice breaking같은 커뮤니케이션 기술, 회의 진행. 지난주에 체육대회 개최한걸 다사다난하게 끝냈습니다. 스티브 잡스에 관한 발표도 잘했어. 강원석 : 저도 스티브잡스 책봐요 ICon:스티브잡스! 사람들이 평가를 했는데 '교수님보다 잘갈킴' 기분이 좋았음. 어제 ZP 스승의 날 행사를 해줌. 춤은 여전히 잘배우고 있습니다.
         Lee JinYoung
         #include<stdio.h>
         void main(){
          printf("파일 안열렸음!!");
          printf("1 %s",buf);
         1 Lee JinYoung
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * Ice Breaking이 날이갈수록 흥미진진한 얘기가 나옵니다. 재밌네. 오늘은 복습을 좀 많이 했죠. 기초가 중요한겁니다 기초가. pointer도 쓰는법은 생각보다 간단하지. 간단한 파일입출력도 해봤고. 정말 정말 잘하고있어. 수업태도도 나아지고있고. 이제 앞으로 나머진 들러리지만 알아두면 좋을 팁이라고 생각합니다. 하지만, 앞에서 배운 많은 개념을 잊어먹은것 보니까 이건 사태의 심각성이 있네 역시 복습하길 잘했어. 그리고 winapi사이트좀 자주가. 거긴 볼것이 많아. 그리고 후기좀 자세히봐=ㅂ= 후기쓸때도 그날 배운것 배껴서라도 올려내고!! - [김준석]
          * 훗 1등. 지난주에 못와서 복습을 했어도 좀 아리까리 하네요. array쪽부터 차근차근 다시 복습을 해봐야 할것 같습니다. 오늘 파일 입출력을 배웟는데 신기했어요. 저런걸 pointer로 하는지는 몰랐는데.... 그리고 구조체에 대해서 간단하게 배웠어요. 앞으로 계속해서 저랑 마주하게 될 아이들이니깐 열심히 공부해야 할것 같아요. - [강원석]
          * 오.. 1등 ㅊㅋㅊㅋ. 기특하군 새벽에 메신저에 있는거보니 뭐하는진 모르겠지만. 재밌길. 파일pointer가 좀 신기하긴 하지 사실 난 저걸 배울때 그냥 문법으로 알았는데 생각해보면 pointer라는것을 깨달은게 정말 오래걸렸달까? 구조체는... 나중에 진화한단다 그걸 위해서 고생좀 해봐야지. 그래 우리가 앞으로 더욱 레벨업된 몬스터를 상대하게 될꺼야. - [김준석]
  • 제곱연산자 전달인자로 (Setting) . . . . 18 matches
         #include <iostream>
         #include <stdlib.h>
         using namespace std;
         int power(int a, int b);
         int main(int argc, char *argv[])
          int result1,result2;
         int power(int a, int b)
          for(int i=0; i<b ; i++)
         int main()
          int result;
          printf("%d\n", result);
  • 캠이랑놀자/보창/숙제1 . . . . 18 matches
         for x in range(sizeX):
          for y in range(sizeY):
         for x in range(sizeX):
          for y in range(sizeY):
         == Whitening ==
         for x in range(50,100):
          for y in range(50,100):
         == Darkening ==
         for x in range(50,100):
          for y in range(50,100):
         for x in range(50,100):
          for y in range(100,150):
         for x in range(0,255,5):
          for y in range(0,255,5):
          for m in range(x,x+5):
          for n in range(y,y+5):
          for m in range(x,x+5):
          for n in range(y,y+5):
  • 큐/Leonardong . . . . 18 matches
         #include <iostream>
         using namespace std;
         const int Asize = 3;
         int container[Asize]={0,};
         int order=0;
         int main()
          int choice;
          cin >> choice;
          cin >> container[order++];
          for (int i=0 ; i<order-1 ; i++) //이부분만 빼면
          container[i] = container[i+1];//스택이랑 같음
          container[--order]=0;
          for (int i=0 ; i<order ; i++)
          cout << container[i] << " ";
  • 황현/Objective-P . . . . 18 matches
          * 개발자의 편의를 돕는 Gin 프레임워크가 동봉될 예정이다. (접두어: GN)
         다만, @implementation만 사용하면 @interface가 외로워하니까, 인스턴스 변수의 선언에는 @interface를 사용하도록 하고, 메소드 선언 및 정의에 @implementation을 사용한다.
         @interface MyFirstObjPClass : GNObject <GNSomeProtocol>
         $iStoreSomething;
         +(int)tellMeTheTruth {
         - (void) doSomeTaskWithSomething:(int)$localIntegerVar {
         [$myClass doSomeTaskWithSomething:42];
         GNAssert()의 경우, 두 번째 인자로 @"문자열"을 받지만, 결과적으로는 컴파일 이후 GNString으로 변해야 한다.
         private $iStoreSomething;
         public function doSomeTaskWithSomething($localIntegerVar, $_objp_type_check=false) { // (void)
         if(is_int($localIntegerVar)===false)
         GNAssert(false, new GNString('뭔가 이상하지 않아?'));
         $myClass =MyFirstObjPClass::new(); // defined in GNObject
         $myClass->doSomeTaskWithSomething(42, true); // Compiler automatically adds last argument!
         $myClass->release(); // actually, does nothing unless you overrides it.
  • 3N 1/김상섭 . . . . 17 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         const int Min = 1;
         const int Max = 1000000;
         int table[Max];
          int num;
          int pre_count;
          int i, j, k, count;
          for(i = Min; i < Max; i++)
          if(num > Min && num < Max && table[num] == 0)
          if(num > Min && num < Max && table[num] == 0)
         int main()
          int i, j, k, max_num;
          while(cin >> i >> j)
  • 3N+1/김상섭 . . . . 17 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         const int Min = 1;
         const int Max = 1000000;
         int table[Max];
          int num;
          int pre_count;
          int i, j, k, count;
          for(i = Min; i < Max; i++)
          if(num > Min && num < Max && table[num] == 0)
          if(num > Min && num < Max && table[num] == 0)
         int main()
          int i, j, k, max_num;
          while(cin >> i >> j)
  • 5인용C++스터디/멀티미디어 . . . . 17 matches
         MFC는 멀티미디어를 위한 별도의 클래스를 제공하지 않는다. Win32 API함수 차원에서 멀티미디어를 지원하기 때문에 MFC에서는 별도의 클래스로 만들어 놓지 않은 것이다.
         #include "mmsystem.h"
          PlaySound 함수를 사용하려면 mmsystem.h 파일을 먼저 include 해주어야 하고,
          Project/ Settings/Link 탭에서 winmm.lib를 링크해 주어야 한다.
          리소스에 포함된 사운드를 연주하려면 PlaySound의 세 번째 인수에 SND_RESOURCE 플래그를 주고 첫 번째 인수에 리소스의 ID를 준다. 두 번째 인수에는 리소스를 가진 실행파일의 인스턴스 핸들을 주어야 하는데 MFC에서는 AfxGetInstanceHandle() 전역함수로 인스턴스 핸들을 구할 수 있다. 다음과 같이 코드를 작성해 보자.
         void CSoundView::OnLButtonDown(UINT nFlags, CPoint point)
          PlaySound(MAKEINTRESOURCE(IDR_WAVE1), AfxGetInstanceHandle(), SND_RESOURCE | SND_ASYNC);
          CView:OnLButtonDown(nFlags, point);
         1-4) MCI (Media Control Interface)
          hWndAVI=MCIWndCreate(this->m_hWnd, AfxGetInstanceHandle(), 0, "cf3.avi");
          CView::OnLButtonDown(nFlags, point);
          동영상 연주는 Video fot window 라이브러리를 사용하므로 뷰에서 vfw.h를 인클루드 해 주어야 한다.
         #include "PlayAVIDoc.h"
         #include "PlayAVIView.h"
         #include <vfw.h>
          또한 프로젝트에서 이 라이브러리를 사용할 수 있도록 Project/Settings/Link 탭에 vfw32.lib를 추가한다. 그리고 동영상 파일을 프로젝트 디렉토리에 넣어두면 된다.
         HWND MCIWndCreate(HWND hwndParent, HINSTANCE hinstance, DWORD dwStyle, LPSTR szFile);
         hInstance: MCIWnd롤 사용하는 인스턴스 핸들을 지정한다.
  • ACE/CallbackExample . . . . 17 matches
         #include "ace/streams.h"
         #include "ace/Log_Msg.h"
         #include "ace/Log_Msg_Callback.h"
         #include "ace/Log_Record.h"
         #include "ace/SString.h"
          /*log_record.print(ACE_TEXT(""), 0, cerr);
          log_record.print(ACE_TEXT(""), ACE_Log_Msg::VERBOSE, cerr);*/
          ACE_CString data(">> ");
          * main.cpp
         #define ACE_NTRACE 0
         #include "ace/Log_Msg.h"
         #include "ace/streams.h"
         #include "callback.h"
         int ACE_TMAIN(int, ACE_TCHAR *argv[])
          ACE_TRACE(ACE_TEXT("main"));
          ACE_DEBUG((LM_INFO, ACE_TEXT("%IGoodnight\n")));
  • AutomatedJudgeScript/문보창 . . . . 17 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         const int MAX = 100;
         bool setString(char * s, char * sDigit);
         int main()
          int count = 1;
          if (!setString(answer, answerDigit) || !setString(reply, replyDigit))
         bool setString(char * s, char * sDigit)
          int n;
          cin >> n;
          cin.get();
          int nDigit, nChar, nReturn;
          c = cin.get();
  • EightQueenProblem/최봉환 . . . . 17 matches
         2h:30m, 71line
         #include <iostream.h>
          int x;
          int y;
         int map[8][8];
         int main(){
          int nQueens=0;
          for(int i=0;i<8;i++) for(int j=0;j<8;j++) map[i][j]=0;
          for(int y=0;y<8;y++){
          for(int x=0;x<8;x++){
          int tmp[8][8];
          for(int x=0;x<8;x++) for(int y=0;y<8;y++) tmp[x][y]=map[x][y];
          for(int i=0;i<8;i++){
          for(x=0;x<8;x++) for(int y=0;y<8;y++) map[x][y]=tmp[x][y];
  • FromDuskTillDawn/변형진 . . . . 17 matches
          var $train;
          $ln = explode("\n", "2\n3\nUlm Muenchen 17 2\nUlm Muenchen 19 12\nUlm Muenchen 5 2\nUlm Muenchen\n11\nLugoj Sibiu 12 6\nLugoj Sibiu 18 6\nLugoj Sibiu 24 5\nLugoj Medias 22 8\nLugoj Medias 18 3\nLugoj Reghin 17 4\nSibiu Reghin 19 6\nSibiu Medias 20 3\nReghin Medias 20 4\nReghin Bacau 24 6\nMedias Bacau 4 6\nLugoj Bacau");
          $this->train = array();
          if(($start<18&&$start>6)||($end<18&&$end>6)||($start<=6&&$start>=$end)||($end>=18&&$end<=$start)) continue;
          $this->train[$from][] = array("to"=>$to, "start"=>($start+6)%24, "end"=>($end+6)%24);
          for($i=0; $this->train[$from][$i]; $i++)
          $next = $this->train[$from][$i][to];
          if($city[$next]) continue;
          if($this->train[$from][$i][start]>=$start)
          $today[$next] = min(($today[$next])?$today[$next]:0, $this->train[$from][$i][end]-12);
          else $tomorrow[$next] = min(($tomorrow[$next])?$tomorrow[$next]:0, $this->train[$from][$i][end]-12);
          if($today[$next]) continue;
  • Gof/Command . . . . 17 matches
         == Intent ==
         때때로 요청받은 명령이나 request를 받는 객체에 대한 정보없이 객체들에게 request를 넘겨줄 때가 있다. 예를 들어 user interface tookit은 button이나 menu처럼 사용자 입력에 대해 응답하기 위해 요청을 처리하는 객체들을 포함한다. 하지만, 오직 toolkit을 사용하는 어플리케이션만이 어떤 객체가 어떤일을 해야 할지 알고 있으므로, toolkit은 button이나 menu에 대해서 요청에 대해 명시적으로 구현을 할 수 없다. toolkit 디자이너로서 우리는 request를 받는 개체나 request를 처리할 operations에 대해 알지 못한다.
         Command Pattern은 request 를 객체화함으로서 toolkit 객체로 하여금 불특정한 어플리케이션 객체에 대한 request를 만들게 한다. 이 객체는 다른 객체처럼 저장될 수 있으며 pass around 가능하다. 이 pattern의 key는 수행할 명령어에 대한 인터페이스를 선언하는 추상 Command class에 있다. 이 인터페이스의 가장 단순한 형태에서는 추상적인 Execute operation을 포함한다. 구체화된 Command subclass들은 request에 대한 receiver를 instance 변수로 저장하고 request를 invoke하기 위한 Execute operation을 구현함으로서 receiver-action 짝을 구체화시킨다. The receiver has the knowledge required to carry out the request.
         어플리케이션은 각각의 구체적인 Command 의 subclass들로 각가각MenuItem 객체를 설정한다. 사용자가 MenuItem을 선택했을때 MenuItem은 메뉴아이템의 해당 명령으로서 Execute oeration을 호출하고, Execute는 실제의 명령을 수행한다. MenuItem객체들은 자신들이 사용할 Command의 subclass에 대한 정보를 가지고 있지 않다. Command subclass는 해당 request에 대한 receiver를 저장하고, receiver의 하나나 그 이상의 명령어들을 invoke한다.
         예를 들어 PasteCommand는 clipboard에 있는 text를 Document에 붙이는 기능을 지원한다. PasteCommand 의 receiver는 인스턴스화할때 설정되어있는 Docuemnt객체이다. Execute 명령은 해당 명령의 receiver인 Document의 Paste operation 을 invoke 한다.
         이러한 예들에서, 어떻게 Command pattern이 해당 명령을 invoke하는 객체와 명령을 수행하는 정보를 가진 객체를 분리하는지 주목하라. 이러함은 유저인터페이스를 디자인함에 있어서 많은 유연성을 제공한다. 어플리케이션은 단지 menu와 push button이 같은 구체적인 Command subclass의 인스턴스를 공유함으로서 menu 와 push button 인터페이스 제공할 수 있다. 우리는 동적으로 command를 바꿀 수 있으며, 이러함은 context-sensitive menu 를 구현하는데 유용하다. 또한 우리는 명령어들을 커다란 명령어에 하나로 조합함으로서 command scripting을 지원할 수 있다. 이러한 모든 것은 request를 issue하는 객체가 오직 어떻게 issue화 하는지만 알고 있으면 되기때문에 가능하다. request를 나타내는 객체는 어떻게 request가 수행되어야 할지 알 필요가 없다.
          * logging change를 지원하기 원할때. logging change 를 지원함으로서 시스템 충돌이 난 경우에 대해 해당 command를 재시도 할 수 있다. Command 객체에 load 와 store operation을 추가함으로서 change의 log를 유지할 수 있다. crash로부터 복구하는 것은 디스크로부터 logged command를 읽어들이고 Execute operation을 재실행하는 것은 중요한 부분이다.
          * 기본명령어들를 기반으로 이용한 하이레벨의 명령들로 시스템을 조직할 때. 그러함 조직은 transaction을 지원하는 정보시스템에서 보편화된 방식이다. transaction은 데이터의 변화의 집합을 캡슐화한다. CommandPattern은 transaction을 디자인하는 하나의 방법을 제공한다. Command들은 공통된 인터페이스를 가지며, 모든 transaction를 같은 방법으로 invoke할 수 있도록 한다. CommandPattern은 또한 새로운 transaction들을 시스템에 확장시키기 쉽게 한다.
          * Invoker (MenuItem)
          * Invoker 객체는 ConcreteCommand객체를 저장한다.
          * invoker는 command에서 Execute를 호출함으로서 request를 issue한다. 명령어가 undo가능할때, ConcreteCommand는 명령어를 undo하기 위한 state를 저장한다.
          * ConcreteCommand 객체는 request를 처리하기 위해 receiver에서 operation을 invoke한다.
         다음의 다이어그램은 이 객체들이 어떻게 상호작용하는지 보여준다. 이 다이어그램은 또한 어떻게 Command 가 receiver와 처리할 request로부터 invoker를 분리하는지 설명한다.
          1. Command는 해당 객체의 명령을 invoke하는 객체와 어떻게 수행해야 할지 알고 있는 객체와의 결합을 해제한다.
         constructor는 receiver와 instance 변수에 대응되는 action을 저장한다. Execute는 단순히 action을 receiver에 적용한다.
         MyClass의 instance로 있는 Action을 호출할 command를 만들기 위해서, 클라이언트는 단순히 이렇게 코딩한다.
         아마도 CommandPattern에 대한 첫번째 예제는 Lieberman 의 논문([Lie85])에서 나타났을 것이다. MacApp [App89] 는 undo가능한 명령의 구현을 위한 command의 표기를 대중화시켰다. ET++[WGM88], InterViews [LCI+92], Unidraw[VL90] 역시 CommandPatter에 따라 클래스들을 정의했다. InterViews는 각 기능별 명령에 대한 Action 추상 클래스를 정의했다. 그리고 action 메소드에 의해 인자화됨으로서 자동적으로 command subclass들을 인스턴스화 시키는 ActionCallback 템플릿도 정의하였다.
         THINK 클래스 라이브러리 [Sym93b] 또한 undo 가능한 명령을 지원하기 위해 CommandPattern을 사용한다. THINK 에서의 Command들은 "Tasks" 로 불린다. Task 객체들은 ChainOfResponsibilityPattern에 입각하여 넘겨지고 소비되어진다.
  • Google/GoogleTalk . . . . 17 matches
         http://douweosinga.com/projects/googletalk 를 참조하여서 kldp.net 에 aero 님께서 올리신 글입니다.
         #!/usr/bin/perl
         print $query."\n";
          print "last_word :".$1."\n" if $debug;
          print $query."\n";
          print "unencoded: " . $unencoded_url ."\n" if $debug;
          print "encoded: " . $url->as_string . "\n" if $debug;
          my $response = $browser->get($url->as_string, 'User-Agent'=>'Mozilla' );
          print "Response:\n$res\n" if $debug;
          print $1."\n\n" if $debug;
          print "@next_words ".($#next_words+1)."\n" if $debug;
          print "selected :".$next_words[$select]."\n" if $debug;
          print $response->error_as_HTML if $debug;
          print "query :".$q."\n" if $debug;
          print "text :".$text."\n" if $debug;
          print "match 1 |".$1."| 2 |".$2."| 3 |".$3."| 4 |".$4."|\n" if $debug;
  • GuiTestingWithWxPython . . . . 17 matches
          expected = "testing"
          expected = ('testing1', 'testing2', 'testing3')
          def OnInit(self):
         if __name__=="__main__":
          unittest.main(argv=('','-v'))
          def __init__(self, parent=NULL, id=NewId(), title='test', pos=(400,400), size=(400,400)):
          wxFrame.__init__(self, parent, id, title, pos, size)
          self.button = wxButton(self, ID_BUTTON, "testing", pos=(100,100), size=(200,50))
          self.listBox.Append('testing1')
          self.listBox.Append('testing2')
          self.listBox.Append('testing3')
          for idx in range(self.listBox.Number()):
          retList.append(self.listBox.GetString(idx))
          def OnInit(self):
         if __name__=="__main__":
          App.MainLoop()
         ["GuiTesting"]
  • HASH구하기/류주영,황재선 . . . . 17 matches
         #include <iostream>
         #include <fstream>
         #include<string>
         using namespace std;
         int main()
          ifstream fin("input"); // fininput.txt를 연결
          fin >> pass;
          int hash[5] = {0};
          for(int i=0;i<5;i++)
          for(int j=i;j<strlen(pass);j+=5)
          hash[i] += (int)(pass[j]);
          for(int k=0;k<5;k++)
  • HardcoreCppStudy/첫숙제/Overloading/김아영 . . . . 17 matches
         #include <iostream>
         using namespace std;
         const int MAX = 20;
         int main()
          int board[MAX][MAX]={0,};
          int x, y ;
          int garo, sero;
          int total=0;
          int count =0 ;
          int bang =0;
          cin >> sero >> garo ;
          cin >> y >> x ;
          for(int D=0;D<MAX;D++)
          cin >> direction[D];
          for(int i=0;i<sero;i++)
          for(int j=0;j<garo;j++)
  • HelpOnXmlPages . . . . 17 matches
         == XML Pages & XSLT Processing ==
         If you have Python4Suite installed in your system, it is possible to save XML documents as pages. It's important to start those pages with an XML declaration "{{{<?xml ...>}}}" in the very first line. Also, you have to specify the stylesheet that is to be used to process the XML document to HTML. This is done using a [http://www.w3.org/TR/xml-stylesheet/ standard "xml-stylesheet" processing instruction], with the name of a page containing the stylesheet as the "{{{href}}}" parameter.
         See the following example for details, which can also be found on the XsltVersion page.
         <?xml version="1.0" encoding="ISO-8859-1"?>
          <xsl:output method="html" omit-xml-declaration="yes" indent="no"/>
          This Wiki is running an XSLT engine by
          implementing XSLT v<xsl:value-of select="system-property('xsl:version')"/>
         [[Include(XsltVersion)]]
         [[Navigation(HelpOnEditing)]]
  • InterWikiIcons . . . . 17 matches
         The InterWiki Icon is the cute, little picture that appears in front of a link instead of the prefix established by InterWiki. An icon exists for some, but not all InterMap references.
         You can set InterWikiIcon to InterMap entries by putting an icon file of name lowercased InterWiki entry name, e.g; meatball for MeatBall, under imgs directory.
          * MoinMoin:MoinMoinDiscussions
          * Wiki:WardCunningham
         InterWikiIcon also used in the Unreal:Unreal Wiki.
         Only lovel-16.png included, while you WkPark arguing to rename it LovolNet. :P
         What about copy gentoo-16.png to gentookorea-16.png for InterMap entry 'GentooKorea'?
         Any recommendations on what software to use to shrink an image to appropriate size?
          * [[Icon(moin-new.gif)]]Amazon - http://puzzlet.org/imgs/amazon-16.png
          * [[Icon(moin-new.gif)]][http://www.worrynet.com/jandi/wiki.cgi/%C0%DC%B5%F0%B9%E7 Jandi] - http://puzzlet.org/imgs/jandi-16.png (16x16x16M)
          * [[Icon(moin-new.gif)]][http://ko.wikipedia.org/ KoWikipedia] - http://puzzlet.org/imgs/kowikipedia-16.png (16x16x16M)
         For more information, check http://puzzlet.org/plots/InterWikiIcons
  • JollyJumpers/강소현 . . . . 17 matches
         ||Problem|| 2575||User||talin0528||
         public class Main{
          public static void main(String [] args)
          Scanner scan = new Scanner(System.in);
          int[] arr = new int[3000];
          while(scan.hasNextInt()){
          int size = scan.nextInt();
          int i;
          arr[i] = scan.nextInt();
          System.out.println("Jolly");
          System.out.println("Not jolly");
          public static boolean isJolly(int [] arr, int size){
          int [] jollyNum = new int [size];
          for(int i=0; i<size-1; i++){
          for(int i=1; i<=size-1;i++){
  • MFC/DynamicLinkLibrary . . . . 17 matches
         #define _MFC_
         Win32API역시도 DLL을 통해서 구현이 되어있다.
         = Runtime Dynamic Linking =
         early binding, load-time dynamic linking
         runtime dynamic linking
         runtime dynmaic linking 의 중요한 점은, 런타임 상에서 해당 모듈을 교체할 수 있다는 점이다. winamp 의 나 KMP 등와 같은 플러그인을 제공해주는 프로그램의 경우 대부분 이러한 runtime-dynamic linking 방법을 이용한다.
          == DLL Interface ==
          == DllMain() 함수 ==
          독립적 실행은 불가능하지만 main함수의 변형된 형태를 포함한다. 이 곳에서는 dll이 사용되기 전에 초기화되는 내용들이 포함되게 된다. DLL초기 로드시 운영체제가 호출한다.
  • MineSweeper/zyint . . . . 17 matches
         # -*- coding: cp949 -*-
          map[r]=map[r][:c] + str(int(map[r][c])+1) + map[r][c+1:]
         def mineAroundplus(r,c):
          for i in range(0,mapy):
          for j in range(0,mapx):
          print prt
         ###################################### main
         mapx = input('x >')
         mapy = input('y >')
         for i in range(mapy):
          map.append(raw_input())
         for i in range(0,mapy):
          for j in range(0,mapx):
         for i in range(0,mapy):
          for j in range(0,mapx):
          mineAroundplus(i,j)
         [MineSweeper] [데블스캠프2005] [데블스캠프2005/Python]
  • ProjectZephyrus/Thread . . . . 17 matches
          * ''Database Connection Pool 을 사용하던 하지 않던, DB 자원을 얻어오는 부분을 하나의 end point에서 처리하세요. 처음부터 이를 고려하지 않을 경우, '''*.java''' 에서 Database Connection을 생성하고, 사용하는 코드를 머지않아 보게 될겁니다. 이는 정말 최악입니다. pool을 쓰다가 쓰지 않게 될 경우는?다시 pool을 써야 할 경우는? 더 좋은 방법은 interface를 잘 정의해서 사용하고, 실제 DB 작업을 하는 클래스는 Factory 를 통해 생성하는게 좋습니다. 어떤 방식으로 DB를 다루던 간에 위에서 보기엔 항상 같아야 하죠. --이선우 [[BR]]
          * 제가 저번학기에 작업했던 메신져가 있습니다. 이번 프로젝트를 하면서 참고할 수 있는 부분을 참고하세요. 저번 학기에 정보처리 실습이란 과목에서 프로젝트로 했던 것입니다. UP 로 Process 를 진행했었고, 높은(?) 점수를 위해서 많은 문서를 남기긴 했는데.. 부족한 면이 많군요 ㅡ.ㅡ;; http://www.inazsoft.net/projectworktool.html 에서 다운로드 받을 수 있습니다. - 구근
          * 제가 JDBC 할때 삽질했던거 다른 사람들은 삽질하지 않도록 하기 위해서 남긴 문서가 있어여.. 조금이나마 삽질 방지하는데 도움이 되면 좋겠네여..^^: - 상협[http://www.caucse.net/cgi-bin/moin/moin.cgi/_c0_da_b9_d9_c7_c1_b7_ce_c1_a7_c6_ae_2f_b9_e6_c8_ad_ba_ae_c6_c0_b8_de_bd_c5_c0_fa_2fJDBC JDBC 관련 삽질 방지용 문서]
         가장 이상적인 상태는 예전 창준선배님이 세미나에서 이야기 했었던, '이러 이러한 라이브러리는 여기 있지 않을까 해서 봤더니 바로 그 자리에 있더라.' 하는 상태입니다. 그러면 최악은? '이러 이러한 라이브러리가 필요한데? 음.. 이쁘게 잘 만들어놓기는 귀찮고 에라 다음에 정리하지 뭐' 그리고는 해당 method들을 copy & paste. '''공통 모듈'''을 한곳에서 다루도록 하세요. 공통 모듈은 꽤 많습니다. logging, configuration, resource managing ,..
         아 한가지 더 생각나는게 있군요. 자바로 프로젝트를 하니 적습니다. 절대 작성하는 라이브러리나 코드의 중간에서 Exception을 잡아서 삼켜버리지 마세요. Exception은 추후 debugging에 절대적인 정보를 담고 있습니다. 중간에 try ~ catch 로 잡아버리고, 어떠한 형태로도 알려주지 않는것은 상당히 위험합니다. 시간이 나면 이와 관련해서 더 적도록 하지요. --이선우
          static synchronized public SocketManager getInstance() {
          if (instance == null) {
          instance = new SocketManager();
          return instance;
          public static SocketManager getInstance() {
          if (instance == null) {
          if (instance == null) {
          instance = new SocketManager();
          return instance;
         ''' ''System.out.println()'' 이 머지않아 재앙을 가져올 것이니.. --삽질 계시록 2장 :)'''
  • Refactoring/BigRefactorings . . . . 17 matches
         = Chapter 12 Big Refactorings =
         == Tease Apart Inheritance ==
          * You have an inheritance hierarchy that is doing two jobs at once.[[BR]]''Create two hierarchies and use delegation to invoke one from the other.''
         http://zeropage.org/~reset/zb/data/TeaseApartInheritance.gif
          * You have code written in a procedural style.[[BR]]''Turn the date records into objects, break up the behavior, and move the behavior to the objects.''
         == Separate Domain from Presentation ==
          * You have GUI classes that contain domain logic.[[BR]]''Separate the domain logic into separate domain classes.''
         http://zeropage.org/~reset/zb/data/SeparateDomainFromPresentation.gif
          * You have a class that is doing too much work, at least in part through many conditional statements.[[BR]]''Create a hierarchy of classes in which each subclass represents a special case.''
         ["Refactoring"]
  • StackAndQueue/손동일 . . . . 17 matches
         #include <iostream>
         using namespace std;
         int
          in();
         int arr[1000];
         int i,j;
         void main()
          int choice;
          cin >> choice;
          while(cin>>choice)
          in();
          continue;
         int in()
          int a;
          cin >> a;
          int k;
  • UglyNumbers/문보창 . . . . 17 matches
         #include <iostream>
         #include <cstdlib>
         #include <cmath>
         using namespace std;
         const int MAX = 2000;
         inline int comp(const void *i,const void *j) { return *(int *)i-*(int *)j; };
         int main()
          int num[MAX];
          int count = 0;
          int expo2, expo3, expo5;
          int MAX_INT = pow(2,31) - 1;
          if (pow(2,expo2) * pow(3,expo3) * pow(5,expo5) > MAX_INT
          qsort(num, count, sizeof(int), comp);
  • UnitTest . . . . 17 matches
         ExtremeProgramming 에서는 TestFirstProgramming 을 한다. TestFirstProgramming 에서는 해당 기능에 대한 테스트 프로그램을 먼저 만들고, 실제 프로그래밍을 한다.
         TestFirstProgramming 을 하게 되면 해당 프로그램을 작성해 나가는 과정이 UnitTest 작성중 남게 된다. 이는 일종의 WhiteBoxTesting 이 된다. 또한, 해당 모듈이 제대로 돌아가는지에 대한 결과도 체크하므로 BlackBoxTesting 의 역할을 한다. 즉, ExtremeProgramming 에서의 UnitTest 는 두가지 테스트의 성격을 같이 포함하고 있다. (Gray Box Testing)
         See Also ["Refactoring/BuildingTestCode"], ["GuiTesting"]
         SoftwareEngineering 에 있어서 UnitTest 는 '단위 모듈에 대한 테스트' 이다. 즉, 해당 기능이 제대로 돌아감을 확인하는 테스트가 UnitTest 이다.
          if (expected == actual) printf ("okok!\n");
          else printf ("error!\n");
         이를 assert 문으로 바꾸면 다음과 같이 가능하다. 결과값이 같지 않으면 'abnormal program termination' 이 일어난다.
         ["ExtremeProgramming"]
  • UserStory . . . . 17 matches
          * Story Point 의 계산
          * Task Point 의 계산
         Wiki:EngineeringTask 란 해당 Story를 구현하기 위해 실질적으로 해야 할 일들에 대한 서술이다. UserStory 의 각 항목이 비교적 사용자 관점에서의 서술이라 한다면, Wiki:EngineeringTask는 구현해야 하는 Developer들 관점에서의 서술이다.
         UserStory 들을 작성한 뒤에는 Wiki:EngineeringTask 를 결정하고, estimate (해당 작업에 대해 얼마나 걸릴 것인가에 대한 예측)한 Story Point 와 Task Point 를 기준으로 적절히 계산해 나간다.
          ''After several years of debating this question and seeing both in use, I now think they have nothing in common other than their first three letters.''
         ["ExtremeProgramming"]
  • ZeroPage_200_OK/note . . . . 17 matches
          * 1. create instance
          * 2. instance.__proto__ = Person.prototype;
          * 3. 실행문맥을 instance로 한 생성자를 호출한다.
          || VTable || <-----------------> || prototype chain (__proto__) ||
          * instance의 __proto__에서 찾고 없으면 그위에 __proto__에서 찾고...
          if (("f" in _proto) && typeof _proto["f"] === "function")
          * 상속을 위해서는 prototype chain에 등록하면 된다.
         === same origin policy ===
          * document.domain 을 조정함으로써 동일한 도메인의 범위를 바꿀수 있다.
          * wiki.zeropage.org 와 www.zeropage.org 를 동일한 도메인으로 취급하기 위해 document.domain을 zeropage.org로 설정할수 있다.
         ==== Same Origin Policy를 극복하기 위한 방법 ====
          * 원래 same origin policy를 적용받지 않음으로 극복할수 있으나 바이너리므로 애시당초 우리가 쓸수 없다.
          * Same origin policy를 적용받지 않고 자바스크립트를 불러올수 있으나 바로 실행이 되므로 다른 방식을 써야한다.
          * 이 응답은 마치 JSON에 함수만 감싼형식이기 떄문에 JSON with Padding, JSONP라 부른다.
          * windows 에서 쓰이고 역시 안정성이 뛰어나고 GUI관리가 가능하다.
          * nginx
          * Common Gateway Interface
          * standard Input에는 request body을 준다.
         nginx + nodejs
  • ZeroPage_200_OK/소스 . . . . 17 matches
          <!-- span: inline element -->
          <table border="1" style="margin: 10px;" summary="books_const">
          <label for="form_id">ID </label><input id="form_id" size="5" maxlength="5" name="id" type="text" value="abc" /> <br/>
          <label for="form_psw">PSW</label><input id="form_psw" size="5" name="password" type="password" value="abc" /><br/>
          <input name="group "type="hidden" value="abc" /><br/>
          <input name="upload" type="file"/><br/>
          <input name="chk" type="checkbox" value="abc" id="form_chk"/><label for="form_chk">abc</label><br/>
          <input type="checkbox" value="abc" checked="checked"/>abc<br/>
          <input type="checkbox" name="chk[]" value="a" checked="checked" /> a<br />
          <input type="checkbox" name="chk[]" value="b" checked="checked" /> b<br />
          <input type="checkbox" name="chk[]" value="c" checked="checked" /> c<br />
          <input type="radio" value="abc" />abc<br/>
          <input type="radio" value="abc" checked="checked" />abc<br/>
          <input type="button" value="abc" /><br/>
          <input type="submit" value="전송" /><br/>
          <input type="reset" value="취소" /><br/>
  • cookieSend.py . . . . 17 matches
         def generateCookieString(aDict):
          str = [key+'='+data for key,data in aDict.items()]
          str = '; '.join(str)
          "Accept":"image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*"}
          print "encode cookie : " , urllib.urlencode(cookieDict)
          header['Cookie'] = generateCookieString(cookieDict)
          print "param : " , params
          print response.status, response.reason
         def printResponse(aStr):
          print "------------------------- response start ------------------------------"
          print aStr
          print "------------------------- response end ------------------------------"
          httpData = getResponse(host="zeropage.org", webpage="/~reset/testing.php", method='GET', paramDict=params, cookieDict=cookie)
          print "return cookie : ", httpData['cookie']
          printResponse(httpData['response'])
          printResponse(httpData['msg'])
         if __name__=="__main__":
  • pragma . . . . 17 matches
         Each implementation of C and C++ supports some features unique to its host machine or operating system. Some programs, for instance, need to exercise precise control over the memory areas where data is placed or to control the way certain functions receive parameters. The #pragma directives offer a way for each compiler to offer machine- and operating-system-specific features while retaining overall compatibility with the C and C++ languages. Pragmas are machine- or operating-system-specific by definition, and are usually different for every compiler.
         #pragma warning(disable: 4786 4788)
         NeoCoin 은 Debug 모드에서, 값을 추적할 것을 포기하고, Project Setting -> C/C++ tab -> Debug info -> Line Numbers Only 로 놓고 쓴다.
         혹시라도.. 저 #pragma warning(disable: n ... m) 을 써서 언제나 문제를 해결 할 수 있을거라고 생각하시면 안됩니다. 저 위의 설명에도 씌여있듯이, pragma directive 는 지극히.. 시스템에 의존적입니다. 그러므로, VC 에서는 먹힌다는 저 명령어가 GCC 에서는 안될수도 있고.. 뭐 그런겁니다. 확실하게 쓰고싶으시다면.. 그 컴파일러의 문서를 참조하는것이 도움될겁니다.
  • wiz네처음화면 . . . . 17 matches
          * Computer Science & Engineering, Chung-ang Univ, entrance in 2001. 11th member in Zeropage Academy.
          * Develope Bookshelf making me Management System[(zeropage)나를만든책장관리시스템]
          * Study Chiness
          * Make a toy program using Socket.
         || Study Chiness(한자능력검정시험3급) || ▷▷▷▷▷ ||
          * http://www.joinc.co.kr/modules/moniwiki/wiki.php/article/STL_algorithm#AEN54 STL algorithm
          * http://blog.empas.com/tobfreeman/13965830 , http://knowhow.interpark.com/shoptalk/qna/qnaContent.do?seq=96903
          * English music - singer : sweet box, toxic recommended by Ah young.
          * MP3 file download site to listen English - [http://iteslj.org/links/ESL/Listening/Downloadable_MP3_Files Listening English]
          * searching keywords in google - english listening mp3
  • 구구단/곽세환 . . . . 17 matches
         #include <iostream>
         using namespace std;
         int main()
          int i,j,k;
         (define (ggd x y)
          (begin (print x) (print *) (print y) (print =) (print (* x y)) (newline)))
         (define (iter x y)
          (if (< y 9) (begin (ggd x y) (iter x (+ y 1)))
          (begin (ggd x y) (iter (+ x 1) 1)))))
         PrintGugudan
  • 데블스캠프2005/RUR-PLE . . . . 17 matches
         || [데블스캠프2005/RUR-PLE/Sorting] ||
         || [데블스캠프2005/RUR-PLE/Harvest/Refactoring] ||
         || [데블스캠프2005/RUR-PLE/Newspaper/Refactoring] ||
          * sorting 문제 120분
          * Play버튼 옆에 Play 모양과 작대기 하나 있는것은 step into와 비슷한 역할을 한다. 명령어가 하나씩 실행된다. 현재 실행되고 있는 명령어는 코드 부분에서 회색으로 highlighting 된다.
          * Play버튼을 클릭하고 나서 로봇이 움직이고 있는 도중에 자신이 원하는 순간에 step into 버튼(play 버튼 옆에 있는)을 클릭하면 그 순간부터 명령어가 하나 하나씩 실행된다.
          * step into 옆에 있는 버튼은 일시 중지 버튼
         # introducing vocabulary related to the problem
          plant_carrot() # replace missing seed
         == Amazing Part ==
          * sorting 문제를 풀고나서 시간 남은 분은 해보시길. [http://rur-ple.sourceforge.net/en/amazing1.htm 러플 Amazing 설명]
         == Sorting ==
          * 05 [조현태] 군이 가장 먼저 sorting을 해결하여 경품을 탔습니다. 이후 01 김정현 이 sort2 맵에 대해서 해결하였지만 sort1에 대해서는 부분적으로 해결하였습니다.
  • 벡터/김태훈 . . . . 17 matches
         #include <iostream>
         #include <vector>
         #include <string>
         #include <algorithm>
         #include <functional>
         using namespace std;
         struct student{string name; int score;};
         void main()
          st[2].name = "finde";
          st[3].name = "inew";
          sort(stre.begin(), stre.end(),compare);
          for(vector<student>::iterator i = stre.begin(); i!=stre.end() ;i++)
          sort(stre.begin(), stre.end(),compare2 );
          for(i = stre.begin();i<stre.end();i++)
          for(vector<student>::iterator i = stre.begin();!(i=stre.end());i++)
  • 숫자를한글로바꾸기/정수민 . . . . 17 matches
         #include <stdio.h>
         void main()
          input[17]
         int
         printf("입력 : ");
         scanf("%s",&input);
          if ( input[ja_ris_soo] != 0 ) {
          // 숫자를 출력한다. 여기서 "input[ dummy_ja_ris_soo - ja_ris_soo ]"이조건은 시작을 //
          if (input[ dummy_ja_ris_soo - ja_ris_soo ] != '1' ) {
          printf("%s",soos_ja[ input[ dummy_ja_ris_soo - ja_ris_soo ]-48 ]);
          printf("%s",soos_ja[ input[ dummy_ja_ris_soo - ja_ris_soo ]-48 ]);
          // 작은 자리단위를 출력한다. 여기서 "input[ dummy_ja_ris_soo - ja_ris_soo ] != '0'" //
          if (input[ dummy_ja_ris_soo - ja_ris_soo ] != '0' ) {
          printf("%s",small_ja_ri[(ja_ris_soo-1)%4]);
          printf("%s ",big_ja_ri[temp_big_ja_ri]);
  • 알고리즘2주숙제 . . . . 17 matches
         === Generating Function ===
         세로가 3 가로가 n(2의 배수)인 상자가 있다. 여기에 크가가 2*1인 레고를 채울려고 한다. 가로가 n일때 빈칸 없이 가득채울수 있는 모양의 개수를 클로즈폼으로 구하시오.(Generating Function으로 구하시오)
         === Induction ===
         === Generating Function ===
         From Concrete Mathematics, Chapter 7. Generating Function
         1. (Warm up) An eccentric collector of 2 x n domino tilings pays $4 for each vertical domino and $1 for each horizontal domino. How many tiling are worth exactly $m by this criterion? For example, when m = 6 there are three solutions.
         4. (Homework exercises) How many spanning trees are in an n-wheel( a graph with n "outer" verices in a cycle, each connected to an (n+1)st "hub" vertex), when n >= 3?
         5. Let us use a generating function to find a formula for s<sub>n</sub>, where s<sub>0</sub> = s<sub>1</sub> = 1, and s<sub>n</sub> = -s<sub>n-1</sub> + 6s<sub>n-2</sub> for n ≥ 2.
         6~8 Give a generating fuction for the sequence {a<sub>n</sub>}.
         7. Let a<sub>r</sub> be the number of ways r cents worth of postage can be placed on a letter using only 5c, 12c, and 25c stamps. The positions of the stamps on the letter do not matter.
         8. Let a<sub>r</sub> be the number of ways to pay for an item costing r cents with pennies, nickels, and dimes.
         === Induction ===
  • 조영준/CodeRace/130506 . . . . 17 matches
         using System;
         using System.IO;
         using System.Collections.Generic;
          public string word;
          public int count;
          public static int Compare(pair x, pair y)
          static void Main(string[] args)
          string[] s;
          string line;
          while ((line = sr.ReadLine()) != null)
          s = line.Split(' ');
          for (int i = 0; i < s.Length; i++)
          for (int j = 0; j < p.Count+1; j++)
          for (int i = 0; i < p.Count; i++)
  • 1thPCinCAUCSE/ExtremePair전략 . . . . 16 matches
         #include <iostream>
         using namespace std;
         int numOfData;
         inputData[10];
         void input()
          cin >> numOfData;
          for(int i=0;i<numOfData;i++)
          for(int i=0;i<numOfData;i++)
          for(int i=0;i<numOfData;i++)
         void main()
          input();
          * 코딩은 기본적으로 ["PairProgramming"] 이였습니다. 드라이버가 코딩할때 파트너는 잘못된 코딩뿐만 아니라 이해안가는 부분에서는 계속적인 질문으로 드라이버 스스로 명확한 코드를 만들도록 했습니다.
          * {{{~cpp int}}}에서 {{{~cpp Over Flow}}}나는 문제가 있었는데 상규가 {{{~cpp __int64}}}를 알고 있었습니다...^^;;;
          * 어디에서 overflow 날만한 요소가 있었는지?? --["neocoin"]
         ["1thPCinCAUCSE"]
  • 3N+1Problem/김회영 . . . . 16 matches
         #include<iostream.h>
         int check(int n);
         void main()
          int n1; //입력받는 수1
          int n2; //입력받는 수2
          int max=0; //최대길이의 사이클 길이를 저장한다.
          cin>>n1;
          cin.get();
          cin>>n2;
          int temp = n2;
          for(int i= n2-n1 ; i >=0 ; i--)
         int check(int n)//사이클의 길이를 리턴하는 함수
          int count = 1;//사이클의 길이 가진다
          int temp = n%2;
  • Ajax . . . . 16 matches
         Ajax or Asynchronous JavaScript and XML is a term describing a web development technique for creating interactive web applications using a combination of:
          * HTML (or XHTML) and CSS for presenting information
          * The Document Object Model manipulated through JavaScript to dynamically display and interact with the information presented
          * The XMLHttpRequest object to exchange data asynchronously with the web server. (XML is commonly used, although any text format will work, including preformatted HTML, plain text, and JSON)
         Like DHTML, LAMP, or SPA, Ajax is not a technology in itself, but a term that refers to the use of a group of technologies together. In fact, derivative/composite technologies based substantially upon Ajax, such as AFLAX are already appearing.
         Ajax applications use web browsers that support the above technologies as a platform to run on. Browsers that support these technologies include Mozilla Firefox, Microsoft Internet Explorer, Opera, Konqueror and Apple Safari.
         = Lookin =
         웹 상에선 요새 한참 인기인 중인 기술. RichInternetApplication 은 Flash 쪽이 통일할 줄 알았는데 (MacromediaFlex 를 보았던 관계로) 예상을 깨게 하는데 큰 공로를 세운 기술.;
  • Athena . . . . 16 matches
          * Object Programming 수업의 숙제를 위한 페이지입니다
          DeleteMe 이름은 좋습니다. 하지만 ["Athena"] 라는 이름의 페이지에는 여신 아테나에 대한 정의와 소개가 들어 있는 것이 올바른 것이겠지요. 그래서 ["ProjectPrometheus"], ["ProjectZephyrus"] 라고 한거랍니다. ;; --["neocoin"]
          * 첫 회의 - 프로젝트 이름 결정, 기본 코딩 스타일 결정, 첫 ["PairProgramming"] 호흡
          * Contrast Stretching 작성(20분) - 명훈
          * contrast stretching할때 입력값 받지않는 것으로 수정(20분) - 명훈
          * 2.1 Sampling => 모자이크 이미지
          * 5.6 Posterizing
          * 5.7 Clipping
          * 5.8 Iso-intensity Contouring
          * 5.9 Range- highlighting
          * 5.10 Solize using a Threshold
          * 6.2 Sharpening
          * 6.4 Embossing
          * 6.5 Median Filtering
          * 7.1 Contrast Stretching
  • CanvasBreaker . . . . 16 matches
          * 2002학년도 2학기 ObjectProgramming 3번째 프로젝트
          1. Blurring
          2. Sharpening
          4. Embossing
          5. Median Filtering
          1. Contrast Stretching
          2. Sampling
          * Posterizing - 30분
          * Clipping ,Iso-intensity, Range-Highlighting, Solarize - 40분
          * Blurring, Sharpneing - 1시간
          * 유사연산자, 차연산자, embossing, Median Filtering, 영상 질 향상 그리고 나머지 - 3시간
         = Link =
  • ChocolateChipCookies/허준수 . . . . 16 matches
         #include <iostream>
         #include <vector>
         #include <cmath>
         using namespace std;
          int numCookies;
         void input(double x, double y)
          int i,j;
          int max_num = 0;
         int main()
          int testCase;
          cin >> testCase;
          cin.ignore();
          if(cin.peek() == '\n')
          cin >> x >> y;
          input(x,y);
  • ConstructorParameterMethod . . . . 16 matches
         class Point
          void setX(int x) { /* ... */ }
          void setY(int y) { /* ... */ }
          static Point* makeFromXnY(int x, int y)
          Point* pt = new Point;
         class Point
          static Point* makeFromXnY(int x, int y)
          Point* pt = new Point;
          void setXnY(int x, int y) // smalltalk에서는 setX:xNum y:yNum이라는 메세지를 사용한다.
  • CppStudy_2002_2 . . . . 16 matches
         || 7.25 ||["StringOfCPlusPlus"]||11.클래스와 동적 메모리 할당||
         || 8.1 ||["Refactoring/ComposingMethods"]||몇개 소스 리팩토링 해보기||
         || 자판기 ||["VendingMachine/세연"]||["VendingMachine/세연/재동"]||["VendingMachine/세연/1002"]||
         || 자판기 ||["VendingMachine/재니"]||||
         || 문자열 다루기 ||["StringOfCPlusPlus/세연"]|| ||
         C++을 공부하는 모든 이들에게 Seminar:AcceleratedCPlusPlus 의 일독을 권합니다. --JuNe
          * 얼.........string 다해서 올리려구 했는데 그만 디스켓을 학교에서 안가지구 왔다. 이런일 한두 번 아닌데.......난 왜이럴까.......담부턴 나에게 디스켓 가져가라구 말들 좀 해줘 T.T - 세연
          * ["Refactoring"] 책을 보고 있다면, 이번이 아마 Bad Smells 를 인식할 수 있는 좋은 기회가 될것임. ^^ --["1002"]
          뭐 저도 공부 시작한 지 얼마 되지는 않았지만 조금이라도(Composing Mathods 정도) 리펙토링을 알고 행하는 게 나중에
  • DataStructure/Tree . . . . 16 matches
          * Sibling : 형제(같은 레벨의) 노드
         = Binary Tree =
         = Binray Tree 의 표현 =
          * Linked List
         = Binary Tree Traversal =
          * InOrder : Left Child -> Root -> Right Child : 우리에게 가장 익숙한 방식
         InOrder(a)
          InOrder(a->left)
          InOrder(a->right)
         = Binary Search Trees (우리말로 이진 탐색 트리) =
          * Binray Search Tree 니까 당연히 Binary Tree 여야 한다.
          * Keys in Left Subtree < Keys of Node
          * Keys in Right Subtree > Keys of Node(고로 순서대로 정렬되어 있어야 한단 말입니다.)
         = Insert x =
         void init(Node** node,char* ch) // 초기화
         void PrintandDelete(Node* root) // 맨 왼쪽부터 순회(Preorder인가?)
          Print( root->pLeft );
          Print( root->pRight );
         int Add(Node** root,char* ch)
          init(root,ch); // 초기화
  • DermubaTriangle/문보창 . . . . 16 matches
         || 2006-02-05 Accepted 0.010 Minimum ||
         #include <iostream>
         using namespace std;
         #include <cstdio>
         #include <cmath>
         inline void show(double value) { printf("%.3f\n",value); }
         void process(int n, int m)
          int rootN = floor(sqrt(n));
          int rootM = floor(sqrt(m));
         int main()
          int n, m;
          while (cin >> n >> m)
  • JTDStudy/첫번째과제/원희 . . . . 16 matches
         import javax.swing.*;
          public static void main(String[] args){
          int[] comNum = new int[3];
          comNum[0] = (int)(Math.random() * 10 +1);
          comNum[1] = (int)(Math.random() * 10 +1);
          comNum[2] = (int)(Math.random() * 10 +1);
          int[] userNum = new int[3];
          int strikeCounter = 0, ballCounter=0, outCounter=0;
          int i, j;
          userNum[0] = Integer.parseInt(JOptionPane.showInputDialog(null,"첫번째 숫자를 입력하시오"));
          userNum[1] = Integer.parseInt(JOptionPane.showInputDialog(null,"두번째 숫자를 입력하시오"));
          userNum[2] = Integer.parseInt(JOptionPane.showInputDialog(null,"세번째 숫자를 입력하시오"));
          //String temp = JOptionPane.showInputDialog(null,"숫자를 입력하시오 (한칸씩 띄어서)");
          JOptionPane.showMessageDialog(null, "3strike!! You win!");
          * 방법은 여러 방법이 있지. 만약 100자리라면, int 형이 정수값만 가지고 나머지는 버리는 특성을 이용해서 123%10 하면 3이 나오고, 12%10 하면 2 나오고 나머지는 1이고... 이런식으로 숫자른 나누어 줄 수도 있고, 입력시에 어짜피 String형으로 받아지기 때문에 문자 하나씩 끊어 읽게끔 해도 되지^^ 조금만 생각해보면 방법이 나올 수도 있어 - [상욱]
  • JavaStudy2002/영동-2주차 . . . . 16 matches
         Class main--메인함수 클래스
         public class main{
          public static void main(String[] args)
          System.out.println("RandomWalk");
          public int x=0;
          public int y=0;
          public int way;
          public int count=0;
          way=rand.nextInt()%8;
          System.out.print("\n");
          public int board[][]={
          for(int i=0;i<5;i++)
          for(int j=0;j<5;j++){
          System.out.print(board[i][j]);
          System.out.print("\t");
          System.out.print("\n");
  • LinkedList/숙제 . . . . 16 matches
         int a; // 선언
         int b = 10; // 선언&정의
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
          int num;
          int num;
         #include "ExList.h"
          printf("%d\n",p->num);
         void main()
         List *pList,*pNew,*pIns; // struct _slist *pList, *pNew, *pIns; 구조체3개 선언
          printf("root생성시\n"); // *pList를 root로 한다.
          printf("pNew생성시\n");
          pIns=(List *)malloc(sizeof(List));
          pIns->num=3; // 3번째 struct란 것을 표시.
          pIns->prev=pList; // pIns를 pList와 pNew 사이에 집어 넣는다. (pList <-- pIns)
          pIns->next=pNew; // pList <--> pNew, pIns ---> pNew
          pList->next=pIns; // pList <--> pIns, pIns ---> pNew, pList <--- pNew (pList <--> pList, pList <--- pNew <--- pIns)
          pNew->prev=pIns; // pList <--> pIns, pIns <--> pNew (pList <--> pIns <--> pNew)
          printf("pIns삽입시\n");
  • MFC/CollectionClass . . . . 16 matches
         #define _MFC_
         || List || 순서가 있는 데이터 항목의 집합. Doubly-linked list 로 구현되어 있다. 데이터의 삽입, 삭제가 빠르지만 하나하나의 데이터를 검색하는 속도는 느리다. ||
          || {{{~cpp GetAt(index)}}} || 인덱스로 지정된 배열의 객체를 리턴한다. ||
          || {{{~cpp operator[index]}}} || GetAt()과 동일하게 작동하며, built-in 배열과 동일한 사용법을 제공한다. [[BR]] {{{~cpp pointArray.SetAt}}}(3, NewPoint)[[BR]]{{{~cpp pointArray[3]=NewPoint}}} ||
          || {{{~cpp InsertAt()}}} || 인자로 전달된 객체를 배열의 특정 인덱스에 삽입한다. ||
          || {{{~cpp InsertBefore(POSITION, ObjectType)}}} || 두번째 인자의 객체를 첫번째 인자의 위치의 앞부분에 삽입한다. ||
          || {{{~cpp InsertAfter(POSITION, ObjectType)}}} || 알아서 =.=;; ||
          || {{{~cpp Find(ObjectType)}}} || 인자로 받은 객체를 검색해서 그 위치의 POSITION값을 리턴한다. 어드레스 수준에서 비교가 행해진다. ||
          || {{{~cpp FindIndex()}}} || 인자로 받은 int 형의 색인값을 기준으로 그곳의 POSITION 형태의 값을 리턴한다. 최초 요소는 인덱스 0을 갖는다. ||
          맵은 객체와 키의 조합을 저장한다. 키는 맵에 할당된 메모리의 특정 블록안에 객체가 저장되어 있는지를 결정하는데 사용된다. 키를 맵안의 엔트리의 어드레스로 계산될 수 있는 정소로 변환하는 과정을 해실(Hashing)이라고 한다.
          || {{{~cpp InsertBefore(POSITION, ObjectType)}}} || 두번째 인자의 객체를 첫번째 인자의 위치의 앞부분에 삽입한다. ||
          || {{{~cpp InsertAfter(POSITION, ObjectType)}}} || 알아서 =.=;; ||
          || {{{~cpp Find(ObjectType)}}} || 인자로 받은 객체를 검색해서 그 위치의 POSITION값을 리턴한다. 어드레스 수준에서 비교가 행해진다. ||
          || {{{~cpp FindIndex()}}} || 인자로 받은 int 형의 색인값을 기준으로 그곳의 POSITION 형태의 값을 리턴한다. 최초 요소는 인덱스 0을 갖는다. ||
  • Map/권정욱 . . . . 16 matches
         #include <iostream>
         #include <map>
         #include <fstream>
         #include <string>
         using namespace std;
         int main(){
          ifstream fin("line.txt");
          char line;
          int i = 0;
          while(!fin.eof()){
          fin.get(line);
          cout << order[line];
  • ModelingSimulationClass_Exam2006_1 . . . . 16 matches
         1. Single Queue, Single Server 문제 (10 points)
         (a) (5 points) 스케쥴 표 주고..(이번에는 Single Queue, Single Server) 이 시뮬레이션에서 사용되는 상태와 이벤트에 대해 쓰시오.
         (b) (5 points) FEL 작성하시오.
         2. (10 points)
         (a) 해당 모델을 구성하고 필요할 경우 가정을 해도 좋다. (7 points)
         (b) 구성된 모델이 안정적인지 명확한 이유를 대고 설명하라. (3 points)
         (a) (5 points) Peak Value 구하기 - '''그래프의 가장 높은 지점의 높이를 구하라는 문제로 파악했음. pdf 전체의 넓이가 1이라는 사실을 이용하는 문제'''
         (b) (5 points) Expectation 구하기 - (계산이 굉장히 지저분함. 소수점 난무)
         (a) (5 points) Arena에 나오는 4가지 타입의 모델 설명
         (b) (5 points) Continuous Probability Function에서 X = x0 일때의 확률이 왜 0인가? Discrete Probability Function에서의 X = x0일때와 비교하시오.
         1) 나의 경우 해당 문제를 간단한 확률 모델 + Single Queue, Multi Server 의 문제로 파악했다. 확률모델은 1차 합격자를 가리는데 쓰이고, SQMS모델은 실기 시험을 가리는데 사용하고, 가정으로 실기 시험은 7분을 최고 점으로갖는 Triangle Distribution 이라고 가정하고 풀이했음.
  • MoinMoinDone . . . . 16 matches
         Things from MoinMoinTodo that got implemented.
          * Strip closing punctuation from URLs, so that e.g. (http://www.python.org) is recognized properly. Closing punctuation is characters like ":", ",", ".", ")", "?", "!". These are legal in URLs, but if they occur at the very end, you want to exclude them. The same if true for InterWiki links, like MeatBall:InterWiki.
          * Headlines:
          * Check for a (configurable) max size in bytes of the RecentChanges page while building it
          * Inline code sections (triple-brace open and close on the same line, {{{~cpp like this}}} or {{{~cpp ThisFunctionWhichIsNotaWikiName()}}})
          * SGML-Entities were replaced when saving them a second time, i.e. & #160; without the space had a problem.
          * SpamSpamSpam appeared 3 times in WordIndex. Too much Spam!
         <META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
          * MoinMoin:J
  • NumberBaseballGame/재니 . . . . 16 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          int a, b, c, input, x, y, z, ball, strike;
          while (input != a * 100 + b * 10 + c)
          cin >> input;
          if (input < 123 || input > 987)
          continue;
          x = input / 100;
          y = input / 10 - 10 * x;
          z = input - 100 * x - 10 * y;
  • ProgrammingLanguageClass/Report2002_1 . . . . 16 matches
         = Principles of Programming Languages =
         ※ 입력된 문장들이 제시된 문법(grammar)에 맞는지 판단하는 Recursive Descent Parsing 기법을 이용한 파서(parser)를 작성하시오.
          * Internal/external documentations
          | <term> <minus_operator> <expression>
         <identifier> → any names conforming C identifier
         <minus_operator> → -
          * 입력: INPUT.TXT로 이름지어진 텍스트 파일
          * 출력: 주어진 문법에 따라 INPUT.TXT에 저장되어 있는 문장을 분석한다. 파싱(parsing)되는 중간과정을 <처리 예>와 같이 출력하고, 문법에 적합하면 “Yes,” 입력된 문장이 적합하지 않으면 오류 메시지와 “No”를 출력한다.
          * 각 파싱(parsing) 함수는 리턴하기 직전에 해당 non-terminal이 검색되었음을 알리는 메시지를 출력하여야 한다.
          printf("<expression> parsed.\n");
          printf("<identifier>: %s parsed.\n",token_string);
          * 어휘분석기(lexical analyzer)의 소스코드는 정수 변수 next_token, 문자열 변수 token_string, 함수 lexical()을 포함하여야 한다. 함수 lexical()은 입력 스트림을 분석하여 하나의 lexeme을 찾아낸 뒤, 그것의 token type을 next_token에 대입하고, lexeme 문자열을 token_string에 저장하는 함수이다.
          * 기타 구현 시 요구되는 세부 사항은 직접 결정하고, internal document에 기술한다.
         ["ProgrammingLanguageClass"]
  • ProjectSemiPhotoshop/기록 . . . . 16 matches
          |||||| 알카노이드 PairProgramming ||
          * 10/24 pm1:00~pm4:00 VC예제 작성 , GDI, BMP, Key Input 예제 작성
          * Sampling 구현
          * 1차 integration - histogram, sampling
          * 2차 integragion - 추가기능 + 새로운 라이브러리(하지만 추가기능에 대한 대응 미흡으로 철수)
          * 흑백에 대한 명암 처리 - Null, Negative, Gamma Correction, Contrast Stretched Compression, Posterizing, Clipping, Iso-intensity Contouring Range-hilighting
          * 영역 설정, Blurring, Mask, Sharpening, Edge Detection Embossing, Median Filtering 구현
          *Solarize using a Threshold, Parabola, First Parabola, Second Parabola 구현
          * Contrast Stretching, Histogram Equalisation, 윈도우로 설정한 영역에 대해서만 '7. 영상 질 향상' 적용
          * 3차 Integration : 11월 29일에 작성한 기능들 하나로 합침.
  • Scheduled Walk/소영&재화 . . . . 16 matches
         #include<iostream>
         #include<string>
         using namespace std;
         int main()
          int start_x = 0;
          int start_y = 0;
          int width_size = 5;
          int length_size = 5;
          int road[width_size][length_size]={{0}};
          string temp = "2222244451";
          int i= start_x;
          int j = start_y;
          for (int k=0;k<temp.size();k++)
          for(int j=0; j<width_size; j++)
  • SmallTalk/문법정리 . . . . 16 matches
         UndifinedObject(Object)>>doesNotUnderstand:
         TempTestCase>>initialize
          super initialize.
         "Code in Bold" "Comments in double-quotes"
         3 squared. "Receiver object is small integer 3."
         'abc' asUppercase. "Receiver object is string 'abc'."
         200 factorial. "Receiver object is small integer 200."
          * 선택자는 단일 식별자이며, 인수는 없다.(the selector is a single Identifier, there are no arguments)
          * Binary messages
          "argument is the Integer object 5"
          "argument is the String 'xyz'"
          "argument is the Integer object 20"
         Point x: 4 y: 200. "receiver is the object Point"
          * Binary 메세지는 그 다음의 우선 순위를 가진다. Binary message have the next precedence.
          * 괄호 '()' 를 써서 우선 순위를 변경할수 있다. You can alter precedence by using parenthses.
  • SoftwareEngineeringClass . . . . 16 matches
         === examination ===
          * ["SoftwareEngineeringClass/Exam2002_1"]
          * ["SoftwareEngineeringClass/Exam2002_2"]
          * ["SoftwareEngineeringClass/Exam2006_1"]
          * ''Software engineering'', Ian Sommerville : 최근 세계적으로 가장 많이 쓰이고 있는 SE 교과서. 탁월.
          * 본인은 거의 독학으로 SE 공부를 했다. 수업시간에 구조적 프로그래밍(structured programming)에 대해 설명을 들었을 때는 전혀 감흥이 없었고 졸음까지 왔다. 기억나는 내용도 없다. 하지만 스스로 공부를 하면서 엄청난 충격을 받았다. OOP는 구조적 프로그래밍의 패러다임을 완전히 벗어나지 못했다! 구조적 프로그래밍을 Goto 제거 정도로만 이해하는 것은 표피적 이해일 뿐이다! 구조적 프로그래밍 하나만 제대로 익혀도 내 생산성은 엄청나게 향상될 것이다! (참고로 정말 구조적 프로그래밍이 뭔지 알고 싶은 사람들은 다익스트라의 6,70년대 이후의 저작들을 읽어보길 권한다. 칸트 철학을 공부하는 사람이 칸트의 1차 저술을 읽지 않는다는 게 말이 되겠는가.) --김창준
         ["neocoin"]:수업 무지하게 재미있음. 더 자세한 이야기는 수업 종료후 추가. 현재의 느낌은 수업이 커버하는 내용이 너무 방대하여, 재시간안에 지식전달을 다 못할것 같은 교수님의 불안감이 수업에서 느껴지는게 아쉬움 --상민
         ["fnwinter"]: 수업이 잼있다는 것은 동감...수업 내용이 너무 방대하는 것도 동감..또한...수업이 실제적이지 못하다는 것도 동감...수업에서 너무 많은 내용을 다루어서 그런가 싶다..결론...수업을..듣고..얻은.것이..무엇인가..라는 의문점이 남는다.
          * 막무가내식의 coding에 관한 것이 아닌 직접적인 돈과의 연관성에 대해 알아가는 학문 같다는 느낌. 제한된 기간안의 적절한 cost를 통해 project를 완성(?) 하는 것. 아.. 정말 학기 중기 까지는 재미있었는데. 알바로 인한 피로누적이 수업을 듣지 못하게한 T-T 아쉬움이 너무 많이 남는다. 한번더 들을까..? 원래 이런건 한번더 듣는거 아닌가? ^^a 하하.. 상민이형 필기 빌려줘요. ^^;; -- 영현
         시간이 나면 ExtremeProgramming에 대해서도 이야기를 하신다는데, 어떤 이야기가 나올지 궁금하네요. [SPICE] 레벨4는 되어야 사용할 수 있다는 말엔 조금 당황스러웠어요. --[Leonardong]
         하지만 역할별, 작업별로 만드는 계획서와 보고서에 쏟는 시간이 너무 많다는 생각은 저 뿐만이 아닐 것입니다. 심사시에는 계획서에서 언급하지 않은 활동을 실행했다고 딴지를 걸 정도로, 계획서대로 실행된 내용을 변경없이 실행하는 것이 프로젝트의 반복가능성을 평가하는 기준인것 같습니다. 설계와 구현 사이에서 계획대로 실행 안되는 부분을 극단적으로 느꼈는데, 예를 들어 클래스 다이어그램과 시퀀스 다이어그램이 [Refactoring]과 같은 코드 재구성 작업을 할 때마다 바뀌어야 했습니다. 다이어그램이 코드로 매칭되지 않기 때문에 코드를 바꿈은 물론 다이어그램을 바꾸는 이중의 수고를 겪어야 했습니다. :( --[Leonardong]
         see also ProgrammingLanguageClass
  • VisualBasicClass/2006/Exam1 . . . . 16 matches
         ④ MultiLine은 컨트롤이 문의 여러 줄을 받아 들일 수 있는지 여부를 결정하게 된다. True는 한줄을, False는 여러줄을 사용할 수 있다.
         Print I;
          Dim m As Integer
          Dim j As Integer
          Dim temp As String
          Picture1.Print temp
         Print I
         Print "Loop" Print "Loop"
         Print "Loop" Print "Loop"
         Dim a(1 to 20, 1 to 30) As Single
         Print a(5,3)
         2) String$(7,"*-")
         3) InStr("태수금지화목토천혜명", 4)
         a = inputbox(“입력문자”)
         Print x, "->", Len(x) ; "byte"
         Print y, "->", Len(y) ; "byte"
         Print z, "->", Len(z) ; "byte"
  • WeightsAndMeasures/김상섭 . . . . 16 matches
         #include <iostream>
         using namespace std;
         #include <vector>
         #include <algorithm>
         const int maxweight = 10000000;
          int weight;
          int strength;
         int main()
          int value[5608];
          int tem;
          int max =test.size();
          while(cin >> temp.weight >> temp.strength)
          sort(test.begin(), test.end(), compare);
          for(int i = 1; i < max; i++)
          for(int j = i; j != 0 ; j--)
  • WinCVS . . . . 16 matches
         WinCVS를 처음부터 사용해봅시다.
          1. WinCVS를 사용하기 위해서는 Python과 TCL이 깔려있어야 한다.
          ''DeleteMe 맞는 이야기인가요? ["sun"]의 기억으로는 아닌것으로 알고 있고, 홈페이지의 설명에서도 다음과 같이 나와있습니다. 'WinCvs is written using the Microsoft MFC.' '' [[BR]]
          ''WinCVS가 돌아가기 위해서는 2개의 어플리케이션이 필요하다.[[BR]]
          WinCVS 1.3을 실행하기 위해서는 Python언어가 필요하다. Python이 없이는 WinCVS는 동작하지 않는다.[[BR]]
          WinCVS에 유용한 몇몇 것들이 TCL 쉘 상에서 실행된다. 이것들을 활성화 시키기 위해서는 최신버전의 ActiveTCL이나 Tcl/Tk가 필요하다. (From WinCVS설치 메뉴얼)[[BR]]'' -- 선호
          ''WinCVS 의 쉘에서의 직접 커맨드 입력기능을 이용하려면 이전 버전에선 TCL, 최신버전에서는 Python 을 이용합니다. 하지만, 설치 안해도 WinCVS 의 주기능들은 이용가능한걸로 기억합니다. --["1002"]''
          2. 잘 받아놓은 WinCVS를 깔자.
          * [http://www.wincvs.org]
          3. WinCVS가 뜨면 끝
          1. 프로그램을 시작하고 첫 화면을 보자. 무심코 지나쳤다면 Ctrl+F1 또는 Admin - Preference 를 보자.
          4. WinCvs탭에서도 필요한 것만 수정하자
         = LINK =
  • XpQuestion . . . . 16 matches
         ''Why not move these into XperDotOrg?''
         - '필요하면 하라'. XP 가 기본적으로 프로젝트 팀을 위한 것이기에 혼자서 XP 의 Practice 들을 보면 적용하기 어려운 것들이 있다. 하지만, XP 의 Practice 의 일부의 것들에 대해서는 혼자서 행하여도 그 장점을 취할 수 있는 것들이 있다. (TestDrivenDevelopment, ["Refactoring"], ContinuousIntegration,SimpleDesign, SustainablePace, CrcCard Session 등. 그리고 혼자서 프로그래밍을 한다 하더라도 약간 큰 프로그래밍을 한다면 Planning 이 필요하다. 학생이다 하더라도 시간관리, 일거리 관리는 익혀야 할 덕목이다.) 장점을 취할 수 있는 것들은 장점을 취하고, 지금 하기에 리스크가 큰 것들은 나중에 해도 된다.
         각 Practice 를 공부를 하다보면, 저것들이 이루어지기 위해서 공부해야 할 것들이 더 있음을 알게 된다. (의식적으로 알아낼 수 있어야 한다고 생각한다.) Refactoring 을 잘하기 위해선 OOP 와 해당 언어들을 더 깊이있게 이해할 필요가 있으며 (언어에 대해 깊은 이해가 있으면 똑같은 일에 대해서도 코드를 더 명확하고 간결하게 작성할 수 있다.) CrcCard 를 하다보면 역시 OOP 와 ResponsibilityDrivenDesign 에 대해 공부하게 될 것이다. Planning 을 하다보면 시간관리책이나 일거리 관리책들을 보게 될 것이다. Pair 를 하다보면 다른 사람들에게 자신의 생각을 명확하게 표현하는 방법도 '공부'해야 할 것이다. 이는 결국 사람이 하는 일이기에. 같이 병행할 수 있고, 더 중요한 것을 개인적으로 순위를 정해서 공부할 수 있겠다.
         === UserStory, Engineering Task 의 의존성 문제 ===
         어디선가 이야기 나왔었던 문제. 규모가 되는 프로젝트의 경우 100 장의 Index Card 는 보관하기도 어렵고 널려놓기엔 정신을 어지럽힌다.;;
         - Story Card 는 Kent Beck 이 사용자와 더 빠른 피드백을 위해 생각한 덜 형식적인 방법이다. 어차피 Story Card 는 전부 AcceptanceTest 로 작성할 것이기에, 테스트가 작성되고 나면 AcceptanceTest 가 도큐먼트 역할을 할 것이다. Index Card 도구 자체가 보관용이 아니다. 보관이 필요하다면 위키를 쓰거나 디지털카메라 & 스캐너 등등 '보관용 도구', 'Repository' 를 이용하라.
         - 어차피 실제 고객에게 가치를 주는 중요한 일만을 하자가 목적이기에. Documentation 자체가 중요한 비즈니스 가치를 준다던가, 팀 내에서 중요한 가치를 준다고 한다면 (예를 들어서, 팀원중 몇명이 항시 같이 작업을 할 수 없다던지 등등) Documentation 을 EngineeringTask 에 추가하고 역시 자원(시간)을 분배하라. (Documentation 자체가 원래 비용이 드는 일이다.)
         === PairProgramming 적용하기 ===
         PairProgramming 은 XP 에서 논란이 많은 듯 하다. Man-Hour 를 절반으로 깎는다는 생각을 하게 되어서인지.
         interface 가 잘 정의하고 둘이서 분업을 하면 훨씬 효과적 아닌가?
         - ["1002"] 가 ProjectPrometheus 를 할때엔 거의 전체 작업을 Pair로 진행했다. Integration 비용이 전혀 들지 않았다. (두명이 멤버였으니; 당근!) 그리고 초기 소스와 지금 소스중 초기 모습이 남아있는 부분을 보면 '젠장. 왜 이렇게 짠거야? 이런 허접한...' 이다. 중복된 부분도 많고, 매직넘버도 남아있고, 처음엔 쓸거라 생각했던 일종의 어뎁터 역할을 하는 클래스는 오히려 일만 복잡하게 만들고 등등.
         단, 올바른 Pair는, 역시 Pair 하는 사람들 스스로 성숙할 필요가 있는 것 같다. ["1002"] 처럼 삐지기 쉽거나 F 스타일에 더 가까운 MBTI 스타일을 가진 사람은 약간. -_-; (["1002"] 는 INFP 인데, F 스타일이 T 스타일의 3배이다.; 물론 MBTI만으로 사람 전체를 평가하는것은 당근 아님.~)
         - 이는 SustainablePace 에 대한 증표이다. 보통 일이 초과되어 진행된다는것은 뭔가 일이 잘 안풀린다는 증거가 되기도 하다.
         늘 지속할 수 있는 안정적인 흐름을 만들어내는 것이 중요하다. '40' 숫자가 중요하단 뜻은 아니다. (단, PairProgramming 이 기가막히게 잘 진행되는 경우는, '40시간을 초과' 할 수가 없을 것 같다. 사람 진이 다 빠지니까. -_-;)
  • java/reflection . . . . 16 matches
          * ORM(Object-Relational-MApping)이 아닌 방식으로 DAO를 만들 때 사용되기도 한다.
         * just print "say Hello" string to console
          System.out.println("say Hello");
          public static void main(String[] args) {
         * call say HelloWorld class in external jar file package
          public static void main(String[] args) throws MalformedURLException, ClassNotFoundException, InvocationTargetException, IllegalAccessException, InstantiationException, NoSuchMethodException {
          System.out.println(classLoader.getClass().getName());
          new URL("file:/Users/fharenheit/Projects/openflamingo/helloworld.jar")
          System.out.println(Thread.currentThread().getContextClassLoader().getClass().getName());
          System.out.println(Thread.currentThread().getContextClassLoader().getClass().getName());
          Object object = helloWorld.newInstance();
          for (int i = 0; i < declaredMethods.length; i++) {
          System.out.println(declaredMethod.getName());
          sayHello.invoke(object, null);
  • usa_selfish/곽병학 . . . . 16 matches
          int a;
          int b;
          pair(int a, int b) {
         public class Main{
          public static void main(String ar[]) {
          Scanner scan = new Scanner(System.in);
          int n = scan.nextInt();
          for(int i=0; i<n; i++)
          p[i] = new pair(scan.nextInt()-1, scan.nextInt()-1);
          int last = p[n-1].b;
          int[] ans = new int[last+1];
          for(int i=0; i<n; i++) {
          System.out.println(ans[last]);
          public int compare(pair o1, pair o2) {
  • 가위바위보/영록 . . . . 16 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin("data1.txt");
          int temp1,temp2;
          int count1=0,count2=0,count3=0;
          fin.getline(buf,10);
          fin.getline(buf,10);
          for (int i=0; i<100; i++)
          fin.get(a);
          fin.get(a).get(a);
          fin.get(a);
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/송지원,성화수 . . . . 16 matches
          public int floor;
          public int min;
          public int max;
          public Elevator(int i, int j) {
          min = i;
          public void move(int i) {
          public void up(int i) {
          public void down(int i) {
          if(floor - i < min) move(min);
          if(floor == min){
          min--;
         == mainTest.java ==
         public class mainTest {
  • 데블스캠프2011/셋째날/String만들기 . . . . 16 matches
         String str("abcdef");
         String str2("abcb");
         String str3(" aB c ");
         || contains || str.contains("bcd") == TRUE ||
         || equals || str.equals(new String("abcdef")) == TRUE ||
         || equalsIgnoreCase || str.equalsIgnoreCase(new String("ABcdEf")) == TRUE ||
         || indexOf || str2.indexOf("b") == 1 ||
         || lastIndexOf || str2.lastIndexOf("b") == 3 ||
         || subString || str.subString(2, 4) == "cd" ||
         || format || String::format("참석자 : %d명", 8) == "참석자 : 8명" ||
         || valueOf || String::valueOf(3) == "3" ||
          * [데블스캠프2011/셋째날/String만들기/송지원]
          * [데블스캠프2011/셋째날/String만들기/김준석]
          * [데블스캠프2011/셋째날/String만들기/서지혜]
  • 데블스캠프2012/다섯째날/C로배우는C++원리 . . . . 16 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
          int age;
         void setAge(void* this, const int age) {
         void print(void* this) {
          printf("name = %s, age = %d\n", this_person->name, this_person->age);
         void createPerson(void* this, const char* name, const int age){
         void createStudent(void* this, const char* name, const int age, const char* studentID){
         void printStudent(void* this) {
          printf("name = %s, age = %d, studentID = %s\n", this_person->name, this_person->age, this_student->studentID);
         int main() {
          print(p);
          //printStudent(p);
  • 문자반대출력/김정현 . . . . 16 matches
          Scanner input;
          public String getText(String name)
          String text="";
          input = new Scanner(new File(name));
          text = input.nextLine();
          System.out.println("헉");
          System.out.println("헉");
          public void reverseWrite(String text)
          for( int count=0; count<text.length(); count++)
          text=new String(charArray);
          System.out.println(text+ " 쓰기성공");
          public static void main(String args[])
          String addr = "test.txt";
  • 미로찾기/조현태 . . . . 16 matches
         #include <iostream>
         using namespace std;
         int map [17][17]={{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
         int x;
         int y;
         int look;
         void go2(int x_1, int y_1, int x_2, int y_2, int x_3, int y_3)//1앞, 2앞오른쪽, 3오른쪽
         int main()
          int i=0;
          int j=0;
  • 벡터/김홍선,노수민 . . . . 16 matches
         #include <iostream>
         #include <fstream>
         #include <string>
         #include <vector>
         #include <algorithm>
         using namespace std;
          string name;
          int score;
         void main()
          ifstream fin("input.txt");
          while(!fin.eof())
          fin >> temp.name >> temp.score;
          sort(vec.begin(), vec.end(), *compare);
          for(i=vec.begin();i<vec.end();i++)
  • 비밀키/황재선 . . . . 16 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin("source.txt");
          char input;
          int i;
          int count = 0;
          fin.get(input);
          if (fin.eof())
          cout << input;
          data[count] = input;
          int key;
          cin >> key;
  • 새싹교실/2011/AmazingC/6일차 . . . . 16 matches
         #title 새싹교실/2011/AmazingC/6일차
          * 반환형: int, char, float, double 등
         #include <stdio.h>
         int sum(int a,int b){
         int sum2(int a,int b);
         int main(){
          printf("%d + %d = %d\n", 1,2,sum(1,2));
          printf("%d + %d = %d\n", 3,5,sum2(3,5));
         int sum2(int a,int b){
          * LIFO(Last In First Out): 마지막으로 들어온 요소가 가장 먼저 pop으로 빠져나온다. - 쓰레기통으로 비유.
  • 새싹교실/2011/學高/6회차 . . . . 16 matches
          * automatic type conversion, type casting
          * if, ternary conditional operator, switch, dangling-else problem
         === 자기 반성 및 수정할 점(feeling/finds) ===
         === 자기 반성 및 고칠 점(feeling/finds) ===
         #include <stdio.h>
         int main(){
          int i, j;
          printf("*");
          printf(" ");
          printf("*");
          printf("\n");
         === 자기 반성 및 고칠 점(feeling/finds) ===
  • 새싹교실/2011/무전취식/레벨1 . . . . 16 matches
          == ICE Breaking ==
          * 변수 : Integer(정수) => int, Character(문자) => char 기타 등등!
         변수타입(int,float, double, long) 변수이름,변수이름,변수이름;
         #include<stdio.h>
         int main(){
          int x1,x2,x3;
          printf("%c",y_myname);
         Integer => 정수
         이소라 : 역시 실습이 짱이다. int main과 return 0을 쓰는 이유를 들었다.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 대학교와서 처음으로 C실습을 해본 뒤에 듣는 수업이었다. 고등학교때는 VS6.0버전을써서 2008버전이 많이 어색했었다. 교수님이 설명도 제대로안해주시고 ㅠㅠ 안배우고왔으면 어쨌을까 걱정됬었다. 하지만!!! 새싹수업듣고 별로 걱정안해도 되겠구나 하는 생각이 들었당 ㅎ.ㅎ 고등학교때는 void main을 썼었는데 int main을쓰고 리턴해주는 이유를 알게됬다. 처음부터 차근차근 해주시는 설명이 좋았다.ㅎㅎ 앞으로도 열심히 들어야징!!! -[이소라]
  • 새싹교실/2012/아우토반/앞반/3.22 . . . . 16 matches
         Ice breaking
          * char, int, float, double
          * dangling else problem
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         #include <stdio.h>
         void main (void) {
          int a = 3;
          int b = 3;
          printf("ㅋ");
          printf("\n");
          printf("%d\n", a);
          printf("ㅎ");
          printf("\n");
          printf("%d\n", b);
  • 새싹교실/2012/열반/120514 . . . . 16 matches
         int fact(int n)
         void hanoi(int n, int a, int b, int c)
          printf("%d --> %d\n", a, c);
         int main()
          printf("%x %x", ptr, &s);
          printf("%x %x", ptr, ptr+1);
          printf("%d %d", s, *ptr);
         int main()
          printf("%d", array[1]);
          printf("%d", *(array+2));
  • 새싹교실/2012/열반/120521 . . . . 16 matches
         void swap(int *a, int *b){
          int temp;
         void swap(int *a, int *b){
         int main()
          int x=5, y=10;
          printf("%d %d\n", x, y);
          printf("%d %d\n", x, y);
         void printstring(char *ptr){
         int main()
          printstring("abcd");
  • 스택/이태양 . . . . 16 matches
         #include<stdio.h>
         int stack[5]={0,};
         int index =0;
         int top = 4;
         int bottom = 0;
         void push(int num)
          printf("만땅.\n");
          stack[index++] =num;
          printf("더이상지울것이없습니다.\n");
          stack[--index] = '\0';
         void print()
          for(int i=4;i>=0;i--)
          printf("[%d]\n",stack[i]);
         void main()
          print();
  • 압축알고리즘/수진&재동 . . . . 16 matches
         #include <iostream>
         using namespace std;
         int main()
          char input[20];
          cin >> input;
          int i=0;
          char standard = input[0];
          while(input[i] != '\0'){
          char c = input[i];
          char c = input[i];
          int diff = atoi(&c);
          cout << (char)((int)standard - diff);
          int diff = atoi(&c);
          cout << (char)((int)standard + diff);
  • 주민등록번호확인하기/문보창 . . . . 16 matches
          private String num;
          public void input()
          Scanner input = new Scanner(System.in);
          num = input.next();
          int validateNum[] = {2,3,4,5,6,7,8,9,2,3,4,5};
          int sum = 0;
          int key = (int)num.charAt(12) - 48;
          for (int i = 0; i < 12; i++)
          sum += ((int)num.charAt(i) - 48) * validateNum[i];
          public static void main(String[] args)
          socialNum.input();
          System.out.println("대한민국 국민이네요~ ^^ 안녕하세요!");
          System.out.println("혹시 간첩???? -_-;;");
  • 3rdPCinCAUCSE/FastHand전략 . . . . 15 matches
         3회 경진대회 팀 2위인 Fast Hand Fancy (빠른손) 팀 전략 ([1002], [경태], [geniumin])
         대회 1주일 전 [1002] 와 [geniumin] 군은 도서관에서 정보 올림피아드 관련 책을 빌렸었습니다. 그리고 대회 2시간 전 [1002] 와 [경태]군은 해당 책의 문제중 3문제 정도를 풀어봤습니다.
         C 번의 경우는 일단 [geniumin] 군이 초기 분석 & 알고리즘을 만들고 중반에 [1002]군이 pseudo-code 화, 후반 알고리즘 검산 & 알고리즘 수정에 대해서 [geniumin] & [경태]군이, 구현은 pseudo code 를 만들던 [1002]가 했습니다.
         [1002] 가 이전에 비슷한 문제를 풀어본 경험이 있던 관계로 바로 구현을 맡았습니다. 대략 코딩에 2-3분정도 소요하였고, 그 동안 [경태]와 [geniumin] 가 3번문제에 대해 분석.
         [경태]가 코딩을 맡았으며 그 동안 [1002] 와 [geniumin] 가 3번문제에 대해 분석. [1002]는 실제 문제를 이해하는 시간이 적었던 관계로 [geniumin] 이 주로 설명. 추후에 [1002] 는 [geniumin] 의 방법이 맞다는 전제하에 pseudo code로의 작성을 도왔습니다.
         테스트 예제 값들은 잘 통과했는데, 실제 가서 확인해보니 약간 차이가 나는 input 이 있었는듯.
         [geniumin] & [경태] 군에게 다시금 감사하며.. 또하나 느낀점이라면, 협업에서는 사람들에 대한 믿음이 참 중요하다는 생각이 들었습니다. 역시 수학적인 사고 & 알고리즘 부분은 [geniumin]나 [경태]쪽이 저보다 보는 시야가 깊다는 것을 느꼈습니다. [1002]는 처음에 [geniumin] 과 같이 C 번에 대해 알고리즘 분석 & 디자인 할때는 약간 이해가 가지 않는 부분에 대해서 수긍을 잘 안했었는데, 추후 [geniumin]를 믿고 그의 의견이 맞다고 가정하고 문제를 풀고 코드화 했을때 테스트 예제 데이터에 대한 답이 정확히 나오는 것을 보면서, [geniumin]의 알고리즘을 코드화해주는것에 전념하게 되었습니다. 만일 혼자서 고민하고 문제를 각자 따로 풀려고 했었다면 그런 좋은 결과가 나오지 않았을 것입니다. (아쉽게 시간내에 C 번을 통과하지 못했지만, 조금만 더 시간이 있었으면 통과했을것이라는..~) 협업시에 상대에 대한 믿음이 얼마나 중요한가에 대해 다시금 느끼게 되었습니다.
         [3rdPCinCAUCSE]
  • A_Multiplication_Game/권영기 . . . . 15 matches
         #include<stdio.h>
         #define swap(s, w) t = s, s = w, w = t;
         long long int t;
         long long int n, start1, end1, start2, end2;
         long long int getStart(long long int start, int cnt)
          long long int temp;
         int main(void)
          int cnt;
          if(cnt % 2 == 1)printf("Stan wins.\n");
          else printf("Ollie wins.\n");
  • ClassifyByAnagram/1002 . . . . 15 matches
         hotspot 으로 프로파일링 돌린뒤 중간 쓸데없어보이는 코드들 마구마구 삭제. 가장 병목지점은 Anagram.register, {{{~cpp WordElement}}} (지금은 input 갯수 n 에 대해 n 번 실행)
         나중에 Psyco bind 하고 나서는 4.4 초.
         P3 933, 128 RAM Win98 Python2.2 + Psyco 에서 돌림.
          def __init__(self, anAnagramTable, out=os.sys.stdout):
          for key in anAnagramTable.iterkeys():
          out.write(' '.join(anAnagramTable[key]) + "\n")
          def __init__(self):
          def read(self, anIn=os.sys.stdin):
          for word in anIn:
          aw=''.join(WordElement(aWord))
         psyco.bind(WordElement)
         psyco.bind(Anagram)
         psyco.bind(Formatter)
         if __name__=="__main__":
          print "time : ", end-start
  • ClassifyByAnagram/박응주 . . . . 15 matches
          def __init__(self):
          return "".join(s)
          self.assert_(['abc'] in anagram.anagrams())
          self.assert_(['abc', 'bac'] in anagram.anagrams())
          self.assert_(['abc', 'bac'] in anagram.anagrams())
          self.assert_(['efg'] in anagram.anagrams())
         if __name__ == "__main__":
          #unittest.main(argv=('', '-v'))
          for word in sys.stdin:
          for words in anagram.anagrams():
          print ' '.join(words)
          print t2 - t1
         P3 700MGhz 384MB Win2000 Python 2.2.1에서 17만 단어로 실행하면 8.8초.
  • EnglishSpeaking/TheSimpsons/S01E02 . . . . 15 matches
         Marge : All right. Mmm. How about "he"? Two points. Your turn, dear.
         Bart : As in, "This game is stup-id."
         Lisa : Yeah, Bart. You're supposed to be developing verbal abilities
         Marge : We could look this "id" thing up in the dictionary.
         Marge : I think it's under the short leg of the couch.
          Twenty-two points, plus triple word score
          plus 50 points for using all my letters.
         Homer : Wait a minute, you little cheater.
          You're not going anywhere until you tell me what a "kwyjibo" is.
          A big, dumb, balding, North American ape with no chin.
         Homer : I'll show you a big, dumb, balding ape!
         [EnglishSpeaking/TheSimpsons]
  • EuclidProblem/Leonardong . . . . 15 matches
         #include <iostream.h>
         #include <math.h>
         #define max( m, n ) ( m > n ? m : n )
         #define min( m, n ) ( m < n ? m : n )
          long small = min( m, n );
          long remain;
          remain = big % small;
          if ( remain == 0 )
          small = remain;
         void main()
          cin >> A >> B;
          if ( int(y) == y )
          if ( abs(xResult) + abs(yResult) > abs(x) + abs(int(y)) ){
          yResult = int(y);
  • Googling . . . . 15 matches
         {{|Google, Inc (NASDAQ: GOOG), is a U.S. public corporation, initially established as a privately-held corporation in 1998, that designed and manages the internet Google search engine. Google's corporate headquarters is at the "Googleplex" in Mountain View, California, and employs over 4,000 workers.|}}
         Google, Inc 는 미국의 공공기업이다. 이 기업은 1998년에 개인적으로 설립된 회사이다. 이 회사는 구글 인터넷 검색엔진을 설계하고 운영한다. 구글은 Mountain View 에 Googleplex에 본사를 두고 있다. 그리고 4000명 이상의 사원이 있다.
         ||Upload:googleplex-mountain-view.jpg||
         || link || 주어진 URL의 링크를 포함한 모든 페이지를 보여줍니다 ||
         || allintitle || 페이지의 제목만을 이용해서 검색한다. 내용에서는 찾지 않는다. ||
         || allintext || 페이지의 본문을 이용해서 검색한다. ||
         || allinurl || URL 링크에서 존재하는 문장을 통해서 검색한다. ||
         || allinanchor || 링크된 글안에서 검색을 한다. ||
         검색엔진에서 {{{~cpp operating system concepts filetype:ppt}}} 를 쳐보자.
         [SearchEngine]
  • HASH구하기/권정욱,곽세환 . . . . 15 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main(){
          cin >> secret;
          ifstream fin(secret);
          int sum_ascii[5] = {0,0,0,0,0};
          for (int i = 0; i<20; i++){
          for (int j = 0; j<5; j++){
          for (int j = 0; j<5; j++){
          fin.get(identi[i][j]);
          if (fin.eof())
          if (fin.eof())
          for (int j = 0; j<5; j++){
  • HanoiProblem/은지 . . . . 15 matches
         #include <iostream>
         using namespace std;
         void hanoi(int n, int from, int by, int to);
         int main()
          int n;
          int from, by, to;
          cin >> n;
         void hanoi(int n, int from, int by, int to)
  • LIB_3 . . . . 15 matches
         #if !defined(LIB_SCHE_CPP)
         #define LIB_SCHE_CPP
         /* Init The Scheduler List
         void LIB_Init_Schedu(){
          for (int count = 0;count<LIB_MAX_HEAP;count++) {
          LIB_INT_COUNT = 0;
         여기서는 MAIN에서 본 듯 태스크를 만들어 주는 함수
         void LIB_create_task (char *task_name,int priority,void (*task)(void),INT16U * Stack)
          // Init The Stack
          LIB_STACK_INIT(task,Stack); <-------- 스택을 초기화 해준다.....
          if ( priority < LIB_MIN_PRIORITY || priority > LIB_MAX_PRIORITY ) return; <--------- 우선순위가 지랄 같으면 그냥 끝낸다.
          // Insert Prio Queue;
          // Init the TCB by argument <----- 함수에서 얻은 변수들로... 초기화...ok???
          pReady_heap[ready_tcb_ptr]->StackSeg = (INT16U)FP_SEG(Stack);
          pReady_heap[ready_tcb_ptr]->StackOff = INT16U(Stack) - 28;
          int temp_count = ready_tcb_ptr;
         void LIB_resume_task(INT16U priority ){
          int temp;
          for ( int i = 0; i<= suspend_tcb_ptr ; i++ ) {
          LIB_VRAM_STRING(0,15,"CAUTION !!!",0x07);
  • LUA_4 . . . . 15 matches
         >>print("foo!!")
         >print(type(a)) -- a의 type을 알 수 있다.
         > print ("a+b=",sum(1,2))
         > print ( sum(1,2,3,4,5) )
         >> local inside = 2 -- inside는 local 에서만 쓸 수 있도록 선언한다.
         >> print (inside)
         > print(outside) -- outside 는 존재 해도 ...
         > print(inside) -- inside는 존재하지 않는다. nil 반환
         >> local inside = 1
         >> print (inside) -- 상위 함수의 local 변수에 접근 할 수 있습니다.
  • MineSweeper . . . . 15 matches
         [http://online-judge.uva.es/p/v101/10189.html 원문보기]
         === About MineSweeper ===
         === Input ===
         === Sample Input ===
          || [문보창] || C++/Python || 50분/40분 || [MineSweeper/문보창] ||
          || [이승한] || Flash/java?? || ? || [MineSweeper/이승한] ||
          || [황재선] || Java || ? || [MineSweeper/황재선] ||
          || [신재동] || C++ || 40분 || [MineSweeper/신재동] ||
          || [김회영] || C++ || ? || [MineSweeper/김회영] ||
          || [Leonardong] || [Python] || 3시간 3분 || [MineSweeper/Leonardong] ||
          || [곽세환] || C++ || 30분+ || [MineSweeper/곽세환] ||
          || [김민경] || Py || || [MineSweeper/김민경] ||
          || 김태훈 [zyint] || python || || [MineSweeper/zyint] ||
          || [허아영] || C++ || 1시간 || [MineSweeper/허아영] ||
          || 김상섭 || C++ || 많이..ㅡㅜ || [MineSweeper/김상섭] ||
  • NetworkDatabaseManagementSystem . . . . 15 matches
         The network model is a database model conceived as flexible way of representing objects and their relationships. Its original inventor was Charles Bachman, and it was developed into a standard specification published in 1969 by the CODASYL Consortium. Where the hierarchical model structures data as a tree of records, with each record having one parent record and many children, the network model allows each record to have multiple parent and child records, forming a lattice structure.
         The chief argument in favour of the network model, in comparison to the hierarchic model, was that it allowed a more natural modeling of relationships between entities. Although the model was widely implemented and used, it failed to become dominant for two main reasons. Firstly, IBM chose to stick to the hierarchical model in their established products such as IMS and DL/I. Secondly, it was eventually displaced by the relational model, which offered a higher-level, more declarative interface. Until the early 1980s the performance benefits of the low-level navigational interfaces offered by hierarchical and network databases were persuasive for many large-scale applications, but as hardware became faster, the extra productivity and flexibility of relational systems won the day.
  • PowerOfCryptography/이영호 . . . . 15 matches
         k = log(n root string:p)
         // p를 string으로 받음
          = 1/n * log(string:p)
          = 1/n * ( log( 10의 (string:p의 자릿수)승) + log((x) = string:p의 맨 첫숫자와 두번째 숫자를 일의자리로 한 것을 반올림. -> 예제에서 1.8) )
         #include <stdio.h>
         #include <string.h>
         #include <math.h>
         int func(char *p, int n){
          int ret;
          int t = strlen(p)-1;
          ret_buf = (int)ret_buf + 1; // 올림.
          ret = (int)ret_buf; // 내림일경우 여기서 저절로 내린다.
  • PrimaryArithmetic/허아영 . . . . 15 matches
         #include <iostream>
         using namespace std;
         #include <math.h>
         int numlen(int num)
          int turn = 0;
         int process(int n1, int n2)
          int nums1[11], nums2[11];
          int i, max_len, big_num, small_num, num1_len, num2_len, operation = 0;
         int main()
          int n1, n2, operation;
          while(cin >> n1 >> n2)
  • ProjectZephyrus/Client . . . . 15 matches
         [http://zeropage.org/browsecvs/index.php?&dir=ProjectZephyrusClient%2F Zephyrus Client CVS] 참조.
          + ---- MainSource - 메인 프로그램 소스 & JCreator 프로젝트 화일이 있는 디렉토리
         || Story Point || 내용 ||
          노동의 양으로 생각해야 하는건 Engineering Task 가 아닌가요? 암튼 이번의 경우는 필수 기능 기준으로 잡아보긴 했습니다. (엄격하게 나눈건 아니긴 하지만요.~) --석천
          ''Engineering Task나 User Story 모두 노동의 양으로 estimation을 해서, 포인트를 준다. 이렇게 "비용"이 적힌 카드들을 놓고, 어느 것을 하고, 미루고, 먼저하는 지 등의 순위 결정은 "중요도 중심", "위험도 중심"이 있는데, 작년 이후 익스트리모들(KRW)은 복잡하게 이런 걸 따지지 말고 그냥 비지니스 가치로 순서를 정하라고 한다. --JuNe''
         Task Point - 영서 & 석천이 Main Frame 연습용 코드 작성했을때 기준을 1 Task Point 로 잡음. (대강 120 라인정도/1시간 정도의 난이도 & 속도)
         || '''내용''' || '''Task Point''' || '''완료여부(○)''' ||
         || buddy list class refactoring (tree model move method) || . || ○ (20분) 6/5 ||
         || 친구 등록 입력창 만들기 || 0.5 || ○(1분 -_-; {{{~cpp InputDialog}}}로 해결) (6/7) ||
         || ZephyrusClient Refactoring || 0.5 || . ||
         || 내용 || Task Point || . ||
         || 내용 || Task Point || . ||
  • RandomWalk/김아영 . . . . 15 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         const int max = 12;
         int main()
          int board[max][max]={0,};
          int x, y, arsize, end=1;
          int direction;
          int total=0;
          cin >> arsize ;
          cin >> x ;
          cin >> y ;
          for(int i=0;i<arsize;i++)
          for(int j=0;j<arsize;j++)
  • Refactoring/SimplifyingConditionalExpressions . . . . 15 matches
         = Chapter 9 Simplifying Conditional Expressions =
          charge = quantity * _winterRate + _winterServeceCharge;
          charge = winterCharge(quantity);
          * You have a sequence of conditional tests with the same result. [[BR]]''Combine them into a single conditional expression and extract it.''
          * The same fragment of code is in all branches of a conditional expression. [[BR]]''Move it outside of the expression.''
          * You have a conditional that chooses different behavior depending on the type of and object [[BR]] ''Move each leg of the conditional to an overriding method in a subclass. Make the orginal method abstract.''
         == Introduce Null Object ==
          if (customer == null) plan = BillingPlan.basic();
         == Introduce Assertion ==
          * A section of code assumes something about the state of the program. [[BR]]''Make the assumption explicit with an assertion.''
         ["Refactoring"]
  • Scheduled Walk/김홍선 . . . . 15 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         void main(){
          int arr[100][100]={0, };
          int x,y,i;
          ifstream fin("input.txt");
          fin >> i;
          fin >> i;
          fin >> x;
          fin >> y;
          fin >> ch;
          for(int k=0;k<i;k++)
          for(int j=0;j<i;j++){
  • Trace . . . . 15 matches
         #include <iostream>
         #include <windows.h>
         #include <tchar.h>
         #include <crtdbg.h>
         using namespace std;
         #define TRACE Trace
         #define TRACE ;
          int nBuf;
          nBuf = _vstprintf(szBuffer, lpszFormat, args);
          //_tprintf(szBuffer); // 이부분은 console window 에 출력해주는 부분이다.
          OutputDebugString(szBuffer); // debug output window 에 string 출력
  • UglyNumbers/구자겸 . . . . 15 matches
         #include <stdio.h>
         int unum(int num); // 심술쟁이수인지 검사한다
         void main()
          int i,j; // 카운터
          int uarr[2000] = {0,}; // 심술쟁이 수들의 배열
          int ind; // 알고 싶은 인덱스
          scanf("%d", &ind); // 알고 싶은 심술쟁이 수를 얻는다
          for ( i=1,j=1;j<=(ind-1);i++ ) {
          printf("%d 번째 수는 %d이다\n",ind,uarr[ind-1]);
         int unum(int num)
  • UglyNumbers/이동현 . . . . 15 matches
          * @return int 코드 1:삽입완료 -1:이미 값 있음 1:맨 마지막에 추가
          public int insert(double n) {
          for (int i = 0; i < arr.size(); i++) {
          public int start() {
          int index = 1;
          while (index != 1500) {
          insert(((Double) arr.get(0)).doubleValue() * 2.0);
          insert(((Double) arr.get(0)).doubleValue() * 3.0);
          insert(((Double) arr.get(0)).doubleValue() * 5.0);
          index++;
          System.out.println("The 1500'th ugly number is "+new BigDecimal(((Double)arr.get(0)).doubleValue()));// + " " + arr.size());
          public static void main(String[] args) {
  • WeightsAndMeasures/신재동 . . . . 15 matches
          def __init__(self, weight, strength):
         def inputATurtle():
          numsStr = raw_input().split(' ')
          weight = int(numsStr[0])
          strength = int(numsStr[1])
         def inputTurtles(turtles):
          (weight, strength) = inputATurtle()
          for t in turtles[1:]:
          for t in turtles:
          print t.weight, t.strength, t.canAmount
         if __name__=='__main__':
          inputTurtles(turtles)
          print numOfTurtle
          def __init__(self,foo):
         >>> l=[A(i) for i in xrange(5,0,-1)]
  • usa_selfish/김태진 . . . . 15 matches
         // main.cpp
         #include <stdio.h>
         #include <stdlib.h>
         #include <algorithm>
         using namespace std;
          int left;
          int right;
         int compare(const void* a,const void* b);
         int comp(cow a,cow b);
         int main()
          int N,i,j,k;
          printf("%d",k);
         int compare(const void* a,const void* b)
         int comp(cow a,cow b)
  • wxPython . . . . 15 matches
         wxWindows 를 기반한 다중플랫폼 Python GUI Toolkit.
         C로 짜여진 버전으로 바인딩된 형태이며, 각종 IDE 와 찾은 충돌로인해 많은 문제를 일으키지만, PyDev (eclipse plugin) 과 굉장히
         궁합이 좋다. (단지 PyDev 가 wx 모듈에서 발생한는 exception handling 메시지를 보여주지 않기 때문에 불편하다)
          * http://huniv.hongik.ac.kr/~yong/MoinMoin/wiki-moinmoin/moin.cgi/PythonScript
          * http://maso.zdnet.co.kr/20010300/insidelinux/article.html?id=335&forum=0 - 마소 2001년 3월호 관련 기사
          * http://www-903.ibm.com/developerworks/kr/linux/library/l-wxpy.html?dwzone=linux
          * [http://www.roebling.de wxDesigner] - GUI 디자인 툴. GUI 디자인 한 결과물을 wxPython, wxWindows 등의 코드로 변환할 수 있다.
         [TkProgramming], [wxPython], [PyGTK], [PyQt]
  • 달리기/강소현 . . . . 15 matches
         public class Running {
          public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
          int M = sc.nextInt();
          int T = sc.nextInt();
          int U = sc.nextInt();
          int F = sc.nextInt();
          int D = sc.nextInt();
          int [] path = new int[T];
          for(int i=0; i<T; i++){
          int run = 0;
          for(int i=0; i<T; i++){
          System.out.println(i);
  • 데블스캠프2008/등자사용법 . . . . 15 matches
         Ending
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
         단순 교육이 아닌 innergame방식의 교육을 통한 획기적인 교육.
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
         If you reach your dream, Think other idea by your fixed idea.
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
         I have dream, and I'm going to reach my dream. 다시말해서 더욱 낙관적으로 살고 제 꿈을 이루기 위해서 열심히 하겠습니다. 물론 그전에 이명박이 사라져야합니다
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
         <165.194.17.136-Ending>
  • 데블스캠프2011/둘째날/Machine-Learning . . . . 15 matches
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/namsangboy]
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/송지원]
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/강성현]
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/김수경]
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/김동준]
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/변형진]
          * svm learning : ./svm_multiclass_learn -c 1 /home/newmoni/workspace/DevilsCamp/data/test.svm_light test.c1.model
          * [데블스캠프2011/둘째날/Machine-Learning/SVM/namsangboy]
  • 떡장수할머니/강소현 . . . . 15 matches
          public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
          int d = sc.nextInt();
          int [] num = new int[d+1];
          for(int i=2; i<num.length; i++){
          int k = sc.nextInt();
          find(num[d-3],num[d-2],k);
          private static void find(int x, int y, int k) {
          int i=1;
          System.out.println(i+"\n"+(k-x*i)/y);
  • 마름모출력/김정현 . . . . 15 matches
         if __name__ == '__main__':
          a=str(raw_input("패턴 입력: "))
          b=int(input("변의 길이 입력: "))
          for n in range(b*2-1):
          l.insert(n," ")
          l.insert(b-1,a)
          for m in range(b):
          for n in range(b*2-1):
          print l[n],
          print ""
          for m in range(b-1):
          for n in range(b*2-1):
          print l[n],
          print ""
  • 벡터/권정욱 . . . . 15 matches
         #include <iostream>
         #include <string>
         #include <vector>
         #include <algorithm>
         using namespace std;
          string name;
          int score;
         int main(){
          student_num1.name = "Park Jin-young";
          student_num4.name = "Kim Su-jin";
          sort(vec.begin(), vec.end(), compare);
          vector<student>::iterator i=vec.begin();
          for(i = vec.begin(); i != vec.end(); i++)
  • 벡터/임민수 . . . . 15 matches
         #include <iostream>
         #include <string>
         #include <vector>
         #include <algorithm>
         using namespace std;
          string name;
          int score;
          student(string aName, int aScore) // 생성자 ?? !!
         void main()
          for(int i=0; i<5; i++)
          sort(vector1.begin(), vector1.end(), comp_score);
          sort(vector1.begin(), vector1.end(), comp_name);
          for(vector<student>::iterator j=vector1.begin(); j<vector1.end(); j++)
  • 새싹교실/2011/Pixar/4월 . . . . 15 matches
          * Type Casting
          * Infinite loop
         #include <stdio.h>
         #include <assert.h>
         int main()
          int score;
          printf("%c \n", grade);
         #include <stdio.h>
         #include <assert.h>
         int main()
          int score;
          printf("%c" , grade);
          * Infinite loop
  • 숫자야구/문원명 . . . . 15 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         void main()
          int ans[3];
          int input[3];
          int strike,ball;
          cin >> input[0] >> input[1] >> input[2];
          for(int i=0; i < 3; i++)
          for(int j=0; j < 3; j++)
          if (ans[i] == input[j])
  • 영어단어끝말잇기 . . . . 15 matches
          17. nine
          *V.a movement faster than walking.
          *N.a finish point of something.
          *N.a point of intersection
          *somebody do something with itself. cf) iteration
          *V.go to the inside
          * (in stories) a creature like a small man with white hair and a pointed hat who lives under the ground and guards gold and precious things: (informal) the gnomes of Zurich (= Swiss bankers who control foreign money)
          *V.effort for something
          *N.a kind of underwear brand
  • 이영호/지뢰찾기 . . . . 15 matches
         모기도 많고 지뢰찾기도 안되고 해서 지뢰찾기 Reverse Engineering
         Crack: 분석 완료 직후, Inline Patch로 배열 부분을 손보고 지뢰 찾기 시작 후 고급 기록 1초 갱신 완료.
         int func(int limit)
          int num = (int)rand();
         main_func()
          int base = 0x1E; // 가로길이 (30) <- 원래 main_func()의 매개변수로 받아온다.
          int height = 0x10; // 세로길이 (16)
          int count = 0x0A; // 지뢰 갯수(10)
          int map[height][base] = {0x0f, }; // 눈여겨 볼점은 x좌표는 뒤에 y좌표는 앞에 썼다는 점.. 지뢰 없는 곳은 0x0f로 기록 있는 곳은 0x80
          int ret_base, ret_height;
          continue;
  • 자료병합하기/허아영 . . . . 15 matches
         #include <stdio.h>
         void main()
          int a[] = {10, 40, 70, 80, 90, 99};
          int b[] = {20, 30, 40, 50, 60, 70, 85, 90, 95, 97, 99};
          int c[20], i = 0;
          int turn_a = 0, turn_b = 0, turn_c = -1;
          printf("***************n");
          printf("*MERGE PROGRAM*n");
          printf("***************n");
          printf("A = ");
          printf("%d ", a[i]);
          printf("nB = ");
          printf("%d ", b[i]);
          printf("nC = ");
          printf("%d ", c[i]);
  • 정모/2011.4.11 . . . . 15 matches
         == Ice Breaking ==
          * [Spring/탐험스터디]
          * Spring Framework에 대해 공부하고 있다.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 항상 그렇듯 정모할때 궁금한건 Ice Breaking 시간이군요. 녹화 재방이라도 제발 보고싶은 마음입니다. 정모시간에 소개해주신 LETSudent는 참석해봐야겠습니다. 유익한 정보군요. 새로온 21기 학우들 반갑습니다. 얼굴 기억했어요. Zeropage의 생활을 맘껏 즐겨보아요. 새얼굴들이 보였는데 이제 새로 새내기들을 한번 정모에 참여할때가 되었다는 생각이 잠깐 들었던 시간입니다. 권순의 학우의 OMS는 배경이 아야나미 레이라서 기쁨반 안타까움 반으로 배경을 지켜보았고 안티짓도 좀 올렸었습니다만, 그거 알잖아요 안티도 팬입니다. OMS에서 소개된 노래들에 대해 다시한번 들어보고 생각해보게 되었던 시간은 기쁩니다. 창작자의 의미가 가득차있는 것을 알게해주었으니까요. 그사람들도 기쁠겁니다. 회장님이 만들으셨던 스피드 퀴즈는 정말 신선했어요. '우리도 올해는 이런 레크레이션을 다하는구나'는 뿌듯한 생각이 들었습니다. 전 이런거 좋아하니까요. 저도 어느정도 공통된 경험이 쌓인사람들과 만난다면 해보는게 좋을것 같습니다. 다음주 소풍은 정말 꽃이 만발했으면 좋겠단 생각이드네요 한번 이건 알아봐야겠습니다. 비는 안오겠죠. 시험기간 전이라 걱정이될 사람도있겠지만 경험상, 시험기간 전에는, 시험기간 중에는, 시험기간 후에는 노는겁니다. Enjoy EveryThing이죠. 항상 늦지만 이렇게라도 정모에 참석해서 후기를 남길수있는게 가장 즐겁습니다. 다음주에는 즐거운 소풍준비를 해가야겠군요 - [김준석]
          * Ice Breaking .. 재밌는데 너무 시간이 오래 걸리는거 같습니다. 이거 오래하니까 뒤에 준비된 순서를 시간에 쫓겨서 하네요. 진경이 맨날 기숙사 엘리베이터에서 어색하게 인사만 하고 지나갔는데.. 오늘 보니 반가웠습니다. OMS의 영화에 나온 음악 하니까 최근에 영화관에서 레드 라이딩 후드 보다가 MUSE의 노래가 나오길래 깜짝 놀란 기억이 납니다. 영화도 되게 재밌었어요. 그리고 네이트 주소를 적어두질 못했는데 다시 한번 올려주시면 저도 파일방 이용을 좀...ㅎ 다음주 소풍 정말 기대됩니다. 항상 정모 나올 때마다 느끼는거지만 뭔가 하고 간다 라는 느낌을 확실히 받는거 같네요. 정모 준비하느라 고생하시는 회장님 감사합니다~ - [정의정]
          * 이번 정모에는 11학번 학우분들이 참여하여 반가웠습니다. Ice Breaking때는 화기애애한 분위기가 마음에 들었습니다. 다들 웃으면서 ㅎㅎ 재미있는 시간이었던 것 같습니다. 일일 퍼실리테이터... 어떤 느낌일지는 모르겠지만 한번 해 보는 것도 재밌지 않을까라는 생각도 했습니다. 이번 OMS를 진행하면서.. 음... 역시 배경이 문제였었던 같습니다 -ㅅ-;; 그리고 생각했던거 보다 머리속에 있는 말이 입 밖으로 잘 나오지를 않아가지고 제가 생각했던 것들을 모두 전달하지 못했던 것 같습니다. 사실 음악을 좋아하다 보니까 영화나 TV를 보다가 아는 음악이 나오면 혼자 반가워 하고 그랬는데,, 그 안에 있는 의미를 찾아보는 일은 많이 하지 않았었습니다. 다만, 이런걸 해 보겠다고 생각했던게 아이언맨 2 보다가 (보여드렸던 장면에서) 처음에는 Queen의 You're my Best Friend라는 노래로 생각하고 저 장면과 되게 모순이다라고 생각했었는데 그 노래가 아니라 다른 노래라 조금 당황했던 것도 있고, 노래 가사를 보면서 아 이런 의미가 있을 수도 있겠구나 라는 생각을 했습니다. 그래서 이것 저것 찾아보게 되었던 것이 계기가 되었던 것 같습니다. 그리고 이번 스피드 퀴즈는 그동한 제로페이지에서 했던 것들이 많았구나 라는 생각과 함께, 제가 설명하는데 윤종하 게임이 나올줄이야 이러면서 -ㅅ-;; ㅋㅋㅋ 마지막으로 다음주 소풍 기대되네요 ㅋ - [권순의]
          1. Ice Breaking을 제가 많이 해 본 것은 아니라 원활한 진행이 잘 안 되네요. 당장은 할 일들이 쌓여있으니 바로 공부하겠다고 하면 거짓말이 될테고… 방학 중에 Ice Breaking에 대해 알아보고 2학기땐 더 즐거운 시간이 될 수 있도록 해야겠습니다.
          * 저는 횟수로 따지자면 이번이 두번째로 참여하게 되는건데, 좀 제대로 참여한건 오늘이 처음이라 어떨지 많이 개대됐어요. Ice Breaking도 좀 더 재밌게 쓸 수 있었을 텐데 하는 아쉬움(?)도 남네요. 또, 중간에 스터디 소개같은거 하는데서는 이게 도대체 무슨 말이지.... 라는 것도 좀 있었구요. OMS는 매트릭스가 제일 기억에 남...는 다고 하면 거짓말이겠고.. (배경이..) 사실 OMS하는게 상당히 많이 전문적인(저번에 현이형이 준비하는거 봤거든요.)걸 하는 줄 알았는데 꼭 그런건 아닌거 같아 좀 쉽게 다가온거 같아 좋았어요. 근데 갑자기 궁금한게.. 위키에 두명이 동시에 수정하게 되면 어떻게 될까요? 앞에 저장한 사람의 내용이 씹히게 될까요;? - [김태진]
          * 이번 정모에서는 11학번들이 많이 와서 굉장히 흥미로웠습니다 ㅋㅋ 저번 정모에 안나가서 그때도 11학번들이 많이 왔었는지는 모르겠지만, 이렇게 1학년들과 같이 정모에 참석하니 아 이제 1년이 지났구나 하는 생각이....Ice Breaking에서는 거짓말을 급조해야 하다보니 그 당시에 생각나는 아주 사소한 걸로 할 수 밖에 없었습니다. 그리고 OMSㅋㅋ 처음에 배경화면 뭔가가 친숙한 얼굴이다 했는데 생각해보니 에반게리온의 아야나미 레이..ㅋㅋㅋㅋㅋ 아 이러면 안되지 어쨋든 영화나 광고 속에서 작가(?)가 전하고 싶은 말을 노래 가사를 통해 알려준다는 사실이 놀라웠습니다. - [신기호]
          * 악.. 후기를 썼다고 기억하고 있었는데 안썼네요ㅠㅠ.... 항상 새로운 프로그램을 준비하는 회장님께 박수를 보냅니다. 진실, 거짓은 전에도 해봤지만 자기를 소개하는 IceBreaking도 즐거웠습니다. 의외의 사실과 거짓은 항상 나오는 것 같습니다. 스피드 퀴즈도 즐거웠습니다. 재학생들이 그간의 활동을 회고하고 11학번 학우들이 새로운 키워드를 알게된 좋은 계기였다고 생각합니다. 순의의 OMS도 즐겁게 봤습니다. 자신이 이야기하고자 하는 내용을 좀 더 자신 있게 표현하지 못하고 약간 쑥스러워(?) 하는 면도 보였지만 동영상도 그렇고 많은 준비를 했다고 느꼈습니다. 다음 OMS에 대한 부담이 큽니다=_=;; - [Enoch]
  • 조영준 . . . . 15 matches
          * Google App Engine
          * Android Programming
          * Java Swing
          * Game Engine
          * Algorithm problem solving
          * Linux user
          * D2 CAMPUS SEMINAR 2015 참가
          * DevilsCamp 2015 - Game Programming in Java with LibGdx - [데블스캠프2015/첫째날]
          * 2015년 하계방학 Java 강사 - [https://onedrive.live.com/redir?resid=3E1EBF9966F2EBA!23488&authkey=!AHG1S-XLSURIruo&ithint=folder%2cpptx 수업 자료]
          * D2 CAMPUS SEMINAR 3회 참여
          * 9월 14일 정모 [OMS] - Cloud Computing
          * 설계패턴 TeamProejct https://github.com/SkywaveTM/wiki-path-finder
          * Wiki Path Finder (wikipedia api를 이용한 두 단어간의 연관성 추정, 2014년 2학기 자료구조설계 팀 프로젝트)
          * 2015년 설계패턴 팀 프로젝트의 기반 프로젝트가 됨. https://github.com/SkywaveTM/wiki-path-finder
          * GDG pre devfest 2013 seoul - 징격의 안드로이드. 그리고 밤샘. - https://github.com/ZeroPage/MorningTypeHuman
          * [PracticeNewProgrammingLanguage]
  • 최소정수의합/문보창 . . . . 15 matches
         #include <iostream.h>
         int find_min_sum(int bound_num)
          int n = 1;
         inline void show_min_sum(int n) { cout << n << " " << (n * n + n) / 2 << endl; }
         void main()
          show_min_sum(find_min_sum(3000));
          * 이렇게도 풀 수 있군요 - 김태훈[zyint]
  • 최소정수의합/허아영 . . . . 15 matches
         #include <stdio.h>
         int main()
          int n, sum;
          printf("n = %d, sum = %d", n, sum);
         #include <stdio.h>
         int main()
          int n, sum;
          printf("n = %d, sum = %d", n, sum);
         #include <stdio.h>
         int main()
          printf("n = %f, sum = %f", n, sum);
         만약에 3000까지가 아닌 더 큰 수를 입력하고 프로그램을 돌려보시겠어요? 위의 코드에서 int 를 double 형으로 바꾸고 3000 대신 18000000000000000000 을 넣은 코드입니다. 한번 실행해 보세요. 더 나은 방법이 생각나실수도 있을것 같아요. 문제를 풀고 나서 어떤 점을 느끼셨나요? - 아무개
  • 파스칼삼각형/이태양 . . . . 15 matches
         #include<stdio.h>
         void main(){
         int p[10][10]={0,};
         int i,j;
          printf("%4d",p[i][j]);
          printf("\n");
         #include<stdio.h>
         void main(){
         int p[10][10]={0,};
         int i,j;
         int c=0,r=0;
         printf("행의수를 입력하시오:"); scanf("%d",&c);
         printf("열의수를 입력하시오:"); scanf("%d",&r);
          printf("%4d",p[i][j]);
          printf("\n");
  • 파이썬으로익스플로어제어 . . . . 15 matches
         다음 win 32 extension 라이브러리를 설치하신뒤, 인터프리터 쉘에서 입력해보세요.~
          * [http://prdownloads.sourceforge.net/pywin32/pywin32-204.win32-py2.4.exe?download Python 2.4 버전]
          * [http://prdownloads.sourceforge.net/pywin32/pywin32-204.win32-py2.3.exe?download Python 2.3 버전]
         from win32com.client import Dispatch
         ie = Dispatch("InternetExplorer.Application")
         ie.Document.login.user_Id.value = "reset"
         ie.Document.login.passwd=" "
         ie.Document.login.submit()
          * ie의 type이 instance라고 나오는데, ie가 사용할 수 있는 메소드(맞나요?)에 대한 설명이 있는 문서가 어디 있나요? 어제 보여주신 id, pw를 입력폼에 넣는 메소드 및 사용법을 알고 싶어요. -- 재선
          자세한 내용은 http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/objects/internetexplorer.asp 에의 컴포넌트들을 참조하세요. 주로 알아야 할 객체는 WebBrowser, Document 객체입니다. (login 예제는 나중에~) --[1002]
          * Document.body.innerHTML 이렇게 하면 body 에 있는 내용을 다운로드 받을 수 있다
  • 피보나치/김재성,황재선 . . . . 15 matches
         #include<stdio.h>
         int fivo(int i) {
         int main() {
          int index = 0;
          int output = 0;
          printf("피보나치수열을 시작합니다 Made in Korea \n");
          printf("숫자를 입력해주시와요~ 캬캭\n ");
          scanf("%d", &index);
          printf("%d\n", fivo(index));
          printf("이프로그램제작에 도움을 주신 황재선형님꼐 감사를 드립니다");
  • 3N+1Problem/강소현 . . . . 14 matches
         ||Problem||1207||User||talin0528||
         #include <iostream>
         using namespace std;
         int length(int n){
          int len = 1;
         int maxLength(int num1, int num2){
          int i, j, max=0;
         int main(){
          int num1, num2;
          while(cin>>num1>>num2)
  • 3N+1Problem/곽세환 . . . . 14 matches
         #include <iostream>
         using namespace std;
         int cycle(int n);
         void main()
          int i, j, great_length;
          while (cin >> i >> j)
          int temp_i = i;
          int temp_j = j;
          int temp;
          int temp;
         int cycle(int n)
          int cnt = 1;
  • 5인용C++스터디/타이머보충 . . . . 14 matches
         Project -> Settings -> Link -> Object/library modules: 에 winmm.lib 추가
         #include <afxwin.h> // MFC core and standard components
         #include <afxext.h> // MFC extensions
         #include <afxdisp.h> // MFC Automation classes
         #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
         #include <afxcmn.h> // MFC support for Windows Common Controls
         #include <mmsystem.h>
         //{{AFX_INSERT_LOCATION}}
         // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
         void CALLBACK TimerProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2)
         int CMMTimerView::OnCreate(LPCREATESTRUCT lpCreateStruct)
         BEGIN_MESSAGE_MAP(CMMTimerView, CView)
  • AnEasyProblem/김태진 . . . . 14 matches
         #include <stdio.h>
         int bincount(int X);
         int main()
          int N,n,k=0;
          k=bincount(N);
          for(n=N+1;k!=bincount(n);n++){}
          printf("%d\n",n);
         int bincount(int X)
          int nf,kf=0;
  • BasicJava2005/3주차 . . . . 14 matches
         == String에 대하여 ==
          * String은 Java에서 기본적으로 지원하는 String을 저장하는 자료형
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          String line = br.readLine();
          system.out.println(br);
          e.printStackTrace();
         Scanner sc = new Scanner(System.in);
         int x = sc.nextInt();
          * C/C++의 #include 와 using namespace의 결합형
          * [http://pllab.kw.ac.kr/j2seAPI/api/index.html] : 한글 5.0 API 문서
  • CheckTheCheck . . . . 14 matches
         [http://online-judge.uva.es/p/v101/10196.html 원문보기]
          Queen King Knight
         === Input ===
         Game #d: white king is in check.
         Game #d: black king is in check.
         Game #d: no king is in check.
         === Sample Input ===
         Game #1: black king is in check.
         Game #2: no king is in check.
         Game #3: white king is in check.
  • Counting/하기웅 . . . . 14 matches
         #include <iostream>
         #include "BigInteger.h"
         using BigMath::BigInteger;
         #define MAX_NUM 1000
         int i, j, k, input;
         BigInteger number[MAX_NUM+1];
         void init(int num)
         int main()
          init(1000);
          while(cin>>input)
          cout<< number[input] <<endl;
  • DocumentObjectModel . . . . 14 matches
         Upload:DOM_Inspector.png
         Document Object Model (DOM) is an application programming interface to access HTML and XML documents. It is programming language and platform independent. Behind the interface the document is represented with an object-oriented model.
         Different variants of DOMs were initially implemented by web browsers to manipulate elements in an HTML document. This prompted the World Wide Web Consortium (W3C) to come up with a series of standard specifications for DOM (hence called W3CDOM).
         DOM puts no restrictions on the document's underlying data structure. A well-structured document can take the tree form using DOM.
         Most XML parsers (e.g., Xerces) and XSL processors (e.g., Xalan) have been developed to make use of the tree structure. Such an implementation requires that the entire content of a document be parsed and stored in memory. Hence, DOM is best used for applications where the document elements have to be randomly accessed and manipulated. For XML-based applications which involve a one-time selective read/write per parse, DOM presents a considerable overhead on memory. The SAX model is advantageous in such a case in terms of speed and memory consumption.
  • EightQueenProblem2Discussion . . . . 14 matches
         문제를 나름대로 해결한 사람들은 StepwiseRefinement를 꼭 공부해 보세요.
         이미 알고리즘 수업 시간을 통해 생각해본 문제이기에 주저없이 백트래킹(BackTracking) 기법을 선택해서 슈도코드를 종이에 작성해보았고 그를 바탕으로 구현에 들어갔습니다.(''그냥 호기심에서 질문 하나. 알고리즘 수업에서 백트래킹을 배웠나요? 최근에는 대부분 AI쪽으로 끄집어 내서 가르치는 것이 추세입니다만... 교재가 무엇이었나요? --김창준 Foundations of Algorithms Using C++ Pseudocode, Second Edition 이었습니다. ISBN:0763706205 --이덕준'') 백트래킹은 BruteForce식 알고리즘으로 확장하기에 용이해서 수정엔 그리 많은 시간이 걸리지 않았습니다. 만일 EightQueenProblem에 대한 사전 지식이 없었다면 두번째 과제에서 무척 당황했을것 같습니다. 이번 기회에 코드의 적응도도 중요함을 새삼 확인했습니다. --이덕준
         놓인 자리를 알려주고 끝난다.) 이 적은 것을 토대로 코딩을 하였고 처음 여왕은 0,0에 놓았습니다. 생각한대로 코딩을 했다고 생각하고 실행을 하자 무한루프를 돌았습니다. 전 처음 여왕이 어느 위치에 놓이던간데 거기에 맞는 답이 있는거라고 생각했는데 그것이 잘못되었다고 생각합니다. 처음부터 이 문제의 답을 알고있었다면 프로그램을 짜는데 좀더 간결한 코드를 짤수있었을텐데 란생각이 들어서 코딩을 멈추고 종이를 꺼내 문제를 풀기 시작했습니다. 하지만 답은 나오지않았고 제가푸는방식(여왕을 먼저 아무위치에나 놓고 그위치에 맞게 가로세로대각선에 없는 곳에 놓는다)을 그냥 코딩을 하였습니다. 처음 여왕의 위치를 8*8에 돌아가면서 놓고 검사를 하였습니다. 무식하긴하지만 답은 나왔습니다. 두번째 과제는 처음 코딩할때부터 판의 크기와 여왕의 숫자를 define해서 썻기 떄문에 숫자만 바꾸어 주었습니다. 하지만 답이 맞는지 확신이 서지 않습니다. 그이유는 이문제의 대한 알고리즘을 모르기 때문이라고 생각합니다. 그리고 c++을 썻는데 방학동안 쭉 자바로 플밍하다가 c++을 쓴이유가 비주얼툴의 디버깅을 이용하려는 생각이었는데 무슨문젠지 디버깅을 할수없어서 참 난감했습니다. 디버깅하면 금방알수있는 문제를 눈으로 차근차근 훓으면서 봐야했습니다. --최광식
         두번째 문제에 답이 있었군요.. 역시 제답이 틀리군요 실패의 원인은 제대된 알고리즘이 없다는 것이라고 생각합니다 BackTracking 알고리즘을 보고 왔지만 이문제에 대한 설명도 보왔습니다. 하지만 알고리즘에 무지해서 그런지 잘 눈에 들어오지 않습니다. 그래도 밤새 풀면서(엉뚱한 답이다도) 오래만에 재밌었습니다. ^^-최광식
          ''기본적으로 이 문제는 알고리즘을 스스로 고안(invent)해 내는 경험이 중요합니다. BackTracking 알고리즘을 전혀 모르는 사람도 이 문제를 풀 수 있습니다. 아니, 어떻게 접근을 해야 BackTracking을 전혀 모르는 사람도 이 문제를 쉽게 풀 수 있을까 우리는 생각해 보아야 합니다.''
         BackTracking 이야기가 나오는데, 대강 수업시간에 들은것이 있었지만 그냥 연습장에 판을 그리고 직접 궁리했고요. 결국은 전체 방법에 대한 비교방법이 되어서 (8단계에 대한 Tree) 최종 구현부분은 BackTracking의 방법이 되어버리긴 했네요. (사전지식에 대해 영향받음은 어쩔수 없겠죠. 아에 접해보지 않은이상은. --;) --석천
         하..하하.. BackTracking이.. 뭐죠? 거꾸로.. 추적한다는 이야기같은데.. ㅡㅡa --선호[[BR]][[BR]]
         어제 서점에서 ''Foundations of Algorithms Using C++ Pseudocode''를 봤습니다. 알고리즘 수업 시간에 백트래킹과 EightQueenProblem 문제를 교재를 통해 공부한 사람에게 이 활동은 소기의 효과가 거의 없겠더군요. 그럴 정도일줄은 정말 몰랐습니다. 대충 "이런 문제가 있다" 정도로만 언급되어 있을 주 알았는데... 어느 교재에도 구체적 "해답"이 나와있지 않을, ICPC(ACM의 세계 대학생 프로그래밍 경진대회) 문제 같은 것으로 할 걸 그랬나 봅니다. --김창준
         학교에서 알고리즘 시간에 너무 많이 놀았기 때문인지.. -_-;; 우리 학교에서는 BackTracking이 AI시간에 배우는 부분이라서 그런지..
         BackTracking에 대해 찾아보니 결국 제가 한 방법이 그 방법이군요. 알고리즘자체는 좀 틀리지만 (전 리커시브를 이용...)
  • Euclid'sGame/강소현 . . . . 14 matches
         ||Problem||2348||User||talin0528||
         public class Main{
          public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
          while(sc.hasNextInt()){
          int r1 = sc.nextInt();
          int r2 = sc.nextInt();
          private static void playGame(int r1, int r2) {
          int g, r, count=0;
          System.out.println("Ollie wins");
          System.out.println("Stan wins");
  • ImmediateDecodability/문보창 . . . . 14 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         const int MAX = 10;
         int main()
          int i, j, k;
          int count = 1;
          int nCode, len;
          while (cin.peek() != EOF)
          cin.getline(code[i], 11, '\n');
          continue;
  • JollyJumpers/Leonardong . . . . 14 matches
          for i in range( 1, aN ):
          if i not in aSet:
          for i in range( len(aSeries) - 1 ):
          inputString = sys.stdin.readline()
          seriesChar = inputString.split()
          seriesInt = []
          for char in seriesChar:
          seriesInt.append( int(char) )
          print JollyJumper().statementForSeries( seriesInt )
         if __name__ == '__main__':
         ## unittest.main()
  • LoveCalculator/허아영 . . . . 14 matches
          ''sample input 2번째와 3번째가 인상적이군.; --[1002]''
         #include <stdio.h>
         #include <string.h>
         int sum_name(char name[25]);
         void main()
          ungetc(ch, stdin);
          int first_person_sum, second_person_sum;
          // result print
          printf("%.2f", percentage);
          printf(" %% \n");
         int sum_name(char name[25])
          int sum = 0, i = 0;
          그래서 gets쓰고 저런함수들 썼구나 ㅠㅠ - [zyint]
  • MagicSquare/은지 . . . . 14 matches
         #include <iostream>
         using namespace std;
         int main()
          int size;
          int i, j;
          cin >> size;
          int **board = new int * [size+2]; //동적 2차원 배열 생성
          board[i] = new int [size+2];
          int num = 1;
          int row = 1;
          int mid = size / 2;
          int col = mid + 1;
  • MagicSquare/정훈 . . . . 14 matches
         #include<iostream>
         using namespace std;
         int main()
          int soo;
          int ma[9][9];
          cin >> soo;
          int x = (soo-1)/2;
          int y = 0;
          for(int q=0; q<9; q++)
          for(int w=0; w<9; w++)
          for(int i=2; i<=(soo*soo); i++)
          for (int t=0; t<soo; t++)
          for(int r=0; r<soo; r++)
  • Map연습문제/나휘동 . . . . 14 matches
         #include <map>
         using namespace std;
         void initilize()
         #include <iostream>
         #include <string>
         #include <vector>
         #include "rule.h"
         void main()
          initilize();
          string source = "wjgydlrtyffworxjbdzyrsybfwlrobffylryjbkyjrtbdcyyrvmbjlsrkugjglrmdcgdarjbjyftr";
          string decoded;
          for ( int i = 0 ; i < source.size() ; i++)
          for ( int rule = 0 ; rule < rules.size() ; rule++ )
  • MySQL . . . . 14 matches
         jdbc:mysql://localhost/database?user=user&password=xxx&useUnicode=true&characterEncoding=KSC5601
          * 중지 : myadmin shutdown -p
         insert user values('localhost', 'jeppy', password('암호'), 'y','y','y','y','y','y','y','y','y','y','y','y','y','y');
         insert user values('%', 'jeppy', password('암호'), 'y','y','y','y','y','y','y','y','y','y','y','y','y','y');
          * ZeroPage 회원 ["상민"](99,["neocoin"])에게 해 주십시오.
         6 rows in set (0.00 sec)
         1 row in set (0.00 sec)
         Client characterset: latin1
         Server characterset: latin1
          앗 탄로 났다. 드뎌 영문으로 설치한 부작용이 다들 영어 써요 ~ 와~~;; 오호 통재라 모든것은 시험끝나고 이루어질것이니.. --["neocoin"]
         MySQL에서 한글이 들어간 문자열을 제대로 정렬하려면 char 타입이 아닌 char binary 타입을 쓰면 됩니다. 하지만 이미 char 타입으로 되어있다면 ORDER BY BINARY 필드명 을 사용하면 됩니다. MySQL에서 char 타입은 순수한 아스키(0~127) 값에서만 제대로 동작합니다. 물론 char 타입을 쓴다고 해서 한글이 저장되지 않거나 하는건 아니지만, 검색이나 정렬등에서 제대로 작동하지 않는 경우가 있습니다. --["상규"]
         2 rows in set (0.00 sec)
         mysql> select * from addressbook ORDER BY BINARY name;
         6 rows in set (0.00 sec)
         [http://network.hanbitbook.co.kr/view_news.htm?serial=131 MySQL과 Transaction] 테이블 생성시 InnoDB 나 BSDDB 를 사용하면 Transaction 을 이용할 수 있다. (InnoDB 추천)
         http://navyism.com/main/memo.php?bd=lib&no=24
         [MySQL/PasswordFunctionInPython]
         [MySQL/PasswordFunctionInJava]
  • NumberBaseballGame/성재 . . . . 14 matches
         #include<iostream>
         #include<ctime>
         using namespace std;
         int main()
          int num;
          int strike=0;
          int ball=0;
          int rmatch[3];
          cin >> num;
          int match[3];
          int check=0;
          for(int i=0;i<3&& check==0;i++)
          for(int j=0;j<3 && check==0;j++)
  • OurMajorLangIsCAndCPlusPlus/Variable . . . . 14 matches
         const int a;
         int const b;
         const int *c;
         int * const d;
         const int * const e;
         #include <stdio.h>
         #include <time.h>
         void main()
          clock_t start, finish;
          volatile int a = 10, b = 20, c;
          for(int i = 0 ; i < 1000000000 ; i++)
          finish = clock();
          duration = (double)(finish - start) / CLOCKS_PER_SEC;
          printf("%2.1f seconds\n", duration);
  • ProgrammingPearls/Column4 . . . . 14 matches
         == Writing Correct Programms ==
          * For writing correct programms.
          * Problem Definition.
         === The shallange of binary search ===
          * 100명의 프로페셔널 프로그래머들에게 Binary search를 짜보라고 시켰다. 결과는? 90퍼센트의 사람은 버그 있는 Binary search를 짰다고 한다.
         === Writing the Program ===
          * 그냥 Binary search 만들어 가는 과정을 보여주고 있다.
         === Understanding the Program ===
          * Initialization
          * Termintion
         === Principles ===
          * Verification을 위한 general한 principles을 제공하고 있다.
          * Functions : precondition - 함수 시작 전에 보장되어야 할 조건 -과 postcondition - 함수 끝날때에 보장되어야 할 조건 -을 명시해준다.(...) 이러한 방법을 "Programming by contract"라 한다.
         ["ProgrammingPearls"]
  • ProjectPrometheus/EngineeringTask . . . . 14 matches
         || HTML Parsing || ○ ||
         || HTML Parsing 결과를 Object 로 반환 || ○ ||
         || Debian Server Setting; || ○ ||
         || ViewBook Linker 만들기 (and register as a service) ||
         || DB 에서 책에 대한 Total Point 를 가져와서 정렬, BookList 만들기 ||
          * 책에 대한 구체적인 정보를 확인할 수 있다. 책 정보를 볼 때, 타 인터넷 사이트에 대한 (amazon, wowbook, yes24 등등) Link 를 제공받아 이용할 수 있다.
         || 도서관 WEB 의 ViewBook Page 를 Parsing, ViewBook 객체로 추출 ||
         || ISBN 을 이용한 Linker 작성 (고려 : ISBN 이 DB 에 저장되는 것이 좋겠다고 생각) ||
         || DB 에 Total Point 누적 ||
         || RS Sorting and 출력 || ○ ||
         3 RS Implementation, Login ~1.5 (0.5) , 0.5
         || login 기능 구현 || ○ ||
          * Best Book (Rating, 책 정보 열람에 따른 점수 기준)을 확인할 수 있다.
         5 RS (UI), Admin 0.5, 0.5
  • PyServlet . . . . 14 matches
         === Resin 에서의 Setting ===
         <servlet-mapping>
         </servlet-mapping>
         요즈음(resin 3.08 기준)에는 이렇게 쓴다.
          <servlet-mapping url-pattern="*.py" servlet-name="PyServlet"/>
         resin/lib 디렉토리에 jython.jar 화일을 복사해준다.
          out.println("Testing...")
          print >>out, ""
          print >>out, ""
          print >>out, "Hello World..."
          print >>out, ""
          print >>out, ""
  • RandomWalk/유상욱 . . . . 14 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          int count, question, random, x = 0 , y = 0;
          cin >> question;
          int ** data = new int *[question];
          for(int i=0 ; i<question ; i++)
          data[i] = new int [question];
          for ( int j = 0 ; j < question ; j++ )
          for ( int j = 0 ; j < question ; j++ )
          for ( int j = 0 ; j < question ; j++ )
  • ReverseAndAdd/태훈 . . . . 14 matches
         {{{~cpp # -*- coding: cp949 -*-
          print n
          #print type(n)
          for i in range(len(str(n))):
          #print len(str(n))-i
          r=int(r)
          n=int(n)
          #print n+r
          #print hap(n+r)
          if n == int(reverse(n)):
          print '끝났셈!! : ' + n
         if __name__ == '__main__':
          n = raw_input('입력하셈 >> ')
          print hap(n)
  • ReverseAndAdd/황재선 . . . . 14 matches
          def __init__(self):
          while n != int(str(n)[::-1]):
          n += int(str(n)[::-1])
          def printRepeatNum(self, num):
          for i in range(0,num*2,2):
          print self.result[i], self.result[i+1]
         def main():
          num = input()
          for testcase in range(num):
          r.result += r.compute(input())
          r.printRepeatNum(num)
         if __name__ == '__main__':
          #unittest.main()
          main()
  • RonJeffries . . . . 14 matches
         ExtremeProgramming의 세 명의 익스트리모 중 하나
         Could you give any advices for Korean young programmers who're just starting their careers? (considering the short history of IT industry in Korea, there are hardly any veterans with decades of experiences like you.) -- JuNe
         This will sound trite but I believe it. Work hard, be thoughtful about what happens. Work with as many other people as you can, teaching them and learning from them and with them. Read everything, try new ideas in small experiments. Focus on getting concrete feedback on what you are doing every day -- do not go for weeks or months designing or building without feedback. And above all, focus on delivering real value to the people who pay you: deliver value they can understand, every day. -- Ron Jeffries
  • SeminarHowToProgramItAfterwords . . . . 14 matches
         SeminarHowToProgramIt에 대한 감상, 후기, 각종 질답, 논의, ThreeFs.
          * [창섭]:PairProgramming 자체가 인상적이었습니다. 음악을 아마추어로 하는 저로써는 음악외에도 이렇게 멋지게 콤비를 결성할 수 있다는 것에 놀라울 따름입니다. ^^;; 그리고 변수명을 고치는 것 자체가 Refactoring 에 들어가고 매우 중요하다는 사실도 감명이었습니다. ^^;
          * ["neocoin"] : UnitTest에서 추구한 프로그램의 설계에서 Divide해 나가는 과정은 여태 거의 디자인 타임에서 거의 수행을 했습니다. 그래서 여태 Test를 위한 코드들과 디버그용 코드들을 프로그램을 작성할때마다 그런 디자인에도 많은 시간을 소요했는데, 아예 프로그램의 출발을 Test에서 시작한다는 발상의 전환이 인상 깊었습니다. --상민
          * ["1002"] : 어제 Test Code : Product Code 간 중복 (return 0 !) 을 OAOO로 풀어서 Refactoring 을 해야 할 상황으로 규정짓는다는 말이 뒤통수를 한대 때리는 기분이였습니다;;
          * '테스트코드의 보폭을 조절하라. 상황에 따라 성큼성큼 보폭을 늘릴수도 있지만, 상황에 따라서는 보폭을 좁혀야 한다. 처음 TDD를 하는 사람은 보폭을 좁혀서 걸어가기가 오히려 더 힘들다' wiki:Wiki:DoTheSimplestThingThatCouldPossiblyWork. 이것이 훈련이 아직 덜된, TDD를 하는 사람에게는 얼마나 힘든지는 이번 RDP 짜면서 느꼈었는데. 열심히 훈련하겠습니다.
          * ["Refactoring"] 책에서는 ''Refactor As You Do Code Review'' 에 Code Review 를 위한 Refactoring을 이야기 하는데, Refactoring 을 위해서는 기본적으로 Test Code 가 필요하다고 할때 여기에 Test Code를 붙일테니까 상통하는 면이 있긴 하겠군요.
          * 흥미로운 것은 시끄러운 프로그래밍이였다는 것이였습니다. 혼자서 하는 프로그래밍(PairProgramming을 알고나니 새로운 개념이 생기는군요. 원래 Programming이라는 것은 혼자하는 거였는데, 이제 프로그래밍하면 pair인지 single인지 구분을 해주어야겠군요)을 하는 경우에는 팀원들이 소란스럽게 떠들면 ''아 지금 설계하고 있구나''하고 생각하고, 조용해지면 ''아 지금 코딩하고 있구나..''하는 생각이 들었는데, PP는 끝까지 시끄럽게 하는거라는 느낌이 들더군요. 그렇게 대화가 많아지는 것은 코딩에 대한 이해도의 증가와 서로간의 협력 등 많은 상승효과를 가져올 수 있다는 생각을 했습니다.
          * 그리고 관찰하던 중 PairProgramming에서 Leading에 관한 사항을 언급하고 싶습입니다. 사용하는 언어와 도구에 대한 이해는 확실하다는 전제하에서는 서로가 Pair에 대한 배려가 있으면 좀더 효율을 낼 수 있을꺼라 생각합니다. 배려라는 것은 자신의 상대가 좀 적극적이지 못하다면 더 적극적인 활동을 이끌어 내려는 노력을 기울어야 할 것 같습니다. 실습을 하던 두팀에서 제 느낌에 지도형식으로 이끄는 팀과 PP를 하고 있다는 생각이 드는 팀이 있었는데. 지도형식으로 이끄는 팀은 한 명이 너무 주도적으로 이끌다 보니 다른 pair들은 주의가 집중되지 못하는 모습을 보인 반면, PP를 수행하고 있는 듯한 팀은 두 명 모두 집중도가 매우 훌륭한 것 같아서 이런 것이 정말 장점이 아닌가 하는 생각이 들었습니다. 결국 PP라는 것도 혼자가 아닌 둘이다 보니 프로그래밍 실력 못지 않게 개인의 ''사회성''이 얼마나 뛰어냐는 점도 중요한 점으로 작용한다는 생각을 했습니다. (제가 서로 프로그래밍중에 촬영을 한 것은 PP를 전혀 모르는 사람들에게 이런 형식으로 하는 것이 PP라는 것을 보여주고 싶어서였습니다. 촬영이 너무 오래 비추었는지 .. 죄송합니다.)
  • StandardWidgetToolkit . . . . 14 matches
         [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/main.html SWT 프로젝트 페이지]
         The most succinct description of the Standard Widget Toolkit component is this:
          The SWT component is designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.
          --''[http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/main.html SWT 프로젝트 페이지]'' 에서
          * [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html SWT 2.1 문서] - Code Snippets 가 많아서, 따라하기 용이하다.
          1. SWT를 다운로드 받는다. [http://www.eclipse.org/downloads/index.php Eclipse downlaod]에서 받을수 있다. Upload:swt-2.1-win32.zip
          public static void main(String[] args) {
          * 실행을 시키기 위해서, 실행되는 위치에 swt-win32-2133.dll (Windows 경우)가 있어야 한다.
  • Steps/문보창 . . . . 14 matches
         || 2006-01-08 Accepted 0.012 Minimum ||
         #include <iostream>
         using namespace std;
         #include <cmath>
         inline void process(int n)
          int i = floor(sqrt(n));
         int main()
          int nCase, x, y;
          cin >> nCase;
          for (int i = 0; i < nCase; i++)
          cin >> x >> y;
  • SystemEngineeringTeam/TrainingCourse . . . . 14 matches
         = Training Course =
         == domain ==
          * 여러 도메인 구매대행 업체를 비교하였으나 가격과 서비스는 큰 차이가 없었음. 결국 결제가 가장 편한곳을 찾게 되었는데 [http://www.dotname.co.kr/ 닷네임 코리아]는 무통장 입금 방식의 결제가 가능했음. 개인별로 임시 계좌번호를 만들어 입금하면 바로 확인 되는 형식이라 별도의 확인 전화를 하거나 상대편에서 확인할때까지 기다릴 필요가 없었음. [http://www.hosting.kr/ hosting.kr]은 AcitveX방식의 결제를 해야 쉬운 결제가 가능하고 그 이외에는 절차가 너무 복잡해서 쓰지 않았음.
          * jereneal.me보다 훨씬 짧은데 사용가능한 도메인이었음. jkim은 jereneal kim도 되고, (tae) jin kim도 됨. .com등의 도메인은 없었음.
          * 구매 사이트는 hosting.kr 사용. 형진 선배의 추천으로 가격이 싸다고 들어서.
          * [박정근] - linuspark.net
          * 닉네임이자 세례명인 linuspark을 사용, 컴공인으로써 부담되긴 하지만 여태 쓰던걸 바꿀생각이 없으므로 그대로 사용.
          * .com은 이미 등록되어있었고, .org .net .info .me 등 중에서 .net이 가장 싸서 이걸로 결정, 주로 네트워크회사 등에서 사용한다지만 가격이 우선함.
         ||SELinux||o||x||x|| ||
          * [안혁준] - 우선 Window서버는 원격으로 관리하기가 매우 귀찮고 POSIX호환도 안되므로 일단 제외. UNIX/Linux계열중 활발한 활동이 있는데는 FreeBSD와 Redhat계열, 데이안 계열(Ubuntu).
          * Ubuntu - 맥분투라고 비난받고 있는 리눅스 뛰어난 사용자 편의성과 GUI를 갖추고 있고 문제 해결에 실마리가 될 포럼이 가장 활발하다. 하지만 대부분의 문제는 XWindows(이걸 뭐라 부르지..)쪽 문제. 빠른 패치와 다양한 패키지를 갖추고 있지만 언제 지원이 끊길지 모른다.
  • WERTYU/Celfin . . . . 14 matches
         #include <iostream>
         #include <cstdlib>
         using namespace std;
         char input[255];
         int i, j;
          for(i=0; i<strlen(input); i++)
          if(input[i]==str[0][j])
          input[i]=str[1][j];
          cout << input << endl;
         int main()
          while(cin.getline(input, 255))
  • WhyWikiWorks . . . . 14 matches
          * any and all information can be deleted by anyone. Wiki pages represent nothing but discussion and consensus because it's much easier to delete flames, spam and trivia than to indulge them. What remains is naturally meaningful.
          * anyone can play. This sounds like a recipe for low signal - surely wiki gets hit by the unwashed masses as often as any other site. But to make any sort of impact on wiki you need to be able to generate content. So anyone can play, but only good players have any desire to keep playing.
          * wiki is not wysiwyg. It's an intelligence test of sorts to be able to edit a wiki page. It's not rocket science, but it doesn't appeal to the TV watchers. If it doesn't appeal, they don't participate, which leaves those of us who read and write to get on with rational discourse.
          * wiki is far from real time. Folk have time to think, often days or weeks, before they follow up some wiki page. So what people write is well-considered.
         So that's it - insecure, indiscriminate, user-hostile, slow, and full of difficult, nit-picking people. Any other online community would count each of these strengths as a terrible flaw. Perhaps wiki works because the other online communities don't. --PeterMerel
  • XMLStudy_2002/Encoding . . . . 14 matches
         <?xml version="1.0" encoding="ISO-8859-1"?>
         <?xml version="1.0" encoding="EUC-KR"?>
         <?xml version="1.0" encoding="KSC5601"?>
         <?xml version="1.0" encoding="UTF-8"?>
         <?xml version="1.0" encoding="UTF-16"?>
         <?xml version="1.0" encoding="Shift_JIS"?>
          *다국어 지원 웹 컨텐츠 제작시 XML과 Unicode의 결합을 역설한 내용 : [http://www.tgpconsulting.com/articles/xml.htm]
         Shuart Culshaw. "Towards a Truly WorldWide Web. How XML and Unicode are making it easier to publish multilingual
         electronic documents." MultiLingual Communications & Technology. Volume 9, Issue 3
         John Yunker, Speaking in Charsets: Building a Multilingual Web Site."
         In WebTechniques Volume 5, Issue 9 (September 2000)
  • XOR삼각형/임다찬 . . . . 14 matches
         #include <stdio.h>
         int xor(int front,int back){
         int main(void){
          const int MAX=50;
          int tri[MAX][MAX]={0,};
          int i,j,k;
          int col=8;
          printf(" ");
          printf(" %d",tri[i][j]);
          printf("\n");
          printf("\n");
  • 개인키,공개키/강희경,조동영 . . . . 14 matches
         #include <fstream>
         #include <iostream>
         using namespace std;
         int main()
          ifstream fin("input.txt");
          while(fin.get(num))
          int open_key;
          cin >> open_key;
          fin.close();
          ifstream fin1("output1.txt");
          while (fin1.get(num))
          fin1.close();
  • 개인키,공개키/노수민,신소영 . . . . 14 matches
         #include<iostream>
         #include <fstream>
         using namespace std;
          ifstream input("input.txt");
          int i=0;
          while( input.get(a[i]) )
          output << (char) ((int) a[i] + 40);
          ifstream input("output.txt");
          int i = 0;
          while (input.get(a[i]) )
          output << (char) ((int)a[i]+216);
         int main()
  • 개인키,공개키/박능규,조재화 . . . . 14 matches
         #include <fstream>
         #include <iostream>
         using namespace std;
         int main()
          ifstream fin("source.txt");
          int count=0;
          for (int i=0 ; !fin.eof(); i++)
          //fin >> array[i];
          array[i] = fin.get();
          int key=100;
          int open_key;
          cin >> open_key;
  • 데블스캠프2006/CPPFileInput . . . . 14 matches
         #include <iostream>
         #include <fstream>
         #include <string>
         using namespace std;
         int main()
          ifstream fin;
          fin.open("score3.txt");
          string temp;
          int i=0;
         // string AP = "A+";
          while(fin >> temp)
          fin.close();
  • 데블스캠프2006/월요일/연습문제/for/정승희 . . . . 14 matches
         #include <iostream>
         using namespace std;
         int main()
          for(int i=0;i<5;i++)
          for(int j=0;j<=i;j++)
          for(int j=0;j<=i;j++)
         #include <iostream>
         using namespace std;
         int main()
          int n,s=1;
          cin >> n;
          for(int i=1;i<=n;i++)
  • 데블스캠프2011/넷째날/Android/송지원 . . . . 14 matches
          public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          Button button1 = (Button)findViewById(R.id.button1);
          Button button2 = (Button)findViewById(R.id.button2);
          Button button3 = (Button)findViewById(R.id.button3);
          String btn = "";
         == Main.xml ==
         <?xml version="1.0" encoding="utf-8"?>
         <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:text="@string/hello"></TextView>
          android:id="@+id/inputText"></EditText>
          <LinearLayout
          android:id="@+id/linearLayout1"
          </LinearLayout>
         </LinearLayout>
  • 데블스캠프2012 . . . . 14 matches
          * [https://docs.google.com/spreadsheet/ccc?key=0ArWnDjSUKLWYdERWQTVqN2ZvbUVrVms3R0FScmQtN0E&usp=sharing 구글타임테이블링크]
          || 1 |||| [:데블스캠프2012/첫째날/배웠는데도모르는C 배웠는데도 모르는 C] |||| 웹 서비스구축 전반에 관한 이야기 |||| 점심? |||| |||| [http://zeropage.org/seminar/62072 재귀함수를 이용한 문제 해결] |||| [http://zeropage.org/seminar/62080 C로배우는 C++의원리] || 8 ||
          || 2 |||| 배웠는데도 모르는 C |||| 웹 서비스구축 전반에 관한 이야기 |||| [http://zeropage.org/seminar/62041 소켓, 웹, OpenAPI] |||| |||| 재귀함수를 이용한 문제 해결 |||| C로배우는 C++의원리 || 9 ||
          || 3 |||| 배웠는데도 모르는 C |||| [http://zeropage.org/index.php?mid=seminar&category=61948 APM Setup] |||| 소켓, 웹, OpenAPI |||| |||| [:데블스캠프2012/넷째날/묻지마Csharp 묻지마 C#] |||| C로배우는 C++의원리 || 10 ||
          || 4 |||| UI프로그래밍 |||| [http://prezi.com/uit4ykp5bx8g/javascript/ JavaScript 편견깨기] |||| [http://zeropage.org/seminar/62046 테스트를 위한 CTIP] |||| |||| [:데블스캠프2012/넷째날/묻지마Csharp 묻지마 C#] |||| [http://zeropage.org/seminar/62095 비트맵 가지고 놀기] || 11 ||
          || 7 |||| [http://zeropage.org/index.php?mid=seminar&category=61948 페챠쿠챠] |||| [http://zeropage.org/seminar/62023 Kinect] |||| [http://zeropage.org/62033 LLVM+Clang...] |||| |||| 새내기를 위한 파일입출력 |||| CSE Life || 2 ||
          || 8 |||| 페챠쿠챠 |||| Kinect |||| [:데블스캠프2012/셋째날/앵그리버드만들기 앵그리버드 만들기] |||| |||| 새내기를 위한 파일입출력 |||| CSE Life || 3 ||
         || Kinect || [임상현](17기) ||
  • 레밍즈프로젝트/그리기DC . . . . 14 matches
         #define BITMAP_OPT_HREVERSE 1
         #define BITMAP_OPT_VREVERSE 2
         #define BITMAP_OPT_HALIGN_CENTER 3
         #define BITMAP_OPT_VALIGN_CENTER 4
          int m_Vreverse;
          int m_Hreverse;
          void init(){
          init();
          void DrawBmp(UINT ITEM, int x, int y, int kRop=SRCCOPY){
          BITMAP m_bitmapInfo;
          newBitmap.GetBitmap(&m_bitmapInfo);
          m_pMemDC->StretchBlt(x-m_bitmapInfo.bmWidth*m_Halign, y-m_bitmapInfo.bmHeight*m_Valign,
          (m_bitmapInfo.bmWidth)*m_Hreverse, (m_bitmapInfo.bmHeight)*m_Vreverse,
          &BitMapDC, 0, 0, m_bitmapInfo.bmWidth, m_bitmapInfo.bmHeight, kRop);
          void setBmpOpt(int kBitMapOption){
          void DrawMaskBmp(UINT MASKITEM, UINT IMGITEM, int x, int y){
          this->DrawBmp(IMGITEM, x, y, SRCPAINT);
  • 문자반대출력/남도연 . . . . 14 matches
          void input();
         #include <math.h>
         #include <iostream.h>
         #include "sasa.h"
         #include <string.h>
         #include <stdlib.h>
         void Mirror::input(){
          cin.getline(munja, 14, '\n');
          int i;
         #include "sasa.h"
         void main(){
          count.input();
  • 반복문자열/최경현 . . . . 14 matches
         #include <stdio.h>
         #define NUMBER_OF_REPEAT 5
         void repeatString();
         void printSting();
         void main()
          repeatString();
         void repeatString()
          int i;
          printSting();
         void printSting()
          printf("CAUCSE LOVE\n");
  • 벡터/임영동 . . . . 14 matches
         #include<iostream>
         #include<algorithm>
         #include<string>
         #include<vector>
         using namespace std;
          string name;
          int score;
          student(string n, int s)
         int main()
          sort(vec.begin(), vec.end(), compare);
          for(vector<student>::iterator i=vec.begin();i!=vec.end();i++)
  • 벡터/황재선 . . . . 14 matches
         #include <iostream>
         #include <string>
         #include <vector>
         #include <algorithm>
         using namespace std;
          string name;
          int score;
         int main()
          sort(ss.begin(), ss.end(), compareWithName);
          for (vector<student>::iterator i = ss.begin(); i < ss.end(); i++) // 오름차순
          sort(ss.begin(), ss.end(), compareWithScore);
          for (i = ss.begin(); i < ss.end(); i++) // 오름차순
  • 새싹교실/2012/열반/120319 . . . . 14 matches
         == main 함수 ==
         main()
         == printf 함수 ==
         main()
          printf("%d\n", 1+1);
          * printf 함수가 명시적으로 정의되지 않았기 때문에 컴파일에 실패하거나, 경고가 뜸.
         == include ==
         #include <stdio.h>
         main()
          printf("%d\n", 1+1);
          * print decimal ( 십진수 )
         printf("%d", 10000000000);
         printf("%lld", 10000000000);
          * C언어에는 boolean 타입이 없습니다. 보통 int로 참과 거짓을 표현하고, 모든 비트가 0일 경우에만 거짓이고, 그 외는 참입니다.
  • 새싹배움터05 . . . . 14 matches
         || 4_5/2 || [후각발달특별세미나] ([신재동]) || Refactoring에 관한 것 || 냄새를 잘 맡게 게 됨. ||
         || 5_5/16 || [Debugging/Seminar_2005] || Debugging ||VisualStudio에서 Debugging 방법 + Eclipse에서 Debugging 방법 + 효율적인 디버깅에 대한 토론 ||
          C, 발표잘하는법, PPT제작 기법, [Python], [PHP], [ExtremeProgramming], ToyProblems, Linux, Internetworking(TCP/IP), Ghost(demonstration), OS(abstraction), OS+Windows, Embedded System, 다양한 언어들(Scheme, Haskell, Ruby, ...), 보안(본안의 기본과 기초, 인터넷 뱅킹의 인증서에 대해..), C언어 포인터 특강(?), 정보검색(검색 엔진의 원리와 구현), 컴퓨터 구조(컴퓨터는 도대체 어떻게 일을 하는가), 자바 가상머신 소스 분석
          [PythonLanguage], [PHP] (WebProgramming), [ExtremeProgramming] (XP를 적용시켜 코드가 아닌 다른 무언가를 만들어 보자 -_-a ), Ghost 사용법, 발표잘하는법, PPT제작비법, OS개발
         XP를 할 때 몇명의 Python 하는 사람이 있으면 좋겠습니다. PairProgramming을 위해서요. --재동
          음 어떤게 좋을까요?? 많아 보였는데 실제로 하려고 생각하면 몇가지 없기도 하네요. 가능한 주제를 먼저 골라보면... [Python], [ExtremeProgramming] 이 대표적인데... - [톱아보다]
  • 수업평가 . . . . 14 matches
         ||ArtificialIntelligenceClass || 0 || 1 || 2 || -2 || 1 || 1 ||1 ||
         ||CeeProgrammingClass || 6 || 6 || 3 || -3 || 12 || 5 ||2.4 ||
         ||DigitalEngineeringClass || 1 || 1 || 1 || 2 || 5 || 3 ||1.66||
         ||JavaProgrammingClass || 4 || 4 || 4 || 1 || 13 || 2 ||6.5 ||
         ||LinuxSystemClass || . || . || . || . || . || . ||. ||
         ||SoftwareEngineeringClass || 6 || 6 || 5 || -8 || 9 || 5 ||1.8 ||
         ||SoftwareEngineeringClass송기원|| 4 || 3 || 2 || 3 || 12 || 2 || 6 ||
         ||ProgrammingLanguageClass || 12 || 8 || 11 || 1 || 32 || 8 ||4 ||
         ||OperatingSystemClass || 1 || 1 || 0 || -2 || 0 || 1 ||0 ||
         ||OperatingSystemClass박철민 || 1 || -2 || -3 || -4 || -8 || 2 ||-4 ||
         ||ObjectModelingClass || . || . || . || . || . || . ||. ||
         ||LinuxClass || -1 || -1 || -1 || -1 || -4 || 1 || -4 ||
  • 알고리즘3주숙제 . . . . 14 matches
         from [http://www.csc.liv.ac.uk/~ped/teachadmin/algor/d_and_c.html The university of liverpool of Computer Science Department]
         == [BinarySearch] ==
         Consider the following problem: one has a directory containing a set of names and a telephone number associated with each name.
         The directory is sorted by alphabetical order of names. It contains n entries which are stored in 2 arrays:
         Given a name and the value n the problem is to find the number associated with the name.
         Input:
         A set of n points in the plane.
         The distance between the two points that are closest.
         Note: The distance DELTA( i, j ) between p(i) and p(j) is defined by the expression:
         == Integer Multiplication ==
         [http://www.csc.liv.ac.uk/~ped/teachadmin/algor/pic4.gif]
         Note: The algorithm below works for any number base, e.g. binary, decimal, hexadecimal, etc. We use decimal simply for convenience.
  • 이영호/기술문서 . . . . 14 matches
         [http://wiki.kldp.org/wiki.php/DocbookSgml/GCC_Inline_Assembly-KLDP] - GCC Inline Assembly
         [http://wiki.kldp.org/wiki.php/DocbookSgml/Assembly-HOWT] - Linux Assembly HOWTO
         [http://linuxassembly.org]
         [http://linux.flyduck.com] - Linux Kernel
         [http://doc.kldp.org/KoreanDoc/html/Assembly_Example-KLDP/Assembly_Example-KLDP.html] - Linux Assembly Code
         [http://wiki.kldp.org/wiki.php/LinuxdocSgml/Assembly-HOWT] - Assembly-HOWTO V0.3c
         [http://blog.naver.com/post/postView.jsp?blogId=pjfile&logNo=40012816514] - setsockopt() && Windows lib version
         [http://bbs.kldp.org/viewtopic.php?t=24407] - Reference 에 의한 호출과 Pointer에 의한 호출 (결론: Reference는 포인터에 의해 구현되며 표현만 CallByValue 다.)
         [http://bbs.kldp.org/viewtopic.php?t=21673] - printf & sprintf 팁
         [http://bbs.kldp.org/viewtopic.php?t=2128] - GNU C 에서의 printf 의 확장 및 locale 사용
         [http://bbs.kldp.org/viewtopic.php?t=1045] - *NIX 계통의 Debug에 유용한 툴 (GNU/Linux에서는 strace = A system call tracer, ltrace = A library call tracer)
  • 정렬/민강근 . . . . 14 matches
         #include <fstream>
         #include <iostream>
         using namespace std;
         int main()
          ifstream fin("UnsortedData.txt");
          int ar[10000];
          int x;
          for(int i=0;i<10000;i++)
          int tem;
          fin >> tem;
          for(int j=0;j<10000;j++)
          for (int k = 0 ; k < 10000 ; k++)
          for (int p = 0 ; p<=10000 ; p++)
  • 정렬/장창재 . . . . 14 matches
         #include <iostream.h>
         #include <fstream.h>
         int main()
          ifstream fin("input.txt");
          int array[10000];
          int temp;
          for (int i =0 ; i < 10000 ; i++)
          int a;
          fin >> a;
          for (int j = 0 ; j < 10000 ; j++)
          for (int k = 0 ; k < 10000 ; k ++)
          for (int ar = 0 ; ar < 10000; ar++)
  • 최소정수의합/조현태 . . . . 14 matches
         #include <iostream>
         using namespace std;
         int sum(int);
         void main()
          const int COMPARENUM=3000;
          int n=1;
         int sum(int end_number)
         -export([minSum/2]).
         minSum(I, SumNum) when SumNum >= 3000 -> {I - 1, SumNum};
         minSum(I, SumNum) -> minSum(I + 1, SumNum + I).
         6> pr_2:minSum(1, 0).
  • 파스칼삼각형/김준석 . . . . 14 matches
         #include<stdio.h>
         int pasc();
         void main(){
          int h,y;
          printf("몇행 몇열을 원하십니까?(행,열)(주의: 열=<행) : ");
         int pasc(int h,int y){
          int i,j;
          int pas[50][50] ={0,}; //우선 무식하게 배열을 선언하는 방식으로..
          if(h<y) printf("다시하세요 ㄱ-");
          else if(h<2) printf("1이겠지...");
          if(pas[i][j] && pas[i]) continue;
          printf("%d행 %d의 숫자는 %d 입니다",h,y,pas[h-1][y-1]);
  • 파일 입출력_1 . . . . 14 matches
         #include <iostream>
         #include <fstream>
         #include <string>
         using namespace std;
         int main()
          ifstream fin;
          fin.open("score3.txt");
          string temp;
          int i=0;
         // string AP = "A+";
          while(fin >> temp)
          fin.close();
  • 피보나치/김민경 . . . . 14 matches
         #include <stdio.h>
         void input();
         void process(int,int,int);
         int n;
         void main()
          input();
         void input()
          printf ("수입력 = ");
         void process(int check1, int check2, int temp)
          if (temp==n) printf ("%d\n",check1);
  • 2학기파이선스터디/서버&클라이언트접속프로그램 . . . . 13 matches
          serversock = socket(AF_INET, SOCK_STREAM)
          serversock.bind( (host,port) ) # 튜플!
          print 'Listening on Port %s (%s, %s)' % (port, 'host', backlog)
          print 'Connected for %s Client: %s, Port: %s' % (daytime, addr, port)
         if __name__ == '__main__':
          clientsock = socket(AF_INET, SOCK_STREAM)
          print 'connect: Connection retused'
          print svr_time
         if __name__ == '__main__':
          serversock = socket(AF_INET, SOCK_STREAM)
          serversock.bind( (host,port) ) # 튜플!
          print 'Listening on Port %s (%s, %s)' % (port, 'host', backlog)
          print 'Connected for %s Client: %s, Port: %s' % (addr, port)
         if __name__ == '__main__':
  • 3rdPCinCAUCSE . . . . 13 matches
         '''3rd Programming Contest in CAUCSE'''
         - 경시 3시간에 3문제가 출제된다. (open book, closed internet)
         printf ( "I got %d\n", n ); // 표준 출력 부분
         cin >> n; // 표준 입력 부분
          * [3rdPCinCAUCSE/ProblemA] - A번 문제 "오목"
          * [3rdPCinCAUCSE/ProblemB] - B번 문제 "사각형 넓이"
          * [3rdPCinCAUCSE/ProblemC] - C번 문제 "구슬 찾기"
          * [3rdPCinCAUCSE/ProblemA/Solution]
          * [3rdPCinCAUCSE/ProblemB/Solution]
          * [3rdPCinCAUCSE/ProblemC/Solution]
         [3rdPCinCAUCSE/FastHand전략]
         [3rdPCinCAUCSE/J-sow전략]
  • AOI/2004 . . . . 13 matches
          * 여름 교재 : 쉽게 배우는 실전 알고리즘 & 정보올림피아드 도전하기 ( Aladdin:8931421923 )
          * 겨울 교재 : Programming Challenges ( Aladdin:8979142889 )
          || [EcologicalBinPacking] || O || O || O || O || . || O ||
          || [MultiplyingByRotation] || . || X || X || . || . || X ||
          || [MineSweeper] || . || O || O || O || O || O || . || O ||
          || [AustralianVoting]|| . || . || O || . || . || . || . || O ||
         자.. 시작해볼까요? MineSweeper 풀어보아요 -- 재선
         void main()
          input()
          [Refactoring/BadSmellsInCode] --[강희경]
         한 문제를 풀어본 후에 소요시간이 만족스럽지 못하거나 결과코드가 불만족스럽다면 이렇게 해보세요. 내가 만약 이 문제를, 아직 풀지 않았다고 가정하고, 다시 풀어본다면 어떻게 접근하면 더 빨리 혹은 더 잘 풀 수 있을까를 고민합니다. 그리고 그 방법을 이용해서 다시 한 번 풀어봅니다(see DoItAgainToLearn). 개선된 것이 있나요? 이 경험을 통해 얻은 지혜와 기술을 다른 문제에도 적용해 봅니다. 잘 적용이 되는가요?
  • BasicJAVA2005/실습2/허아영 . . . . 13 matches
         안에꺼는 int-> string 형으로 변환해서
         import javax.swing.*;
          private Container container;
          container = getContentPane();
          container.setLayout(grid1);
          for(int count = 0; count < 25; count++) {
          buttons[count] = new JButton(Integer.toString(count));
          container.add(buttons[count]);
          container.validate();
          public static void main(String[] args) {
  • BasicJava2005/5주차 . . . . 13 matches
          - max(), min() : 최대/최소값을 구한다.
          - 각종 Wrapper클래스(Integer, Double, Character...)
          - parseXXX : String을 각 형태로 변환한다.
          - toString : 지정한 숫자를 문자열 형태로 반환한다.
          public static void main(String[] args) {
          int a = Integer.parseInt(args[0]);
          int b = Integer.parseInt(args[1]);
          System.out.println(a + " / " + b + " = " + (a / b));
          } catch(ArrayIndexOutOfBoundsException e) {
          System.out.println("숫자를 2개 넣으세요");
          System.out.println("0으로 나누지 마세요");
          System.out.println("문자열을 넣지 마세요");
         5. try~catch~finally
          - try ~ catch 구문을 실행후 무조건 finally문장을 실행한다.
  • C++스터디_2005여름 . . . . 13 matches
          C++ 기초 플러스란 책 좋은데, 잘 안보더라구요, 지루하긴 해도, 내용은 좋은데 -[fnwinter]
          내용을 많이 다루는 게 왜 문제지? -[fnwinter]
          아~ 지루한게 문제다!...음...잼있게 하면 되재~ -[fnwinter]
         #include <math.h> -> #include <cmath>
         #include <iostream.h>
          -> #inculde<iostream>
          using namespace std;
         #include "sasa.h" -> 그래로..ㅡㅜ
         #include <string.h> -> #include <string>
  • CincomSmalltalk . . . . 13 matches
         Cincom 에서 만든 ["Smalltalk"] 툴
          * [http://zeropage.org/pub/language/smalltalk_cincom/VM-Windows.tar.gz Windows용 VM]
          * [http://zeropage.org/pub/language/smalltalk_cincom/Image.tar.gz VisualWorks image]
          * [http://zeropage.org/pub/language/smalltalk_cincom/BaseVisualWorks.tar.gz VisualWorks base components]
          * [http://zeropage.org/pub/language/smalltalk_cincom/ExtendedBase.tar.gz VisualWorks commonly used optional components]
          * [http://zeropage.org/pub/language/smalltalk_cincom/Goodies.tar.gz VisualWorks commonly used goodies]
          * [http://zeropage.org/pub/language/smalltalk_cincom/BaseProductDoc.zip VisualWorks documentation]
          * 연결 프로그램으로 압푹을 푼 디렉토리 안에 있는 bin\win 디렉토리 안에 있는 visual.exe 를 지정해준다.
          * [http://zeropage.org/pub/language/smalltalk_cincom/OsNoncom.exe ObjectStudio]
          * [http://zeropage.org/pub/language/smalltalk_cincom/osmanuals.exe ObjectStudio documentation]
  • EightQueenProblem/이준욱 . . . . 13 matches
         #include <stdio.h>
         #define MASK 0x01
          int i = 0;
          for (printf("\nResult: "); i < 8 ; printf("[%2x] ", rmap[i++]));
         int mask(unsigned char * tmap , register int x, register int y)
          register int i;
         void checkQueen(int depth)
          int i;
         int main()
  • HanoiProblem/영동 . . . . 13 matches
         extrn Writeint:proc
         main proc
          mov bx, 10 ;Writeint사용시에 10진수 출력
          int 21h
         main endp
          int 21h
          call Writeint
          int 21h
          call Writeint
          int 21h
          call Writeint
          int 21h ;빈칸을 출력
         end main ;프로그램 종료
  • HanoiTowerTroublesAgain!/하기웅 . . . . 13 matches
         #include <iostream>
         using namespace std;
         int testcase, i;
         int test[51];
         int counting(int num)
         int main()
          cin>>testcase;
          cin>>test[i];
          cout << counting(test[i]) <<endl;
         [HanoiTowerTroublesAgain!]
  • HowManyFibs?/하기웅 . . . . 13 matches
         #include <iostream>
         #include "BigInteger.h"
         using BigMath::BigInteger;
         BigInteger decimalNum=10;
         BigInteger fibNum[501];
         int i, counting;
         void FibInit()
         int output(BigInteger startNum, BigInteger endNum)
          counting=0;
          counting++;
          return counting;
         BigInteger convertBig(char *number)
          BigInteger temp;
          int charLen = strlen(number);
         int main()
          FibInit();
          while(cin>>start>>end)
  • JTDStudy/첫번째과제/영준 . . . . 13 matches
         import javax.swing.JOptionPane;
          public static void main(String [] args){
          int[] num = new int[3];
          int i, j ;
          num[0] = (int)(Math.random()*10);
          num[1] = (int)(Math.random()*10);
          num[2] = (int)(Math.random()*10);
          int strikeCounter = 0, ballCounter = 0;
          int[] temp = new int[3];
          int answer = Integer.parseInt(JOptionPane.showInputDialog("세자리수를 입력하세요"));
  • Java Study2003/첫번째과제/방선희 . . . . 13 matches
          * Interpreted Environment 제공
          -- 기존의 compile/link/load방식의 언어에 비해 source를 compile만 하면 최종 수행코드가 생성됨으로 개발시간을 단축할 수 있다.
          * Java Virtual Machine (JVM)
          public static void main (String args[]) {
          System.out.println("Hello World!");
          * MicroSoft windows에서 신나게 실행되는 게임이 Linux에서도 잘 돌까? 아마도 답은 '아니다' 일 것이다. 그러나 만약 그 게임이 Java로 제작되었다면 답은 '예' 이다. 다시 말해 Java로 개발된 프로그램은 PC, Macintosh, Linux등 machine이나 O/S에 종속되지 않는다.
          기존에 Sun OS에서 Java로 개발한 인사시스템을 Windows NT로 이관하고 싶다. 이때 프로그램 수정없이 가능할까? Windows NT를 지원하는 JDK가 있다면 가능하다. 그러고 Windows NT를 지원하는 JDK는 있다.
  • JollyJumpers/곽세환 . . . . 13 matches
         #include <iostream>
         using namespace std;
         int main()
          int n;
          int input[3000];
          int i;
          while (cin >> n)
          cin >> input[i];
          diff[abs(input[i] - input[i + 1])] = true;
  • LinkedList/C숙제예제 . . . . 13 matches
         #include <stdio.h>
         #include <stdlib.h>
         #include <string.h>
          int num;
         #include "ExList.h"
          printf("%d\n",p->num);
         void main()
          List *pList,*pNew,*pIns;
          printf("root생성시\n");
          printf("pNew생성시\n");
          pIns=(List *)malloc(sizeof(List));
          pIns->num=3;
          pIns->prev=pList;
          pIns->next=pNew;
          pList->next=pIns;
          pNew->prev=pIns;
          printf("pIns삽입시\n");
          free(pIns);
          printf("pIns 삭제시\n");
         [LinkedList]
  • LispLanguage . . . . 13 matches
          * For the beginners:
          * TutorialsPoint LISP: http://www.tutorialspoint.com/lisp/index.htm
          * [http://dept-info.labri.fr/~strandh/Teaching/Programmation-Symbolique/Common/David-Lamkins/contents.html Successful Lisp:How to Understand and Use Common Lisp] - 책인듯(some 에 대한 설명 있음)
         [http://www.lispworks.com/products/clim.html Common Lisp Interface Manager]
         당연히 우분투에서 한거고 window에서 하는건 모른다
         (EXT:SAVEINITMEM)
         하면 세션이 lispinit.mem으로 저장됨
         다시 실행할때는 cmd에서 clisp -M lispinit.mem 하면 실행됨
          * 참고링크 : http://stackoverflow.com/questions/7424307/can-i-save-source-files-in-clisp
         [[include(틀:ProgrammingLanguage)]]
  • MultiplyingByRotation/곽세환 . . . . 13 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         const int MAX = 20; // 최대 20자리까지
         void main()
          int base, factor1, factor2;
          cin >> base >> factor1 >> factor2;
          int number[MAX] = {0};
          int number_jarisu = 1;
          int dec, dec2;
          for (int i = 0; i < number_jarisu; i++)
          //for (int i = number_jarisu - 1; i >= 0; i--)
         [MultiplyingByRotation]
  • ProjectSemiPhotoshop/요구사항 . . . . 13 matches
          i. Sampling => 모자이크 이미지(O)
          * Posterizing
          * Thereshold Binary Image (O 흑백)
          * Clipping ( O 흑백 )
          * Iso-intensity Contouring(등명암 윤곽화) ( O 흑백 )
          * Range-highlighting(범위-강조) (O 흑백)
          * Solarize using a Threshold (O 흑백)
          i. Blurring (O)
          * Sharpening (O)
          * Embossing (O)
          * Median Filtering (O)
          * Contrast Stretching (O)
  • Refactoring/BuildingTestCode . . . . 13 matches
         == The Value of Self-testing Code ==
         나로하여금 self-testing code로의 길을 시작하게 한 계기는 OOPSLA '92의 한 이야기부터였다. 그때 누군가 (아마도 Dave Thomas)"클래스는 자기 자신의 테스트코드를 가지고 있어야 한다" 라는 말을 했다. 이 말은 테스트를 구성하기 위한 좋은 방법으로 여겨졌다. 나는 모든 클래스에 클래스 스스로를 테스트하는 메소드들 (''test''라 한다.)들을 가지도록 만들었다.
         그때 나는 increment development단계에 있었고, 나는 매번 increment 을 완료할때 클래스들에 test method들을 추가했다. 그때 했던 프로젝트는 꽤 작았었고, 우리는 우리의 increment 주기는 한주 단위정도였다. 테스트의 실행은 는 꽤 수월하게 되었다. 하지만 테스트들은 실행하기 쉬웠지만, 테스트를 하는 것은 여전히 지겨운 일이였다. 이것은 내가 체크해야 하는 모든 테스트들이 console 에 결과를 출력하도록 만들어졌기 때문이다. 나는 꽤 게으른 사람이고, 나는 일을 피하기 위해 꽤 열심히 일을 준비했다. 나는 이 클래스들이 프린팅 해주는 것을 체크하는 대신, 컴퓨터가 테스트를 수행하도록 했다.내가 할일은 테스트 코드에 내가 기대하는 결과를 작성하고, 그 비교를 수행하는 것이다. 자, 나는 모든 클래스들의 test method를 수행할 수 있었고, 모든 일이 잘 되면 단지 'OK' 가 출력되는 것을 확인하면 되었다. 이 클래스는 지금 스스로 자기 자신을 테스트를 했다.
         이 사실을 알아갈수록 나는 테스트에 좀 더 적극적이 되었다. increment가 끝가기를 기다리는 대신에, 나는 조그마한 기능을 추가할 때 마다 테스트를 했다. 매번 나는 새 기능들을 추가 했고, 그들에 대한 테스트들을 수행했다. 이 당시 나는 디버깅에 수분이상을 소비하지 않았다.
         그리고 이것이 실제로 프로그래밍 속도를 높인다는 것을 경험해보지 않으면 self-testing 코드는 사람들이 이해해주지 못한다. 그리고 테스트가 수동이라면 이것은 지루할 것이다. 하지만 테스트가 자동화된다면 테스트 코드를 쓰는 것은 꽤 재미있는 일이 될 것이다.
         테스팅 코드는 ExtremeProgramming 의 중요한 부분이다. [Beck, XP]. 이 이름은 빠르고 게으른 해커같은 프로그래머들에겐 마술주문과 같을 것이다. 하지만, extreme programmer들은 테스트에 대해 매우 헌신적이다. 그들은 가능한 한 소프트웨어가 빠르게 발전하기 원하고, 그들은 테스트들이 당신을 아마 갈 수 있는 한 빠르게 갈 수 있도록 도와줄 것을 안다.
         이정도에서 이야기는 충분하다 본다. 비록 내가 self-testing code를 작성하는 것이 모두에게 이익이 된다고 생각하더라도, 그것은 이 책의 핵심이 아니다. 이 책은 Refactoring에 관한 것이다. Refactoring은 test를 요구한다. 만일 Refactoring 하기 원한다면, test code를 작성해야 한다.
         ["Refactoring"]
  • RubyLanguage/Container . . . . 13 matches
         array = ["a", "b", 3, "String", [1, 2]]
         array = [a, b, 3, "String", [1, 2]]
         }}}[[FootNote('''p 메서드''' : 객체를 디버그에 적합한 형식으로 문자열화하여 출력하는 메서드로 주로 디버그 출력을 위해 사용. 디버그, 학습, ShortCoding 이외에는 사용하지 않는 것이 좋다.)]]
         array = [3, "String", [1, 2]]
         p array[-2] #"String" 출력
         array = [a, b, 3, "String", [1, 2]]
         p array[3, 3] #["String", [1, 2]] 출력
         array = [a, b, 3, "String", [1, 2]]
         p array[-4, 3] #[2, 3, "String"] 출력
          * 배열의 길이를 넘어서는 위치에도 대입이 가능하다.(line 4)
          * 길이를 포함한 첨자나 범위 첨자를 사용한 경우, 우변에 복수 개의 값을 취할 수 있다.(line 5, 6)
          * 좌변의 요소개수보다 우변 식이 적은 경우 모자란 부분의 요소는 제거되고 배열의 크기가 줄어든다.(line 7)
          * 좌변에 지정한 요소개수보다 우변 식이 많은 경우 배열의 크기를 늘려서 대입한다.(line 9)
  • STL . . . . 13 matches
         C++ 의 [GenericProgramming] 기법인 Template 을 이용, container (["DataStructure"] class. 다른 언어에서의 Collection class 들에 해당) 와 [Algorithm|algorithm] 에 대해 구축해놓은 라이브러리.
         ==== container ====
         || ["STL/string"] ||문자열을 다루는 자료구조||
          * [STL/bind2nd] : -
          * ["UseSTL"] : ["neocoin"] 의 프로젝트 페이지
          Contributors : ["[Lovely]boy^_^"], NeoCoin
          See Also ["Boost"], ["EffectiveSTL"], ["GenericProgramming"], ["AcceleratedC++"]
         앞으로 C++ 을 이용하는 사람중 STL 을 접해본 사람과 STL을 접해보지 않은 사람들의 차이가 어떻게 될까 한번 상상해보며. (Collection class 를 기본내장한 C++ 의 개념 이상.. 특히 STL 를 접하면서 사람들이 [GenericProgramming] 기법에 대해 익숙하게 이용할 것이라는 생각을 해본다면 더더욱.) --["1002"]
         한 차레의 피바람이 불어 이 페이지가 태어나다.. --["neocoin"]
          DeleteMe) 인수가 가진 모든 STL 페이지 ["Refactoring"] (예제가 그 자체로만으로 돌아가나 컴파일. 이모티콘과 잡담 모두 빼서, Document Mode로 만들기, 쉬운말, 쉬운 예제로 고치기) 결과 ["인수"]의 모든 STL 페이지 사라짐(피바람);;
          ["EffectiveSTL"] 외부로 빼기(["인수"]가 했음) --["neocoin"]
         [STL]과 같은 라이브러리를 직접 만들어보는것도 (프로젝트 형식으로 해서) 좋을 것 같네요. [GenericProgramming] 의 철학을 이해하는 데에 도움이 될 것 같고 그 안에 녹아있는 자료구조와 알고리즘을 체득할 수 있을 것 같습니다. - [임인택]
  • Server&Client/상욱 . . . . 13 matches
          public static void main(String[] args) {
          System.err.println("실행할 수 없습니다.");
          ioe.printStackTrace();
          System.out.println("서버에서 접속을 기다립니다.");
          System.out.println("접속되었습니다.");
          System.out.println(connect.getInetAddress());
          System.out.println("종료되었습니다.");
          System.out.println("예외가 발생하였습니다.");
          e.printStackTrace();
          public static void main(String[] args) throws Exception {
          String a = "165.194.17.86";
         ["JavaStudyInVacation/진행상황"]
  • ServerBackup . . . . 13 matches
          * {{{/etc/group}}} 에 admin 그룹에 원하는 사용자 추가, {{{/etc/sudoers}}}에서 사용자 제거
          * (./) 작은 파일 하나를 zeropage@neocoin.net 으로 올린다.
         #!/usr/bin/env python
          s.login('server',password) # Connect
          s.storbinary('STOR %s'%filename, f) # Send the file
         uploadFile('index.html')
         /usr/bin/mysqldump -u <username> -p <password> <databasename> | gzip > /path/to/backup/db/zeropage_`date +%y_%m_%d`.gz
         11 5 * * * /root/backupToNeocoin.py >> /var/log/backupToNeocoin.log 2>&1
          * 문제 ~ DNS Server 가 죽었음 (or 잘못 설정되어 있음 165.194.35.222 서버 확인 필요) 그래서 주소 기반으로 외부로 ping을 날릴수 없다.
          * 해결 ~ {{{/etc/resolv.conf}}} 에 무료 dns 서버 등록 후 교내 서버는 가장 마지막 순위로 변경 http://theos.in/windows-xp/free-fast-public-dns-server-list/
          * 해결 ~ admin 그룹에 원하는 사용자 추가
  • ThePriestMathematician/문보창 . . . . 13 matches
         #include "BigInteger.h"
         using namespace BigMath;
         int findK(int n)
          int i;
         void process(int n)
          int k, temp;
          BigInteger result, kpow2(2);
          k = findK(n);
         int main()
          int n;
          while (cin >> n)
  • UglyNumbers/곽세환 . . . . 13 matches
         #include <iostream>
         #include <list>
         using namespace std;
         void main()
          int cnt = 1500;
          list<unsigned int> numbers;
          unsigned int temp;
         #include <iostream>
         using namespace std;
         void main()
          int cnt;
          cin >> cnt;
          int num = 1, temp;
  • WhatToExpectFromDesignPatterns . . . . 13 matches
         == A Documentation and Learning Aid ==
         Learning these DesignPatterns will help you understand existing object-oriented system.
         Describing a system in terms of the DesignPatterns that it uses will make it a lot easier to understand.
         == An Adjunct to Existing Methods ==
         DesignPatterns are an important piece that's been missing from object-oriented design methods. (primitive techniques, applicability, consequences, implementations ...)
         == A Target for Refactoring ==
         DesignPatterns capture many of the structures that result from refactoring. Using these patterns early in the life of a design prevents later refactorings. But even if you don't see how to apply a pattern until after you've built your system, the pattern can still show you how to change it. Design patterns thus provide targets for your refactorings.
  • XMLStudy_2002/Start . . . . 13 matches
          1 Invalid Documents : XML의 태그 규칙을 따르지 않거나,DTD를 사용한 경우에 DTD에 정의된 규칙을 제대로 따르지 않는 문서
          * 위에 3개중 Invalid Documents는 실제 XML 문서로서의 역할을 할수 없다. XML 파서로 파싱 했을 때 바르게 파싱되지 않기 때문이다.
         <?xml version="1.0" encoding="KSC5601"?>
         <!ATTLIST MAIL STATUS (official|informal) 'official'>
         <MAIL STATUS="informal">
          1. Processing Instructions(Optional) : XML문서를 어떻게 처리해야 할지를 기술해 주는 부분
         === Processing Instructions(PI) ===
         <?xml version="1.0" standalone="yes" encoding="KSC5601"?>
          *encoding : 문서 작성시에 사용된 인코딩 방식을 기술
         <!ENTITY 엔티티 명칭 PUBLIC Public_indentifier "외부 XML문서의 URI">
         <?xml version="1.0" encoding="KSC5601"?>
         <CHAPTER_TITLE>Chapter1.Instruction</CHAPTER_TITLE>
         <?xml version="1.0" encoding="KSC5601"?>
         <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
         <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
         <!ENTITY %block "P %heading; |%list; |%preformatted; |DL |DIV |NOSCRIPT | BOCKQUOTE ">
         <?xml version="1.0" encoding="KSC5601"?>
  • YouNeedToLogin . . . . 13 matches
         페이지 수정에 로그인이 필요한 YouNeedToLogin 모드를 적용한다면 다음과 같은 장,단점이 있을 수 있다.
          * 보다 좋은 RecentChanges 페이지와 info action(파란아이)를 볼 수 있다.
         주장하는 가장 큰이유는 아마 ["상민"] 이가 로그인 하는 id 번호를 까먹어 버려서 일것인지 모른다는 생각이 든다. id 약 7개 정도 만든것 같은데, 어째 기억나는 것은 하나도 없는지... --["neocoin"]
          ''id 를 ["neocoin"]페이지에 적어두는건 어떨까요. ["이덕준"] 페이지처럼 말이죠.--["이덕준"]''
          ''ZeroWiki는 아무나 어떠한 제한없이 로그인할 수 있습니다. 전 후자의 경우는 위키 초보자가 저지르는 실수라고 생각합니다. 로그인을 할수 있는 사용자는 그런 실수를 하지 않으리라 봅니다. 그리고 다시 말씀드리지만 그러한 작은 불편 때문에 YouNeedToLogin을 주장하는 것은 아닙니다. --["이덕준"]''
          제가 RecentChanges 에 그렇게 신경이 안쓰이지만, 다른 분들이 신경이 쓰이는것 처럼, 저에게는 작은 불편으로 인식되지 않습니다. 위의 Document 에서 언급한것처럼 틀속에 갖히는 느낌이 가장 싫습니다. 그리고, 처음 오시는 분들이 자유롭게 수정못하는 것에 가장 마음이 걸립니다. 제가 http://c2.com 을 보고 받은 충격을 받고 느낀 자유로움 때문에 이런것이 작은 불편보다 더 크게 다가 옵니다. --["neocoin"]
          ''["로그인하기"]는 개인차원의 이익으로 개인이 선택할 문제지만, YouNeedToLogin 문제는 공공의 이익을 얘기하는 문제입니다. 전 ["로그인하기"]를 유도하고자 하는것이 아닙니다. --["이덕준"]''
         한 보름 정도만 ZeroWiki를 YouNeedToLogin 모드로 사용해보길 제안합니다. 그 이후에 YouNeedToLogin 모드를 유지할지를 결정했으면 합니다. --["이덕준"]
         그런데.. 보름 정도 YouNeedToLogin 모드로 사용하게 된다면, 로긴을 하지 않았을 때 글을 쓸 수 없다는 거지요? 그건, '로그인 하지 않고 글 쓰는 것' 을 막는 거겠군요. 개인의 자유에 맏겨두지 않고 말이지요. 전 반대합니다. 일단, 싫고, 자유와 가능성을 제한한다는 것이 싫습니다. --["zennith"]
          YouNeedToLogin 모드가 자유와 가능성을 얼마나 크게 제한하는지, 그 제한으로 과연 우리가 얻는게 있는지 한번 경험해보자는 의도입니다. 한달을 하자는 것도 아니고 일년 동안 하자는 것도 아닙니다. 잠시 그렇게 해보자는 겁니다. 절대로 안되겠습니까. 자유와 가능성을 제한하는 것은 저 역시 싫습니다. 하지만 '절대 자유'가 최선이 아닐수도 있다는 생각을 하고 있습니다. DeletePage 액션은 관리자만이 쓸 수 있습니다. 조금만 더 유연하길 부탁드립니다. --["이덕준"]
         요새들어 제로페이지 위키에 검색엔진을 통해 생성된 쓰레기 페이지들을 자주 볼 수 있습니다. 볼때마다 매번 지워주기는 하는데, 노스모크처럼 로그인을 해야 글쓰기 권한이 생기게 바꾸어 보는것도 좋겠다는 생각을 합니다. 이 페이지가 생긴게 꽤 오래전인것 같기는 하지만 YouNeedToLogin 에 대해서 다시 한번 생각해봐야 할 때가 아닌가 생각됩니다. 하지만 로그인을 해야하는 것은 방법은 위키의 철학에 위배되는게 아닌가 하는 생각도 할 수 있습니다. 굳이 로그인을 하지 않더라도 스팸성 글을 막을 수 있는 대책이 필요합니다. 예를 들어, 페이지 수정을 할 때에 난수값을 하나 찍어두고 input 필드를 하나 더 두어 이 곳에 생성된 난수값을 그대로 입력하게 하여 초기에 생성된 난수값과 같을 시에만 글을 수정하게 하는 것입니다. 물론 똑똑한 로봇들은 이를 교묘히 피해가겠지만요. - [임인택]
  • ZeroPageServer/SubVersion . . . . 13 matches
         = Intro =
         What's New in Subversion 1.2
          * Optional locking ("reserved checkouts")
          * Full WebDAV autoversioning
          subversion 은 http 로의 접근도 제공한다. 대신에 기본제공 프로토콜보다는 속도가 느린 단점이 있다. http 의 접근은 현재 익명계정에 대해서는 checkout, read 만 사용이 가능하며 checkin 계정을 받기 위해서는 관리자에게 다음의 정보를 메일로 보내주면 추가하는 것이 가능하다.
         = SSH Login Tip =
          {{{~cpp explorer환경하에서 마우스 오른쪽 버튼을 클릭 "TortoiseSVN"->"Settings"
         D:Program FilesTortoiseSVNbinTortoisePlink.exe" -l 계정 -pw 암호
          Linux 계정이 있다면 ssh-keygen 을 이용해서 생성시키는 방법도 존재한다. 이 방법이 훨씬더 빠르게 생성된다.
          상단에 Public key for pasting into OpenSSH authorized_keys file 란에 있는 내용을 복사해서
          푸티의 에이전트로 TortoisePlink.exe 가 접속이 되는 이유는 TortoisePlink.exe가 푸티의
  • html5practice/즐겨찾기목록만들기 . . . . 13 matches
          * 원래 목적은 naver api를 끌고 와서 별표 찍는 연습을 만들려고 했는데. 이건 뭐. ajax cross domain 문제로 접근 불가. 난이도 하향. 로컬 목록을 사용자가 만들어서 그걸 즐겨찾기 추가 삭제 하는 코드를 만들었음. 기능과 UI가 안습이지만, 그래도. 만들었음.
         <section id="input">
          <form name="formInput">
          <input type="text" id="textInput"/>
          <input type="button" value="add to list" onclick="doSetItem(this.form)"/>
          <input type="button" value="clear" onclick="doClearAll()"/>
          localStorage.setItem( document.formInput.elements['textInput'].value, "false");
          document.formInput.elements['textInput'].value = "";
          console.log(eTD.innerHTML);
          localStorage.removeItem(eTD.innerHTML);
          localStorage.setItem(eTD.innerHTML, "true");
          console.log(eTD.innerHTML);
          localStorage.removeItem(eTD.innerHTML);
          localStorage.setItem(eTD.innerHTML, "false");
          document.getElementById('favoriteList').innerHTML = pairs;
          document.getElementById('allList').innerHTML = pairs;
  • neocoin/CodeScrap . . . . 13 matches
         ostream_iterator<int> out(cout , " ");
         copy(vector1.begin(), vector1.end(), out); cout << endl;
         static const int INIT_START;
          void init(int aOption){
          if ( aOption == INIT_START )...
         const int Board::INIT_START = 0;
         win32 상의 설정 파일 api
          if ( m_nTime < (int)::GetPrivateProfileInt("FindBomb", "AMA_Time", 999, ".\FindBomb.ini")){
         %windir%\system32\gpedit.msc
         ["neocoin"]
  • whiteblue/만년달력 . . . . 13 matches
         #include <iostream>
         using namespace std;
         int addMonth[12] = {0,3,0,3,2,3,2,3,3,2,3,2}; // 월별 1일 위치 더해줘야 하는 날수
         int lastDayOfMonth[12] = {31,29,31,30,31,30,31,31,30,31,30,31};
         int yearInput, monthInput, count = 0, dateNumber = 1 , locationOf1stDay, addm;
         int main()
          cin >> yearInput;
          cin >> monthInput;
          for (int x = 0 ; x < monthInput ; x++) // 1년 1일 위치
          locationOf1stDay = (addm + yearInput + count - 1 + 6) % 7; //
          if ( monthInput > 2 )
          locationOf1stDay = (addm + yearInput + count + 6 ) % 7; //
          for (int i = 0 ; i <= yearInput ; i++)
          cout << "\t\t" << yearInput << "년\t" << monthInput << "월 달력\n\n";
          for (int j = 1 ; j<=6 ; j++)
          for (int k = 0 ; k <= 6 ; k++)
          dateNumber > lastDayOfMonth[monthInput-1] ||
  • 검색에이전시_temp . . . . 13 matches
          * 핵심 : 브레이크 포인트는 원하는 라인 왼쪽 부분을 클릭, Run As Debug, F5 Step into, F6 step over
         http://minihp.cyworld.nate.com/pims/visitbook/visitbook_list.asp?tid=24808212&urlstr=bang
         프레임있는 미니홈 : http://minihp.cyworld.nate.com/pims/main/pims_main4.asp?tid=24808212&urlstr=main
         미니룸 : http://minihp.cyworld.nate.com/pims/main/main_inside.asp?tid=24808212
         방명록 : http://minihp.cyworld.nate.com/pims/visitbook/visitbook_list.asp?tid=24808212&urlstr=bang
         사진첩 : http://minihp.cyworld.nate.com/pims/board/image/imgbrd_list.asp?tid=24808212
         게시판 : http://minihp.cyworld.nate.com/pims/board/general/board_list.asp?tid=24808212
  • 고한종 . . . . 13 matches
         ||{{{LinkedIn}}} ||http://www.linkedin.com/pub/han-jong-ko/8a/445/875 ||
         ||{{{tistory}}} ||http://rino0601.tistory.com/ ||
         ||{{{github}}} ||https://github.com/rino0601 ||
         - [고한종/업적/WinAPI를 통한 테트리스]
         - ~~[고한종/업적/WinAPI로 만든 학과주점 포스기]~~
          * JAVA의 Swing으로 만든 시간표 대신 만들어주는 프로그램 (...) 사실 만들어 놓고 안쓴다. 2학년 말에 만들어 놓고 이번 학기(2013년 1학기)에 본인조차 안 쓴걸 보면 기획부터가 잘못된 물건. 일단 소개를 하자면, 수강신청 기간이 되면 포탈에 그 학기에 개강될 과목들을 정리해서 xls 파일로 올려줍니다. 이걸 받아서, poi 라는 JAVA 라이브러리? 에 넣고 돌리면 "[cell값]" 형식으로 String이 나옵니다. 그럼 이걸 stringTokenizer에 ]와 [를 토큰으로 해서 잘게 쪼개줍니다. (애초에 그런거 없이 CSV로 나오면 최고겠지만.. 할줄 모름 ㅠ). 사실 그냥 엑셀에서 CSV로 만들어 쓰면 되는 데, 그때 당시엔 사용 편의성을 도모한답시고 뻘짓 함. 어짜피 아무도 안 쓸텐데 ㅠㅠ 그렇게 얻어낸 과목의 시간정보를 ArrayList에 넣고, 그걸 가지고 backtraking인지.. 를 했던것 같음. 결국 속도는 처참했지만 -_-... 모든 결과가 나오는 것도 아님. 마지막으로 코드를 수정하고나서 테스트로 돌렸을때, 내가 실제로 수강신청했던 시간표는 나오지 않았음 ㅇㅈㄴ... - [고한종], 13년 3월 16일
         -[고한종/업적/MALogin]
          * 그래픽스 연구실에서 서울시특허 과제로 만들고 있는 것 (13년 3월) 거의 완성했는데, 기반이 된 OpenCV가 intel CPU최적화라 아이패드에서 돌리면 겁나 느려서 시연불가능 급이다 -_- 속도만 해결하면 완성인 과제. - [고한종], 13년 3월 16일
  • 데블스캠프2006/월요일/연습문제/for/임다찬 . . . . 13 matches
         #include <iostream>
         using namespace std;
         int main(){
          int i,j,k,l;
         #include <iostream>
         using namespace std;
         int factorial(int n){
         int main(){
          int number;
          cin >> number;
  • 데블스캠프2006/화요일/pointer/문제3/이장길 . . . . 13 matches
         #include <iostream>
         using namespace std;
         void main()
          int *num1 = new int[5] ;
          int *num2 = new int[5] ;
          int *result = new int[5];
          int i,j;
          cin >> num1[i];
          cin >> num2[i];
         [데블스캠프2006/화요일/pointer]
  • 마름모출력/조현태 . . . . 13 matches
         def prin():
          for l in range (size-k,0,-1):
          print ' ',
          for l in range (0,2*k+1):
          print pat,
          print
         if __name__ == '__main__':
          pat= str (raw_input('패턴을 입력해주세요>>'))
          size=input('크기를 입력해 주세요>>')
          for k in range (size):
          prin ()
          for k in range (size-2,-2,-1):
          prin ()
  • 빵페이지/마방진 . . . . 13 matches
          - 아님 무대뽀(BruteForce)하게 [Backtracking]을 이용해도 될듯.. - [임인택]
         #include <iostream>
         using namespace std;
         int main()
          int mbj[3][3];
          int c_1,c_2;
          int a,b;
          const int c = 15; // 3*3마방진의 각 줄의 합
          cin >> c_1;
          cin >> c_2;
          for(int row=0;row<3;row++)
          for(int col=0;col<3;col++)
  • 새싹교실/2011/學高/8회차 . . . . 13 matches
         #include <stdio.h>
         int count=0;
         void hanoi(char from,char to,char mid,int num){
          // Input your code
         int main(){
          int numOfRings;
          printf("원판의 개수: ");
          scanf("%d",&numOfRings);
          hanoi('A','C','B',numOfRings);
          printf("총 실행회수: %d\n",count);
          * passing by value(call by value와의 차이점)
          * index는 0부터 시작한다
  • 새싹교실/2011/쉬운것같지만쉬운반/2011.3.23 . . . . 13 matches
          int main()
          int a=10;
          int b=20;
          int c = a+b;
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         상기 코드가 정상적으로 진행되었기 때문에 main함수는 0을 리턴하고 프로그램이 종료된다.
         콘솔 응용 프로그램에선 main()
         Win32 응용 프로그램에서는 APIENTRY WinMain()
  • 새싹교실/2012/열반/120409 . . . . 13 matches
         int main()
          int N, i, j;
          printf("*");
          printf("\n");
         int main()
          int N, counter;
          printf("%d\n", counter);
         int main()
          int N, i, result;
          printf("%d\n", result);
  • 소수구하기/임인택 . . . . 13 matches
         #include <iostream.h>
         #include <math.h>
         #include <time.h>
         int main()
          int tmp_arr[10000]={2,0};
          int cur_arr_index = 1;
          int i,j;
          //for(j=0; j<cur_arr_index; j++)
          else continue;
          if(flag) tmp_arr[cur_arr_index++]=i;
          /*for(i=0; i<cur_arr_index; i++)
  • 스택/aekae . . . . 13 matches
         #include <iostream>
         using namespace std;
         int arr[10];
         int i=0;
         int main()
          int input;
          cin >> input;
          switch(input)
          cin >> arr[i];
          for(int j=i-1; j>=0; j--)
  • 윤정훈 . . . . 13 matches
         #include <stdio.h>
         int main(void){
         int input;
         printf("1에서 9까지 수를 입력하십시오.\n");
          scanf("%d",&input);
         }while(input<1 || input>9);
         int i;
          printf("%dX%d=%d\n",input,i,input*i);
  • 이승한/mysql . . . . 13 matches
          두부파일에 테이블 생성하기 : create table 테이블명(컬럼명 type(크기), eng integer, date date);
          키의 종류 : index, unique, primary
          키 설정 : add index [인덱스명] (필드명, );
          레코드 삽입 : insert into table (colums...) values (data...);
         include "connect.inc"; //DB접속하는 헤더
          이름 : <input type = "text" name = "name" size = "10"><br>
          영어 : <input type = "text" name = "eng" size = "5"><br>
          수학 : <input type = "text" name = "math" size = "5"><br>
          <input type = "submit" value = "데이타 올리기">
          $query = "insert into score (name, eng, math) values ('$name', '$eng', '$math')";
  • 임인택/내손을거친책들 . . . . 13 matches
          * Introduction to Functional Programming using Haskell
          * An introduction to functional programming through lambda calculus
          * ObjectOrientedReengineeringPatterns
          * ReadingWithoutNonsense
          * Firefox hacks : tips & tools for next-generation web browsing
          * PairProgramming Illuminated
          * IPv6 Clearly Explained
          * IPv6, The New Internet Protocol
          * RefactoringWorkbook
          * TheElementsOfStyle + TheElementsOfProgrammingStyle
  • 장용운/알파벳놀이 . . . . 13 matches
         #include <iostream>
         using std::cout;
         using std::cin;
         using std::endl;
         int main(void) {
          cin>>a>>b;
         void draw(char begin, char end) {
          for(int i=0; i<= (end-begin); i++) {
          for(int j=0; j<=i; j++) {
          cout<<(char)(begin+j);
         Input:
         Input:
         Input:
         Input:
  • 코드레이스/2007/RUR_PLE . . . . 13 matches
          * Play버튼 옆에 Play 모양과 작대기 하나 있는것은 step into와 비슷한 역할을 한다. 명령어가 하나씩 실행된다. 현재 실행되고 있는 명령어는 코드 부분에서 회색으로 highlighting 된다.
          * Play버튼을 클릭하고 나서 로봇이 움직이고 있는 도중에 자신이 원하는 순간에 step into 버튼(play 버튼 옆에 있는)을 클릭하면 그 순간부터 명령어가 하나 하나씩 실행된다.
          * step into 옆에 있는 버튼은 일시 중지 버튼
         # introducing vocabulary related to the problem
          plant_carrot() # replace missing seed
         == Amazing Part ==
          * sorting 문제를 풀고나서 시간 남은 분은 해보시길. [http://rur-ple.sourceforge.net/en/amazing1.htm 러플 Amazing 설명]
         == Sorting ==
          * 05 [조현태] 군이 가장 먼저 sorting을 해결하여 경품을 탔습니다. 이후 01 김정현 이 sort2 맵에 대해서 해결하였지만 sort1에 대해서는 부분적으로 해결하였습니다.
  • 타도코코아CppStudy/객체지향발표 . . . . 13 matches
          상대적으로 각 객체는 소속 클래스의 인스턴스(instance)가 된다.
          * Inheritance(상속) - 계층(hierarchy)관계에 놓여 있는 클래스들 간에 속성이나 연산 기능들을 공유한다.
          * 캡슐화(encapsulation) : 객체의 내부적인 사항과 객체들간의 외부적인 사항들을 분리시킨다. 이렇게 캡슐화된 객체의 행위는 외부에서 볼 때는 구체적인 아닌 추상적인 것이 되므로 정보 은닉(information hiding) 개념이 존중된다. 주어진 클래스의 특정 연산 기능은 메소드(method)라고 한다. 캡슐화는 무슨 메소드로 구현되었는가에 구애받지 않고 추상적으로 정의된 연산 기능을 통해 객체가 사용되고 시스템의 상태(state)를 변화시키도록 해준다.
          * combining data and behavior : 특정한 연산 기능을 수행시킬 때 단순히 메세지만 전송하면 된다.
          * sharing : 자료 구조및 행위의 공유화(sharing)는 계층 관계에 놓여 있는 클래스들 간의 상속성(inheritance)으로 가능하다.
          * 상속성(Inheritance) : 객체를 이루는 클래스를 만들때 이전의 정의했던 클래스와 비슷하나 다른 특이한 특성을 지니는 클래스를 만드는것이다.
         객체 모형(object model) : 객체들과 그 특성을 식별하여 객체들의 정적 구조(static structure)와 그들간의 관계(interface)를 보여주는 객체 다이어그램(object diagram)을 작성한다.
         3. 객체지향 구현(object-oriented programming : OOP)
         설계 모형을 특정 프로그램 언어로 번역하는 작업이다. 객체, 클래스, 상속의 개념을 다 포용하는 객체지향 언어(object-oriented programming language : C++, Smalltalk 등)가 가장 좋지만 객체의 개념만 인정하고 클래스, 상속 등은 고려하지 않은 객체기반 언어(object-oriented based programming language : Ada 등)도 좋다.
         또한, 일반적인 구조적 프로그래밍 언어(structured programming language : C, Pascal 등)도 객체지향 개발에 활용될 수 있는가 하면 객체 지향 데이타베이스 관리시스템(OODBMS)이 개발의 도구로 이용될 수도 있다.
  • 토이/숫자뒤집기/임영동 . . . . 13 matches
          * 입력받은 문자열을 숫자로 변환한 뒤 10으로 나눠주면서 그 나머지를 String에 붙여버린다. 그 후 출력.
         import javax.swing.*;
         public class ProgrammingExercise5_04{
          public static void main(String[] args)
          int inputNumber=Integer.parseInt(JOptionPane.showInputDialog(null, "Input a number that you want to reverse."));
          int reversedNumber=reverse(inputNumber);//뒤집을 숫자를 입력받고 reverse()호출
          public static int reverse(int number)
          String reversed="";
          int returnNumber=Integer.parseInt(reversed);
  • 피보나치/Leonardong . . . . 13 matches
         #include <iostream>
         using namespace std;
         int f(int);
         int main()
          int input;
          cin >> input;
          cout << f(input);
         int f(int x)
  • 피보나치/김영록 . . . . 13 matches
         #include <stdio.h>
         static int number_output;
         int pi(int round)
          static int a=1,b=1,c=0,round_temp;
         int main()
         int number_input;
         printf("이보삼 알고싶은번째 피보나치수좀 알아보셈 : ");
         scanf("%d",&number_input);
         pi(number_input);
         printf("%d",number_output);
  • 피보나치/문원명 . . . . 13 matches
         #include <iostream>
         using namespace std;
         int num(int);
         void main()
          int in,out;
          cin>>in;
          out=num(in);
          cout<<in<<"번째는 "<<out<<endl;
         int num(int x)
  • 호너의법칙/남도연 . . . . 13 matches
         #include <iostream.h>
         #include <fstream.h>
          int X;
          int a[11]={3,3,3,3,3,3,3,3,3,3,3};
          int i;
          int function_value=0;
          int num_add=0,num_multiply=0;
          int j=a[0];//j는 an의 역할을 한다.
         void main()
          cin >>X;
          int t=a[i+1];//t는 an-1의 역할을 한다.
          cout<<"|index| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | \n";
          outputFILE<<"|index| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | \n";
  • 호너의법칙/박영창 . . . . 13 matches
         Chapter 1.2 (2)Problem Solving
         #include <iostream>
         #define EXIT_SUCCESS 0
         #define EXIT_FAILURE 1
         #define PARAM_X 2.0
         #define COEFFICIENTS {1, 2, 3, 4, 5, 6, 7}
         double horner_func(double, double*, int);
         int max_exponentials = 0;
         int main ()
          // index 차수의 계수를 배열로 지정한다.
         double horner_func(double x_param, double* coefficient, int exponential)
          // Recursion Termination Condition
  • 0PlayerProject . . . . 12 matches
         http://zerowiki.dnip.net/~undinekr/arm_st.rar
         Upload:SourceInsight3_1.zip
         [http://zeropage.org/~mulli2/SSHWinClient-3.1.0-build235.exe ssh win client] 제로 페이지 리눅스 계정 접속 프로그램
          . FileSize/String : 15.7 MiB
          . Format/String : Audio video Interleave
          . Codec/String : XviD
          . BitRate/String : 615Kbps
          . Codec/String : PCM
          . BitRate/String : Microsoft PCM
          . Channel(s)/String : 2 channels
          . SmplingRate/String : 48 Khz
  • 2thPCinCAUCSE . . . . 12 matches
         '''2th Programming Contest in CAUCSE'''
          * 경시 3시간에 3문제가 출제된다. (open book, closed internet)
          printf ( "I got %d\n", n ); // 표준 출력 부분
          cin >> n; // 표준 입력 부분
          * ["2thPCinCAUCSE/ProblemA"] - A번 문제 "성냥개비로 삼각형 만들기"
          * ["2thPCinCAUCSE/ProblemB"] - B번 문제 "촌수 계산하기"
          * ["2thPCinCAUCSE/ProblemC"] - C번 문제 "최소의 움직임으로 정리하기"
          * ["2thPCinCAUCSE/ProblemA/Solution"]
          * ["2thPCinCAUCSE/ProblemB/Solution"]
          * ["2thPCinCAUCSE/ProblemC/Solution"]
         [1thPCinCAUCSE]
  • 8queen/민강근 . . . . 12 matches
         #include<iostream>
         #include<ctime>
         using namespace std;
         int main()
          int arr[8][8];
          int a,b;
          int h, w;
          int num=0;
          for(int i=0 ; i<8 ; i++)
          for(int j=0; j<8 ; j++)
          for(int j=0;j<8;j++)
  • ClassifyByAnagram/JuNe . . . . 12 matches
         def Anagram(inFile,outFile):
          for eachWord in inFile:
          key=list(eachWord);key.sort();key=''.join(key)
          for eachAnagram in anagrams.itervalues():
          print >> outFile, ' '.join(eachAnagram)
         if __name__=='__main__':
          Anagram(sys.stdin,sys.stdout)
         P4 1.8Ghz 512MB Win XP Python 2.2.1에서 17만 단어로 실행하면 4초. 프로세스 메모리 점유 약 31MB. 만약 psyco로 bind를 해주면(if문 위에 {{{~cpp import psyco;psyco.bind(Aangram)}}}을 추가) 3.4초.
  • CppStudy_2002_1 . . . . 12 matches
         || 8.1 ||10.클래스를 사용하자(64page)||["StringOfCPlusPlus"] ||
         || 8.9 ||11.클래스와 동적 메모리 할당(76page)||["LinkedList"] ||
         || 8.16 ||12.클래스 상속(72page)|| ["LinkedList/StackQueue"][[BR]]C++2팀과의 프로그래밍 잔치? 링크드 리스트로 스택,큐 구현||
         || 세번째 주 || ["StringOfCPlusPlus/영동"] ["StringOfCPlusPlus"] || 영동 ||
         || 네번째 주 || ["LinkedList/영동"] || 영동 ||
         || 다섯번째 주 || ["LinkedList/StackQueue/영동"][[BR]] ["STL/vector/CookBook"] 참고로 끝에 과제 해오기 ||영동 ||
          * 버스 시물레이션 [http://www.sbc.pe.kr/cgi-bin/board/read.cgi?board=life&y_number=17&nnew=2]
          * ["StringOfCPlusPlus"]가 참 유익했던 거 같습니다. 제가 이걸 하기 전엔 문자열을 다루는데 어려움이 많았는데 이걸 하고 나니까 좀 쉬워진 듯한 느낌이네요. -[영동]
         상협. [STL/string|String] 클래스의 스펙을 어떻게 주었는지? 사람들이 왜 전부 String 이용 프로그램 GOD 클래스를 만드는걸까 궁리.
  • Cracking/ReverseEngineering/개발자/Software/ . . . . 12 matches
         기존 배우고 있던 것들과는 별개로 Cracking에 대한 것들을 익혀야한다. (여기서 Cracking은 시스템 전반에 관한 지식을 익혀 그것을 악용 하는 것이다.)
         개발자들이 Coding을 할 때 약간의 신경만 써주면 Cracker들에 의해 exploit이 Programming되는 것을 막을 수 있다.
         Jeffrey Richter의 Programming Applications for Microsoft Windows란 책을 추천한다. 현재 4th edition까지 나온 상태이다. 물론 한글판은 없다.
         (윈도우즈 시스템 커널이 하는 일등을 배울 수 있으며 그것을 이용해 나쁘게 사용하든 좋게 사용하든 도움이 많이 되는 책이다. Windows에 Base를 둔 Software 개발자로서는 꼭 읽어야할 책.)
         Keyword : Cracking, Reverse Engineering, Packing, Encypher, Encrypt, Encode, Serial, Exploit, Hacking, Jeffrey Ritcher
  • DataCommunicationSummaryProject/Chapter11 . . . . 12 matches
          * point-to-point 방식과 multipoint 방식이 있다.
         === point-to-point ===
         ==== Point-To-Point Microwave ====
         ==== Optical Networking ====
         === multipoint ===
          * 8km 까지는 서비스 범위가 도달한다. 표준으로 11Mbps를 지원하지만 multipoint 특성상 대역폭을 사용자들이 공유하기 때문에 실제로는 2~6Mbps 가된다.
          * Multipoint Multichannel Distribution System 의 약자이다.
         ===== Competing Local Loop Tech. =====
  • DataCommunicationSummaryProject/Chapter9 . . . . 12 matches
          * cellular networks가 예상보다 빠르게 성장한데 비하여,short-range mobile systems은 덜 성공적이였다.그 이유에는 속도,유선에 비하여 신뢰성의 떨어짐, 경쟁적인 기준이 있다.물론 Cordless phones 처럼 인기있는것도 있지만, 점점 범위를 늘리려고 한다. 또한roaming에서의 실패성이 많다.적외선이 laptop 이나 PDA에서 거의 사용되지만 잘 사용되지 않는다.
          * 적외선 사용이 실패였지만 아직도 많은 연구와 회사의 사용이 있다.4세대 모바일 시스템으로 주목 받고 있다.roaming하는데 별 어려움 없이 랜과 3새대 휴대폰과 Bluetooth와의 연결도 가능할 것이다.
          * ISM(Industrail,Scientific, and Medical) 는 의사소통을 위한것이 아니다. 따라서 이 범위의 주파수는 국가에서 나두었다. 그래서 무선 전화나 무선 랜에서 사용된다.
          * CCK(Complementary Code Keying)라고 불리는DSSS의 2.4GHZ를 사용한다. 물론 기존의 기계와 호환성을 기진다. MAC하는 방법은 CSMA/CA(여기서 A는 avoidance이다 유선과는 틀리다) half-duples이다.shared이다. 대역폭이 11Mbps이지만 오보헤드가 심하다. 여기에다가 쉐어드이니 장에가 심하면 1-2Mbps밖에 안된다.하지만 데이터 전송률은 쓸만하다. 이러한 낭비를 줄이려고 차세대로 갈수록 물리적인 데이터 율을 줄인다.
          * ad-hoc networking
          * access point networking
         === Roaming ===
          * Ad-hoc networking in HiperLan : 중간의 노드를 거쳐서 가는것 같다. 잘 모르겠다.
         === Weakness in WEP ===
          * built-in key management system - 이건 잘 모르겠다. 가증한 키는 제한되어 있고, 해킹하는 데에는 선형시간이 걸린다.
          * Infrared LANs : 볼거 없다. 그냥 적외선으로 랜 하는거다.
          * Frequency Hopping을 사용한다.
  • English Speaking/The Simpsons/S01E04 . . . . 12 matches
         You're sitting there like a thirsty bump on a log.
         Police 1 : Evening, Moe.
         Moe : Two bucks, boys. Just kidding.
         Police 2 : Good one, Moe. We're looking for a family of Peeping Toms...
         who's been terrorizing the neighborhood.
         Police 1 : What's gotten into Bobo?
         Homer : I got some wieners in my pocket.
         Homer : You know, Moe, my mom once said something that really stuck with me.
         She said, " Homer, you're a big disappointment."
         And God bless her soul, she was really on to something.
         [English Speaking/2011년스터디]
  • EnglishSpeaking/TheSimpsons/S01E04 . . . . 12 matches
         You're sitting there like a thirsty bump on a log.
         Police 1 : Evening, Moe.
         Moe : Two bucks, boys. Just kidding.
         Police 2 : Good one, Moe. We're looking for a family of Peeping Toms...
         who's been terrorizing the neighborhood.
         Police 1 : What's gotten into Bobo?
         Homer : I got some wieners in my pocket.
         Homer : You know, Moe, my mom once said something that really stuck with me.
         She said, " Homer, you're a big disappointment."
         And God bless her soul, she was really on to something.
         [English Speaking/2011년스터디]
  • Functor . . . . 12 matches
         [BuildingParserWithJava]를 보다가 12장에서 처음 접한 단어. FunctionObject를 부르는 말이다.
         A function object, often called a functor, is a computer programming construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax. The exact meaning may vary among programming languages. A functor used in this manner in computing bears little relation to the term functor as used in the mathematical field of category theory.
         비슷한 구현에 대해서 OO 쪽에서는 MethodObject 라 부르기도 함. (Refactoring에 나옴) 구현 모양상으로 보면 CommandPattern, C++ 진영에서는 Functor 가 일반적인 표현.; --[1002]
  • GuiTesting . . . . 12 matches
         GuiTesting 을 하는 이유는 여러가지가 있을 수 있다. GUI Programming 에 대한 TestFirstProgramming 에 대한 시도를 할 수 있기 때문이다. 해당 UI Control을 하나하나 만드는 일부터 시작할 수 있다. 하지만, 보통의 경우 UI Control을 만드는 일들은 IDE 툴들에서 하는 것이 더 편하다. GuiTesting 은 해당 이벤트 발생시에 따른 처리과정에 대한 TestFirstProgramming 을 시도하려고 할 때 도움을 줄 것이다.
         대부분의 경우는 TFP를 하는중에 logic 부분과 UI 부분을 분리함으로서 GuiTesting 을 복잡하게 하는 요소들을 줄일 수 있다. 그러면서 Model - View - Controler 의 형태가 유도되어질 것이다.
         MVC 는 View 단을 테스트하기에 적합하지 않은 면이 있다. 그래서 ModelViewPresenter 로 해보니 좋았다. --NeoCoin
         See Also wiki:Wiki:GuiTesting, wiki:Wiki:GuiUnitTesting, [http://www.xp123.com/xplor/xp0001/ JavaGuiTesting] , ["GuiTestingWithMfc"], ["GuiTestingWithWxPython"]
  • HASH구하기/신소영 . . . . 12 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main()
          ifstream input("input.txt");
          int i=0;
          int sum[5]={0,};
          while (input.eof() == false)
          input >> a;
          sum[i%5]+=(int)a;
  • HASH구하기/오후근,조재화 . . . . 12 matches
         #include <iostream.h>
         #include <fstream.h>
         void main()
          ifstream fin("source.txt");
          int arr[20][5]={{0}};
          for(int i=0;i<20;i++)
          for(int j=0;j<5;j++)
          temp = fin.get();
          //fin.get(arr[i][j]);
          for(int j=0;j<5;j++)
          int total[5] = {0};
          for(int j=0;j<5;j++)
  • HardcoreCppStudy/첫숙제/Overloading/변준원 . . . . 12 matches
         int harpo(int, int m = 4, int j = 5); //맞음
         int chico(int n, int m = 6, int j); //틀림
         int groucho(int k = 1, int m = 2, int n = 3); //맞음
  • HowManyFibs?/1002 . . . . 12 matches
         input space 로 볼때 최악의 경우가 1~10^100 일 수 있겠다는 생각을 하면서 뭔가 다른 공식이 있겠다 생각, 피보나치의 closed-form 을 근거로 해결할 방법에 대해 궁리해보다. a,b 구간에 가장 가까울 f(x),f(y)를 각각 구하고, y-x 를 구하면 되리라고 생각. 하지만 3시간동안 고민했는데 잘 안되어서, 그냥 노가다 스러운 방법으로 풀기 시작.
          if n in [1,2]: return s[n-1]
         print howmany(10,100)
         print howmany(1234567890,9876543210)
         print howmany(1,10**100)
         근데, a,b=(1,10^100) 로 해도 1초도 안걸린다. 처음에는 'big integer 를 만들어라!' 라는 문제가 아니라고 생각했는데, 풀고 나니 뭔가 허탈함. 글쌔. 출제자가 원한 답은 big integer emulation 이였을까. 흑..
          return int(((1+sqrt(5))**n - (1-sqrt(5))**n) / (2**n * sqrt(5)))
         피보나치 수가 굉장히 크게 늘어나는 수라는 점을 생각했더라면, input space 가 크더라도 fibo(n) 의 n 값이 커지지 않을 것이라는 것을 미리 알고 있었더라면 저런 고민을 안했을 것 같긴 하다. 하지만, 이러한 사전지식이 없는 가운데, 문제를 풀라고 한다면 어떻게 접근하는게 가장 좋았었을까. 고민된다.
          * 그럼에도 불구하고.. '정말 big integer 만들기' 문제였을까? 다시금 고민하게 되다.
          * closed form 과 관련하여 Generating Function 이 아직도 익숙치 않아서 mathworld 의 힘을 빌리다. GF 를 공부해야겠다.
          * bigint 를 지원하는 python 이나 matlab 같은 언어에서는 더 할일이 없는 문제. 내가 공식 궁리하는 동안 옆의 분이 matlab 으로 10분만에 풀어버리다. 흑.
  • Java/ServletFilter . . . . 12 matches
          * EncodingFilter - 해당 jsp/servlet 등에 대해서 공통의 인코딩 셋을 설정
          * Logging & Performance 측정
         이중 EncodingFilter 의 경우 JSP 프로그래머들에게도 보편적으로 이용되고 있는중.
          <filter-name>Encoding Filter</filter-name>
          <display-name>Encoding Filter</display-name>
          <filter-class>cau.filter.EncodingFilter</filter-class>
          <init-param>
          <param-name>encoding</param-name>
          </init-param>
          <filter-mapping>
          <filter-name>Encoding Filter</filter-name>
          </filter-mapping>
  • JavaStudy2004/이용재 . . . . 12 matches
         import javax.swing.*;
         public class HumanBeing
          private String name;
          private int statue;
          public HumanBeing()
          name = JOptionPane.showInputDialog("이름 입력");
          System.out.println(name);
          JOptionPane.showMessageDialog(null, "I am taking a rest =.=;");
          JOptionPane.showMessageDialog(null, "I am studying T.T");
          public static void main(String [] args)
          HumanBeing Lee = new HumanBeing();
  • KnapsackProblem/김태진 . . . . 12 matches
          * Using DP
         #include <stdio.h>
         #include <stdlib.h>
         #include <iostream>
         using namespace std;
         int f[10001][10001] = {0};
         int main()
          int i,Wei,Num,k,w,Max=0;
          int weight[10001] ={0};
          int price[10001] ={0};
          printf("%d",f[k-1][w-1]);
  • ListCtrl . . . . 12 matches
         == Mouse Click 후 index 받아 오기 ==
         int ListIndex;
         CPoint point ((int)LOWORD(dwPos), (int)HIWORD(dwPos));
         CPoint Index = point;
         m_ctrlZoneList.ScreenToClient(&Index);
         ListIndex = m_ctrlZoneList.HitTest(Index);
         == Mouse Click 후 Item의 String 받아 오기 ==
          int index = m_ctrlBlockList.GetNextSelectedItem(pos);
          m_ctrlBlockList.GetItemText(index, 0, buf, 64);
  • MoinMoinMailingLists . . . . 12 matches
         There are two mailing lists for MoinMoin:
          * http://lists.dragon-ware.com/mailman/listinfo/moin-users
          Talk about ''using'' MoinMoin (very low-traffic).
          * http://lists.dragon-ware.com/mailman/listinfo/moin-dev
          Talk about MoinMoin development, bugs, new features, etc. (low-traffic)
  • OpenGL스터디 . . . . 12 matches
         skyLibrary_inclue
         '''Intro'''
         공부하는 도서는 openGL superbible 3판 번역서 + openGL Game programming 두권으로 하고 있습니다. 아마 openGL superbible은 이번달에 5판 원서가 해외에서 나오는 걸로 알고 있는데, 이걸 보시는 분은 참고해서 원서를 보는것도
         === 팝핑(popping)현상 ===
         attachment:popping1.png
         attachment:poping3.png
         '''블랜딩(blending)'''이란 화면상에 색상과 물체를 혼합하는 효과를 이야기한다. 이를 사용하는 곳은 주로 두 이미지가 겹쳐있는 효과를 내기위해서 사용한다. 예를 들어
         attachment:antialiasing.png
         === 뷰포트(viewport)와 클리핑(clipping) ===
          * 그렇다면 이 openGL은 구체적으로 어떤식으로 작용하는가? 윈도우를 예시로 들어보자. 윈도우 같은 경우 어떤 화면에 이미지를 출력하려면 '''GDI(graphic Device Interface)라는 그래픽 장치 인터페이스'''를 통해서 출력장치로 출력데이터를 보내 출력한다.
         attachment:pipeLine2.png
          * 그리고 이 데이터타입은 openGL에 naming convention(이름 규칙)에 따라 정해져있는데 직관적이라 은근히 외우기 쉽다. 아래의 표를 살펴보자.
         || GLint, GLsizei || 32비트 정수 || long || l ||
         || GLuint, GLenum, GLbitfield || 부호없는 32비트 정수 || unsigned long || ui ||
  • Polynomial . . . . 12 matches
          하나의 항은 coefficient 와 exponent 로 구성된다. 하나의 항(단항식)을 표현하는 자료구조는 다음처럼 구조체를 사용한다. (여기서는 지수와 밑모두 integer를 사용한다)
          int coef; // 밑
          int exp; // 지수
          다항식을 표현하는자료구조는 크게 두가지로 생각해 볼 수 있다. linked list 와 array 이다. 배열은 모두들 잘 알겠고 linked list 는 동적으로 storage를 할당받아 각 노드를 포인터로 연결한 자료구조를 말한다..(라고 우선 설명만 해둬야지 정확한 정의는 내리지 못하겠다..-_-). 물론 동적으로 할당받지 않고도 linked list 를 구현할수 있지만 그럴꺼면 배열로 하는게 낫지 그 노가다를 뭐하러 하나...-_-
          * linked list 를 사용한 방법
          int coef;
          int exp;
          Node* input(); // 사용자에게 값을 입력받아 새로운 다항식을 생성하여 리턴한다.
         === input data ===
          * 다항식을 표현하는 클래스를 만들어서 operator overloading 을 사용해도 되겠지만 이는 위에 말한 내용을 이미 구현한 후 이걸 클래스로 포장하는거기때문에 지금수준에서는 무리라고 생각됨... - 임인택
  • ProjectPrometheus/Iteration7 . . . . 12 matches
         || Task || Point || 진행여부 ||
         |||||| login 관련 ||
         || Login DB 연동 || . ||○||
         || Task || Point || 진행여부 ||
         || Searched List 에 각 책에 대한 Total Point 점수 표현 || . || ○ ||
         || View point 입력 추가 || . || ○ ||
         || Rating( Light View) 추가 || . || ○ ||
         || sessoin으로 view point누적 방지 || 0.5 || ○||
         || Task || Point || 진행여부 ||
         || 로그인 + 검색, 보기(x2) + viewpoint|| . || ○ ||
         || 로그인 + 보기 + Rating(lightView)|| . || ○ ||
  • ProjectPrometheus/LibraryCgiAnalysis . . . . 12 matches
         (http://www.cyberclip.com/webdebug/index.html, http://sourceforge.net/projects/webdebug)
          * Server: Apache/1.3.22 (Win32) mod_jk
          * Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.1_01; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
         Windows 2000 아파치 톰켓 조합에 Java JDK 가 1.3.1_01 이라. 약간 신기한 조합같다는 생각이.. --a
          "Referer":"http://165.194.100.2/cgi-bin/mcu100?LIBRCODE=ATSL&USERID=*&SYSDB=R",
          "Accept":"image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*"}
          conn.request("POST", "/cgi-bin/mcu200", params, headers)
          print response.status, response.reason
          f = urllib.urlopen("http://165.194.100.2/cgi-bin/mcu200", params)
         http://165.194.100.2/cgi-bin/mcu201?LIBRCODE=ATSL&USERID=abracadabra&SYSDB=R&HISNO=0010&SEQNO=21&MAXDISP=10
         &pKeyWordC=%28+%28-TI-+WITH+%28extreme+programming+%29+.TXT.%29++%29 - 검색 관련 키워드
  • PyIde . . . . 12 matches
          * Xper:ExtremeProgramming 을 지원해줄 도구들 만들어나가보기.
          * Prototyping & 외부 공개소스 Review & Copy & Paste 하여 가능한한 빠른 시간내에 원하는 기능 구현법이나 라이브러리들을 연습하여 익힌뒤, Refactoring For Understanding 을 하고, 일부 부분에 대해 TDD 로 재작성.
          * 기타 - CyberFomulaSin의 아스라다와 오우거, Sarah Brightman 의 Harem 앨범, NoSmok:시간관리인생관리
          * [Eclipse] - [wxPython] 과 PDE 중 어느쪽이 더 효율적일까.. CVS 관련 기능들등 프로젝트 관리면에서는 Eclipse 의 Plugin 으로 개발하는 것이 훨씬 이득이긴 한데.. Eclipse Plugin 도 [Jython] 으로 프로그래밍이 가능할까?
          * [PyIde/Scintilla]
          * BoaConstructor - Scintilla 가 사용된 예를 볼 수 있다.
          * BicycleRepairMan - idlefork, gvim 과의 integration 관계 관련 코드 분석.
          * Eclipse 이나 IntelliJ 에서 제공해주는 여러가지 View 들. 그리고 장단점들.
          * http://st-www.cs.uiuc.edu/users/brant/Refactory/RefactoringBrowser.html - Smalltalk refactoring browser
  • RandomWalk/성재 . . . . 12 matches
         #include<iostream>
         #include<ctime>
         using namespace std;
         int main()
          int num,b,c;
          int count,i,j;
          cin >> num;
          int ** data = new int *[num];
          data[i] = new int [num];
          int q = rand() % 8; //end
  • ReverseAndAdd/정수민 . . . . 12 matches
         n=raw_input('숫자입력')
          print n
          print m
          print '-' * len(n)
          print int(n)+int(m)
          print '*' * len(n)
          k=int(n)+int(m)
         print b
         print '번 더해서 회문'
  • STL/참고사이트 . . . . 12 matches
         C++ Programming HOW-TO 에서 발췌
         Main STL sites:
         [http://dmoz.org/Computers/Programming/Languages/C++/Class_Libraries/STL C++ STL site ODP for STL] 와 [http://dir.lycos.com/Computers/Programming/Languages/C%2B%2B/Class_Libraries/STL 미러]
         The Code Project, C++/STL/MFC 에 대한 소개 http://www.codeproject.com/cpp/stlintroduction.asp
         C++ Standard Template Library, another great tutorial, by Mark Sebern http://www.msoe.edu/eecs/cese/resources/stl/index.htm
         Technical University Vienna by Johannes Weidl http://dnaugler.cs.semo.edu/tutorials/stl mirror http://www.infosys.tuwien.ac.at/Research/Component/tutorial/prwmain.htm
         iterator에 대한 매우 좋은 설명 http://www.cs.trinity.edu/~joldham/1321/lectures/iterators/
         Intro to STL SGI http://www.sgi.com/tech/stl/stl_introduction.html
         Joseph Y. Laurino's STL page. http://weber.u.washington.edu/~bytewave/bytewave_stl.html
  • SwitchAndCaseAsBadSmell . . . . 12 matches
         케이스문이 줄줄이 나오는 것이나 비슷한 구조가 반복되는 것이나 모두 "나쁜 냄새"(Moa:BadSmell )입니다. 조금이라도 나쁜 냄새가 나면 바로바로 냄새 제거를 해야 합니다. 예컨대, 반복되는 케이스문은 테이블 프로그래밍(Table/Data Driven Programming)으로 해결할 수 있습니다.
         def getWinner(p1,p2):
          """return 1 when p1 wins, 2 when p2 wins, 0 when a tie"""
         def getWinner(p1,p2):
          """return 1 when p1 wins, 2 when p2 wins, 0 when a tie"""
         >>> getWinner(GAWI,BO)
         >>> getWinner(BO,GAWI)
         >>> getWinner(BAWI,GAWI)
         >>> getWinner(BO,BO)
         see also Seminar:가위바위보 , Wiki:SwitchStatement
  • TAOCP/BasicConcepts . . . . 12 matches
         1) 유한성(Finiteness)
         2) 명확성(Definiteness)
         3) 입력(Input)
          Comparison indicator, - EQUAL, LESS, GREATER
          Input, Output Devices
          * Instruction format
          I - 인덱스(the index specification). 값이 1~6으로 rI1~rI6에 있는 내용과 메모리 주소를 더함
          * Loading operators.
          LDA, LDX, LDi, LDAN, LDXN, LDiN이 있다.
          * Storing operators.
          이 연산에서 M은 메모리 셀을 가리키지 않고, 그냥 부호있는 숫자로 쓰인다. ENTr, ENNr, INCr, DECr가 있다. ( r은 A, X, 1~6)
          M이 가리키는 메모리 셀로 점프한다. JSJ를 빼면 점프를 하면서 점프 명령어 다음 위치를 rJ에 저장한다. the comparison indicator를 이용하거나(JL, JE, JG, JGE, JLE, JNE) , 레지스터(JrN, JrZ, JrP, JrNN, JrNZ, JrNP)를 이용한다.
          HLT 명령은 기계를 멈춘다(The machine stops.)
          * Input-output opertors.
          * Timing
         순열은 abcdef를 재배열(rearrangement)이나 이름바꾸기(renaming)를 해서 얻는다고 볼 수 있다. 이를 다음과 같이 표시할 수 있다.(p.164참조)
         * Timing
          * Timing
          === Inverse ===
  • TheWarOfGenesis2R/Temp . . . . 12 matches
         #include <boost/shared_ptr.hpp>
         #include <vector>
         #include <iostream>
         using namespace boost;
         using namespace std;
          int a;
          int b;
          Test(int a1, int b1)
         int main()
          for(int i = 0 ; i < con.size() ; ++i)
  • TkinterProgramming . . . . 12 matches
         = Tkinter =
         Tkinter 는 Tk GUI 툴킷의 파이선 바인딩 구현물이다. 현재 Tkinter 는 파이선의 가장 일반적인 GUI 툴킷임.
         [http://en.wikipedia.org/wiki/Tk_%28computing%29 Wikipedia.org]
         01. [TkinterProgramming/HelloWorld]
         02. [TkinterProgramming/SimpleCalculator]
         03. [TkinterProgramming/Calculator2]
         만약 파이선으로 GUI 프로그래밍을 한다면 Tkinter 이것 만큼은 피하라!!!! -_-
         [TkProgramming], [wxPython], [PyGTK], [PyQt]
  • WindowsTemplateLibrary . . . . 12 matches
         {{|The Windows Template Library (WTL) is an object-oriented Win32 encapsulation C++ library by Microsoft. The WTL supports an API for use by programmers. It was developed as a light-weight alternative to Microsoft Foundation Classes. WTL extends Microsoft's ATL, another lightweight API for using COM and for creating ActiveX controls. Though created by Microsoft, it is unsupported.
         In an uncharacteristic move by Microsoft—an outspoken critic of open source software—they made the source code of WTL freely available. Releasing it under the open-source Common Public License, Microsoft posted the source on SourceForge, an Internet open-source repository. The SourceForge version is 7.5.
         Being an unsupported library, WTL has little formal documentation. However, most of the API is a direct mirror of the standard Win32 calls, so the interface is familiar to most Windows programmers.|}}
         WTL은 객체지향적인, Win32 를 캡슐화하여 만들어진 C++라이브러리로 MS 에서 만들어졌다. WTL은 프로그래머에 의한 사용을 위해 API Programming Style을 지원한다. WTL MFC에 대한 경량화된 대안책으로서 개발되었다. WTL은 MS의 ATL를 확장한다. ATL 은 ActiveX COM 을 이용하거나 ActiveX 컨트롤들을 만들기 위한 또 다른 경량화된 API 이다. WTL은 MS 에 의해 만들어졌디면, MS 가 지원하진 않는다.
         지원이 되지 않는 라이브러리이기 때문에 WTL에 관한 문서는 거의 없다. 그러나 대부분의 API는 표준 Win32 콜을 거의 직접적으로 반영하므로, WTL의 인터페이스는 대부분의 윈도우즈 프로그래머들에게 친숙하다.
  • eXtensibleMarkupLanguage . . . . 12 matches
         The Extensible Markup Language (XML) is a W3C-recommended general-purpose markup language for creating special-purpose markup languages, capable of describing many different kinds of data. In other words XML is a way of describing data and an XML file can contain the data too, as in a database. It is a simplified subset of Standard Generalized Markup Language (SGML). Its primary purpose is to facilitate the sharing of data across different systems, particularly systems connected via the Internet. Languages based on XML (for example, Geography Markup Language (GML), RDF/XML, RSS, Atom, MathML, XHTML, SVG, and MusicXML) are defined in a formal way, allowing programs to modify and validate documents in these languages without prior knowledge of their form.
          * DTD로 검색하다 여기로 왔네요ㅋㅋㅋ 예전에 쓰신 것 같아서 지금은 아시는 내용이겠지만 나중에 다른 분들이 이 페이지를 보실 수 있으니 시간을 건너뛰어 댓글 답니다~ DTD는 Document Type Definition의 약자로 XML 문서 작성을 위한 규칙을 기술하는 형식입니다. valid XML Document의 경우 well-formed XML Document이면서 XML에서 사용되는 원소 이름이 해당 문서에 대한 XML DTD나 XML Schema에 명세된 구조와 합치되어야 한다고 하네요. 이 내용에 대한 수업을 들으며 씁니다ㅋㅋㅋㅋㅋㅋㅋ - [김수경]
  • whiteblue/MagicSquare . . . . 12 matches
         #include <iostream>
         using namespace std;
         int arr[20][20] = {{0}};
         int size;
         int main()
          cin >> size;
          int x = size/2;
          int i = x, j = 0, count = 1;
          continue;
          for (int i=0; i<size; i++)
          for (int j=0; j<size; j++)
  • 구구단/하나조 . . . . 12 matches
         #include <stdio.h>
         void main(void)
          int i=0;
          int j=0;
          int k=0;
          printf("%d * %d = %d\n",i,j,k);
         #include <stdio.h>
         void main()
          int i=0;
          int j=0;
          int k=0;
          printf("%d*%d=%d\n",i,j,k);
  • 데블스캠프2004/목요일후기 . . . . 12 matches
         [[HTML(<center>)]]'''후기 방법 : ThreeFs Fact(사실), Feeling(느낌), 교훈(Find)[[BR]] 을 구분해서 명확히 이야기 하세요.''' [[HTML(</center>)]]
          으하하 가장 재미있군 이거 --NeoCoin
         사실 : 암호화방법, 암호화와 복호화 방법, STL 의 정의(?)와 그 예들을 배웠습니다.(string,vector,map)
         DeleteMe 강사 두분은 그냥 생각나는데로 쓰고, 나중에 분류하는 편도 편해요. --NeoCoin
          * string str을 선언하고 getline(cin, str)을 하면 왜 입력 받은 후 엔터를 한번 더 쳐야 넘어가나요?
          * 재선이가 찾아본 결과론 char str[]의 경우는 널문자를 포함하고 string은 아니기 때문이라는데 정말일까요?
          * 우리는 청자들에게 끊임없이 공유 비전을 공감 시켜야 한다. 공감하지 못하고 실종(?) 된다면 우리와 함께 하는 것이 아니고 뭐랄까, 하고자 하는 생각이 없다는 표현이 맞을까? --NeoCoin
          * Siver bullet 는 Pair + 요구사항 변경일까? 시간이 걸리는 한가지를 진득히 구현하면서 밤을 새는 끈기를 이끄는 방법은 없을까? 재동 처럼하지 않은 것은 작년과 같은 기억으로 진행했었던 모양이다. 역시 피드백은 유용하군. ([데블스캠프2004/수요일후기] 강사후기에 적어주라) 작년 기록에서는 Pair 는 하지 않았군. 그럼 어떻게 해결했었을까? 03들이 작년의 기억을 되살려 [데블스캠프2004/공유비전]에 끈기를 넣은것 같은데 그때는 어떻게 했었지? --NeoCoin
          * 그렇군, 뒤에 이틀을 살펴보니 신입생+신입생으로 구성된 페어가 보이는군, 올해는 재학생 + 신입생 페어를 지향한것 같은데(나도 그렇고) 무언가 부족한 점이 있을까? 월요일 관찰은 2/8분 규칙을 해도 몇몇이 선배가 무시하고 키보드 독점 폐해가 있었다. --NeoCoin
  • 데블스캠프2005/RUR-PLE/Harvest/Refactoring . . . . 12 matches
         = [데블스캠프2005/RUR-PLE]/Harvest/[Refactoring] =
         [데블스캠프2005/RUR-PLE/Harvest/김태훈-zyint]
         def pickLineBeeper():
          for i in range(5):
         pickLineBeeper()
         pickLineBeeper()
         pickLineBeeper()
         pickLineBeeper()
         pickLineBeeper()
         pickLineBeeper()
          for i in range(5):
          for i in range(5):
  • 데블스캠프2009/금요일/SPECIALSeminar . . . . 12 matches
         = 2009 데블스 캠프 SPECIAL Seminar =
          * 지원 : Satisficing (Satisfy + Sacrifice) - 여러가지 한도 안에서의 최적을 찾아낸다.
          * time interval이 일정 시간 이상 되면 학습이 어렵다.
          * 수동적이 아니라 능동적으로 신경써야(뇌가 활동해야) 학습이 잘 되기 때문. - myelin
          * Communication skill, Writing skill
          * 반복문이 제대로 됐는지 체크 - 첫, 끝 index 출력, 에러 메세지 확인
          * 과제 mind를 피해라
          * 어떻게 print를 해야 고친 것이 검증이 되는지 생각해라.
          * [데블스캠프2009/금요일/SPECIALSeminar/강소현/김수경/송지원]
          * [데블스캠프2009/금요일/SPECIALSeminar/정종록/서민관/박근수]
          * [데블스캠프2009/금요일/SPECIALSeminar/조현태/변형진/김준석]
          * [데블스캠프2009/금요일/SPECIALSeminar/송지훈/김홍기/박성현]
  • 데블스캠프2010/다섯째날/ObjectCraft/미션1/박재홍 . . . . 12 matches
         #include <stdio.h>
         struct zergling{
          int attack;
          int defense;
          int HP;
         int main()
          int dam1,dam2=0;
          struct zergling a;
          struct zergling b;
          printf("저글링 b가 저글링 a에게 데미지 %d를 입혀 HP가 %d가 되었습니다.\n",dam1,a.HP);
          printf("저글링 a가 죽었습니다.\n");
  • 마방진/문원명 . . . . 12 matches
         #include <iostream>
         using namespace std;
         void main()
          int array[19][19];
          int size,row,col;
          int oRow,oCol;
          cin >> size;
          for(int setx = 0; setx < size; setx++)
          for(int sety =0; sety < size; sety++)
          for(int cnt = 2; cnt <= (size * size); cnt++)
          for(int x = 0; x < size; x++)
          for(int y =0; y < size; y++)
  • 명령줄 전달인자 . . . . 12 matches
         #include <iostream>
         #include <stdlib.h>
         using namespace std;
         int main(int argc, char *argv[])
          int i;
          printf("%s\n", argv[i]);
         int power(int a, int b)
          for(int i=0; i<b ; i++)
  • 비밀키/강희경 . . . . 12 matches
         #include<iostream>
         #include<fstream>
         using namespace std;
         void main()
          cin >> fileName;
          ifstream fin(fileName);
          while(fin.get(temp))
          fin.close();
          cin >> fileName;
          ifstream fin1("output.txt");
          while(fin1.get(temp))
          fin1.close();
  • 삼총사CppStudy/Inheritance . . . . 12 matches
         class CMarine // 마린을 정의한 클래스
          int m_Attack;
          int m_Defence;
          int m_HP;
          int m_Attack;
          int m_Defence;
          int m_HP;
         CMarine Force[12]; // 이렇게 하면 부대안에는 마린밖에 넣지 못한다.
          아.. 이 문제를 어떻게 하면 좋을까~? 이럴때 사용할 수 있는 스킬이 바로 '''상속(Inheritance)'''이다.
          int m_Attack;
          int m_Defence;
          int m_HP;
         class CMarine : public CUnit // 이렇게 상속받는다.
  • 새싹교실/2011/AmazingC . . . . 12 matches
         [새싹교실/2011/AmazingC/과제방]
         [새싹교실/2011/AmazingC/5일차(4월 14일)]
         [새싹교실/2011/AmazingC/6일차]
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
         ==== part2. Hello World 출력하기(printf함수의 사용과 코드 분석하기) ====
          * printf함수를 사용하여 문자열을 출력하는 방법에 대해 알아보았고 컴파일러가 main 함수를 분석하는 모습을 따라서 전체 코드를 분석했다.
          * 따라서 int형이 표현할 수 있는 범위는 -2^31 ~ 2^31 -1이다.
          * 자료형의 종류엔 int, float, double, short, char등이 있다.
          * 식별자로 C라이브러리에서 제공하는 키워드(int, char, long, new등)는 쓸 수 없다.
  • 숫자야구/방선희 . . . . 12 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         void main()
          int x1 = rand() % 10;
          int x2 = rand() % 10;
          int x3 = rand() % 10;
          int a,b,c;
          cin >> a >> b >> c;
          int strike = 0;
          int ball = 0;
          cin >> a >> b >> c;
  • 스택/조재화 . . . . 12 matches
         #include<iostream>
         using namespace std;
         int cho[10];
         int i=0;
         int main()
          int choice;
          cin>>choice;
          int input;
          cin >> cho[i];
          for(int j=0; j<i; j++)
  • 실시간멀티플레이어게임프로젝트/첫주차소스2 . . . . 12 matches
         brain = (0, 0)
         organ = [brain, heart, stomach]
         print "Your position is " ,position
          print "Follow organ is in" ,scanlimit
          for i in organ:
          print i
         def inputDes():
          Des = input("Where is your Des")
          Speed = input("Speed??")
         inputDes()
         print 'aaa'
  • 위키를새로시작하자 . . . . 12 matches
         || [NeoCoin] || O ||. ||
          NeoCoin : 방법은, 현재 위키를 읽기 전용으로, 새로운 위키를 읽기, 쓰기, 지우기 다 열고 새로운 문화, 예절이 만들어 지는 모습을 경험하고 싶습니다. 읽기 전용의 위키의 내용은 전이되거나, 그대로 남거나, NoSmoke:SisterWiki (차후 연결) 하거나 하고 싶습니다. 더 나아가, 모든것에 대한 재정의와 다시금 생각해 보기를 해보았으면 합니다.
          모두가 멋지게 쓸수 있는 위키보다. 현재의 위키가 존재함으로서, 새로운 신입회원들이나 02 학번 정도의 사람들은 위키의 페이지가 처음 생기고, 예절과 규칙이 생기는 그러한 경험들을 본의아니게 박탈 당해 버렸다는 생각이 들었습니다. 그런 경험을 돌려주고 싶습니다. --NeoCoin
          성사 된다면, 현 위키 데이터는 읽기 전용으로만 접근 가능하도록 할 생각입니다. 경우에 따라서는 삭제 할수도 있을것 같습니다. --NeoCoin
          일정기간 읽기 전용, 차후 은근슬쩍 쓰기 가능이며 될까? --NeoCoin
          상용 서비스가 아니기에 언제든지 합의만 이끌어 낸다면 가능하지요. 다만 이런 생각을 하기가 힘든것 같습니다. 이러한 시도는 Open Source 나, 상용 프로젝트에서 일정 버전 이후에 완전 새로 작성하는것에 비견하지 않을까요? --NeoCoin
          좋고 나쁜것은 모두에게 달려 있습니다. 많은 분들이 적극적으로 참여해야 겠지요. 일단, 새로운 위키를 열겠습니다. --NeoCoin
          저에게 그 질문의 답은 '같은 질문을 온라인에 다른 분들이 하는 것' 입니다. --NeoCoin
          AnswerMe 여기에서 나중의 의미는 무엇이에요? --NeoCoin
          기존의 정보들을 옮겨놓자는 의미가 아니었습니다. 새로 만들어 지는 페이지들이 그쪽으로 가고 있는 것이지요. 지금 그렇게 되고 있고, 어쩌면 프로젝트를 위한 특화된 위키가 될지도 모를것 같군요.--NeoCoin
          둘은 함께 할수 있다고 생각합니다. 하지만 할려고 들지 않은 것이지요. --NeoCoin
         이런 의견도 있습니다. ''최소한 지금과 같이 늘어나고 있는 프로젝트 관련 페이지를 분리하자''는 것입니다. --NeoCoin
  • 정렬/Leonardong . . . . 12 matches
         #include <fstream>
         using namespace std;
         const int Asize=10000;
         int main()
          ifstream fin("unsortedData.txt"); //파일 이름이...삽질 1탄~!
          int sorted[Asize];
          for (int i=0 ; i<Asize ; i++)
          fin >> sorted[i];
          int temp;
          for (int j=0 ; j<Asize ; j++)
          for (int k=0 ; k<Asize ; k++)
  • 정렬/강희경 . . . . 12 matches
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin("input.txt");
          int array[10000];
          for(int i = 0; i<10000;i++)
          fin >> array[i] ;
          int temp;
          for(int j = 0; j < 10000; j++)
          for(int k = j+1; k < 10000; k++)
  • 정렬/방선희 . . . . 12 matches
         #include <fstream>
         using namespace std;
         const int Max = 10000;
         int main()
          ifstream fin("UnsortedData.txt");
          int arr[Max];
          for(int i=0; i < Max; i++)
          fin >> arr[i];
          for(int j=0; j < Max; j++)
          int temp;
          for(int k=0; k < Max; k++)
  • 정모/2011.3.14 . . . . 12 matches
         = Ice Breaking =
          * [김수경]이 대안언어축제에서 배워온 ''진실 혹은 거짓''으로 IceBreaking 겸 1주일 회고를 진행.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * Ice Breaking에서 지난 주에 하였던 일 3가지를 적되 1가지는 거짓으로 적어 맞히는 형식으로 진행되었습니다. 제가 했던 거짓말은 C언어의 low-level적 특성을 잊었다는 거였는데...열혈강의 책 첫장을 보면서 새로이 책을 보는 것 같은 기분이 들었다는 것에 충격을 많이 받았습니다. 새싹 교실 수업에 피해가 없도록 해야할 필요성을 느꼈습니다. 황현 학우의 OMS는 중간에 들어가서 잘 보지 못했습니다 ㅠㅠ 새싹교실에 추가 반배정이 있었는데 인원수가 늘은 만큼 수업 시 글자가 안보인다거나 목소리가 안들리는 피해가 없도록 잘 준비해 갈 계획입니다. - [강소현]
          * Fact는 중간중간에 껴넣을 것임으로 생략합니다. 중간에 가느라고 대안언어축제 공유를 참가하지 못한게 아쉬웠어요ㅠ_- IceBreaking에 충격적 진실 소재가 있어서 더 즐거웠어요 (조폭이었던 형님과 술먹음 ㅋㅋㅋㅋ) 현이의 OMS 진행 때 전자교탁 컴퓨터가 원활하게 돌아가지 않아서 시간이 좀 깎아먹힌게 아쉬웠어요. 전자교탁 좀 안된다 싶을때 기호 컴퓨터로 바로 세팅 시작했으면 더 좋았을거 같아요. (어차피 전자교탁으로 해도 퀵타임은 깔아야하지 않았나;) 제 생각이지만 본래 발표같은거 준비할때 학교 등의 사전답사가 안된 장비는 믿지 않는게 정석입니다. 다음 정모때 세미나 섭외했는데 많이들 오셨으면 좋겠어요 - [지원]
          * Ice Breaking 때 스펙타클한 거짓말을 썼는데 "달을 다녀왔다" 라고 썼습니다. 물론 고쳤지만요.ㅋㅋ 그리고 이번 Ice Breaking은 시간이 좀 길어진게 흠이지만 참 재밌었습니다. 이번 정모 때 가장 인상적인건 현이의 옵젝C 였습니다. 중간에 "함수 오버로딩은 지원 안하나요?" 라고 물어봤었는데, "언어의 특징 상 지원할 필요가 없다" 라고 현이가 답해줬습니다. 대답을 들으면서 '''"아, 난 그동안 언어의 특징을 너무 무비판적으로 수용한 것이 아닌가?"''' 라는 생각을 하게 되었습니다. '''"객체지향 언어는 당연히 함수 오버로딩을 구현해야 한다"'''는 선입견이 있었거든요. 저에게 심심한 충격이 됐습니다. 다른 OOP Language 중 오버로딩을 구현한 비율이 얼마나 되는지 한번 찾아봐야 겠습니다 ㅋㅋㅋ - [박성현]
          * 솔직히 Ice Breaking할때 저번 주에 한 재미난 일이 생각이 안나서 어떻게 대충 쓰다보니 너무 자명한 거짓말을 써 버렸습니다ㅋㅋ OMS할때 Objective-C에 대해 하나도 몰라서 초반의 Obj-C의 클래스 선언 방법이나 문법에 대해서는 이해를 했지만 뒤에 가서는 이해가 안가는 부분이 대다수였던 것 같네요. ZP책장에 Obj-C 책을 넣어 뒀다고 하니 언젠간 한 번 꺼내서 읽어봐야겠습니다. - [신기호]
          * Ice Breaking을 하면서 뭔가 저번주에 바쁘게 지낸거 같은데 쓸게 없네라는 생각이 들기도 했었지만,, 이런 기회로 조금이나마 서로에 대해서 알게 된 것 같아 좋았습니다. Objective-C는 초반 세팅의 문제가 있었지만, 설명을 해주는 점에 있어서는 확실히 이 언어를 많이 써 보고 느낀점을 전달하려고 하는 모습이 보기 좋았습니다. 그리고 항상 이런 언어에 대해서 들으면서 느끼는건 어디선가 이름은 많이 들어봤는데 접해본건 하나도 없구나 하는.... 대안언어에 대한 발표가 진행될 때 일이 있어 먼저 가긴 했지만 다음에 기회가 되면 알아보고 참여해 보는 것도 괜찮을 거 같다는 생각이 들었습니다. - [권순의]
          * 처음에 Ice Breaking은 늦게들어가서 제대로 하지 못했지만 저번주 회고도 되면서 나름 재미도 있는 개념인거같네요 그리고 objective-C 세미나는 흥미는 있었지만 능력부족으로 이해가 되지않고 밤새고 신검을 받고온 후유증으로 거의 졸았던것같습니다. 새싹교실에 대해서도 얘기를 했는데 첫 강사라 긴장되기도 하지만 열심히하면 제대로 되겠지요 - [경세준]
  • 최소정수의합/송지훈 . . . . 12 matches
         find = [n+1|n <- [1..], (n*(n+1)/2) <= 3000 <= ((n+1)*(n+2)/2)]
         #include <iostream>
         using std::cout;
         using std::endl;
         int main()
          int sum = 0, integer = 1;
          sum = sum + integer;
          integer++;
          cout << "The smallest 'n' for making the number what we want" << endl;
          cout << "-->" << integer << endl;
  • 최소정수의합/최경현 . . . . 12 matches
         #include <stdio.h>
         #define COMPARE_NUMBER 3000
         void main()
          int number = 1 ; // 시작 숫자는 1
          int minimumNumber;
          int sum = 0;
          minimumNumber = number;
          printf("min number = %d , sum = %d ",minimumNumber,sum);
         ㅋㅋ 경현이도 나처럼 main에 올인이구나~~ [김정현]
  • 캠이랑놀자/아영/숙제1 . . . . 12 matches
         for x in range(512):
          for y in range(512):
         for x in range(512):
          for y in range(512):
         == Whitening ==
         for x in range(50, 100):
          for y in range(50, 100):
         == Darkening ==
         for x in range(100, 150):
          for y in range(100, 150):
         for x in range(150, 200):
          for y in range(150, 200):
  • 파스칼삼각형/Leonardong . . . . 12 matches
         #include <iostream>
         using namespace std;
         int Pas(int, int);
         int main()
          int x,y;
          cin >> x >> y;
         int Pas(int x, int y)
  • 파스칼삼각형/곽세환 . . . . 12 matches
         #include <iostream>
         using namespace std;
         int f(int, int);
         int main()
          int r, c;
          cin >> r >> c;
         int f(int a, int b) //a가 열 b가 행
  • 프로그램내에서의주석 . . . . 12 matches
          아..["Refactoring"] 하라는 거군요.. 사실 설계 자체에서도 빠진 상태라 전체 구조 이해하는데 가장 크게 애를 먹었습니다. 아무튼 진짜 이해한 후에 코드를 수정해 놓는 것도 좋은 방법인건 분명하다고 생각합니다. ^^; --창섭
         처음에 Javadoc 을 쓸까 하다가 계속 주석이 코드에 아른 거려서 방해가 되었던 관계로; (["IntelliJ"] 3.0 이후부턴 Source Folding 이 지원하기 때문에 Javadoc을 닫을 수 있지만) 주석을 안쓰고 프로그래밍을 한게 화근인가 보군. 설계 시기를 따로 뺀 적은 없지만, Pair 할 때마다 매번 Class Diagram 을 그리고 설명했던 것으로 기억하는데, 그래도 전체구조가 이해가 가지 않았다면 내 잘못이 크지. 다음부터는 상민이처럼 위키에 Class Diagram 업데이트된 것 올리고, Javadoc 만들어서 generation 한 것 올리도록 노력을 해야 겠군.
         내가 가지는 주석의 관점은 지하철에서도 언급한 내용 거의 그대로지만, 내게 있어 주석의 주된 용도는 과거의 자신과 대화를 하면서 집중도 유지, 진행도 체크하기 위해서 이고, 기타 이유는 일반적인 이유인 타인에 대한 정보 전달이다. 전자는 command.Command.execute()이나 상규와 함께 달은 information.InfoManager.writeXXX()위의 주석들이고,후자가 주로 쓰인 용도는 각 class 상단과 package 기술해 놓은 주석이다. 그외에 class diagram은 원래 아나로그로 그린것도 있지만, 설명하면서 그린건 절대로 타인의 머리속에 통째로 저장이 남지 않는다는 전제로, (왜냐면 내가 그러니까.) 타인의 열람을 위해 class diagram의 디지털화를 시켰다. 하는 김에 그런데 확실히 설명할때 JavaDoc뽑아서 그거가지고 설명하는게 편하긴 편하더라. --["상민"]
         자바 IDE들이 Source Folding 이 지원하거나 comment 와 관련한 기능을 지원한다면 해결될듯. JavaDoc 은 API군이나 Framework Library의 경우 MSDN의 역할을 해주니까. --석천
         자네의 경우는 주석이 자네의 생각과정이고, 그 다음은 코드를 읽는 사람의 관점인 건데, 프로그램을 이해하기 위해서 그 사람은 어떤 과정을 거칠까? 경험이 있는 사람이야 무엇을 해야 할 지 아니까 abstract 한 클래스 이름이나 메소드들 이름만 봐도 잘 이해를 하지만, 나는 다른 사람들이 실제 코드 구현부분도 읽기를 바랬거든. (소켓에서 Read 부분 관련 블럭킹 방지를 위한 스레드의 이용방법을 모르고, Swing tree 이용법 모르는 사람에겐 더더욱. 해당 부분에 대해선 Pair 중 설명을 하긴 했으니)
          하지만, "확실히 설명할때 {{{~cpp JavaDoc}}}뽑아서 그거가지고 설명하는게 편하긴 편하더라."라고 한말 풀어쓰는 건데, 만약 디자인 이해 후에 코드의 이해라면 {{{~cpp JavaDoc}}} 없고 소스만으로 이해는 너무 어렵다.(최소한 나에게는 그랬다.) 일단 코드 분석시 {{{~cpp JavaDoc}}}이 나올 정도라면, "긴장 완화"의 효과로 먹고 들어 간다. 그리고 우리가 코드를 읽는 시점은 jdk를 쓸때 {{{~cpp JavaDoc}}}을 보지 소스를 보지는 않는 것처럼, 해당 메소드가 library처럼 느껴지지 않을까? 그것이 메소드의 이름이나 필드의 이름만으로 완벽한 표현은 불가능하다고 생각한다. 완벽히 표현했다면 너무나 심한 세분화가 아닐까? 전에 정말 난해한 소스를 분석한 적이 있다. 그때도 가끔 보이는 실낱같은 주석들이 너무나 도움이 된것이 기억난다. 우리가 제출한 Report를 대학원 생들이 분석할때 역시 마찬가지 일것이다. 이건 궁극의 Refactoring문제가 아니다. 프로그래밍 언어가 그 셰익스피어 언어와 같았으면 하기도 하는 생각을 해본다. 생각의 언어를 프로그래밍 언어 대입할수만 있다면야.. --["상민"]
         내가 Comment 와 JavaDoc 둘을 비슷한 대상으로 두고 쓴게 잘못인듯 하다. 두개는 좀 구분할 필요가 있을 것 같다는 생각이 들어서다. 내부 코드 알고리즘 진행을 설명하기 위해서는 다는 주석을 comment로, 해당 구성 클래스들의 interface를 서술하는것을 JavaDoc으로 구분하려나. 이 경우라면 JavaDoc 과 Class Diagram 이 거의 비슷한 역할을 하겠지. (Class Diagram 이 그냥 Conceptual Model 정도라면 또 이야기가 달라지겠지만)
          그리고, JDK 와 Application 의 소스는 그 성격이 다르다고 생각해서. JDK 의 소스 분석이란 JDK의 클래스들을 읽고 그 interface를 적극적으로 이용하기 위해 하는 것이기에 JavaDoc 의 위력은 절대적이다. 하지만, Application 의 소스 분석이라 한다면 실질적인 implementation 을 볼것이라 생각하거든. 어떤 것이 'Information' 이냐에 대해서 바라보는 관점의 차이가 있겠지. 해당 메소드가 library처럼 느껴질때는 해당 코드가 일종의 아키텍쳐적인 부분이 될 때가 아닐까. 즉, Server/Client 에서의 Socket Connection 부분이라던지, DB 에서의 DB Connection 을 얻어오는 부분은 다른 코드들이 쌓아 올라가는게 기반이 되는 부분이니까. Application 영역이 되는 부분과 library 영역이 되는 부분이 구분되려면 또 쉽진 않겠지만.
         이번기회에 comment, document, source code 에 대해서 제대로 생각해볼 수 있을듯 (프로그램을 어떻게 분석할 것인가 라던지 Reverse Engineering Tool들을 이용하는 방법을 궁리한다던지 등등) 그리고 후배들과의 코드에 대한 대화는 익숙한 comment 로 대화하는게 낫겠다. DesignPatterns 가 한서도 나온다고 하며 또하나의 기술장벽이 내려간다고 하더라도, 접해보지 않은 사람에겐 또하나의 외국어일것이니. 그리고 영어가 모국어가 아닌 이상. 뭐. (암튼 오늘 내일 되는대로 Documentation 마저 남기겠음. 글쓰는 도중 치열하게 Documentation을 진행하지도 않은 사람이 말만 앞섰다란 생각이 그치질 않는지라. 물론 작업중 Doc 이 아닌 작업 후 Doc 라는 점에서 점수 깎인다는 점은 인지중;) --석천
          ''DeleteMe) 부연설명 : 녹색글자는 ["Eclipse"] 에서 내부 주석에 대당. ["IntelliJ"] 는 일반적으로 회색. ["Vi"] 에서의 Java Syntax 에선 파란색.''
         // Constraint
         See Also Seminar:CommentOrNot , NoSmok:DonaldKnuth 's comment on programs as works of literature
  • 피보나치/방선희 . . . . 12 matches
         #include <iostream>
         using namespace std;
         const int Max = 5000;
         int pibo(int n);
         void main()
          int num;
          cin >> num;
         int pibo(int n)
          int arr[Max];
          for(int i=2; i < n; i++)
  • 1thPCinCAUCSE/null전략 . . . . 11 matches
         1회 경진대회 팀이였던 null 팀 전략 (["neocoin"], ["1002"])
         ["1002"]가 5분 지각을 했습니다.; 암튼, 35분에 시작을 했고, 일단 5분의 시간을 두고 ["neocoin"] 과 ["1002"] 는 문제들을 읽어나가기 시작했습니다. 한글 문서였기 때문에 3개의 문제를 훑는데에도 5분이면 충분하더군요. ["neocoin"] 은 B번을, ["1002"] 는 A번을 일단 읽고, C 번에 대해서는 같이 읽었습니다. 그리고 미리 문제출제자쪽에서 난이도를 C > A > B 임을 언급했습니다. 문제를 읽어나가면서도 일단 B의 경우가 바로 계산이 나올 것 같아서 B 를 먼저 해결하기로 선택했습니다. 그 다음에는 문제에 대한 이해도가 상대적으로 높았던 A번을 해결하기로 했습니다.
         도구는 연습장과 인덱스 카드, assert 문을 이용한 테스트 케이스 등을 이용했습니다. 연습장과 인덱스 카드는 주로 개개인 수식과 중요 변수들을 적기 위해, 또는 그림을 그리기 위해 이용했고 (두 도구의 용도가 구분되어있진 않았음) 문제에 대해서 답이 나왔다하는 가정하에 (문제지에 Sample Input->Output 이 나와있었기에 가능했습니다.) Backward 로 문제가 해결된 상황을 가정하고, 그러기 위해 필요한 변수들을 찾아나가는 방법으로 진행했습니다. 프로그래밍 스타일은 Structured 스타일의 Stepwise Refinement & PBI & assert 를 이용한 TDD 를 사용했습니다.
         ["1thPCinCAUCSE/ProblemB"]
         한 20분정도 잘못진행했었는데, 첫번째는 ["1002"] 가 B 번문제를 제대로 이해하지 못했고 (앞부분만 읽고, 문제의 input-output 을 거꾸로 판단), 두번째는 input 이 100 일때의 output 예상치를 잘못계산한 상태에서 이를 근거로 Test Driven 을 시도해서 추후 발견뒤 테스트를 수정하는동안 시간을 낭비했습니다.
         Sample 로 제공한 데이터들을 만족시키는 코드는 작성하였으나, 여전히 변수들이 다 뽑아져지지 않아서, 임의의 결과데이터 (100인 경우) 에 대해 예상되는 결과를 생각하고 코드를 작성한뒤, 코드와 결과들, 코드로부터 발견되는 변수들을 토대로 연습장에 기록을 했고, 그러던중 ["neocoin"] 이 일반화 공식을 찾아내었습니다.
         적절히 중복코드를 삭제하고 난 뒤, 한 5분정도 Input-Output 코드를 iostream 과 ["STL/vector"] 를 사용하여 작성한 뒤 이를 제출, 통과했습니다.
         ["1thPCinCAUCSE/ProblemA"]
         마지막으로, 2주만에 만난 팀의 전략을 쓴다니, 약간 사기죠 ^^; --["neocoin"]
         ["1thPCinCAUCSE"]
  • 3 N+1 Problem/조동영 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int CheckCount (int low, int high){
          int temp;
          int count = 1;
          int maxCount = 0;
         void main(){
          int num1, num2;
          cin >> num1 >> num2;
  • 3D프로그래밍시작하기 . . . . 11 matches
         3D Programming 을 시작하는 사람은 상당히 막막한 상태에서 시작하게 되기 마련인데, 실질적으로 거치면 좋을 것이라고 생각되는 몇가지 스텝을 적어 보았습니다
          * 옛날 D3d에는 모드가 두가지가 있었는데요 retained mode 하구 immediate mode 가 있었는데 retained 가 immediate위에서 한계층 더 추상화 시킨것이라 하더군요. 보통 immediate를 사용하는것 같더랬습니다. d3d안써봐서리.. --; 정확하진 않지만
         retained는 정점지정시에 속도가 떨어지고.. immediate는 어렵지만 여러방식으로 지정이 가능하고.. 빠르고.. 그랬던거 같습니당.. 요즘엔 direct graphics라 해서 인터페이스가 바꼈는데.. 어떻게 됬는지 몰겠네용..
         http://cg.cs.tu-berlin.de/~ki/engines.html 에 보면 여러가지 공개, 상용 엔진들의 리스트가 정리되어 있습니다. 아마 3D 프로그래밍하는 사람치고 이 페이지에 안가본 사람은 별로 없을것입니다만, 노파심에서..
          * 이것들 이외에도 모델링 데이타를 가져오기 위한 포멧이 여럿 있습니다. x나 3ds등도 쓰입니다. 3ds의 경우 버텍스 모핑 키값을 쓸수 있다 하는데 실효성은 의문입니다. 그리고 그넘은 binary로 되있어서 읽을때 조금 더손이 갈 듯합니다.
          * 최근에는 rasterinzing (transform, lighiting 이 끝나고 난후 화면 주사선에 맞추어서 찍어주는 부분.. 일꺼에여)이외에 trasform과 lighiting도 가속기로 처리할 수 있다고 합니다.
  • 3n 1/Celfin . . . . 11 matches
         #include <iostream>
         using namespace std;
         int countNum, cycle, i, start, end;
         int cycleNumber(int number)
         int maxCycle(int start, int end)
         int main()
          while(cin>>start>>end)
  • 5인용C++스터디/메뉴와단축키 . . . . 11 matches
         void CMainFrame::OnContextMenu(CWnd* pWnd, CPoint point)
          cmenu->TrackPopupMenu(0, point.x, point.y, this, NULL);
         cmenu->TrackPopupMenu(0, point.x, point.y, this, NULL);
         cmenu(주메뉴의 첫번째 부메뉴판이 기억되어있는)를 좌표 (point.x, point.y) 이후에 표시한다.
         point.x, point.y : 마우스 단추를 누른 곳의 좌표
  • AncientCipher/정진경 . . . . 11 matches
         #include <stdio.h>
         #include <string.h>
         int main ()
          int l1,l2;
          int c1[26],c2[26];
          int i,j;
          if (l1!=l2) { printf ("NO\n"); return 0; }
          if (i<26) printf ("NO\n");
          else printf ("YES\n");
  • AntOnAChessboard/김상섭 . . . . 11 matches
         4300966 2006-02-01 17:20:17 Accepted 0.002 Minimum 28565 C++ 10161 - Ant on a Chessboard
         #include <iostream>
         #include <math.h>
         using namespace std;
         void process(int num)
          int level, temp, x, y;
         int main()
          int num;
          cin >> num;
          cin >> num;
  • Applet포함HTML/영동 . . . . 11 matches
         * 음... HTML 컨버터로 컨버트하긴 했는데 ftp사용법을 몰라서 계정에 올리는 법을 모르겠네요. 그러한 관계로, 상욱이처럼 파일 내용만 올릴게요. ftp쓰는 법 배워서 링크시킬게요... [http://165.194.17.15/pub/util/WinSCP2.exe WinSCP 2.0 Beta]
          --NeoCoin
         http://java.sun.com/getjava/index.html
         --NeoCoin
          codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_0_03-win.cab#Version=1,4,0,30">
          pluginspage="http://java.sun.com/products/plugin/index.html#download">
         ["JavaStudyInVacation/진행상황"]
  • BeeMaja/김상섭 . . . . 11 matches
         4301124 2006-02-01 18:55:01 Accepted 0.010 Minimum 28565 C++ 10182 - Bee Maja
         #include <iostream>
         using namespace std;
         void process(int num)
          int de_x[6] = {0,-1,-1,0,1,1};
          int de_y[6] = {-1,0,1,1,0,-1};
          int count = 0, temp = 6, x, y, i;
         int main()
          int num;
          while(cin >> num)
  • ChangeYourCss . . . . 11 matches
         || 흰색바탕, 푸른색 헤딩 || /~gochi/cgi-bin/moin/css/blue.css ||
         || 흰색바탕, 푸른색 헤딩, 작은 글꼴 || /~gochi/cgi-bin/moin/css/smallblue.css ||
         || 흰색바탕, 분홍색 헤딩, 꽃무늬 배경, 작은 글꼴 || /~gochi/cgi-bin/moin/css/wiki.css ||
         || 누르스름한 바탕. 디폴트에서 배경색만 바꾼 색. 링크색과 비슷한 갈색계열이라 왠지 모르게 편안하고 아늑한..^^; || /~wizardhacker/cgi-bin/MoinMoin/wiki-moinmoin/wizneo.css ||
  • ComputerNetworkClass/Report2006/BuildingProxyServer . . . . 11 matches
          * http://orchid.cse.cau.ac.kr/course/cn/index.php?code=project4
         [http://www.web-caching.com/proxy-caches.html 현존하는 여러가지 프락시 서버 프로그램]
         [http://www.elbiah.de/hamster/doc/ref/errwinsock.htm Winsock Error Code]
         http://www.cs.wisc.edu/~cao/WISP98/html-versions/anja/proxim_wisp/index.html
         #using <mscorlib.dll>
         using namespace System;
         int main()
          System::Console::WriteLine( a.ToString());
  • Counting/문보창 . . . . 11 matches
         || 2006-01-10 Accepted 0.057 Minimum ||
         // 10198 - Counting
         #include "BigInteger.h"
         using BigMath::BigInteger;
         #define MAX_SIZE 1000
         static BigInteger Tn[MAX_SIZE+1];
          for (int i = 3; i <= MAX_SIZE; i++)
         int main()
          int n;
          while (cin >> n)
         [Counting]
  • CxxTest . . . . 11 matches
          return ' '.join(aList)
         def main():
          for eachFile in listdir("."):
          lastestPeriod = eachFile.rfind(".")
          print fileName, extension
          '''cmd= "python cxxtestgen.py --runner=ParenPrinter --gui=Win32Gui -o runner.cpp "+toStr(testFiles)'''
          cmd= "python cxxtestgen.py --runner=ParenPrinter -o runner.cpp "+toStr(testFiles)
          print cmd
         if __name__=="__main__":
          main()
  • EightQueenProblem/조현태2 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int main(){
          int x[8]={0,};
          int qeen=0;
          for (register int i=-7; i<8; ++i)
          for (register int i=0; i<8; ++i){
          for (register int j=0; j<8; ++j){
          for(register int i=0; i<8; ++i)
          for(register int j=0; j<8; ++j)
  • HowManyPiecesOfLand?/하기웅 . . . . 11 matches
         #include <iostream>
         #include "BigInteger.h"
         using BigMath::BigInteger;
         BigInteger input;
         int testcase;
         BigInteger Piece_of_Land(BigInteger n)
         int main()
          cin >> testcase;
          cin >> input;
          cout << Piece_of_Land(input) << endl;
  • LinuxSystemClass/Exam_2004_1 . . . . 11 matches
          priority inversion
          Load Balancing 을 위해 단일 process queue 를 둔뒤 Multi CPU 에 배분한다.
          'split scheduling' 은 LWP 에서의 문제점이다.
          Rate Scheduling 란?
          Linux 의 DMA 가 Bound Buffer 로 이용되는 이유?
          Linux 에서의 메모리 처리 과정중 가장 시간이 오래걸릴 때는?
          Linux 에서의 Memory 관리시 binary buddy algorithm 을 이용한다. 어떻게 동작하는지 쓰시오.
         globpri 가 1이고 index 가 1인 상태.
          quantum 소비 중 blocking시 다음 우선순위.
         LinuxSystemClass
  • Lotto/김태진 . . . . 11 matches
         #include <stdio.h>
         int main()
          int i,N;
          int a[49]={0};
          int *p[7];
          printf("%d ",*p[i]);
          printf("\n");
          printf("%d ",*p[i]);
          printf("\n");
          printf("\n");
  • MagicSquare/영록 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int main()
          int array[11][11] = {{0,},};
          int size;
          int a, b;
          int number = 1;
          int i;
          int j;
          cin >> size;
  • Map연습문제/유주영 . . . . 11 matches
         #include <iostream>
         #include <map>
         #include<fstream>
         using namespace std;
          int main()
          ifstream fin("input.txt");
          while(!fin.eof())
          fin.get(ch);
          if(fin.eof())
  • MoniWiki/HotKeys . . . . 11 matches
          ||I||action=info ||[[Icon(info)]] 파란색 i||
          ||P||action=print ||[[Icon(print)]] 프린터||
          ||Q, S, R(Safari only)[[BR]]또는 F3(Firefox only)|| ||[[Icon(search)]] FindPage ||
          ||T|| ||TitleIndex ||
          ||``<ESC>``||Go 'into'/'out of' the 'Go' form|| ||
          ||Z + ``<BACKSPACE>``||Go 'into' the 'Go' form|| ||
          * MoinMoin:MoinMoinExtensions/Hotkeys
  • NSIS/예제1 . . . . 11 matches
         Name "TestInstallSetup"
         OutFile "TestInstallSetup.exe"
         InstallDir $PROGRAMFILES\TestInstallSetup
         DirText "This will install the very simple example1 on your computer. Choose a directory"
          SetOutPath $INSTDIR
          File "C:\windows\notepad.exe"
         MakeNSIS v1.95 - Copyright 1999-2001 Nullsoft, Inc.
         Contributors: nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter Windridge, Dave Laundon, Robert Rainwater, Yaroslav Faybishenko, et al.
         Processing config:
         Processing script file: "example1.nsi"
         Name: "TestInstallSetup"
         OutFile: "TestInstallSetup.exe"
         InstallDir: "$PROGRAMFILES\TestInstallSetup"
         DirText: "This will install the very simple example1 on your computer. Choose a directory" "" ""
         SetOutPath: "$INSTDIR"
         Processed 1 file, writing output:
         Output: "C:\Program Files\NSIS\TestInstallSetup.exe"
         Install: 1 section (1 required).
         Install: 4 instructions (96 bytes), 560 byte string table.
         Install code+strings: 525 / 944 bytes
  • NSIS/예제4 . . . . 11 matches
         !include "MUI.nsh"
         !include "servicelib.nsh"
         ShowInstDetails show
         InstallDir $PROGRAMFILES\RealVNC\VNC4
         ;WindowIcon on
         InstallButtonText "설치"
         AutoCloseWindow false
         ShowInstDetails show
         ShowUninstDetails show
          SetDetailsPrint both
          SetOutPath $INSTDIR
          !insertmacro SERVICE "stop" "WinVNC4" ""
          File "winvnc4.exe"
          !insertmacro SERVICE "start" "WinVNC4" ""
  • OperatingSystem . . . . 11 matches
         [[include(틀:OperatingSystems)]]
         == What is OS(OperatingSystem)? ==
         In computing, an operating system (OS) is the system software responsible for the direct control and management of hardware and basic system operations. Additionally, it provides a foundation upon which to run application software such as word processing programs and web browsers.
         일종의, [[SeparationOfConcerns]]라고 볼 수 있다. 사용자는 OperatingSystem (조금 더 엄밀히 이야기하자면, [[Kernel]]) 이 어떻게 memory 와 I/O를 관리하는지에 대해서 신경쓸 필요가 없다. (프로그래머라면 이야기가 조금 다를 수도 있겠지만 :) )
          * [[windows|MicrosoftWindows]]
          * [[Linux]]
          * Palm, WindowsCE
  • OptimizeCompile . . . . 11 matches
         실행 시간(run time) 중의 계산을 줄이는 것이 목적이다. 이 최적화는 '미리 컴파일 시간에 계산(precomputaion in compile time)' 할 수 있거나, '미리 계산된 값을 재사용(reuse a previously computated value)' 할 수 있는 상황에서 적용된다.
         ''' Constant folding'''
         컴파일러는 constant propagation 과 constant folding 을 반복하여 수행한다. 각각 서로의 가능성을 만들어 줄 수 있으므로, 더이상 진행 할 수 없을 때까지 진행한다.
         '''Common subexpression elimination'''
         '''Removing loop invariant code'''
         e.g. instruction prefetching, branch prediction, out-of-order execution
         e.g. pipelining, superscalar
         coming soon.
  • POLY/김태진 . . . . 11 matches
         // main.cpp
         #include <iostream>
         using namespace std;
         int dp[101][101] = {0};
         int main(int argc, const char * argv[])
          int i,j,level,n,T;
          for(int iter=0;iter<T;iter++){
          int sum=0;
          printf("%d\n",sum);
  • PragmaticVersionControlWithCVS/UsingTagsAndBranches . . . . 11 matches
         || [PragmaticVersionControlWithCVS/CommonCVSCommands] || [PragmaticVersionControlWithCVS/CreatingAProject] ||
         = Using Tags and Branches =
         == Tags, Branches and Tagging ==
         == Creating a Release Branch ==
         == Working in a Release Branch ==
         == Generating a Release ==
         == Fixing Bugs in a Release Branch ==
         == Working With Experimental Code ==
         == Merging The Experimental Branch ==
  • ProgrammingLanguageClass . . . . 11 matches
         [ProgrammingLanguageClass/2002]
         [ProgrammingLanguageClass/2006]
          * ''Programming Language Pragmatics'' by Michael L. Scott : 이제까지 나온 프로그래밍 언어론 서적 중 몇 손가락 안에 꼽히는 명저.
          * ''Programming Language Processors In Java : Compilers and Interpreters'' by David A. Watt & Deryck F. Brown
         그러므로, 이런 ProgrammingLanguageClass가 중요하다. 이 수업을 제하면 다른 패러다임의 다양한 언어를 접할 기회가 거의 전무하다. 자신의 모국어가 자바였다면, LISP와 Prolog, ICON, Smalltalk 등을 접하고 나서 몇 차원 넓어진 자신의 자바푸(Kungfu의 변화형)를 발견할 수 있을 것이며, 자바의 음양을 살피고 문제점을 우회하거나 수정하는 진정한 도구주의의 기쁨을 만끽할 수 있을 것이다. 한가지 언어의 노예가 되지 않는 길은 다양한 언어를 비교 판단, 현명하고 선택적인 사용을 할 능력을 기르는 법 외엔 없다. --김창준
         "Students usually demand to be taught the language that they are most likely to use in the world outside (FORTRAN or C). This is a mistake. A well taught student (viz. one who has been taught a clean language) can easily pick up the languages of the world, and he [or she] will be in a far better position to recognize their bad features as he [or she] encounters them."
         -- C. H. Lindsey, History of Algol 68. ACM SIGPLAN Notices, 28(3):126, March 1993.
         개인적으로 학기중 기억에 남는 부분은 주로 레포트들에 의해 이루어졌다. Recursive Descending Parser 만들었던거랑 언어 평가서 (C++, Java, Visual Basic) 작성하는것. 수업시간때는 솔직히 너무 졸려서; 김성조 교수님이 불쌍하단 생각이 들 정도였다는 -_-; (SE쪽 시간당 PPT 진행량이 60장일때 PL이 3장이여서 극과 극을 달렸다는;) 위의 설명과 다르게, 수업시간때는 명령형 언어 페러다임의 언어들만 설명됨.
         see also SoftwareEngineeringClass
  • TheLagestSmallestBox/하기웅 . . . . 11 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         void findMinMax()
         int main()
          cout.setf(ios::showpoint);
          while(cin>>length>>width)
          findMinMax();
  • VitosFamily/Celfin . . . . 11 matches
         #include <iostream>
         #include <algorithm>
         using namespace std;
         int testcase, homeNum, i;
         int sum;
         int addressList[500];
         int main()
          cin>>testcase;
          cin>>homeNum;
          cin >> addressList[i];
  • WERTYU/문보창 . . . . 11 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         int main()
          int i, j;
          int len_dic, len_str;
          while (cin.getline(str, 256, '\n'))
          continue;
  • ZP&JARAM세미나 . . . . 11 matches
         || 8시 20분 || [이병윤] - network snipping, spooping ||
          * 이병윤 - network snipping, spooping
          * Linux&OpenSource
          linux & open source ost 했던 , 자람 20기 서버관리자 박훈준 입니다. 정말 즐거운 시간 이었습니다. 특히 스푸핑 관련 세미나... 네트워크에 대한 이해를 ++++ 할 수 있는 좋은 자리였어요. 저희가 뭔가 좀 준비했었다면 더 좋았을텐데 아쉽네요. 무엇보다, 이런 행사들이 지속적으로 이루어 지는것이 중요하다 생각됩니다. 3년전 쯤인가, 홍대 컴공학회 P.C.R.C 와도 교류가 이루어 지는듯 하다가, 그 이후로는 교류가 없네요. 계속해서 교류하고, 많이 나눴으면 좋겠습니다. 무엇이든 할 수 있어요. :) (참, 밥도 맛있었어요)
          행사내용에 있어서는 2번의 세미나가 조화롭게 이루어진 것 같아요. 처음 세미나는 subversion의 유용성에 대한 세미나였는데 기술적인 내용은 아니었지만 충분히 subversion의 매력을 느낄 수 있게 해 주신 세미나였고 두번째 세미나는 LAN 환경에서 어떻게 snipping, spooling 하는지 개념에서부터 실제 방법까지 잘 설명되어 있어서 이해가 잘 되었습니다.
          - [http://study.jaram.org/wiki.php/bloodjino bloodjino]
          준비가 미흡해서 발표가 매끄럽게 진행되지 못했던것같아 죄송합니다~ 아직 큰 규모의 프로젝트를 해보지않아 svn에 대해 잘 알지못했었는데 알게되어 좋았구요 OST때 linux & open source 테이블 유익한 정보 많이 듣게되어 재미있었습니다. 다음번 자람측 세미나가 기대되네요~
  • eXtensibleStylesheetLanguageTransformations . . . . 11 matches
         Extensible Stylesheet Language Transformations, or XSLT, is an XML-based language used for the transformation of XML documents. The original document is not changed; rather, a new document is created based on the content of an existing one. The new document may be serialized (output) by the processor in standard XML syntax or in another format, such as HTML or plain text. XSLT is most often used to convert data between different XML schemas or to convert XML data into web pages or PDF documents.
         XSLT was produced as a result of the Extensible Stylesheet Language (XSL) development effort within W3C during 1998–1999, which also produced XSL Formatting Objects (XSL-FO) and the XML Path Language, XPath. The editor of the first version (and in effect the chief designer of the language) was James Clark. The version most widely used today is XSLT 1.0, which was published as a Recommendation by the W3C on 16 November 1999. A greatly expanded version 2.0, under the editorship of Michael Kay, reached the status of a Candidate Recommendation from W3C on 3 November 2005.
         <img src="http://upload.wikimedia.org/wikipedia/en/5/5a/XSLTprocessing.PNG" />
  • html5/webSqlDatabase . . . . 11 matches
         if(!!window.openDatabase) {
         == Indexed Database ==
          * SeeAlso) [html5/indexedDatabase]
          * Indexed Database는 새로 등장한 또다른 로컬 저장소 스펙이다
          * 현재 Web SQL Database 는 사양 책정이 중지된 상태이며, IndexedDB 라는 새로운 스펙이
          alert('Something unexpected happened: ' + e.message );
          'todo(ID INTEGER PRIMARY KEY ASC, todo TEXT, added_on DATETIME)', []);
          tx.executeSql('INSERT INTO todo(todo, added_on) VALUES (?,?)',
          todoItems.innerHTML = rowOutput;
         == hooking it all up ==
         === init ===
         function init() {
         <body onload="init();">
         === adding ===
          tx.executeSql('INSERT INTO foo (id, text) VALUES (1, "synergies")');
          * http://html5doctor.com/introducing-web-sql-databases/
  • usa_selfish/권영기 . . . . 11 matches
         #include<iostream>
         #include<algorithm>
         using namespace std;
          int s1, s2;
         int cc(cow a, cow b){
         int d[50020], check[50020];
         int main(void){
          int n, m = 0;
          int i;
          printf("%d",d[m-1]);
  • 개인키,공개키/임영동,김홍선 . . . . 11 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         void main()
          ifstream fin("xm.txt");
          int key=30, count=0, i=0,temp;
          while(!fin.eof())
          fin.get(arr[i]);
          int temp = int (arr[i]) + key;
          temp = (int (arr[i]) - key +256)%256;
  • 경시대회준비반 . . . . 11 matches
         [경시대회준비반/BigInteger]
         || [StringCompression] ||
         || [CuttingSticks] ||
         || [AdventuresInMoving:PartIV] ||
         || [Counting] ||
         || [CompleteTreeLabeling] ||
         || [Self-describingSequence] ||
         || [HanoiTowerTroublesAgain!] ||
         || [TheGrandDinner] ||
         || [IsThisIntegration?] ||
         || [HerdingFrosh] ||
         || [ChainsawMassacre] ||
         [http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=dynProg Dynamic Programming: From novice to advanced] 읽어보세요.
  • 구구단/김태훈-zyint . . . . 11 matches
         if __name__ == '__main__':
          print '==2단== ==3단== ==4단== ==5단=='
          for j in range(1,10):
          for i in range(2,6):
          print i,'*',j,'=',i*j,
          print ''
          print '==6단== ==7단== ==8단== ==9단=='
          for j in range(1,10):
          for i in range(6,10):
          print i,'*',j,'=',i*j,
          print ''
  • 네이버지식in . . . . 11 matches
          네이버 지식in은 폐인까지 생겨나면서 비슷한 위키는 이렇게 참여가 저조할까.
         지식in이란 서비스는 질문에 답변을 해주는 게시판 형식이긴 하지만, 참여가 자유롭고 한 주제에 대해 글을 쓴다는 점에서 위키랑 비슷하다는 생각이다. '''오픈 백과사전'''이라는 게 있기도 하던데 이게 위키랑은 더 비슷한 형태이지만 지식in에 대면 별로 인기가 없어보인다.
         가장 먼저 떠오른 건, 이용자 수였다. 이용자 수가 엄청나게 많다는 점이 지식in서비스를 활발하게 해 주었다. 이용자 수가 많아진 이유는 여러 가지가 있겠지만, 텔레비전 광고까지 낼 정도로 홍보를 해서 그렇지 않을까? 반면 위키 홍보는 몇 번인가 하고는 그 뒤로는 사람들이 알아서 쓰기를 바랬던 것으로 보인다. 알려지지 않은 서비스가 아무리 많은 장점이 있다 한들 사람들이 알아야 쓸테니까, 위키 사용이 활발하지 않은 건 일단 덜 알려져서라고 생각한다.
          ''왠만큼 소프트웨어를 아고 있는 사람들은 OS독점이라고 알고 있는데요. 아닌가요? :) --NeoCoin''
          ''말씀하신 익숙함의 의미를 제가 독점으로 바라봐서 생기는 오해인것 같습니다. 분명 청정원 케찹도 있지만 오뚜기 케찹을 선택하고 많이 팔리는 것을 '익숙함'으로 볼수 있습니다. 하지만 오뚜기 케찹을 쓰지 않으면 모든 요리를 할수 없는 상황이 되면 그걸 이제 '익숙함'이라고 설명하기보다 독점으로 바라봐야 한다고 생각하거든요. :) --NeoCoin''
         사람들은 [네이버지식in]을 마치 수학 문제 해답지처럼 여기는 것 같습니다. 저도 요즘엔 누가 궁금한 게 있다고 물어봤을 때 모르는 경우''지식in 검색해봐''라는 말을 자주 합니다. 제가 누군가에게 모르는 걸 물어봤을 때도 자주 듣습니다. ''지식in엔 없는게 없다니까''라는 말도 들어보았습니다. 마치 [네이버지식in]에는 살아가며 궁금한 것들에 대한 모든 해답이 있는 듯이 여기고 있다고 느꼈습니다. -[Leonardong]
         Knowledge In Naver 의 약자로 KIN 이라는 단어가 url 에 들어간더군요... 그냥 '즐' 이라는 단어만 생각했는데.. Knowledge In Naver 였다니...^^; - 임인택
         KIN 은 Knowledge In Naver 의 약자가 아니라 지식In -> Knowledge In -> kin 으로 사용하는 것이지요.
  • 데블스캠프2006/월요일/연습문제/for/성우용 . . . . 11 matches
         #include<iostream>
         using namespace std;
         int main()
          int i,j;
         #include <iostream>
         using namespace std;
         int main()
          int num, fac = 1;
          cin >> num;
  • 데블스캠프2006/월요일/연습문제/for/윤성준 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int main (void)
          int p, n;
         #include <iostream>
         using namespace std;
         int main (void)
          int f, factn, res = 1;
          cin >> f;
  • 데블스캠프2006/화요일/pointer/문제1/성우용 . . . . 11 matches
         #include<iostream>
         using namespace std;
         void swap(int *a,int *b);
         void main()
          int a = 1;
          int b = 18;
         void swap(int *a,int *b)
          int tmp;
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2006/화요일/pointer/문제3/주소영 . . . . 11 matches
         #include<iostream>
         using namespace std;
         void main()
          int i;
          int *a = new int[4];
          int *b = new int[4];
          int *c = new int[4];
         [데블스캠프2006/화요일/pointer]
  • 마름모출력/김유정 . . . . 11 matches
         #include <stdio.h>
         main()
          int column,row, star,a;
          printf("패턴입력:");
          printf("변의 길이 입력:");
          printf(" ");
          printf("*");
          printf("\n");
          printf(" ");
          printf("*");
          printf("\n");
  • 비밀키/박능규 . . . . 11 matches
         #include <fstream>
         #include <iostream>
         using namespace std;
         int main()
          ifstream fin("source.txt");
          int key;
          cin >> key;
          while(fin>>a)
          fout << (char)((int)a+key);
          cout << (char)((int)a+key);
  • 새싹교실/2012/벽돌쌓기 . . . . 11 matches
          : 자료형의 종류 (int, float, double, char, string)
          : printf의 활용
          * int와 int값의 연산은 int로 나오는 데, int와 float값의 연산이 왜 float로 출력되는 가, float와 float값을 int값에 저장하였을 때 왜 소수점 자리가 버려지는 가 등과 같은 내용으로 강제형변환을 강의하였다.
          * 함수의 구현에 있어서 기본적인 int main(void) {}로 시작하여 간단한 swap함수와 add함수를 구현하여 설명하였고 return값이 정확하게 어떤 의미를 띄는지 함수선언의 자료형에 맞춰 강의하였다.
          * 다음 강의로는 pointer에 중점을 맞춰 강의할 계획이다.
  • 새싹교실/2012/부부동반 . . . . 11 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 참고로 ZeroWiki는 MoniWiki Engine을 사용하며 Google Chrome이나 Mozila Firefox, Safari보다는 Internet Explorer에서 가장 잘 돌아가는 것 같습니다.
          * Hardware / Programming Language / Software의 상관관계
          난 정말 C Programming을 공부한 적이 없다구요 - [http://kangcom.com/sub/view.asp?sku=200812300005&mcd=571]
          * Programming Language
          * Machine Language
          * Interpret Language
         * 포인터를 통해 swap(int, int) 작성해보기
         * Pointer LOL!!!!
  • 새싹교실/2013/록구록구/2회차 . . . . 11 matches
          #define 에서 message를정의하고 printf("message")와 printf(message)의 차이점
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          scanf와 #define에 대해서 배웠다, wiki가 무엇인지 또 어떻게 사용하는 것인지 알게 되었다
          printf만 보다가 scanf랑 #define을 보니 많은 것을 알게 된거 같아 뿌듯하고 바보탈출하는 느낌이었다
         wiki의 존재와 활용법, 자기페이지 만드는방법, scanf 입출력, #define을 배웠다.
         #define은 솔직히 왜 쓰는지 아직 잘 모르겠다ㅠㅠ
  • 알고리즘8주숙제/test . . . . 11 matches
         #include <iostream>
         using namespace std;
         #include <fstream>
         #include <cstdlib>
         #include <ctime>
         int main()
          int numCase;
          cin >> numCase;
          int alph, priority, temp;
          for (int i = 1; i <= numCase; i++)
  • 윤성준 . . . . 11 matches
         #include<stdio.h>
         main(void)
          int a;
          int i;
          printf("몇단을 외우실꺼예요?\n");
          printf("단을 외울꺼예요~\n");
          printf("%d×%d=%d\n",a,i,a*i);
         #include <iostream>
         using namespace std;
         int main()
  • 정모 . . . . 11 matches
          * on/offline 모임 시간
         ||||2023.03.29||[김동영]||||||||learning to rank||
         ||||2023.09.20||[방석현]||||||||Rust - Object Oriented Programming with Rust||[정모/2023.09.20/참석자]||
         ||||2023.11.08||[박주용]||||||||LinkedIn의 시대||[정모/2023.11.08/참석자]||
         지난번 [정모]를 관찰하면서, 뭔가가 잘 안된다는 생각이 들어서 NeoCoin 군과 ProblemRestatement 를 약간 적용해보았다. 사람들마다 의견들은 다르겠지만, 참고해보기를.
          -> Online (주로 Wiki를 통해 이루어지는) 에서 결정할 내용과 Offline 에서 결정할 내용을 구분하지 못한다.
          -> Offline 에서 충분이 결정할 수 있는 일들을 Online(Wiki) 으로 미루어버린다.
          -> 해결책 : 어떻게 하면 토론을 효과적으로 할것인가에 대한 brain storming 이나, 학습 등.
  • 정모/2011.3.21 . . . . 11 matches
         == Ice Breaking ==
          * [황현] 학우가 제시한 키워드 전기수로 Ice Breaking을 진행했습니다.
          * [Spring/탐험스터디]
          * SpringFramework를 공부하며 설계 원칙들도 함께 배움.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * Ice braking은 많이 민망합니다. 제가 제 실력을 압니다 ㅠㅠ 순발력+작문 실력이 요구되는데, 제가 생각한 것이 지혜 선배님과 지원 선배님의 입에서 가볍게 지나가듯이 나왔을 때 좌절했습니다ㅋㅋ 참 뻔한 생각을 개연성 있게 지었다고 좋아하다니 ㅠㅠ 그냥 얼버무리고 넘어갔는데, 좋은 취지이고 다들 읽는데도 혼자만 피하려한게 한심하기도 했습니다. 그럼에도, 이상하게 다음주에 늦게 오고 싶은 마음이 들기도...아...;ㅁ; 승한 선배님의 Emacs & Elisp 세미나는 Eclipse와 Visual Studio가 없으면 뭐 하나 건들지도 못하는 저한테 색다른 도구로 다가왔습니다. 졸업 전에 다양한 경험을 해보라는 말이 특히 와닿았습니다. 준석 선배님의 OMS는 간단한 와우 소개와 동영상으로 이루어져 있었는데, 두번째 동영상에서 공대장이 '바닥'이라 말하는 등 지시를 내리는게 충격이 컸습니다. 게임은 그냥 텍스트로 이루어진 대화만 나누는 줄 알았는데, 마이크도 사용하나봐요.. 그리고 용개가 등장한 게임이 와우였단 것도 새삼 알게 되었고, 마지막 동영상은 정말 노가다의 산물이겠구나하고 감탄했습니다. - [강소현]
          1. 현이의 Ice Breaking : 어떻게 해야 더 재밌게 할 수 있을까 고민이 됩니다. 재밌는 키워드가 불시에 나와서 빵빵 터지는 것에 비해 그걸 갖고 스토리를 재밌게 짜내는건 쉽지 않았습니다. 차라리 키워드들을 갖고 스피드퀴즈를 해보는건 어떨지 ㅋㅋㅋㅋ
          * 키워드 전기수 재밌었습니다. 괜히 저는 혼자 말도 안돼는 드립치다가 웃음보 터져가지고 민망하게 진행도 못하긴 했었지만요 ㅋㅋㅋ elisp과 emacs 세미나는 파스텔톤 분위기에 취해서 흥미롭게 들었습니다. emacs는 '''단축키가 리눅스랑 같다'''는 이야기때문에 끌렸습니다... ㅋㅋ 그래서 설치하고 튜토리얼도 따라해봤습니다. 재밌더군요 {OK} OMS는 들으면서 놀랐습니다. 실제 마케팅부서에서 마케팅 나온 듯한 인상을 받았습니다. OMS를 보고 와우 스토리에 흥미도 생겼구요. 속으로 이런 생각도 했습니다. '와우는 무저갱이니까 와우 소설이나 읽어서 대리 만족이나 하자.' ㅋㅋㅋ 근데 소설 읽으면 결국 하게 될거 같아서 Stop Thinking! 결국 결론은 '''와우에는 접근도 하지 말자.''' 피자도 맛있게 '냠냠 쩝쩝 우물우물 쓰읍쓰읍 꿀꺽 쯥'하면서 잘 먹었습니다. 아쉬운 점이 있다면, 새싹 교실 트레이드를 못한 것 입니다. 제 반에 같이 햇빛을 못 쬐는 새싹이 있는데 결국 다른 새싹으로 바꾸지 못해서 제 새싹이 양분을 먹지 못했습니다...담번에는 꼭 흙 째로 옮겨주고 싶네요. - [박성현]
  • 정모/2011.3.7 . . . . 11 matches
          * [Spring/탐험스터디]
          * 사람이 적어 예전에 실패한 SpringSecurity를 이용하여 동네API와 OAuth 연동하는 실습을 함.
         = Ruby Seminar =
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 활동보고에서 책읽기 모임 보고를 하면서 간만에 정말 정식활동 시작!! 한번쯤 해보고 싶었던 루비 프로그래밍 실습도 하면서 알찬 정모가 되지 않았나 느꼈습니다. 아쉬웠던 점은 시간 안배인데, 정모의 시간에 대한 제한은 없으나 어느 정도 deadline은 잡아야 하지 않나 하는 생각이 들었습니다. (예를 들면 늦어도 9시까지는 끝낸다 라던가..) 책읽기모임 활동보고의 소요시간이 약간 길었는데, 각자 읽은 책에 대해서 정모에서 나누는 것이 가장 효과적이긴 하나 모임 때 나눴던 얘기의 단순 요약판이니 이제부터는 위키를 참조하는 것도 좋지 않을까 싶네요. 그리고 루비 코드 레이스는 참여자를 봐서 다음주 정모 때 하는게 어떨까요 - [송지원]
          * 루비로 만들어진 프로그램 많아요!! 대표적인 Ruby on rails랑 redmine도 있고.. 어디서는 요즘 GUI 대세는 루비라고도 하던데ㅎㅎ 루비가 별로 쓸일이 없는건 제가 루비를 잘 몰라서였습니다 하하ㅠㅠㅠ 덧)Objective-c를 아예 날잡고 세미나 하는것도 좋을거같아요 - [서지혜]
          * Redmine이 Ruby로 만들어져있다는건 첨 들었네요. 오오 새로운 지식~ 그런데 'Ruby 曰: "GUI 대세 나임 ㅋ"' 라고 쓰신 이유가 궁금해서 찾아보니 이런 동영상이 있네요. [http://www.youtube.com/watch?v=PoZ9bPQ13Dk Ruby GUI programming with Shoes]. 코드 보니까 직관적이고 좋네요 ㅋㅋㅋㅋ - [박성현]
          * 이것은 여담이지만 Ruby는 붉은 광물(Redmine)이랍니다. - [변형진]
  • 지도분류 . . . . 11 matches
         === Software Engineering ===
         ||["SoftwareEngineeringClass"]||.||
         ||["ExtremeProgramming"]|| Agile Methodology 인 ExtremeProgramming 에 대한 전반적 설명||
         || RegressionTesting || 회귀 테스팅으로 기존의 기능에 문제 없는가 테스트 ||
         ||SoftwareEngineeringClass ||
         ||ProgrammingLanguageClass ||
         ||OperatingSystemClass ||
  • 큰수찾아저장하기/조현태 . . . . 11 matches
         #include <iostream>
         using namespace std;
         const int MAX_GARO=4;
         const int MAX_SAERO=4;
         void main()
          int number[MAX_SAERO][MAX_GARO]={0,};
          for (register int i=0; i<MAX_SAERO-1; ++i)
          for (register int j=0; j<MAX_GARO-1; ++j)
          cin >> number[i][j];
          for (register int i=0; i<MAX_SAERO; ++i)
          for (register int j=0; j<MAX_GARO; ++j)
  • 파스칼삼각형/문원명 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int pas(int aCol, int aRow);
         void main()
          int row, col, res;
          cin >> row >> col;
         int pas(int aCol, int aRow)
  • 파스칼삼각형/손동일 . . . . 11 matches
         #include<iostream>
         using namespace std;
         int sdd(int x, int y);
         void main()
          int a, b;
          cin >> a >> b;
         int sdd(int x, int y)
  • 파일 입출력_3 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int main()
          int a,b,c;
          printf("a = ");
          printf("b = ");
          printf("c = ");
          printf("Input filename : ");
          fprintf( fpt_1, "a = %d \nb = %d \nc = %d", a,b,c); //printf와 사용법 비슷
  • 포인터 swap . . . . 11 matches
         #include <iostream>
         using namespace std;
         void swap(int *a,int *b );
         int main()
          int a = 1;
          int b = 18;
         void swap(int *a,int *b)
          int temp;
  • 피보나치/김상섭 . . . . 11 matches
         #include <iostream>
         using namespace std;
         int fibonachi(int num);
         int main()
          int num;
          cin >> num;
          cin >> num;
         int fibonachi(int num)
  • 1002/TPOCP . . . . 10 matches
         Seminar:ThePsychologyOfComputerProgramming 맡은 챕터 정리궁리중.
         Part 3 Programming as an individual activity
         Variations in the programming task
          Professional versus amateur programming
          What the programmer is trying to do
          case) 물리 교수로부터 해당 메트릭스를 반전하는 프로그램 작성. 한 개발자는 (A) 뭔가 배울 수 있는 좋은 기회라고 생각, buffering 을 이용하여 문제를 해결하려고 함.
          Stages of programming work
  • 2010JavaScript/역전재판 . . . . 10 matches
         <link rel='stylesheet' type='text/css' href='style.css' media='all'>
         <div id='basewindow'>
          <span class='think'>(span 을 사용했음)</span><br>
         #basewindow { /*기본 화면*/
         padding : 10px;
         span.think { /*대화 중 주인공이 혼자 말할때의 속성을 지정*/
          <link rel='stylesheet' type='text/css' href='style.css' media='all'>
          document.getElementById('text').innerHTML = contents[i]
          <div id='basewindow'>
          <span class='think'>(span 을 사용했음)</span><br>
  • CodeConvention . . . . 10 matches
         Coding 을 하는데 지켜야할, 혹은 추천되는 관습
          * [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnetframeworkdesignguidelines.asp?frame=true .Net Frameworks Design Guidelines] : C#, VisualBasic.Net
          * [http://msdn.microsoft.com/library/techart/cfr.htm Coding Technique and Programming Practices]
          * 1980년대 charles simonyi 논문 Meta-programming : A Software Prodution Method
          * 각 언어마다, Code Convention or Style, Notation, Naming 제각각이지만 일단은 Convention으로 해두었음 --["neocoin"]
         SeeAlso Wiki:CodingConventions, CodingStandard
  • Cpp에서의가변인자 . . . . 10 matches
         C의 io 라이브러리인 printf에 쓰이는 그것이다. 또는 MFC - CString의 CString::Format이나 CString::AppendFormat에 쓰이는 그것이기도 하다. 함수 쓸때 ...이라고 나오는 인자를 가변인자라고 한다. 이렇게 하면 인자를 여러개를 받을 수 있다.
          int len;
          CString str;
          len = _vsctprintf(pFmt, args) + 1;
          _vstprintf(pbuf, pFmt, args);
         CString str;
         [Java] 1.5 언어 스펙에서 가변인자 관련 문법이 추가되었다. 자바에 곧 printf 가 추가될 것이다.; --[1002]
  • CuttingSticks . . . . 10 matches
         === About [CuttingSticks] ===
         나무막대를 여러 조각으로 잘라야 한다. 절단 분야에서 가장 뛰어난 것으로 알려진 ACM(Analog Cutting Machinery)이라는 회사에서는 자를막대의 길이에 따라 요금을 부과한다. 그리고 톱의 구조상 한 번에 하나씩만 자를 수 있다.
         === Input ===
         === Sample Input ===
         The minimum cutting is 200.
         The minimum cutting is 22.
         || 문보창 || C++ || 2일 || [CuttingSticks/문보창] ||
         || 김상섭 || C++ || 3년 || [CuttingSticks/김상섭] ||
         || 하기웅 || C++ || 몇일 || [CuttingSticks/하기웅] ||
  • DermubaTriangle/하기웅 . . . . 10 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int first, second, sExp, eExp, sNum, eNum;
         double getDistance(int s, int e)
         int main()
          cout.setf(ios::showpoint);
          while(cin>>first>>second)
  • EightQueenProblem2/이강성 . . . . 10 matches
          def __init__(self, size=8):
          for y in range(self.sizeY):
          continue
          self.mark(self.board, x, y, 1) # marking
          self.mark(self.board, x, y, -1) # unmarking
          print self.queens
          for dx, dy in [(1, 0), (0, 1), (-1, 0), (0, -1), (1, 1), (1, -1), (-1, 1), (-1, -1)]:
         if __name__ == '__main__':
          print 'Total solutions=', len(e.solutions)
          print e.solutions
  • EightQueenProblemSecondTry . . . . 10 matches
         이번에는 소스코드를 모두 삭제하고, 맨땅에서 다시 시작을 합니다. EightQueenProblem을 만족하는(즉 하나의 해법만 얻는) 프로그램을 다시 한번 작성합니다. 자신이 처음 EightQueenProblem을 풀면서 얻었던 통찰(insight)만을 이용하고, 가능하면 더 깔끔한 해답을 얻으려고 노력하면서 말이죠.
         see also DoItAgainToLearn
         || 강석천 ||4h:50m||1h:56m||.|| 135 lines || 130 lines || . || python || python || . ||
         || 이선우 ||1h:05m||1h:52m||52m|| 114 lines || 147 lines(+ test code 28 lines) || 304 lines || java || java || java ||
          * LOC - ''Lines of Code. 보통 SLOC(Source Lines of Code)이라고도 함.''
  • ExploringWorld/20040308-시간여행 . . . . 10 matches
          3.3 resin 2.1.4 -> 3.0.6 (J2EE 1.3 -> 1.4)
         지하철에서 세환이와 오늘을 제목을 정한다면, 어떨까 라는 고민을 했다. '워밍업 데이'? '시작한날'? 하지만 이런 무미건조한 단어를 쓰기에 오늘을 따뜻하게 표현하고 싶었다. 그리고 집에와 Zp서버의 과거를 주로 이야기한 '시간여행'이라는 제목을 붙였다. 오늘을 한마디로 설명하기에 충분한 날이다. 그러나 크게 후회되는 점이 있다. 얼마전 나의 여행기에 '잘못된 이야기'에 대한 반성을 쓰고 실천 사항을 적었는데 오늘 후배님들 앞에서 실천하지 않았다. 결과, 다시 한번 아까운 시간을 두서없는 이야기로 채우는 우를 반복하였다. 다음주에는 반드시 이야기를 위한 '계획'을 세워 가치있고 압축적으로 시간을 써야겠다. --NeoCoin
          아니 무슨 그런 황송한 말씀을, 다 재미있자고 하는 일인데 --NeoCoin
         집으로 돌아와 MakeAnotherWorld 라는 세상을 만든다는 거창한 은유법보다, 여행을 한다는 느낌의 은유로 시작하면 재미있겠다는 생각이 들었다. 그래서 WalkingAroundWorld 나, CyclingWorld 같은 여행이라는 은유의 제목이 더 그럴싸한것 같은데, 너희들은 어때? --NeoCoin
         탐험하는것은 어때요? Exploring(The)World 같은... --세환
          오 좋은 생각이다. 차타고 휙지나가는게 아니라, 자전거를 타거나 걸어다니면서 이것도 기웃 저곳도 기웃을 생각했는데, 그럴게 아니라 새로운 세계를 탐험한다는 느낌이 더 좋을것 같다. ExploringWorld 정도면 될것 같다. rename 할까? 또 좋은 의견 없나? --NeoCoin
         ExploringWorld
  • HASH구하기/조동영,이재환,노수민 . . . . 10 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin ("input.txt");
          int na[5]={0};
          int count=0;
          while(fin.get(ch))
  • Hacking2004 . . . . 10 matches
          * [Hacking/20040930첫번째모임]
          * [Hacking/20041028두번째모임]
          * [Hacking/20041104세번째모임]
          * [Hacking/20041118네번째모임]
          * [Hacking/첫번째과제]
          * [Hacking/첫번째과제/김홍선]
          * [Hacking/첫번째과제/윤성만]
          Upload:hacking.zip
          Upload:hacking2.zip
          Upload:hacking3.zip
  • HowManyZerosAndDigits/문보창 . . . . 10 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int main()
          int nZero; // how many zeros?
          while (cin >> N >> B)
          temp = int(temp/B);
          backTemp = int(i);
          cout << nZero << " " << int(nDigit) + 1 << endl;
  • InterWiki . . . . 10 matches
         List of valid InterWiki names this wiki knows of:
          [[InterWiki]]
         MoinMoin marks the InterWiki links in a way that works for the MeatBall:ColourBlind and also is MeatBall:LynxFriendly by using a little icon with an ALT attribute. If you hover above the icon in a graphical browser, you'll see to which Wiki it refers. If the icon has a border, that indicates that you used an illegal or unknown BadBadBad:InterWiki name (see the list above for valid ones). BTW, the reasoning behind the icon used is based on the idea that a Wiki:WikiWikiWeb is created by a team effort of several people.
         See the wiki:MeatBall/InterWiki page on wiki:MeatBall:MeatballWiki for further details.
         ZeroWiki에서는 InterMap 페이지 수정으로 InterWiki를 조작할 수 있습니다.
  • JumpJump/김태진 . . . . 10 matches
         // main.cpp
         #include <iostream>
         using namespace std;
         int main(int argc, const char * argv[])
          long long int sum;
          int T,n;
          for(int iter=0;iter<T;iter++){
          printf("%lld\n",sum);
  • LearningGuideToDesignPatterns . . . . 10 matches
         원문 : http://www.industriallogic.com/papers/learning.html
         Pattern들은 각각 독립적으로 쓰이는 경우는 흔치 않다. 예를 들면, IteratorPattern은 종종 CompositePattern 과 같이 쓰이고, ObserverPattern과 MediatorPattern들은 전통적인 결합관계를 형성하며, SingletonPattern은 AbstractFactoryPattern와 같이 쓰인다. Pattern들로 디자인과 프로그래밍을 시작하려고 할때에, 패턴을 사용하는데 있어서 실제적인 기술은 어떻게 각 패턴들을 조합해야 할 것인가에 대해 아는 것임을 발견하게 될 것이다.
         "skin" vs "guts" 에 대한 토론은 StrategyPattern 와 DecoratorPattern 를 구별하는 좋은 예가 될 것이다.
         CompositePattern은 여러부분에서 나타나며, IteratorPattern, ChainOfResponsibilityPattern, InterpreterPattern, VisitorPattern 에서 종종 쓰인다.
         === Singleton - Creational ===
         SingletonPattern은 종종 AbstractFactoryPattern 을 만드는데 이용된다. (Related Patterns 참조)
         === Chain of Responsibility - Behavioral ===
         ObserverPattern 과 MediatorPattern 들을 이용한 message의 전달관계를 관찰하면서, ChainOfResponsibilityPattern 의 message handling 과 비교 & 대조할 수 있다.
         가장 복잡한 Pattern중 하나이다. 이 Pattern의 이용 예제는 다음 패턴인 InterpreterPattern 에서 서술된다.
         === Interpreter - Behavioral ===
         InterpreterPattern 은 복잡하다. 이 Pattern은 FlyweightPattern 와 VisitorPattern 과 관계있으며, 이해를 돕는다.
         가장 마지막으로 읽을 Pattern 은 FacadePattern 이다. 이 Pattern은 InterpreterPattern 의 예제코드와 그 주제가 비슷하므로, InterpreterPattern 다음에 이어지는 것이 적절하다.
  • MagicSquare/성재 . . . . 10 matches
         #include<iostream.h>
         int main()
          int mab;
          cin >> mab;
          int mbang[9][9];
          int i,j;
          int a=0,k=0;
          int t=mab/2;
          int k;
  • Map/곽세환 . . . . 10 matches
         #include <iostream>
         #include <string>
         #include <algorithm>
         #include <map>
         using namespace std;
         void main()
          //cin.getline(s, 30);
          for (int i = 0; i < strlen(s); i++)
  • Map연습문제/황재선 . . . . 10 matches
         #include <iostream>
         #include <string>
         #include <map>
         using namespace std;
         int main()
          string text = "wjgydlrtyffworxjbdzyrsybfwlrobffylryjbkyjrtbdcyyrvmbjlsrkugjglrmdcgdarjbjyftr";
          string secret = "oyfzweyqsur";
          int i;
  • MoniWikiTutorial . . . . 10 matches
          * FindPage: 상단의 검색 폼 혹은 FindPage를 통해서 위키위키의 내용을 검색합니다.
          * TitleIndex: 위키위키의 모든 페이지 목록을 보여줍니다.
          * [[Icon(info)]] 페이지 변경 정보를 보여줍니다.
         || {{{''italic'' and '''bold''' and __underlined__}}} || ''italic'' and '''bold''' and __underlined__ ||
         || {{{MoinMoin:HelpContents}}} || MoinMoin:HelpContents (InterWiki-Link) ||
  • Postech/QualityEntranceExam06 . . . . 10 matches
          5. right linear 로 AB* U C* 인거 그래머로 적기
          boolean algebra 와 ordinary algebra 의 차이
          3. Machine Language Like 한 프로그램 만들기. 코드 주고. 스앞 함수 호출하는 부분 있고 파라미터 패싱을 설명해야함.
          4.2 way assoiate 캐시에서 히트 되었나 안되었나, 뭐 그러고 구조 그리고 각 index, tag, byte offset 등 요소 알아 맞추기
          5. Mutual Exclusion 에서 Bounded Waiting, Progress, Mutual Exclusion 이 아닌것 하나를 고르기
          - 어떤 경우에 counting semaphore 를 쓰는지,,
          6. Corutine, CoProcess, IPC 에 관해서..
         Dynamic Scoping 에서 Shallow Access 하는 경우에 상관 없는 키워드 발견하기.
          9. pointer restrict 관련 문제
          10 Dynamic Scoping 에서 Static type 체킹을 했을때 어떤 문제 가 발생하는가
  • PrivateHomepageMaking . . . . 10 matches
         1. hosting 업체에서 계정을 일정 기간동안 구입
         === Hosting 업체 ===
         윈도우 서버 환경에서는 apmsetup, spacetag, winapm 과 같은 통합형 Apache+PHP+Mysql
         || DokuWiki || http://wiki.splitbrain.org/ || PHP 기반, 내가 본거 중에 제일 괜찮다, 데비안의 경우 패키지로 그냥 설치됨 ||
         || MoinMoin || http://moinmoin.wikiwikiweb.de/ || Python 기반, 파일시스템 이용 ||
         참고) [http://wiki.splitbrain.org/wiki%3Acompare WikiEngine 비교]
  • ProjectPrometheus/CollaborativeFiltering . . . . 10 matches
         일단은 본격적인 CF로 가는 것보다 아마존의 "Customers who bought this book also bought"식으로 좀 더 간단한 것을 하는 것이 좋을 듯 하다. 이것은 꼭 Clustering이 필요없다 -- Clustering이 효과를 발휘하려면 상당량의 데이타(NoSmok:CriticalMass )가 쌓여야 하는데, 쉬운 일이 아닐 것이다. 다음은 JuNe이 생각한 간단한 알고리즘. 일종의 Item-to-Item Correlation Recommendation.
          *For every meaningful action(searching, viewing, writing a review, rating without writing reviews) there is a pref coefficient. (prefCoef)
          *When a user does a specific well-defined action, bookPref is updated as "prefCoef*userPref+bookPref" and resorted. (some books at the end of the list might be eliminated for performance reasons)
  • RedThon/HelloWorld과제 . . . . 10 matches
          대충..결과만 나오면 되니깐.ㅋ windows 창이랑 python shell 이랑 둘이 열심히 번갈아 가면서..
         print a
          for i in a:
          print i
         a = [ i for i in 'helloworld' ]
         for i in a:print i,
          for d in a:
          print d
          * 문자열를 변수에 할당해서 그냥 출력(print), 리스트를 함수에 전달인자로 넘겨준 다음 루프를 써서 출력, 문자열을 함수에 전달인자로 넘겨준 다음 루프를 써서 출력하는 세가지 방법으로 숙제를 잘 했네.
  • ReplaceTempWithQuery . . . . 10 matches
         그러한 우려는 ' '''단지 그럴지도 모른다.''' ' 라는 가정일 뿐이다. 누구도 실제로 '''프로파일링'''(profiling)해보기 전까지는 알 수 없다. 실제로 문제가 되는지 아닌지는.
         이러한 방법을 사용하면서 부가적으로 얻을 수 있는 장점이 하나 더 있다. 실제로 도움이 될지 안될지 모르는 최적화를 하는데 쏟는 시간을 절약할 수 있다. 임시변수 사용뿐 아니라 이러한 미세한 부분의 조정은, 해놓고 보면 별로 위대해보이지 않는 일을, 할때는 알지 못하고 결국 시간은 낭비한게 된다. 돌이켜보면 나의 이러한 노력이 제대로 효과가 있었는지도 모른다. '''왜?''' 프로파일링 해보지 않았으니까. 단순히 ''시스템을 더 빨리 돌릴 수 '''있을지도''' 모른다''는 우려에서 작성한 것이었으니까. [http://c2.com/cgi/wiki?DoTheSimplestThingThatCouldPossiblyWork DoTheSimplestThingThatCouldPossiblyWork]
         have been only a boy playing on the seashore, and diverting myself in
         now and then finding a smoother pebble or a prettier shell than
         ordinary. Whilst the great ocean of truth lay all undiscovered before me.
         ["Refactoring"]
  • ReverseAndAdd/김정현 . . . . 10 matches
          for n in range(len(a)):
         if __name__ == '__main__':
          a=int(raw_input("number? "))
          for n in range(a):
          a=str(raw_input())
          for n in range(len(t)):
          a=str(int(a)+int(a[::-1]))
          print b, a
  • Ruby/2011년스터디/강성현 . . . . 10 matches
          * ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ 에서 다운로드
          * [ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.1-p430-x64-mswin64_80.zip 1.9.1 x64] (2010-08-20)
          * [ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.2-p0-x64-mswin64_80.zip 1.9.2 x64] (2010-08-20)
          * 루비 설치폴더\bin 안에 http://www.winimage.com/zLibDll/zlib125dll.zip 에 있는 dllx64\zlibwapi.dll 파일을 복사하고 이름을 zlib.dll 로 바꿈
  • Steps/하기웅 . . . . 10 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int testcase, x, y, sqrtNum, powNum;
         int showResult(int number)
         int main()
          cin >> testcase;
          cin>>x>>y;
  • TAOCP/InformationStructures . . . . 10 matches
         = 2.2. Linear Lists =
          마지막 원소 빼기(setting Y equal to the top node and delete)
          ''새 원소 넣기(inserting an element at the rear of the queue)
          맨 앞 원소 빼기(removing the front node)
         하지만 공간낭비가 무한할 수 있다.( F, R이 계속증가하기 때문이다.) 따라서 이런 문제(the problem of the queue overrunning memory)를 해결하려면, M개의 노드(X[1]...X[M])가 순환하도록 한다.
          a) ''''위로 한칸씩 밀기(moving things up)'''
          b) ''''아래로 한칸씩 밀기(moving things down)''' a)에 해당하는 k가 없을 경우
  • TCP/IP . . . . 10 matches
         개발자를 위해서 제공되는 API(Application Programming Interface)의 가장 대표적인 형태가 TCP/IP 이다.
          * http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/textcode.html <Socket Programming for C>
          * http://kldp.org/KoreanDoc/html/GNU-Make/GNU-Make.html#toc1 <using make file>
          * http://kldp.org/KoreanDoc/VI-miniRef-KLDP <using vi editer>
          * http://kldp.org/KoreanDoc/Thread_Programming-KLDP <using thread>
          * http://www.paradise.caltech.edu/slide <sliding window project>
          * Effective TCP/IP Programming: 44 Tips to Improve Your Network Programs : TCP/IP 프로그래밍 팁 모음
          * Interactive Shell이 지원되는 언어(e.g. Python, Ruby, ...)를 사용하면 TCP/IP의 개념을 아주 빠른 시간 안에 배울 수 있음. (Python은 내부적으로 C 라이브러리를 그대로 사용) 또, 현재 개발된/개발중인 시스템을 테스트 하는 데에도 매우 편리함. 예컨대, 리코에서는 XMLRPC 서버 접속을 파이썬 쉘에서 하고(import xmlrpc 한 다음에...), 거기서 사용자 등록 등의 서비스를 직접 사용하게 한다.
  • The Trip/Celfin . . . . 10 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         #define MAX_STU 1000
         int student_num, i, j, sum, average;
         int main()
          cout.setf(ios::showpoint);
          while(cin>>student_num)
          cin >> student[i];
  • TkinterProgramming/HelloWorld . . . . 10 matches
         from Tkinter import *
         def print_console():
          print 'WELCOME TO TKINTER PROGRAMMING'
         m = Label(frame, text = "TKINTER PROGRAMMING")
         p_button = Button(frame, text = "PRINT", command = print_console)
         root.mainloop()
          def __init__(self, master):
          self.p_button = Button(master, text="PRINT", command = self.print_msg)
          def print_msg():
          print"HELLO WORLD"
         root.mainloop()
  • TugOfWar/강희경 . . . . 10 matches
         def InputTestCaseNumber():
          n = input('TestCaseNumber: ')
          print '----'
         def InputPeopleNumber():
          n = input('PeopleNumber: ')
         def InputTheWeight(aN):
          for i in range(0, aN):
          list.append(input('Weight: '));
         def MakeTwoTeams(aInfoTuple):
          for i in range(0, aInfoTuple[1]):
          b += aInfoTuple[0][aInfoTuple[1]-1-i]
          a += aInfoTuple[0][aInfoTuple[1]-1-i]
         if __name__ == '__main__':
          testCaseNumber = InputTestCaseNumber()
          for i in range(0, testCaseNumber):
          print MakeTwoTeams(InputTheWeight(InputPeopleNumber()))
          print '----'
  • TugOfWar/신재동 . . . . 10 matches
         def inputWeights(n, weights):
          for i in range(n):
          weight = int(input())
          for i in range(n):
         if __name__ == '__main__':
          n = int(input())
          inputWeights(n, weights)
          print str(groupsWeights[0]) + ' ' + str(groupsWeights[1])
  • Velocity . . . . 10 matches
         download : http://jakarta.apache.org/site/binindex.cgi#velocity
          public static void main(String[] args) throws Exception {
          prop.setProperty("input.encoding" ,"euc-kr");
          prop.setProperty("output.encoding" ,"euc-kr");
          Velocity.init(prop); // properties 화일(velocity.properties) 를 선택할 수도 있음.
         === Plugin ===
         DreamWeaver Plugin - http://java.techedu.net/phpBB2/viewtopic.php?t=138 - 아아.. 이런 문서 먼저 만들어주신 분에게 참 감사하다는. :)
         === StrutsAndVelocityIntegration ===
  • WorldCup/송지원 . . . . 10 matches
          * 처음에 class명을 Main으로 해야 하는 지 몰라서 Compile Error를 아름답게 띄움...-_-;; // 아래 소스도 복붙할 때 바꿔 줘야 함
          public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
          int teams = sc.nextInt(); // 0 <= T <= 200
          int matches = sc.nextInt(); // 0 <= N <= 10000
          int sum = 0;
          for(int i = 0; i < teams; i++) {
          sc.nextLine();
          sum += sc.nextInt();
          System.out.println((matches * 3 - sum));
  • ZP&COW세미나 . . . . 10 matches
          * Java 2 SDK: http://165.194.17.15/pub/language/java/j2sdk-1_4_2_01-windows-i586.exe
          * Platform: http://165.194.17.15/pub/language/java_eclipse/eclipse-platform-3.0M3-win32.zip
          * Extreme Programming Installed, Ron Jeffries, 인사이트
          def __init__(self,amount):
         if __name__=='__main__':
          unittest.main()
         || 이상규, 오세윤, 신재동 || Upload:win.Winner_1.0.jar ||
         || 이상규, 오세윤, 신재동 || Upload:win.Winner_2.0.jar ||
  • comein2 . . . . 10 matches
          * 개인 위키 : http://comein2.xhot.net/moin/moin.cgi
         [http://165.194.17.15/moin/moin.cgi?action=userform&uid=1009955467.92.23121 comein2로그인]
          * ExtremeProgramming 관련 UnitTest , Refactoring
          * E-BANKING 시스템 기반 사용자 인증 방법에 대한 연구
          * Game Programming 관련 AI 및 Server 기술
          * ["Java/NestingClass"]
  • html5practice/roundRect . . . . 10 matches
          <body onload="main()" style="background-color:gray">
          if (typeof stroke == "undefined" ) {
          if (typeof radius === "undefined") {
          ctx.beginPath();
          ctx.lineTo(x + width - radius, y);
          ctx.lineTo(x + width, y + height - radius);
          ctx.lineTo(x + radius, y + height);
          ctx.lineTo(x, y + radius);
         function main(){
          ctx.textBaseline = "top";
  • radiohead4us/PenpalInfo . . . . 10 matches
         Interests/Hobbies: writing letters, reading, music, ...............
         Comments: Hi All! Writing letters is my greatest hobby and i am still looking for some pals around my age. If you´re interested in writing snail mail to me, please send me an e-mail. Thanks! I promise, I will answer all.
         Interests/Hobbies: traveling, music, snowbording
         Comments: I'm looking for friends all over the world(^0^)/
         Interests/Hobbies: music, world news
  • zennith/w2kDefaultProcess . . . . 10 matches
         Win32.sys가 Win32 subsystem의 커널모드 부분인데 비해서 Csrss.exe는 사용자모드 부
         작업관리줄, 바탕화면 등과 같은 사용자 셸로서 Windows의 작동에 있어 필수적인 요소
         Internat.exe - 작업관리자에서 종료 가능
         로컬 보안 인증 서버로서 Winlogon 서비스가 사용자를 인증하는데 필요한 프로세스를
         만들어 내고 이 프로세스는 Msgina.dll과 같은 인증 패키지를 이용함으로써 수행된
         되며 Winlogon 및 Win32 (Csrss.exe) 프로세스를 구동하고 시스템 변수를 설정하는 등
         이들 프로세스를 구동시킨 다음 Winlogon이나 Csrss가 종료할 때까지 대기하되, 종료
         Winlogon.exe - 작업관리자에서 종료 불가
         Winmgmt.exe - 작업관리자에서 종료 불가
  • 구구단/S.S.S . . . . 10 matches
         if __name__=='__main__':
          for n in range(1,10):
          for m in range(2,6):
          print m,'*',n,'=',m*n,
          print ''
          print ' '
          for n in range(1,10):
          for m in range(6,10):
          print m,'*',n,'=',m*n,
          print ''
  • 김희성/ShortCoding/최대공약수 . . . . 10 matches
         main(a,b){scanf("%d%d",&a,&b);while(a%=b)a^=b^=a^=b;printf("%d",b);}
          '''컴파일러''' - gcc 컴파일러는 사용된 function을 확인하여 필요한 header file을 자동으로 include 해줍니다. 또한 gcc 컴파일러는 타입이 선언되지 않은 변수는 int형으로 처리합니다. 이로인해서 main의 본래 형식은 int main(int,char**)이지만 변수형을 선언하지 않으면 두번째 인자도 int형으로 처리됩니다.
          '''Coding Skill''' - a^=b^=a^=b;(a^=b;b^=a;a^=b;)는 추가 변수 없이 두 수의 값을 바꾸는 방법입니다. 하지만 두 수가 같을 시 두 수의 값이 0이 되는 치명적인 버그가 있습니다. 본 코드에서는 while문에서 a%=b라는 조건을 주어 이 버그를 차단하고 있습니다.
  • 데블스캠프2006/SSH . . . . 10 matches
          * 자신의 public_html 폴더안에 index.html 을 저장.
          * zeropage.org/~id url 로 들어가면 해당 index.html 화일이 보임
          * index.html, index.php, index.jsp 같이 index 는 기본 파일로 지정됨
          *서버 terminal 에 접속하여 여러 작업을 함
          * Quick connect, login
          * wget 명령어. wget zeropage.org/index.html
         #!bin/sh
  • 데블스캠프2006/월요일/연습문제/for/이경록 . . . . 10 matches
         #include<iostream.h>
         int main(void)
          int a,b;
         #include<iostream.h>
         int main(void)
          int a,b;
          int result=1;
          cin >> a;
  • 데블스캠프2006/월요일/연습문제/if-else/임다찬 . . . . 10 matches
         #include <iostream>
         using namespace std;
         void main(){
          int number;
          cin >> number;
          for(int i = 1; i < number; i++){
         #include <iostream>
         using namespace std;
         void main(){
          cin >> mun;
  • 데블스캠프2006/월요일/연습문제/switch/이장길 . . . . 10 matches
         #include <iostream.h>
         void output(int *n);
         int main(void)
          int score[10];
          int i;
          int num[10]={0,};
          cin>>score[i];
         void output(int *n)
          int i;
  • 데블스캠프2006/화요일/pointer/문제1/정승희 . . . . 10 matches
         #include<iostream>
         using namespace std;
         void swap(int *a, int *b);
         void main()
          int a=1, b=18;
         void swap(int *a,int *b)
          int c;
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2011/네째날/이승한 . . . . 10 matches
         == 이승한/Android Reverse Engineering ==
          * [http://blog.softwaregeeks.org/wp-content/uploads/2011/04/Reverse-Engineering-%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-%ED%95%99%EC%8A%B5.pdf Reverse Engineering, 안드로이드 학습 발표자료] - 진성주, JCO 발표 자료
          * android reversing tools - 제로페이지 홈페이지 자료실 게시물
          * setup git and github - http://help.github.com/win-set-up-git/
          * github repository address - https://github.com/beonit/devils2011GitSeminar
          * git cheat sheet - http://ktown.kde.org/~zrusin/git/git-cheat-sheet-medium.png
  • 몸짱프로젝트 . . . . 10 matches
         SeeAlso [HowToStudyDataStructureAndAlgorithms] [DataStructure] [http://internet512.chonbuk.ac.kr/datastructure/data/ds1.htm 자료구조 정리]
          * 참고한 책 : ProgrammingPearls(번역서 [생각하는프로그래밍])
          SeeAlso IntroductionToAlgorithms
         || BinarySearch || [몸짱프로젝트/BinarySearch] ||
         || LinearSearch || . ||
         || Invert 기능 || [몸짱프로젝트/Invert] ||
         [몸짱프로젝트/BinarySearchTree]
         [몸짱프로젝트/MinimalCostSpanningTree]
         || FindShortestPath || [몸짱프로젝트/ShortestPaths] ||
         || prefix Infix postfix || [몸짱프로젝트/InfixToPostfix], [몸짱프로젝트/InfixToPrefix] ||
          * Palindrome
  • 몸짱프로젝트/Invert . . . . 10 matches
          int coef;
          int expon;
          poly_ptr link;
         poly_ptr invert(poly_ptr p)
          middle = front->link;
          p = middle->link;
          front->link = NULL;
          middle->link = front;*/
          p = p->link;
          middle->link = front;
  • 문자열연결/허아영 . . . . 10 matches
         #include <stdio.h>
         #include <string.h>
         void main(){
          fprintf(fp, "x => ");
          fprintf(fp, x);
          fprintf(fp, "\ny => ");
          fprintf(fp, y);
          fprintf(fp, "\nz => ");
          fprintf(fp, z);
  • 삼총사CppStudy/숙제2/곽세환 . . . . 10 matches
         #include <iostream>
         using namespace std;
         #include <cmath>
         int main()
         #include <iostream>
         using namespace std;
         #include <cmath>
         int main()
  • 새싹교실/2011/學高/2회차 . . . . 10 matches
          * printf()
         === 자기 반성 및 수정할 점(feeling/finds) ===
         printf()
         === 자기 반성 및 고칠 점(feeling/finds) ===
          * printf()
         === 자기 반성 및 수정할 점(feelings/findings) ===
  • 소수구하기/zennith . . . . 10 matches
         #include <stdio.h>
         #include <time.h>
         #define MAX_PRIME 50000
         int main(void) {
          int i, j, flag, arr_p, tmp, count = 0;
          int arr[10000] = {2, };
          printf("%d ", arr[i++]);
          printf("\n%f\n", (double)(end - start) / CLK_TCK);
          printf("#%d prime numbers.\n", count);
  • 소수구하기/상욱 . . . . 10 matches
         #include <iostream>
         #include <time.h>
         using namespace std;
         int main() {
          int primeNumber[100000];
          int arrLength = 1;
          for (int i = 3 ; i < 500000 ; i += 2) {
          for (int j = 1 ; j < arrLength+1 ; j++) {
          printf("%d\n", i);
  • 위키QnA . . . . 10 matches
         Q : 링크에 밑줄이 생길때가 있고 안생길때가 있습니다. 그렇다기 보다는 생기는건 생기고, 어떤건 계속 안생겨 있군요. (in mozilla) --zennith
         A : 아. 한번 고쳐봤습니다; 위의 네비게이션 바에 tab index를 주었습니다. 맨 처음 focus 는 바로가기 GO 입력창에 커서가 오고요. 그 다음 Shift + Tab 을 누르면 TAB 이 최근바뀐글 -> 검색 -> 제목색인 순으로 움직입니다. (반발이 3명 이상 나오면 원상복귀 하겠습니다;;) --석천
         === InterWiki 는 무엇인가요? ===
         A : InterWiki 라고 합니다. InterWiki 에 등록된 다른 위키의 페이지를 링크 걸때 사용합니다. 위키간 이름공간을 연결해주는 유용한 매크로. ^^; InterWiki 에 가보시면 현재 등록된 다른 위키페이지들을 알 수 있습니다.~
          현재의 FrontPage가 하는 역할이 좀 많다고 생각하는데. (Long Method 에 대해서는 Refactoring이 필요한 법. --a) FrontPage가 하는 역할들에 대해 페이지들을 슬슬 나누는 것은 어떨까 생각중. --석천
          난 지금이 딱좋은데 더 확장되면 골치 아플껏 같고.. 혹은 사용용도가 ZeroWiki 와 합쳐 져야 한다고도 생각. project의 직접 접근성을 없애는건 반대이고 Starting Point에 사용용도를 링크하는 것이 최적이라고 생각 --상민
          FrontPage가 현재 하고 있는일이 (보여주고 있는 것) ZeroWiki 정의, 사용용도, Starting Point (여기에는 프로젝트 열거도 포함), 제안이야. 이중에서 사용용도와 제안은 새 페이지로 빼는 것이 좋을 것 같은데. 그리고 프로젝트 열거 밑에 Starting Point 밑에 두는 것도 생각. 그리고 또하나는 현재 이 프로젝트 관련 글을 Q&A가 아닌 제안페이지에 두는것이 더 좋겠다는 것. 현재 우선적인 직접접근성을 제공받아야 할 것은 project니까. 그에 대해서는 나도 별 이견 없음. --석천
         Q: Bioinformatics에 관한 프로젝트를 진행하려고 합니다. 소개와 내용의 재정리를 위해서는 많은 이미지 파일들을 위키에 올려야 될지도 모르겠는데, 위키에서의 이미지 사용은 그렇게 적절하지 않은 것 같습니다. 어떤 방식으로 이를 해결할 수 있을까요?
  • 위키설명회2005/PPT준비 . . . . 10 matches
         6502 는 16bit addressing이 가능한 CPU 였습니다. 즉, $0000 ~ $FFFF 였죠.
         6502 는 13가지 메모리 access 방식이 있었는데, 그중 하나가 zero page addressing 입니다.
         주소 영역을 8bit 만 사용, 상위 8bit 은 00 으로 가정하고 addressing 을 하면
         1992년 : 동남은행 Firm banking system, 치관 운영 관리 프로그램, 세탁소 관리 프로그램, 세일 정보 통신 재해자 관리 프로그램
         Headings: = Title 1 =; == Title 2 ==; === Title 3 ===; ==== Title 4 ====; ===== Title 5 =====.
         리스트: 공백과 * 한개; 1., a., A., i., I. 숫자로 된 items; 1.#n start numbering at n; space alone indents.
         BackLink 혹은 ReverseLink.
         많은 사람들이 그냥 아무 생각없이 링크 달 수 있다는 편리함으로 SeeAlso의 사용에 유혹을 받지만 SeeAlso에 있는 링크는 [InformativeLink]여야 한다.
         위키위키는 한 주제에 대한 기록이 영원히 남는다(WikiNow).
  • 이규완 . . . . 10 matches
         mine.cpp
         #include "fileio.h"
         #include <stdio.h>
         void main()
          int key;
          printf("입력을 해주세요 : ");
          int i;
          printf("%s", str);
          //printf("%c", str);
          //printf("%d", len);
  • 임인택/AdvancedDigitalImageProcessing . . . . 10 matches
          http://www.prip.tuwien.ac.at/~hanbury/intro_ip/
          http://www.reindeergraphics.com/tutorial/chap6/binary04.html
          http://www.google.co.kr/url?sa=U&start=11&q=http://www.cv.tu-berlin.de/~vr/papers/acrobat/TGJGD97.pdf&e=747
         === Opening / Closing ===
          http://www.reindeergraphics.com/tutorial/chap6/binary02.html
          http://greta.cs.ioc.ee/~khoros2/non-linear/dil-ero-open-close/front-page.html
          http://www.ph.tn.tudelft.nl/Courses/FIP/noframes/fip-Morpholo.html#Heading98
  • 임인택/CVSDelete . . . . 10 matches
         # -*- coding: cp949 -*-
          print 'return'
          for folder in dirlist :
          print ('deleting.. ' + folderToDelete)
          print folder
          for afile in files:
          print afile
         if __name__=='__main__':
          deleteCVSDirs('C:\MyDocuments\Programming Source\Java\초고속통신특강\neurogrid')
  • 정렬/곽세환 . . . . 10 matches
         #include <fstream>
         using namespace std;
         const int size = 10000;
         int main()
          ifstream fin("unsorteddata.txt");
          int *data = new int[size];
          int i, j, temp;
          fin >> data[i];
  • 최소정수의합/김소현 . . . . 10 matches
         #include <stdio.h>
         void main()
          int n=1;
          int sum=0;
          printf("n=%d, sum=%d \n", n, sum);
         #include <stdio.h>
         void main()
          int n=0;
          int sum=0;
          printf("n=%d, sum=%d \n", n, sum);
  • 파스칼삼각형/임다찬 . . . . 10 matches
         #include <stdio.h>
         int main(void){
          const int MAX = 100;
          int i,j;
          int row;
          int pascalt[MAX+1][MAX]={0,};
          printf("Row 값을 입력하세요 : "); scanf("%d",&row);
          printf(" %d",pascalt[i][j]);
          printf("\n");
  • 파스칼삼각형/조현태 . . . . 10 matches
         #include <iostream>
         using namespace std;
         void main()
          int hang=0;
          int yol=1;
          cin >> hang;
          cin >> yol;
          int bun_ja=1;
          int bun_mo=1;
          for (register int i=0; i<yol-1; ++i)
  • 프로그래밍잔치/SmallTalk . . . . 10 matches
          instanceVariableNames: ''
         printHello
         hello printHello.
          instanceVariableNames: ''
         printGuGu
          :i | Transcript cr; show: i asString, 'dan'.
          :j | Transcript cr; show: i asString, ' * ', j asString, ' = ', (i*j) asString.
         gugu printGuGu.
  • 피보나치/SSS . . . . 10 matches
         #include <stdio.h>
         int main(){
          int num_prev=1;
          int num_next=1;
          int num_temp=0;
          int pvio=0;
          int count;
          printf("숫자를 입력 하세요:");
          printf("%d\n",num_prev);
  • 피보나치/김소현,임수연 . . . . 10 matches
         #include <stdio.h>
         void main(void)
          int input;
          int first=1, second=1, sum=1;
          printf("입력하시오");
          scanf("%d", &input);
          for(int i=2; i<input; i++)
          printf("%d", sum);
  • 피보나치/소현,수연 . . . . 10 matches
         #include <stdio.h>
         void main(void)
          int input;
          int first=1, second=1, sum=1;
          printf("입력하시오");
          scanf("%d", &input);
          for(int i=2; i<input; i++)
          printf("%d", sum);
  • 05학번만의C++Study/숙제제출1/윤정훈 . . . . 9 matches
         #include <iostream>
         using std::cout;
         using std::cin;
         using std::endl;
         int main(){
          cin >> Ctemp;
          * 섭씨 온도를 전달인자로 전달받아 화씨 온도로 환산하여 리턴하는 사용자 정의 함수를 main() 함수가 호출하는 프로그램을 작성하시오. --[최경현]
  • 5인용C++스터디/에디트박스와콤보박스 . . . . 9 matches
         #define IDC_MYEDIT 1000
         int CCreateEditView::OnCreate(LPCREATESTRUCT lpCreateStruct)
         BOOL Create(DWORD dwstyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
         BEGIN_MESSAGE_MAP(CCreateEditView, CView)
          //Standard printing commands
          ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
          CString str;
          m_pEdit->GetWindowText(str);
          AfxGetMainWnd()->SetWindowText(str);
  • 5인용C++스터디/클래스상속 . . . . 9 matches
         #include<iostream.h>
         #include<string.h>
         #define MAX_LEN 81
          int age;
          void set_age( int a ) { age=a; };
          int get_age(void) {return age;};
         int main()
  • ActiveXDataObjects . . . . 9 matches
         {{|Microsoft ADO (ActiveX Data Objects) is a Component object model object for accessing data sources. It provides a layer between programming languages and databases, which allows a developer to write programs which access data, without knowing how the database is implemented. No knowledge of SQL is required to access a database when using ADO, although one can use ADO to execute arbitrary SQL commands. The disadvantage of this is that this introduces a dependency upon the database.
         = in .NET Framework =
         {{|In the newer programming framework of .NET, Microsoft also present an upgraded version of ADO called ADO.NET, its object structure is quite different from that of traditional ADO. But ADO.NET is still not quite popular and mature till now.
         ADO 는 ActiveX 이므로 C++ 이건 VB 이건 Python 이건 어디서든지 이용가능. 하지만, 역시나 VB 나 Python 등에서 쓰는게 편리. 개인적으로는 ODBC 연동을 안하고 바로 ADO 로 C++ Database Programming 을 했었는데, 큰 문제는 없었던 기억. (하긴, C++ 로 DB Programming 할 일 자체가 거의 안생겨서..) --[1002]
  • AnEasyProblem/정진경 . . . . 9 matches
         main(n,a){for(;a=scanf("%d",&n),n;printf("%d\n",n+a))for(;~n&a|n&a*2;a*=2)n^=n&a?n%a+1^a:0;}
         main(n,a){for(;a=scanf("%d",&n)+~n&n;printf("%d\n",n+a|(n^n+a)/a/4));}
         (define (mod a b)
         (define (quot a b)
         (define (BitCount n)
         (define (SearchBitN n m)
         (define (AnEasyProblem n)
  • Basic알고리즘/팰린드롬/조현태 . . . . 9 matches
         #include <iostream>
         using namespace std;
         #define TRUE 1
         #define FALSE 0
         void main()
          cin >> buffur;
          int strSize = strlen(buffur);
          int nowCheck = strSize - 1;
          for (register unsigned int i = 0; i < strSize / 2; ++i)
  • BookShelf . . . . 9 matches
          1. ConceptsOfProgrammingLanguages
          1. [IntroductionToAlgorithms]
          1. [생각하는프로그래밍] ( [ProgrammingPearls] 번역서 )
          1. ProgrammingLanguageProcessorsInJava
          [http://dbmain.snu.ac.kr/maro/books.html 책]
          Art of UNIX Programming
         [ConceptualBlockbusting] - 20070210
         [Blink] - 20070228
         Generating Typed Dependency Parses from Phrase Structure Parses - 20070215
         A Maximum-Entropy-Inxpired Parser - 20070216
         [http://jania.pe.kr/wiki/jwiki/moin.cgi/BookShelf 강규영님 BookShelf]
  • C/Assembly/Main . . . . 9 matches
         int main(){ return; }
         .globl main
          .type main, @function
         main:
          addl $15, %eax // eax = 15 11110(Bin)
          shrl $4, %eax // eax = 0xF0000001 11110000000000000000000000000001(bin)
          sall $4, %eax // eax = 0x1F 00000000000000000000000000011111(bin)
         Windows OS가 아닌 DOS OS는 메모리의 관리를 Kernel(OS의 Core)이 아닌 Program에서 해주게 된다.
  • CNight2011/고한종 . . . . 9 matches
         sorting이랑 스택큐? 인가 한다고 했었는데 이것도 결국 안함 ㅋ
         int arr[5];
         printf("%d",arr);
         arr[i] = *&(arr[0]+sizeof(int)*i);
         arr[i][j] *&(arr[0][0] sizeof(int)*i*j+sizeof(int)*i); -> 맞겠지여...?
         C언어에서 int a[ 2]={1,2} 선언후 printf("%d",a[2]); 같은 경우도 허용하므로 언제 터지는지 알 수가 없었다..
         암튼 그래서 횟수를 측정할 int i;를 만들고
  • DataStructure/Stack . . . . 9 matches
          int data[Size];
          int top;
          bool Push(int ndata);
         bool Stack::Push(int ndata)
          int temp=top;
         == Linked List로 만든 Stack ==
          int m_nData;
          void Push(int x);
         void Stack::Push(int x)
  • Eclipse/PluginUrls . . . . 9 matches
          * ["Subversion"]을 사용할 수 있게 해 주는 Plugin
          * 위와 같은 에러 메시지가 뜬다면 Windows -> preference -> Team -> SVN 에서 SVN interface 를 JavaSVN -> JavaHL 로 변경해야 함
          * Memory 사용정보를 보여주고 ["GarbageCollection"]을 사용가능하게 해 주는 Plugin, 시간을 설정해두면 주기적으로 알아서 GC를 해줌.
         == CDT (C++ Plugin) ==
         == Pydev (Python Plugin) ==
          * [http://www.erin.utoronto.ca/~ebutt/eclipse_python.htm pydev]
         == PHPEclipse (PHP Plugin) ==
          * [http://www.myeclipseide.com/Downloads%2Bindex-req-viewsdownload-sid-10.html] 홈페이지
  • EffectiveSTL/VectorAndString . . . . 9 matches
          * 가장 많이 쓰는 vector, string에 관련된 팁 모음이다. 큰1장 후반부에는 모르는 내용(할당기 같은..)이 좀 많아서 일단 건너 뛰었다.
         = Item13. Prefer vector and string to dynamically allocated arrays. =
         == vector/string 을 쓰면 좋은 이유 ==
         == vector/string의 메모리가 필요할때 더 커가는 과정 ==
          * string에서는 ? 줄일지도 모른다.(--;)
         = Item15. Be aware of variations in string implementations. =
         = Item16. Know how to pass vector and string data to legacy APIS =
         = Item18. Avoid using vector<bool>. =
  • EnglishSpeaking/TheSimpsons/S01E01 . . . . 9 matches
         = Title : Simpsons Roasting on an Open Fire =
          * Interviewer + Teacher
         Marge : Hmm. I get the feeling there's something you haven't told me, Homer.
         Homer : I don't deserve you as much as a guy with a fat wallet...and a credit card that won't set off that horrible beeping.
         Marge : I think it does have something to do with your Christmas bonus. I keep asking for it,but--
         Homer : Well, I would- I- I wanna do the Christmas shopping this year.
         [EnglishSpeaking/TheSimpsons]
  • Favorite . . . . 9 matches
         [http://xper.org/wiki/seminar/RecentChanges XperSeminar]
         [http://www.passioninside.com 구근이형 개인위키]
         [http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Practices/Kata]
         [http://www.winapi.co.kr/ WINAPI]
         [http://www.cinsk.org/cfaqs/html/ C에서 자주묻는질문]
         [http://xper.org/wiki/xp/TestDrivenDevelopmentInCeeLanguage TDD in Cee]
         [http://www.aawoo.com/Main.do]
         [http://agile.egloos.com/ AgileConsulting]
  • GUIProgramming . . . . 9 matches
         = Windows Platform =
         == Windows Forms ==
         = x-window platform =
         모티프는 유닉스 환경하 X-Window, 혹은 POSIX 표준과 호환되는 시스템을 위해서 만들어진 툴킷이다. IEEE 1295 산업 표준으로 제정되어있으며, Motif API라는 표기법을 쓴다. 최근에는 Qt, GTK에 많이 밀리지만 여전히 많은 시스템에서 사용되는 툴킷이다.
          * http://wiki.python.org/moin/PyQt4
         자바로 작성된 프로그램에서 기본적으로 이용하는 API이다. 플랫폼에 독립적으로 제작된 툴킷이지만 내부 구현 상 플랫폼에서 제공하는 함수를 아주 낮은 수준의 추상화된 형태로만 제공하기 때문에 자바의 Platform-independable의 특성을 충분히 만족할 만한 수준은 못된다.
         === Swing ===
         최근 버전의 자바에서 이용하기 시작한 선사의 툴킷이다. 특징으로는 AWT보다 더욱 보기 좋은 그래픽을 제공한다. 또한 AWT와 달리 플랫폼에 비종속적이기 때문에 모든 플랫폼에서 동일한 모양을 보여준다. 그리고 클래스 라이브러리에 약간의 수정을 가함으로써 Windows 에서 기타 플랫폼 (예를 들자면 Mac)의 {{{~cpp Look&Feel}}}사용하는 것이 가능하다. 물론 -_-; 원칙적으로 특정 운영체제의 룩&필은 변경해서 응용프로그램을 개발하는 것은 정책상 불법의 범주에 속한다..
         [Programming]
  • Hacking . . . . 9 matches
         = Hacking =
          * Trinoo
          * tcpdump, windump, sniffit 과 같은 Tool이 있음.
          * Sniffing 에 대한 대비책
          * [http://www.insecure.org/nmap/] - port scan 외에도 OS의 정보를 알 수 있음.
          Upload:hacking.zip
          Upload:hacking2.zip
          Upload:hacking3.zip
          * [Hacking2004]
  • HaskellLanguage . . . . 9 matches
          * [http://en.wikibooks.org/wiki/Programming:Haskell Haskell Programming Wikibook]
          * [BeginningHaskellLanguage]
         == Haskell Interpreters ==
          * 저 위에보면, featuring static typing, higher-order functions, polymorphism, type classes and modadic effects 라고 있는데, 이것들이 아마 haskell language의 큰 특징들이 아닐까 한다. 각각에 대해서 알아두는게 도움이 될듯. ([http://www.nomaware.com/monads/html/ monad관련자료])- 임인택
          Multiple declarations of `Main.f'
         [[include(틀:ProgrammingLanguage)]]
  • HeadFirstDesignPatterns . . . . 9 matches
         - 2005 jolt award in general book
         - I received the book yesterday and I started to read it on the way home... and I couldn't stop, took it to the gym and I expect people must have seen me smile a lot while I was exercising and reading. This is tres "cool". It is fun but they cover a lot of ground and in particular they are right to the point.
         {{{Erich Gamma, IBM Distinguished Engineer, and coauthor of "Design Patterns: Elements of Reusable Object-Oriented Software" }}}
         {{{Ward Cunningham, inventor of the Wiki and founder of the Hillside Group}}}
  • Java/스레드재사용 . . . . 9 matches
          private static int id=0;
          private static synchronized int getID() { return id++;}
          public synchronized void interrupt () {
          thread.interrupt ();
          reThread.interrupt0 (this);
          protected synchronized void interrupt0(ReThread reThread) {
          thread.interrupt();
          ex.printStackTrace();
          ex.printStackTrace ();
          } catch(InterruptedException ignored) { }
  • JavaStudy2004/자바따라잡기 . . . . 9 matches
          자바는 가전 제품에 들어갈 소프트웨어를 만들기 위해 탄생했다. 자바를 개발한 사람은 선 마이크로시스템즈 사의 제임즈 고슬링(James Gosling)이라는 사람이다. 그는 특정한 컴퓨터 칩에 대해 컴파일하여야 하는 널리 알려진 컴퓨터 언어인 C 언어의 문제점, 또 가전 제품의 긴 수명으로 인한 완벽한 호환을 가진 소프트웨어의 개발 요구, 가전 제품에 사용될 소프트웨어의 높은 신뢰성 필요 등의 문제에 대한 해결방안을 모색 해야만 됬다.
          * No More Typedefs, Defines, or Preprocessor
          * No More Multiple Inheritance
          * No More Operator Overloading
          * No More Pointers
          출전 : 1997년 9월호 디스커버 잡지 72쪽에 실린, David Gelernter의 "Truth, Beauty, and the Virtual Machine".
          * http://zeropage.org/~iruril/jdk-1_5_0_01-windows-i586-p.exe
          * http://idaizy.com/util/eclipse-SDK-3.0-win32.zip
         http://myhome.naver.com/histidine/start/start_home.htm
         http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
  • LCD-Display/김상섭 . . . . 9 matches
         #include <iostream>
         #include <vector>
         using namespace std;
         int size, i, j, k, l;
         vector<int> test;
         int main()
          cin >> size >> num;
          cin >> size >> num;
  • LUA_3 . . . . 9 matches
         > if a == true then print ("Yes") else print ("No") end
         >> print ("a is false")
         >> print ("a is true")
         > for i = 1, 10, 2 do print(i) end
         > for i = 1,3 do print(i) end
         >> print (i)
         >> print (i)
         >> print(i)
  • Map/황재선 . . . . 9 matches
         #include <iostream>
         #include <string>
         #include <map>
         using namespace std;
         int main()
          string text = "ad md$ =i@@9z xy*@ -9z";
          for (int i = 0; i < text.size(); i++)
  • Map연습문제/조동영 . . . . 9 matches
         #include <iostream>
         #include <string>
         #include <map>
         using namespace std;
         int main()
          string h="wjgydlrtyffworxjbdzyrsybfwlrobffylryjbkyjrtbdcyyrvmbjlsrkugjglrmdcgdarjbjyftr";
          for (int i=0;i<h.size();i++)
  • MoniWiki . . . . 9 matches
         #keywords MoniWiki, WikiEngine, GPL
         MoniWiki is a PHP based WikiEngine. WikiFormattingRules are imported and inspired from the MoinMoin. '''Moni''' is slightly modified sound means '''What ?''' or '''What is it ?''' in Korean and It also shows MoniWiki is nearly compatible with the MoinMoin.
  • Ones/1002 . . . . 9 matches
          for each in valueStr:
          onesValue = int(theOnes)
         def main():
          print ones(int(raw_input()))
         if __name__=="__main__":
          #unittest.main(argv=('','-v'))
          main()
  • OurMajorLangIsCAndCPlusPlus/2006.2.06/하기웅 . . . . 9 matches
         #include <iostream>
         using namespace std;
         class newstring {
          newstring(char* s)
          int length() const
         ostream& operator << (ostream& o, const newstring& ns)
         int main()
          const newstring s="123";
  • PrimaryArithmetic/문보창 . . . . 9 matches
         #include <iostream>
         #include <cstring>
         using namespace std;
         void main()
          int num1[10], num2[10];
          int i, j, temp, count, carry, sumCarry;
          cin.getline(str, 22, '\n');
  • PrimaryArithmetic/황재선 . . . . 9 matches
          for bit in range(MAX-1, -1, -1):
          if each + int(b1) + int(b2) >= 10:
          print 'No carry operation.'
          print '1 carry operation.'
          print self.carry, 'carry operations.'
         if __name__ == '__main__':
          n1, n2 = raw_input().split()
          print n1, n2
  • ProgrammingPartyAfterwords . . . . 9 matches
         2002년 5월 19일 서강대에서 있었던 ["프로그래밍파티"] 후기 (see also ProgrammingPartyPhotos)
         다음으로는 요구사항에 대한 해설이 있었다. 당시의 문제는 http://no-smok.net/seminar/moin.cgi/ElevatorSimulation 에 가면 볼 수 있다.
         3시 40분쯤. 1002는 시간이 너무 지체된다고 판단, '처음부터 일반화 알고리즘을 생각하시는 것 보다는, 사람수 한명일때라 생각하시고 작업하신뒤 사람수는 늘려보시는것이 더 편할겁니다' 라고 했다. 이는, 금요일, 토요일때 미리 엘리베이터 시뮬레이션을 만들때 느낀점이긴 했다. Moa 팀에서는 동의를 했고 직원 한명에 대한 여정부분을 Hard-Coding 해나갔다.
         멘터인 1002는 '저렇게 하면 나중에 main 함수 어떻게 만들까.. OO Style 이라면 main 루틴 부분이 좀 짧긴 하겠지만, C 라면 좀 힘들지 않을까' 라고 생각, 5시가 가까워지는 4시 20분쯤에 각 모듈 부분을 통합할것을 제안 했다. 통합 중간중 의견 조율을 하는 중간에 ZP#2 멘터인 김창준씨는 두 팀으로 나누어졌을 때 서로 엇갈려서도 Pair 를 바꿔보도록 제안, Moa 의 두 팀은 한명씩 서로 바꾸어보기도 하며 일을 진행해 나갔다.
          * NoSmok:StructureAndInterpretationOfComputerPrograms 에 나온 Event-Driven Simulation 방식의 회로 시뮬레이션 [http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-22.html#%_idx_3328 온라인텍스트]
          * NoSmok:TheArtOfComputerProgramming 에 나온 어셈블리어로 구현된 엘리베이터 시뮬레이션 (NoSmok:DonaldKnuth 가 직접 엘리베이터를 몇 시간 동안 타보고, 관찰하면서 만든 알고리즘이라고 함. 자기가 타고 다니는 엘리베이터를 분석, 고대로 시뮬레이션 해보는 것도 엄청난 공부가 될 것임)
          * Discrete-Event System Simulation : 이산 이벤트 시뮬레이션 쪽에 최고의 책으로 평가받는 베스트셀러. 어렵지도 않고, 매우 흥미로움. [http://165.194.100.2/cgi-bin/mcu240?LIBRCODE=ATSL&USERID=*&SYSDB=R&BIBNO=0000351634 도서관]에 있음
          * Seminar:ElevatorSimulation 문제, 일반적인 discrete event simulation 패턴 소개 등
  • ProjectPrometheus/Iteration5 . . . . 9 matches
         Team Velocity : 5 Task Point.;
         || Task || Point || 진행여부 ||
         |||||| User Story : Login 후에 Search을 하고 책을 보면 추천 책이 나온다. ||
         || Task || Point || 진행여부 ||
         || Login AT || 1 ||.||
         || Login 후 검색해서 RS 여부 확인 AT || . || . ||
         || Task || Point || 진행여부 ||
         || Task || Point || 진행여부 ||
         || ["ProjectPrometheus/CollaborativeFiltering"] 설명 작성 || . || . ||
  • PyIde/SketchBook . . . . 9 matches
          ''스몰토크 비슷한 환경이 되지 않을까. 소스 코드의 구조적 뷰로는 LEO라는 훌륭한 도구가 있다. 크누스교수의 Literate Programming을 가능케 해주지. 나는 SignatureSurvey를 지원해 주면 어떨까 한다. --JuNe''
          * Source Folding - 화일 하나가 긴 경우라도 짧게 줄여놓고 쓰므로.
          * search - Function 이동시 편리. 게다가 일반 텍스트 에디터에 비해 search 기능을 수행하는 비용이 작다. / 한번, 그리고 바로 키워드 입력. (다른 녀석은? Ctrl+F , 키워드 입력, enter & enter. incremental search가 아닌 경우는 한단계가 더 있게 된다.)
         하지만, 손가락 동선의 경우 - ctrl + O 를 누르고 바로 메소드 이동을 한다. 일반 이동도 메소드 중간 이동은 CTRL +커서키. (이는 VIM 에서의 W, B) 위/아래는 커서키. 클래스로의 이동은 CTRL+SHIFT+T. Source Folding 도 주로 Outliner 에 의한 네비게이팅을 이용한다면 별로 쓸 일이 없다. 보통 의미를 두고 하는 행동들은 클래스나 메소드들 단위의 이동이므로, 그 밑의 구현 코드들에 대해 깊게 보지 않는다. (구현코드들에 대해 깊게 보는 경우가 생긴다면 십중팔구 Long Method 상황일것이다.)
         Python 으로 HTML Code Generator 를 작성하던중. 좀 무식한 방법으로 진행했는데, 원하는 HTML 을 expected 에 고스란히 박아놓은 것이다. 이는 결과적으로 test code 를 네비게이팅 하기 어렵게 만들었고, 해당 Generating 되는 HTML 의 추상도도 상당히 낮게 된다. 한화면에 보여야 할 HTML 데이터도 많아야 한다. 이는 결국 내가 에디터 창을 최대로 놓게 만들더니, 더 나아가 에디터 창의 폰트 사이즈을 11에서 8정도로 줄이고 모니터를 앞당겨 보게끔 만들었다. (15인치 LCD 모니터여서 해상도가 최대 1024*768 임.) 해당 상황에 대해 사람이 맞추는 것이 좋을까, 또는 툴의 Viewing 이 도움을 줄 방법이 있을까, 또는 사람이 이를 문제상황으로 인식하고 프로그램 디자인을 바꾸게끔 하는것이 좋을까.
         Wiki:FitNesse 의 맨 앞 문구 'Beyond Literate Programming' 이라는 말이 참 인상적으로 보인다.
         현재의 UML Case Tool들은 Beyond Literate Programming 일까?
  • RandomFunction . . . . 9 matches
         === in C/C++ ===
         #include <iostream> // 랜덤함수는 iostream에 포함되어 있습니다.
         #include <ctime> // time(0)의 사용을 위해 필요합니다.
         using namespace std;
         int main()
          int x = rand(); // rand()함수는 랜덤한 숫자를 리턴하는 함수입니다.
          int x1 = rand() % 10; // % 10 연산을 하면 x1 에는 10의 나머지가 될 수 있는
          int x2 = rand() % 9 + 1; // % 9를 하면 0~8까지의 숫자가 들어갈 수 있고
  • Server&Client/영동 . . . . 9 matches
          public static void main(String[] args) throws IOException
          System.out.println(server);
          System.out.println("접속을 기다립니다.");
          System.out.println(accepted);
          System.out.println("종료합니다.\n");
          public static void main(String[] args) throws IOException
          System.out.println(connect);
         ["JavaStudyInVacation/진행상황"]
  • SimpleTextIndexerUsingSQLite . . . . 9 matches
         = index.db 가 저장되는곳 =
         C:\Documents and Settings\namsang\Local Settings\Temp\index
         = setting.ini 설정 =
          * 아래 소스 참고 : D:\test 폴더가 없으면 뻑남. setting.ini 에서 폴더를 변경 하던지 만들던지
         Upload:indexer.zip
  • StepwiseRefinement . . . . 9 matches
         사실, TestDrivenDevelopment나 ["Refactoring"]의 상당 부분도 어찌보면 StepwiseRefinement의 연장선에 있다.
          * ["ScheduledWalk/석천"] : ["1002"]가 RandomWalk2를 StepwiseRefinement로 접근한 예
         Niklaus Wirth 교수의 ''Program Development by Stepwise Refinement''(1971, CACM 14.4) (http://www.acm.org/classics/dec95/ )와 EdsgerDijkstra의 [http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD227.PDF Stepwise Program Construction]을 꼬오옥 읽어보길 바랍니다. 전산학 역사에 길이 남는 유명한 논문들이고, 여기 소개된 SR은 Structured Programming에서 핵심적 역할을 했습니다. 당신은, 이 사람이 사용한 stepwise refinement에 상응하는 어떤 "일반적 문제 접근법 및 디자인 방법"을 갖고 있습니까? 이 글을 읽고 다른 문제에 stepwise refinement를 적용해 보십시오. Functional Programming이나 OOP에도 적용할 수 있습니까? 이 글을 읽고, 또 스스로 실험을 해보고 무엇을 배웠습니까? 이 stepwise refinement의 단점은 무엇이고, 이를 극복하는 방법은 무엇일까요? --김창준.
  • StuPId/정진경 . . . . 9 matches
         #include <stdio.h>
         #include <string.h>
         int main()
          int n;
          int i, j, k;
          int sum, q, qk;
          printf("Scenario #%d:\n%s\n\n", i, str);
  • TheLargestSmallestBox/허준수 . . . . 9 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
          double min_v = l < w ? l : w;
          cout << max_v << " " << 0.0 << " " << min_v/2 <<endl;
         int main()
          cout.setf(ios::showpoint);
          while(cin >> l >> w)
  • XOR삼각형/aekae . . . . 9 matches
         #include <iostream>
         using namespace std;
         const int MAX = 8;
         int main()
          int arr[MAX][MAX];
          for (int i=0; i<MAX; i++)
          int j,k;
          for (int h=j; h<MAX-1; h++)
  • XOR삼각형/곽세환 . . . . 9 matches
         #include <iostream>
         using namespace std;
         int main()
          int ar[10][10]={{0}};
          for (int k = 0; k < 10 - 1; k++)
          for (int i = 1; i < 10; i++)
          for (int k = 0; k < 10 - 1 - i; k++)
          for (int j = 0; j < i + 1; j++)
  • ZeroPage . . . . 9 matches
          * ZeroPage 가이드북 발간 - '''코드의 바다를 여행하는 ZeroPager를 위한 안내서''' [https://drive.google.com/file/d/0B5V4LW7YTwbjeDdDZk9ITmhvWmM/edit?usp=sharing 가이드북]
          * team 'ProteinMalloc' 35등 : [김태진], [곽병학], [권영기]
          * 11회 중앙대학교 프로그래밍 경진대회(Programming Championship)
          * 장려상(4등) : Online Judge - [정진경],[추성준]
          * 프로젝트 pinple : Pinple팀
          * PinPle 프로젝트 - [변형진],[안혁준],[김민재],[정진경],[김수경],[서민관],[서영주],[권순의],[김태진]
          * 2002 1회 [http://www.natepda.com/popup/winner.htm SK 모바일 프로그램 경진대회 대상 수상] ([\"erunc0\"])
          * 1992 동남은행 Firm banking system, 치관 운영 관리 프로그램, 세탁소 관리 프로그램, 세일 정보 통신 재해자 관리 프로그램
  • ZeroWiki에서 언어습관 . . . . 9 matches
         NeoCoin은 ZeroWiki 항해를 하면서 ZeroPage 가 [노스모크]와 다른 방향으로 위키의 언어 습관이 관습화 되어 가는 것을 관찰할수 있었습니다. ([노스모크]는 일상어보다 좀더 공개 석상에서 쓰이는 분위기, 어휘로 언어 습관이 형성되어 온것 같습니다.)
          ''과거 [노스모크]의 전례를 보았을때, 기존 회원들은 자연계처럼 자정작용이 언어습관에 적용되기를 바란것이 아닐까요? 제가 읽는 대부분의 커뮤니티에 저런 패턴의 글들이 자연 소멸했습니다. 지금 저 글을 읽기 힘들다는 느낌 자체가 신기한 경험입니다. 마치 "그놈은 멋있었다."를 읽다가 눈이 피곤한 느낌이라고 할까요? ''--NeoCoin
         요즘 제로위키 글을 읽다보면, 전자라서 읽다가 그만두는 경우가 종종 발생합니다. 심하게, '글쓴이가 글이 남에게 읽힐때의 고민이 전무하다' 라고 표현할까요? 읽다 보면, 기존에 쓰여진 글들이 매우 딱딱한 문장이 아님에도 채팅과 같은 글들이 밑에 있어서, 딱딱하게 보입니다. 기말고사 시험지에 써있는 낙서, 생각의 흔적들이랄까요? 묘하게 배치된 글들을 보면서, 시간과 공간의 경험이 서로 다른 사람들의 생각과 글들이 융화되기가 참 힘들다는 생각을 가집니다. --NeoCoin
          특히 NoSmok:단락나누기 와 같은 위키 쓰기에 관련한 교육이나 고민을 공유하는 시간이 적은 상태에서 진행방향은 점차 더 달라 지는 것 같습니다. 몇년후 [제로위키]는 상당히 특별한 색깔을 가지게 되지 않을까요? --NeoCoin
          문단의 내용이 확인을 부탁하는 것 같아서 답변 답니다.(그렇지 않다면, 중복 문단의 존재 이유가 없겠지요?) 전자의 문장은 잘 정리하셨습니다. 허나, ''앞으로 이모티콘이 가득한 위키라는 특별한 색깔을 [제로위키]가 가지리라는 의견이시고요.'' 에는 전체 긍정을 할수 없습니다. 아직 예단할수는 없지요. '가득가득'이라니요. 내년 신입 회원이 기대되기는 하지만요. --NeoCoin
          '' ...전략...위키는 과거글이 꾸준히 읽히고, 타인이 고칠수 있는 시스템입니다. 그래서 모두가 읽는데 의미 전달의 변이가 적은 표준어, 서술 형식으로 수렴되는 것을 당연하게 생각했습니다. (반대로, 게시판은 한번 쓰면 타인이 못고치고 다시는 읽지 않으니 분위기가 수렴되거나 하는 것이 적겠지요.) 그런데, [제로위키]는 최근 2년간의 모습이 재미있거든요? ...후략...'' --NeoCoin 윗글 인용
          * 예, 꾸준히 제기되는 문제입니다. 과거 글이 읽히는 것까지 위키라는 시스템이 책임지지는 않지요. 이제 [제로위키]도 2000페이지가 넘었고, 각 페이지당 A4 한장이라고 생각해도, 1000장의 두꺼운 사전이니까요. 휴~, 그 중 우리가 읽고 키울것은 많게 잡아도 20% 내외 일것입니다. (200~300 페이지) 당장 사용하는 것은 10% 정도? 그러나 위키 시스템의 철학적인 면에 대한 학습과 토론의 장이 전무한 상황에서 당연한 결과 같네요. [위키요정]과 NoSmok:문서구조조정 NoSmok:WikiGardening 등의 노력이 적은게 아쉽습니다.
         --NeoCoin
         --NeoCoin
  • callusedHand . . . . 9 matches
          * 최근 관심있는 밴드: LASSE LINDH, MANDALAY, PEDRO THE LION
          * Add-On Linux Kernel Programming
          * SWING - Beginning Java 2 & SWING
          * JDBC - Beginning Java 2
          * GTK++ - Teach Yourself GTK+ In 21days
          ''(move to somewhere appropriate plz) 논리학 개론 서적으로는 Irving Copi와 Quine의 서적들(특히 Quine의 책은 대가의 면모를 느끼게 해줍니다), Smullyan의 서적들을 권하고, 논리학에서 특히 전산학과 관련이 깊은 수리논리학 쪽으로는 Mendelson이나 Herbert Enderton의 책을 권합니다. 또, 증명에 관심이 있다면 How to Prove It을 권합니다. 대부분 ["중앙도서관"]에 있습니다. (누가 신청했을까요 :) ) --JuNe''
  • html5/communicationAPI . . . . 9 matches
          * 메세지 이벤트 : 자바스크립트 객체 ( data, origin, lastEventid, source, ports)
          * 송신 : postMessage(data, [ports], targetOrigin)
          * postMessage(data, [ports], targetOrigin)
          * targetOrigin : 메세지를 수신하는 도메인(프로토콜+도메인+포트번호)
          window.onmessage = function(e) {
          // origin 속성으로부터 송신처 확인
          if(e.origin == "http://localhost"){
          window.addEventListener("message", function(e) {
          destFrame.contentWindow.postMessage("메세지 내용", /*포트 생략가능*,/ "http://desc.example.com");
  • 강희경 . . . . 9 matches
          *[http://aragorn.bawi.org/interests/tao_of_programming_(korean).html]프로그램의 도
          *[http://aragorn.bawi.org/interests/tao_of_programming_(english).html]
          *[http://flash.hangame.com/index.nhn?navertc=1]
          *[http://www.kukkiwon.or.kr/tkskill/pomsae_index.asp?div=3]국기원
          *[http://xper.org/wiki/seminar/면접]
          *[http://xper.org/wiki/seminar/_b1_b9_be_ee_bd_c7_b7_c2_b0_fa_c7_c1_b7_ce_b1_d7_b7_a1_b9_d6]국어실력과프로그래밍
          그리고 시간이 되신다면, NoSmok:문서구조조정 도 읽어 보세요. 유익할 겁니다. 앞으로 수많은 글을쓰실때 도움될겁니다.--NeoCoin
  • 구구단/윤성복 . . . . 9 matches
         if __name__ == '__main__':
          for j in range(1,10):
          for i in range(2,6):
          print i,'*',j,'=',i*j,
          print ''
          for j in range(1,10):
          for i in range(6,10):
          print i,'*',j,'=',i*j,
          print ''
  • 구구단/임다찬 . . . . 9 matches
         #include <stdio.h>
         #include <conio.h>
         void gugudan(int range){
          int i,j;
          printf("%d * %d = %d\t",j,i,i*j);
          printf("\n");
          printf("\n\n");
         int main(void){
  • 데블스캠프2005/RUR-PLE/Harvest/이승한 . . . . 9 matches
         [데블스캠프2005/RUR-PLE/Harvest/Refactoring]
         def getSixBeepOneLine():
         def getTwoLine():
          getSixBeepOneLine()
          getSixBeepOneLine()
         ##main
         getTwoLine()
         getTwoLine()
         getTwoLine()
  • 데블스캠프2006/월요일/연습문제/for/김대순 . . . . 9 matches
         #include<iostream.h>
         void main()
          int i,j;
          int a,b;
         #include<iostream.h>
         void main()
          int i,j;
          int s=1;
          cin >> i;
  • 데블스캠프2006/월요일/연습문제/if-else/이장길 . . . . 9 matches
         #include <iostream.h>
         int main(void)
          int a,i;
          cin>>a;
         #include <iostream.h>
         int main(void)
          cin>>a;
  • 데블스캠프2006/월요일/연습문제/switch/김준석 . . . . 9 matches
         #include<iostream>
         using namespace std;
         void main(){
          int i;
          cin >> i;
          if(i==999) continue;
          cout << "잘못 했습니다 다시 해주세요" <<endl; continue;
          printf("%c:%d명\n",'A'+i,a[i]);
          printf("F:%d명\n",a[4]);
  • 데블스캠프2006/화요일/pointer/문제1/이장길 . . . . 9 matches
         #include <iostream.h>
         void swap(int *, int *);
         void main()
          int a = 1, b = 18;
         void swap(int *n, int *m)
          int save;
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2006/화요일/pointer/문제4/성우용 . . . . 9 matches
         #include <iostream>
         #include <string.h>
         using namespace std;
         int main()
          int i,n;
          cin>>buf;
          int length = strlen(buf);
  • 데블스캠프2009/수요일/OOP/박준호 . . . . 9 matches
         int num (int x)
         int num (int x, int y)
         int num (int x, int y, int z)
  • 데블스캠프2013/셋째날/후기 . . . . 9 matches
         = 김홍기 / WindowBuilder =
          * 개인적으로 저한테는 실용성으로 따지면 아마 이번 데블스 캠프 1위가 아닌가 싶을 정도로 마음에 드는 주제였습니다. Window Builder는 전에 순의 선배가 쓰시는 걸 봐서 이런 게 있는 건 알았지만 그래도 직접 써 보니 생각보다 더 좋군요. 아마 나중에 정말로 쓸 일이 많이 있지 않을까 싶습니다. - [서민관]
          * windowBuilder 쓸 줄 안다고 생각 했었는데 세미나 참여해보니 생각보다 많은 기능을 제공하는 플러그인 이었네요. 그래도 툴에 의존하면 안되니 Swing을 더 파야겠습니다. -[고한종]
          * net beans를 써봐서 인지 window 빌더에 그다지 거부감은 없던것같습니다. 다만, 이클립스내에서 사용할 수 있다는 점에서 좋은것같습니다. 이때까지 net beans랑 이클립스를 혼용해서 사용해왔었는데 좋은 플러그인을 직접적으로 알게되어서 좋았습니다.(window 빌더의 존재는 알았지만 사용해보기에 너무 귀찮아서 이때까지 사용할 기회를 못가졌었는데 가지게 되서 좋았습니다.) -[김윤환]
         = 김태진 / Machine Learning =
          * 개인적으로 좀 아쉬움이 큰 세션이었습니다. 물론 머신 러닝이 쉬운 주제가 아니라는 건 맞습니다. 하지만 오히려 그렇기 때문에 강사 입장에서는 최대한 난이도를 낮추기 위한 노력들을 할 수 있지 않았을까 하는 생각이 조금 남습니다. 적어도 새내기나 2학년 들이 머신 러닝이라는 뭔가 무서워 보이는 주제 앞에서 의욕이 사라질 수 있다는 생각을 했다면, 전체적인 알고리즘의 간단한 의사 코드를 보여주거나, DataSet을 줄인다거나 해서 조금 현실적인 시간 내에 결과를 보고 반복적으로 소스 코드를 손을 볼 수 있게 할 수 있지 않았을까요. 적어도 간단한 샘플 소스를 통해서 이 프로그램이 어떻게 돌아가는가, 어떤 input을 받아서 어떤 output을 내는가 등에 대해서 보여주었다면 더 재미있는 실습이 될 수 있지 않을까 하는 생각이 듭니다. 머신 러닝은 흥미로운 주제지만, 흥미로운 주제를 잘 요리해서 다른 사람들에게 흥미롭게 전해줄 수 있었는가를 묻는다면 저는 좀 아쉬웠다는 대답을 할 것 같습니다. - [서민관]
  • 로그인없이ssh접속하기 . . . . 9 matches
         == ssh login without password ==
          * [http://www.linuxproblem.org/art_9.html 참고글]
         Generating public/private rsa key pair.
         Enter file in which to save the key (/home/a/.ssh/id_rsa):
         Enter same passphrase again:
         Your identification has been saved in /home/a/.ssh/id_rsa.
         Your public key has been saved in /home/a/.ssh/id_rsa.pub.
         The key fingerprint is:
  • 마름모출력/남도연 . . . . 9 matches
         if __name__=='__main__':
          n=raw_input('패턴입력:')
          k=input('변의 길이 입력:')
          for x in range(1,2*k,2):
          print ' ' * ((2*k-x)/2),
          print 'n'* x
          for x in range(1,2*(k-1),2)[::-1]:
          print ' ' * ((2*k-x)/2),
          print 'n'* x
  • 마름모출력/문보창 . . . . 9 matches
          for i in range(size):
          print ' ' * (size - i),
          print pattern * (i * 2 + 1)
          for i in range(size+1):
          print ' ' * i,
          print pattern * ((size-i) * 2 + 1)
         if __name__== '__main__':
          pattern = raw_input()
          size = input()
  • 마방진/임민수 . . . . 9 matches
         #include <iostream>
         using namespace std;
         int const arsize = 11;
         void main()
          int num, garo=0, sero=0, cnt=1;
          cin >> num;
          int square[arsize][arsize]={0,};
          for (int i = 0 ; i <num; i++)
          for ( int j = 0 ; j < num ; j++)
  • 문자반대출력/Microsoft . . . . 9 matches
          _strrev (string)
          char *string;
          char *start = string;
          char *left = string;
          while (*string++)
          string -= 2;
          while (left < string)
          *left++ = *string;
          *string-- = ch;
  • 반복문자열/이강희 . . . . 9 matches
         #include <stdio.h>
         int print_n(int num)
          printf("%d. CAUCSE LOVE.\n", num);
         int main(void)
          int num = 1;
          print_n(num);
  • 반복문자열/이도현 . . . . 9 matches
         #include <stdio.h>
         #define loopSize 5
         void print_caucse(void);
         int main(void)
          print_caucse();
         void print_caucse(void)
          int i;
          printf("CAUCSE LOVE.n");
  • 상협/삽질일지/2002 . . . . 9 matches
          * Java 에서 강제 형변환을 C++ 스타일 int(변수), 이런식으로 하다가 수치해석 그래프를 자바로 못 그렸다. ㅠㅜ 그래서 MFC로 하다가 나중에 Java로 짜놓았던 Tridiagonal Matrix 가 MFC로 옮기면서 각종 문제가 발생... 다시 Java로 하려다가, 예전의 형 변환의 문제 발생..ㅠㅜ, 결국 MSN으로 형들에게 물어봐서 자바에서 형 변환은 (int)변수 이런식밖에 안된다는 것을 알았다. 기본에 충실하자.. ㅡㅡ;
          * Driver driver = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); 이거 할때 메인 함수에서 throws Exception 를 하지 않으면 thrown 을 잡거나 선언 해야만 한다는 메시지가 뜬다. 아직 이유는 모르겠다.
          * Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 이거는 main 함수 내부가 아닌 곳에서는 에러 뜬다. 엄청 삽질했다. ㅠㅜ 아직 이유는 모르겠다.
          ''Exception Handling 에 대해서 이해해야 할 것 같은데. Exception 은 해당 함수가 throws 등으로 발생을 시키고, Java 의 경우 그 Exception 을 반드시 처리를 해주는 곳을 만들어야 하지. 해당 메소드 내에서 Exception 이 발생은 하는데, 그 메소드에서 예외처리를 바로 하고 싶지 않으면 (즉, 그 Exception을 그 메소드 내에서 처리하지 않고, 그 메소드를 호출했던 곳 등에서 처리를 한다고 한다면) throws 로 해당 메소드에서 exception 을 또 던져주는 식으로 되겠지. 만일 Class.forName(...) 쓴 구문을 try - catch 로 예외를 또 잡는다면 이야기가 다르겠지만. 자바는 Exception 를 강요하는 관계로 예외는 catch 에서 무엇을 하건, 반드시 해당 발생된 예외를 잡아줘야 함. (그 덕에 최악으로 뻗을 일이 적지. 예외는 발생하더라도) --석천''
          * 지금까지 자바에서 if(String1 == String2) 이게 안 먹혀서 계속 고생 했다. 알고 보니 String Class 의 CompareTo 메소드를 사용해야 했다. 허접 삽질.. ㅡㅡ;
          * 오늘은 그렇게 큰 삽질은 아니지만 요새 별다른 삽질이 없어서 적어본다. 오늘 비행기게임 프로젝트를 하고 있는데 파일에서 적 비행기 경로를 읽어와서 실행하는거를 하는데 이상하게 계속 안되는 것이었다. 분명히 난 맞게 텍스트 파일에 적이 나올 위치를 숫자로 적었고, 정확한 명령어를 사용했는데 말이다. 그래서 계속 삽질하다가 잠깐 밖에 나갈 일이 생겼다. 그런데 걷다가 곰곰히 생각하니깐 왠지 파일읽어 온것을 프로그램에서 string 형으로 생각한거 같았다. 그때 아차 하는 생각이 들었다. 역시 삽질은 안된다고 계속 반복하기보다는 원인을 곰곰히 생각해야 한다는 교훈을 얻었다. 뭐 몸이 그렇게 안따라 주지만. ㅡㅡ;
          * 간만에 쓴다. 삽질일지.. -_-;; 그동안 너무 놀았나.. 쩝.. 이번 삽질은 내가 처음으로 환타스탁한 소켓 플밍 연습하는데, API로 작성된 WinSock 소스 가지고 send랑 recv 가지구 놀고 있는뎅... 글자가 계속 깨져 나왔당.. 미치고 환장할일.. -_-;; 정모때 남훈이형이 어떻게 해서 되기는 되었는데 이유는 몰랐다.. 그래서 희망을 안 버리고 계속 삽질 해봤는데.. send랑 recv의 타이밍이 서버와 클라이언트가 맞지 안아서 였다.. 쩝..테스트 결과 서버가 send먼저 하고 클라이언트가 recv하면 깨져 나왔당..서버가 recv하고 클라이언트가 send하면 글씨가 안깨진다..-_-;;.. 이게 규칙인가~ 쩝.~
  • 새싹교실/2011/무전취식/레벨3 . . . . 9 matches
          == ICE Breaking ==
          * printf()와 scanf()함수의 쓰임에 대해 말해주었습니다. %c %d %l %f %%등등.
          * 간단한 Array에대한 소개. 다음시간에 더 자세히 말해주겠습니다. int {{{a[10];}}}
          * unsinged int와 int의 차이점? 표현 범위가 어디서부터 어디까지? WHY??? 다시한번 생각해봅시다.
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2011/앞반뒷반그리고App반 . . . . 9 matches
          * [The C Programming Language]. 일단은.
          #include <stdio.h>
          #include <assert.h>
          int main(){
          int n=1;
          Assertion failed: (n>100), function main, 과 같이 오류뜨면서 프로그램이 종료됨.
          * 시험기간 직전에 질문시간이었어요. ~~저밖에 오지 않았지만~~ 이날 새롭게 배운것은 (수업시간에 필요없다고 넘긴것이라 필요없었음에도 잔다고 필요없다는 사실을 몰랏음) redirection이었는데요! 뭐냐니 input과 output을 바로 프로그램에서 받고 띄우는 것이 아니라 다른 문서에서 불러오거나 집어넣는 것이었어요. 지금까지는 인풋은 무조건 scanf로 직접 넣었는데, 그것과는 다른것!!이었죠. 사실 방법은 지금 잘 기억나지를 않네요 -_- 아무튼 이런 신기한걸 배웠습니다. -[김태진]
          * 오늘은 포인터를 배웠어요. ********별-. 선언할 때 int *a;로 선언하게 되면 *a는 a의 주소에 있는 값을 나타내는거였지요. 음.. 하다가 현 형이 하던 프로젝트에 잠깐 지워놓고 예시를 들었다가 xcode를 끄는 바람에 소스가 날라가버렸지요.... 포인터가 있으면 지정된 크기보다 큰 용량의 자료도 불러오기 쉽다는 것도 배웠구요. 아무튼 유용하게 쓸 수 있을거 같아요 -[김태진]
  • 새싹교실/2012/해보자/과제방 . . . . 9 matches
         #include <stdio.h>
         int main(void){
          int i=0,j=0;
          printf(" ");
          printf("%d",i+1);
          printf(" ");
          printf("%d",i+1);
          printf("\n");
  • 쓰레드에관한잡담 . . . . 9 matches
         process scheduling은 크게 두가지로 나뉜다.
         2. time-sharing process
         여기서 time-sharing 을 설명한다.
         Linux에서는 크게 두가지의 thread를 지원한다.
         Linux에서 멀티 프로세스 개념인 fork()는 내부적으로 do_fork()란 Kernel 함수를 호출하며, do_fork()는 내부적으로 user thread인 POSIX기반의 Mutex를 사용한다.
          int num = *(int *)arg;
          int i;
          printf("%d: sum+=%d\n", num, i);
  • 연습용 RDBMS 개발 . . . . 9 matches
         #include <stdio.h>
         #include <math.h>
         int main(void)
          int num, sqrt_num, n, result=0;;
          printf("양의 정수를 입력 하세요 : ");
          sqrt_num = (int)sqrt((double)num);
          printf("숫자 %d : %s\n\n", num, result ? "소수가 아닙니다." : "소수입니다.");
          printf("양의 정수를 입력 하세요 : ");
  • 정렬/aekae . . . . 9 matches
         #include <fstream>
         using namespace std;
         int main()
          ifstream fin("input.txt");
          int number[10000];
          int i,j,k,temp;
          fin >> number[i];
  • 정렬/변준원 . . . . 9 matches
         #include<iostream>
         #include<fstream>
         using namespace std;
         int main()
          ifstream fin("UnsortedData.txt");
          int sorted[10000];
          int i,j,k,sort;
          fin >> number[i];
  • 정모/2002.5.30 . . . . 9 matches
          * PairProgramming 에 대한 오해 - 과연 그 영향력이 '대단'하여 PairProgramming을 하느냐 안하느냐가 회의의 관건이 되는건지? 아까 회의중에서도 언급이 되었지만, 오늘 회의 참석자중에서 실제로 PairProgramming 을 얼마만큼 해봤는지, PairProgramming 을 하면서 서로간의 무언의 압력을 느껴봤는지 (그러면서 문제 자체에 대해 서로 집중하는 모습 등), 다른 사람들이 프로그래밍을 진행하면서 어떠한 과정을 거치는지 보신적이 있는지 궁금해지네요. (프로그래밍을 하기 전에 Class Diagram 을 그린다던지, Sequence Diagram 을 그린다던지, 언제 API를 뒤져보는지, 어떤 사이트를 돌아다니며 자료를 수집하는지, 포스트잎으로 모니터 옆에 할일을 적어 붙여놓는다던지, 인덱스카드에 Todo List를 적는지, 에디트 플러스에 할일을 적는지, 소스 자체에 주석으로 할 일을 적는지, 주석으로 프로그램을 Divide & Conquer 하는지, 아니면 메소드 이름 그 자체로 주석을 대신할만큼 명확하게 적는지, cookbook style 의 문서를 찾는지, 집에서 미리 Framework 를 익혀놓고 Reference만 참조하는지, Reference는 어떤 자료를 쓰는지, 에디터는 주로 마우스로 메뉴를 클릭하며 쓰는지, 단축키를 얼마만큼 효율적으로 이용하는지, CVS를 쓸때 Wincvs를 쓰는지, 도스 커맨드에서 CVS를 쓸때 배치화일을 어떤식으로 작성해서 쓰는지, Eclipse 의 CVS 기능을 얼마만큼 제대로 이용하는지, Tool들에 대한 정보는 어디서 얻는지, 언제 해당 툴에 대한 불편함을 '느끼는지', 문제를 풀때 Divide & Conquer 스타일로 접근하는지, Bottom Up 스타일로 접근하는지, StepwiseRefinement 스타일를 이용하는지, 프로그래밍을 할때 Test 를 먼저 작성하는지, 디버깅 모드를 어떻게 이용하는지, Socket Test 를 할때 Mock Client 로서 어떤 것을 이용하는지, 플밍할때 Temp 변수나 Middle Man들을 먼저 만들고 코드를 전개하는지, 자신이 만들려는 코드를 먼저 작성하고 필요한 변수들을 하나하나 정의해나가는지 등등.)
         일반적으로 피시실 등이나 세미나때에 선배들과 이야기하고, 선배들에게 조언을 들으면서 프로그래밍을 하는 것과 프로그램의 처음 작성부터 PairProgramming 을 하는 경우가 어떤 차이가 있을지 생각을 해보고 이러한 '페어가 저절로 진행되어서' 라고 결론을 내렸으면 합니다.
         문제를 내 주고 난 다음에 선배들과 이야기하면서 프로그래밍을 하는 경우, Programming 의 주도자는 문제의 당사자인 후배가 됩니다. 하지만, 문제를 풀어나가는 순서 (즉, 문제를 받고, 컴퓨터 앞에 앉았을때부터의 작업 진행과정들)는 여전히 후배들의 순서를 따르게 됩니다.
         초반 3일정도는 스스로의 방법으로 (주어진 플랫폼(?)에서 한계에 다다를 정도까지라고 할까요.) 해결해보도록 한 뒤, 그 이후쯤에 선배들과의 PairProgramming을 해보는 (위의 처럼, 문제 해결방법 순서까지 보여주는.) 것은 어떨까 하는 생각을 해봅니다. 위에 열거한 저러한 것들도 자신이 원하지 않으면, 또는 자신이 민감하지 않으면 관찰자체를 하지 않는 것들이니까요. --1002
  • 정모/2005.4.25 . . . . 9 matches
         [[HTML(<span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=black><b>)]]
          SSP 확정으로 인해 windows 기반으로 수업하게 될듯.
          * [BeingALinuxer] - [임인택]
          참여를 희망하는 사람은 [BeingALinuxer]에서 member에 추가.
          * [[HTML(<span style="font-size:9pt; letter-spacing:-1px;"><font face="Verdana" color=ff4500><b>)]]오는 사람한테는 회비로 식사제공 (예상메뉴 : 피자)[[HTML(</b></font></span>)]]
          * windows 재설치/Linux 설치
  • 정모/2012.3.12 . . . . 9 matches
          * [변형진]의 [http://zeropage.org/seminar/59923 Type Safety using Java Generics].
          당장 학우들이 학교에서 배우는 버전은 아마도 Java SE 5.0과 6일 것이므로 혼란을 피하기 위해 JLS 3e 기준으로 설명했습니다. Java SE 7의 JLS SE7e 에서는 The Diamond <>를 이용한 Type inference가 추가된 것이 가장 큰 특징이지요. 이를테면,
          Map<String, List<Person>> m = new HashMap<String, List<Person>>(); // JLS, 3e
          Map<String, List<Person>> m = new HashMap<>(); // JLS, Java SE 7e
          * 요즘은 C++0x를 봐도 그렇고, Java를 봐도 그렇고.. type inference를 선호하는 것 같네요?ㅋㅋ -[박성현]
          * 사고가 확장되는 건 언제나 즐거운 일이네요. 수학의 기본 정의를 이용하여 Data type을 설명하신 것을 보며, 놀라웠습니다. 프로그래밍 관련 생각을 할 때 마다, 매번 '아 나의 사고(thinking)의 도메인이 너무 작어 ㅜㅜ'라는 생각을 많이 하였는데, Data type의 정의를 들으면서 '내가 평소에 인지(recognize)하지 못했기 때문에, 깊게 생각해보려고 해도 다른 분야의 개념들이 자연스럽게 생각이 떠오르지 않는구나.'라는 생각을 해보게 되었습니다. 이런 건 계속 연습을 해야겠지요 ㅜㅜㅋ 뒤쪽 부분도 상당히 흥미로웠습니다만.. 어제 몸이 아파서 밤에 잠을 못 잔 관계로; 결국 OMS듣다가 정신이 안드로메다로 날아가서 제대로 못들었네요.. 그리고 회장은 항상 수고하네요. 갑자기 많은 일을 하게 되었을텐데 수고하십니다 ㅋ -[박성현]
  • 정모/2012.5.21 . . . . 9 matches
         === from NeoCoin ===
          * [http://en.wikipedia.org/wiki/Lightning_talk Lightning Talk]
         어떤 모임에서 의도하지 않게 Speed geeking 의 일부 방식으로 이야기를 하게되었는데,
          * [http://en.wikipedia.org/wiki/Speed_geeking Speed geeking]
         1.5 시간동안 지루하지 않고 꽤 재미있게 기술적인 토론을 할 수 있었습니다. OST에 적용도 좋고 혹은 Speed geeking 을 코딩 작업이 끝난후에 소규모로 서로 코드 리뷰를 하면서 고학년의 의견을 붙이는 것도 좋을 것 같아요.
         참고하세요. --NeoCoin
          * speed geeking 재미있겠네요!!ㅋㅋ - [서지혜]
  • 졸업논문/요약본 . . . . 9 matches
         Web environment has became a standalone platform. Object-oriented languages, such as python, are suitable for web. Django is a web application framework written by python, and helps web developers writting web application more agile by abstracting database. Django provides high level abstraction on database, higher than CLI which uses ODBC. Django, for instance, creates database tables when developer writes classes in python, and modifies tables when developer modifies classes in python. In addition, django helps developers using database on host-language(python) level by abstracting insertion, deletion, update, retrieving of recodes to class method. Therefore, web developers make programs more agile.
  • 주민등록번호확인하기/정수민 . . . . 9 matches
         #include <stdio.h>
         void main()
          int k,i;
          printf("주민번호 를 하이폰없이 입력\n");
          printf("%d ",a[i]);
          if (k==a[12]) printf("대한민국 국민이네요~ ^^ 안녕하세요!");
          else if (k==10) {if (a[12]==0) printf("대한민국 국민이네요~ ^^ 안녕하세요!");}
          else printf("혹시 간첩???? -_-;;");
         오오오 일등이다 'ㅅ'// - 태훈[zyint]
  • 중위수구하기/남도연 . . . . 9 matches
          int x,y,z,center;
          void input();
         #include <iostream.h>
         #include "hahaha.h"
         void Mid :: input(){
          cin>>x>>y>>z;
         #include "hahaha.h"
         void main(){
          center.input();
  • 프로그래밍언어와학습 . . . . 9 matches
          * 학교에서 C++ 배운다고 하드웨어 건드리나. -_-; (전전공이라면 몰라도..) 컴퓨터공학과의 경우 학교에서 C++ 배워도 어셈블러 레벨까지 다루는 사람이 별로 없다고 할때, C++ 을 배웠다고 시스템레벨 까지의 깊은 이해가 필요없었다는 점인데.. 글을 읽으면, 마치 '교육용 언어로 C, C++ 을 배웠다면 시스템 레벨까지 이해할 것' 처럼 쓴 것 같다고 생각. (C, C++ 포인터를 레퍼런스 이상의 개념으로 쓴적이 있었나.. --a) 차라리 '우리는 전전공 출신에 하드웨어제어 해본 사람 뽑습니다' 라고 할것이지..쩝. Domain-Specific 한 부분을 생각치 않고서는 시스템 프로그래머에게서는 늘 자바와 Script Language 는 '군인을 나약하게 만드는 무기' 일 수밖에 없으니까.
          * Language != Domain. 물론, Domain 에 적합한 Language 는 있더라도. 이 글이건 Talkback 이건.. 두개를 동일시 본다는 느낌이 들어서 좀 그렇군. (나도 가끔은 Java Language 와 Java Platform 을 똑같은 놈으로 보는 우를 범하긴 하군. -_-;)
         The fatal metaphor of progress, which means leaving things behind us, has utterly obscured the real idea of growth, which means leaving things inside us.
  • 프로그래밍잔치/첫째날후기 . . . . 9 matches
         === Think Different! 낯선언어와의 조우 ===
         학부생이 공부해볼만한 언어로는 Scheme이 추천되었는데, StructureAndInterpretationOfComputerPrograms란 책을 공부하기 위해서 Scheme을 공부하는 것도 그럴만한 가치가 있다고 했다. 특히 SICP를 공부하면 Scheme, 영어(VOD 등을 통해), 전산이론을 동시에 배우는 일석삼조가 될 수 있다. 또 다른 언어로는 Smalltalk가 추천되었다. OOP의 진수를 보고 싶은 사람들은 Smalltalk를 배우면 큰 깨달음을 얻을 수 있다.
         >>> handan=lambda a:[a*b for b in range(1,10)]
         >>> gugudan=lambda :[handan(a) for a in range(1,10)]
         >>> gugudan=[[a*b for b in range(1,10)] for a in range(1,10)]
         >>> gugudanpair=[(a,b) for a in range(2,10) for b in range(1,10)]
         >>> printgugupair=lambda pair: sys.stdout.write("%d * %d = %d\n"%(pair[0],pair[1],pair[0]*pair[1]))
         >>> ign=map(printgugupair,gugudanpair)
  • 피보나치/손동일 . . . . 9 matches
         #include<iostream>
         using namespace std;
         int abc(int x);
         void main()
          int a;
          cin >> a;
         int abc(int x)
  • 화이트헤드과정철학의이해 . . . . 9 matches
         계속 화이트헤드에 주목하는 이유라면 (김용옥씨 관점의 화이트헤드해석일지도 모르겠다. ["이성의기능"] 때문이지만.) 점진적 발전과 Refactoring 에서 뭔가 연결고리를 흘핏 봐서랄까나. 잘못하면 뜬구름 잡는 넘이 될지 모르겠지만. 이번에도 역시 접근방법은 '유용성' 과 관련해서. 또 어쩌면 용어 차용해서 써먹기가 될까봐 걱정되지만. 여유를 가지고 몇달 생각날때 틈틈히 읽으려는 책.
         비유의 아이디어로서 ["NumericalAnalysisClass"] 때 배운 Interpoliation 기법들이였다. 수치해석시간의 Interpolication 기법들은, 몇몇개의 Control Point들을 근거로 Control Point 를 지나가는 곡선의 방정식을 구하는 법이다. 처음 Control Point 들의 갯수가 적으면 그만큼 오차도 많지만, Control Point 들을 늘려가면서 점차 본래의 곡선의 모양새를 수렴해간다.
         Control Point 들은 일상의 경험들이다. 그 경험들이 삶의 방정식들을 만들어간다. 비록 그 방정식들이 오차가 많을지더라도, (라그랑주일지, Cubic Spline 일지. 어쩌면 결국 현실을 누가 더 잘 설명하느냐라는 유용성의 문제일까) 어느정도 유용하다. 공식이 완성된 선은 재계산과정없이 빨리 그릴 수 있다.
         우리는 진리를 찾기 위해 오늘도 자신의 공식에 Control Point 를 하나더 추가하고 있는것일지도 모른다. (단, 라그랑주일경우엔 좀 더 정확해보이는 Cubic Spline 으로 페러다임 전환을 하자. ^^;)
  • 0PlayerProject/프레임버퍼사용법 . . . . 8 matches
         #include <io.h>
         #include <fcntl.h>
         #include <linux/fb.h>
         #include <sys/mman.h>
         int main()
          int fd;
  • 2010Python . . . . 8 matches
          * 교재 : How to think like a computer scientist
          * [박정근] - python의 특이한 배열? keyindex를 지정가능하고 순서대로 출력도 가능함. 그리고 python은 지정하는것이 특기인 듯
          * [http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/index.htm MIT Open Courseware 6.00 Introduction to Computer Science and Programming]
  • 5인용C++스터디/작은그림판 . . . . 8 matches
         || 문원명 || Upload:MinipaintMwm.zip || 잘했음. ||
         || 황재선 || Upload:MiniPaintHJS.zip || 잘했음. ||
         || 나휘동 || Upload:Leonardong_paintingboard.zip || 잘했음. ||
         || 노수민 || [http://165.194.17.15/pub/upload/MiniPaintMFC_SM.zip] || 색칠 기능이 없음. ||
  • AcceleratedC++/Chapter0 . . . . 8 matches
         == Chapter 0 Getting Started ==
         #include <iostream>
         int main() {
         main 함수의 리턴형과 리턴값
          main 함수의 리턴형은 ISO/ANSI C++ 표준에서 int로 정하고 있다. 리턴값은 프로그램이 아무런 에러 없이 종료되는 경우에는 0을 리턴하도록 되어 있고, 에러가 발생해서 종료한 경우에는 0 이외의 값을 리턴하도록 되어있다. 이 값은 OS로 돌려지는 값이기는 하지만 OS에서 이것에 따라 특별히 처리하는 것은 없기 때문에 일반적인 경우에는 이 값은 아무런 의미가 없다. 이 값을 이용할수 있는 방법으로는 exec... 함수를 이용하여 프로그램을 실행해주고 받아오는 방법 등이 있다.
          첫번째 문장을 계산하면 a라는 변수에 10을 대입하면 되고 결국 남는것은 a밖에 없으므로 a의 값이 최종 결과가 된다. 두번째 문장을 계산하면 std::cout과 "Hello World!!"를 왼쪽 쉬프트 연산을 하고 나온 결과가 최종 결과가 된다. 실재로 연산 결과가 std::cout 이고 이것이 최종 결과가 된다. 여기서 왼쪽 쉬프트 연산이 과연 std::cout과 "Hello World!!" 사이에서 가능한 것인가 라는 의문을 갖게 될수도 있겠지만 C++에는 연산자 재정의(operator overloading) 라는 것이 있기 때문에 이런것을 충분히 가능하게 만들수 있다고만 알고 넘어가기 바란다. 여기서 두번째 문장을 자세히 알고 넘어갈 필요가 있다. 두번째 문장도 앞에서 설명했듯이 계산 가능한 식이고, 결국 실행되면 계산이 수행되지만 그것과 더불어 일어나는 일이 한가지 더 있는데, 바로 표준 출력으로 "Hello World!!" 가 출력된다는 것이다. 이렇게 계산되어지는 과정에서 계산 결과와 더불어 나타나는 것을 side effect라고 한다. 첫번째 문장과 같은 경우에는 side effect가 없다. 다음과 같은 두 문장이 있다고 하자.
  • AirSpeedTemplateLibrary . . . . 8 matches
         http://airspeed.pythonconsulting.com/wiki
         '''Why another templating engine?'''
         A number of excellent templating mechanisms already exist for Python, including Cheetah, which has a syntax similar to Airspeed.
         However, in making Airspeed's syntax identical to that of Velocity, our goal is to allow Python programmers to prototype, replace or extend Java code that relies on Velocity.
  • AnEasyProblem/강성현 . . . . 8 matches
         #include <iostream>
         using namespace std;
         int main(void) {
          int i, c = 0;
          cin >> i;
          int temp = i;
          int temp = ++i, cc = 0;
  • Apache . . . . 8 matches
         [ZeropageServer]도 [Linux]와 [Apache]를 이용하여 서비스를 제공한다.
         [http://www.superuser.co.kr/apache/index.htm]
         비슷한 놈으로는 InternetInformationService (IIS) 가 윈도우 환경에서 MS에 의해서 제공되고 있음.
         Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
          * [http://www.wallpaperama.com/forums/how-to-fix-could-not-determine-the-servers-fully-qualified-domain-name-t23.html 위문제상황해결링크]
  • BeeMaja/하기웅 . . . . 8 matches
         #include <iostream>
         using namespace std;
         int willy, direction, step, mNum;
         int row, col;
         void getMaja(int wNum)
         int main()
          while(cin>>willy)
  • BookShelf/Past . . . . 8 matches
          1. ExtremeProgrammingExplained 2e - 20052021
          1. 리스크관리(WaltzingWithBear) - 200450407
          1. ExtremeProgrammingInstalled - 20050508
          1. [BuildingParsersWithJava] - 20050916
          1. [Downshifting] - 20051008
          1. [TheElementsOfProgrammingStyle] - 20051018
          1. [MindMapBook] - 20060123
          1. [IntroductionToTheTheoryOfComputation]
  • ComputerNetworkClass/Exam2006_2 . . . . 8 matches
         인터넷 보안 관련된 문제에서 문제로 출제 될 만하다고 생각했던 부분인 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)에 대한 설명과 수업때 배운 보안기술들을 분류하고 설명하는 문제임.
          playback point, playback time 에 대한 이해를 묻는 문제임. adaptive playback 에대한 문제도 출제되었음.
          Integrated Service(flow-based), Differentiated Service(service-based) 에대한 전반적인 이해를 하는 문제. 해당 기법에 WFQ를 적용하는 방법에 대한 이해를 묻는 문제로 약간 응용해서 적으란 것으로 보임. 책에 DS에 대한 설명은 WRED, RIO에 대한 설명만 되어있었고, 이 방식은 Queuing 에 의한 WFQ의 사후 처리가 아닌 사전 체리에 관련된 내용이었음. 솔직히 WFQ 왜 냈는지 모르겠음. -_-;;
  • CubicSpline/1002/CubicSpline.py . . . . 8 matches
         class MainFrame(wxFrame):
          def __init__(self, parent=NULL, id=NewId(), title='Graph', pos=wxDefaultPosition, size=wxDefaultSize):
          wxFrame.__init__(self, parent, id, title, pos, size)
          self._initChildControl()
          def _initChildControl(self):
          def OnInit(self):
          frame = MainFrame(pos=(100,100), size=(720,400))
         if __name__=="__main__":
          theApp.MainLoop()
  • FactorialFactors/1002 . . . . 8 matches
         그리고 F, Count 들에 대해서 caching 을 진행할 수 있으리라 생각, 다음과 같이 풀음.
          def __init__(self):
          for e in xrange(2,half+1):
          total = sum((CountFunc(i) for i in xrange(2,n+1)))
         def main():
          for i in [2,5,8,1996,123456,1000000]: print factorialFactor(i)
          * 알고리즘의 속도를 보니 Counter 부분이 O(n^2) 이다. caching 을 함에도 그렇다는 것은 무언가 다른 접근법이 있으리라.
  • HanoiTowerTroublesAgain! . . . . 8 matches
         [http://online-judge.uva.es/p/v102/10276.html 원문보기]
         === About [HanoiTowerTroublesAgain!] ===
         [http://online-judge.uva.es/p/v102/p10276.jpg]
         === Input ===
         === Sample Input ===
          || 문보창 || C++ || 10분 || [HanoiTowerTroublesAgain!/문보창] ||
          || 황재선 || Java || 50분 || [HanoiTowerTroublesAgain!/황재선] ||
          || 하기웅 || C++ || 원랜 1시간, 문보창 XXX 때문에 말렸음ㅡㅡ; || [HanoiTowerTroublesAgain!/하기웅] ||
          || 이도현 || C++ || Closed Form 구하는 데(1시간 30분), 코딩 5분 || [HanoiTowerTroublesAgain!/이도현] ||
          || [조현태] || C++ || ? || [HanoiTowerTroublesAgain!/조현태] ||
  • HelpOnInstallation . . . . 8 matches
         `rcs`가 설치되었는지 확인한다. {{{/usr/bin/rlog /usr/bin/ci /usr/bin/co}}}등등의 실행파일이 있어야 한다. {{{/usr/bin/merge}}}도 필요하다. PHP gettext 모듈이 필요하다. See also MoniWikiRcs
          * 윈도우즈에서 모니위키를 설치하는 방법은 ApacheMoniwikiInstaller을 참고 하십시오.
         /!\ 처음 설치할 때 관리 비밀번호 {{{$admin_passwd}}}를 반드시 설정해 주세요 /!\
          1. MoniSetup을 실행시킬 때, {{{$admin_passwd}}}를 설정하면 자신만 DeletePage할 수 있다. 이 값을 설정하면, 차후에 MoniSetup을 할 때 이 값을 알아야 고칠 수 있으며, config.php에 이 값이 들어가므로 수동으로 고칠 수 있다. See also AdminPassword
         [[Navigation(HelpOnAdministration)]]
  • IsThisIntegration?/허준수 . . . . 8 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         #define PI 3.141592
         int main()
          cout.setf(ios::showpoint);
          while(cin>>a) {
         [IsThisIntegration?]
  • Java Study2003/첫번째과제/노수민 . . . . 8 matches
         자바의 주된 특징은 기존의 C/C++ 언어의 문법을 기본적으로 따르고, C/C++ 언어가 갖는 전처리기, 포인터, 포인터 연산, 다중 상속, 연산자 중첩(overloading) 등 복잡하고 이해하기 난해한 특성들을 제거함으로써 기존의 프로그램 개발자들이 쉽고 간단하게 프로그램을 개발할 수 있도록 합니다.
         자바는 C++와는 달리 처음부터 객체지향 개념을 기반으로 하여 설계되었고, 객체지향 언어가 제공해 주어야 하는 추상화(Abstraction), 상속(Inheritance), 그리고 다형성(Polymorphism) 등과 같은 특성들을 모두 완벽하게 제공해 주고 있습니다. 또한, 자바의 이러한 객체지향적 특성은 분산 환경, 클라이언트/서버 기반 시스템이 갖는 요구사항도 만족시켜 줄 수 있습니다.
         자바는 서로 다른 이종(Heterogeneous)의 네트워크 환경에서 분산 되어 실행될 수 있도록 설계되었습니다. 이와 같은 환경에서는 응용 프로그램들이 다양한 하드웨어 아키텍쳐 위에서 실행될 수 있어야만 합니다. 이를 위해 자바 컴파일러는 이종의 하드웨어 및 소프트웨어 플랫폼에서 효율적으로 코드를 전송하기 위해 설계된 아키텍쳐 중립적인 중간 코드인 바이트코드를 생성합니다. 이는 동일한 자바 프로그램의 자바 바이트코드가 자바 가상머신이 설치되어 있는 어떤 플랫폼에서도 실행될 수 있도록 하는 것입니다. 또한, 자바는 기본 언어 정의를 엄격하게 함으로써 효율적인 이식성을 제공해 주고 있습니다. 예를 들어, int 형과 같은 기본 데이터형의 크기를 플랫폼과 무관하게 일정하게 하고, 연산자의 기능을 확실하게 규정하고 있습니다. C 언어를 이용하여 int 형을 선언할 때, 도스에서는 16비트, 윈도우 95/98/NT 등 32비트 운영 체제 환경에서는 32비트, 유닉스에서는 32비트 등 그 플랫폼에 따라 크기가 다르지만, 자바에서는 플랫폼에 상관없이 32비트로 고정되도록 하였습니다. 이는 자바 프로그램이 실행되는 환경이 자바 가상머신으로 동일하기 때문입니다.
          * 인터프리터(Interpreter) 방식이다:
         자바 언어로 작성된 자바 프로그램을 중간언어 형태인 자바 바이트코드로 컴파일하고, 이렇게 생성된 자바 바이트코드를 자바 인터프리터가 해석함으로써, 자바 인터프리터와 런타임 시스템이 이식(porting)된 모든 플랫폼에서 자바 바이트코드를 직접 실행할 수 있습니다.
          * 자바 가상머신(Java Virtual Machine; Java VM):
          public static void main(String[] args) {
          System.out.println("Hello World!");
  • JavaHTMLParsing/2011년프로젝트 . . . . 8 matches
          import java.io.InputStream;
          import java.io.InputStreamReader;
          public static void main(String args[]){
          InputStream is;//URL접속에서 내용을 읽기위한 Stream
          InputStreamReader isr;
          //내용을 읽어오기위한 InputStream객체를 생성한다..
          is = connection.getInputStream();
          isr = new InputStreamReader(is);
          String buf = null;
          buf = br.readLine();
          System.out.println(buf);
          System.err.println("잘못된 URL입니다. 사용법 : java URLConn http://hostname/path]");
          System.err.println("IOException " + ioe);
          ioe.printStackTrace();
  • JollyJumpers/허아영 . . . . 8 matches
         #include <iostream>
         using namespace std;
         int main()
          int num, i, j, value, temp;//, maxNum;
          int numbers[3000], compare[3000];
          while(cin >> num)
          cin >> numbers[i];
  • LinuxSystemClass . . . . 8 matches
         [LinuxSystemClass/Report2004_1] - PosixThread 를 이용, 스레드를 만들고 그에 따른 퍼포먼스 측정.
         [LinuxSystemClass/Exercise2004_1]
         [LinuxSystemClass/Exercise2004_2]
         [LinuxSystemClass/Exercise2004_3]
         === examination ===
         [LinuxSystemClass/Exam_2004_1]
         개인적으로 교재가 마음에 든다. 단, 제대로 공부할 것이라면 가능한 한 원서를 권한다. 한서의 경우 용어의 혼동문제와, 중간 오역문제가 눈에 띈다. (inexpensive를 expensive 로 정 반대의 뜻으로 해석한) 뭐, 물론 그럼에도 불구하고 아마 사람들은 한서 읽는 속도가 원서 읽는 속도의 3배 이상은 될테니. 알아서 잘.
         학교 수업공부를 하거나 레포트를 쓰는 경우 위의 학교 교재와 함께 'The Design of the Unix Operating System' 을 같이 보면 도움이 많이 된다. 해당 알고리즘들에 대해서 좀 더 구체적으로 서술되어있다. 단, 책이 좀 오래된 감이 있다.
  • LoadBalancingProblem . . . . 8 matches
         Load Balancing 이라는 개념은 앞으로 몇번 접하게 될 개념입니다. 컴퓨터분야에서뿐만 아니라 다른 분야 (예를 든다면 이삿짐 업체나, 택배업체, 우체국 등등..) 에서도 쓰입니다. Load Balancing은 역할분담을 가장 적당하고 고르게 하여 각각의 개체들이 부담을 적게 느끼고 전체 작업시간을 단축시킬수 있도록 해 줍니다. 간단한 LoadBalancingProblem 문제를 접하여보고 기회가 닿는다면 조금더 복잡한 종류의 문제를 풀어보는것도 좋을것 같습니다.
         == Problem name : Load Balancing ==
         || 강양욱 || . || Java || Upload:IPSCLoadBalancing-macare.zip ||
         || 임인택 || . || Java || [LoadBalancingProblem/임인택] (그냥 예전에 풀어놨던 것) ||
         || 나휘동 || . || Python || [LoadBalancingProblem/Leonardong] ||
         see also IpscLoadBalancing, ["문제은행"]
  • Map/조재화 . . . . 8 matches
         #include<iostream>
         #include<string>
         #include<map>
         using namespace std;
         void main()
          string text = "ad md$ =i@@9z xy*@ -9z";
          for(int i=0; i<text.size(); i++)
  • Metaphor . . . . 8 matches
         원문 : http://www.extremeprogramming.org/rules/metaphor.html
         Choose a system metaphor to keep the team on the same page by naming classes and methods consistently. What you name your objects is very important for understanding the overall design of the system and code reuse as well. Being able to guess at what something might be named if it already existed and being right is a real time saver. Choose a system of names for your objects that everyone can relate to without specific, hard to earn knowledge about the system. For example the Chrysler payroll system was built as a production line. At Ford car sales were structured as a bill of materials. There is also a metaphor known as the naive metaphor which is based on your domain itself. But don't choose the naive metaphor unless it is simple enough.
  • OpenGL_Beginner . . . . 8 matches
          * 참여인 : 류상민(99,["neocoin"])
          * 교재 : OpenGL Game programming
          * 2.04 : Chapter 5장 예제 작성 [http://zeropage.org/~neocoin/Robot_2002.02.04.exe Robot]
          - 필자는 자신이 제작한 상업용 3D 설계 툴의 소스를 가지고 오고, 라이선스 문제와, 자신이 생각하는 개선점을 고쳐서 다시 작성했다고 한다. 인상 깊었다. 이해하기도 쉽고, 구조적 프로그래밍을 OOP로 옮긴다는 관점에 도움이 되었다. STL 비슷하게 linked list글 구현해 두었고, MEC++의 지식이 도움되었다. MEC++가 허송세월을 보낸것은 아닌 느낌이다. Java3D의 강좌에서도 Java3D의 프레임웍이 좋다고 하는데, 역시 살피는 과정에서 써야 겠다. 문서화 중
          * 시간이 되면 Linux상에서 Mesa3D 구현에 관해서 알아 보자
          * Computer Graphics using OpenGL
          * OpenGL Programming Guide 3th
          * Game Programming Gems (한)
  • OurMajorLangIsCAndCPlusPlus/math.h . . . . 8 matches
         ||int abs ( int n ) || 정수파라미터에 대한 절대값을 리턴한다 ||
         ||double asin ( double x ) || arc사인 값을 계산한다 ||
         ||double atof ( const char * string ) || 문자열을 실수형으로 변형시킨다||
         ||double frexp ( double x , int * exp ) || x = mantissa * (2^exponent) ||
         ||double ldexp ( double x , int exp ) || mentissa와 exponent값을 구한다 ||
         ||double sin ( double x ) || 사인값을 계산한다 ||
         ||double sin ( double x ) || 쌍곡선의 사인값을 계산한다 ||
  • ProgrammingLanguageClass/Exam2002_1 . . . . 8 matches
          * Compilation 과 pure interpretion 을 비교하시오.
          * 다음과 같은 문법이 있다. Top-Down Parsing 의 가능 또는 불가능함을 증명하시오
          * Floating Point 변수의 경우 해당 값에 대해 근사값만을 표현한다. 그 이유는 무엇인가?
          * 다른 Primitive Data Type 을 이용, 정확하게 Floating Point 를 구현할 방법이 있을까? (자신의 의견을 적으시오)
         나의 경우는 1. string (char array) 으로 애뮬레이션 한다. (단점도 썼음. 계산뒤의 메모리할당 문제와 실제 산술연산 계산을 위한 형변환시 cost가 많이 든다 등등) 2. long integer 2 개로 앞의 32 bit 는 유효숫자를, 뒤의 32bit 는 지수를 표현한다. (2^-31 ~ 2^31 * 2^-31 ~ 2^31 까지 표현된다라고 썼는데, 실제론 저 숫자들을 다 표현할 수가 없겠군. 2^31 1024 * 1024 * 1024 * 2 니까 약 10억. 즉, 자리수 표현도 10억 이후부터는 precision 유효숫자를 다 쓸수 없을테니) 아.. 풀고나니 잘못생각했군. 흑; --석천
  • ProgrammingPearls/Column1 . . . . 8 matches
         == Cracking the oysters ==
         for b in bits:
         for e in inputFile:
         for b in bits:
          print b
         === Principles ===
         [ProgrammingPearls]
  • ProjectPrometheus/BugReport . . . . 8 matches
          * notice변경 사항에 관하여, DB에 넣는 방향으로 바꾸던지(게시판을 하던지), file path 비의존적으로 바꾸어야 한다. 현재 file path문제로 직접 고쳐주어야 하는 상황이고, ant 로 배포시 해당 file의 쓰기 읽기 권한 문제로 문제가 발생한다. --["neocoin"]
          * ant build를 상민, 석천 두 계정 사이에 아무런 차이 없이 가능하도록 조정할수 있어야 한다. 문제는 내 계정이 이상하다는것 --["neocoin"]
          - 자주 바뀌는 부분에 대해서 Page -> Object Mapping Code Generator 를 만들어내거나, 저 부분에 대해서는 텍스트 화일로 뺌 으로서 일종의 스크립트화 시키는 방법(컴파일을 하지 않아도 되니까), 화일로 따로 빼내는 방법 등을 생각해볼 수 있을 것 같다.
          - 매번 FORM 으로 넘어가는 변수들이 바뀔때 HTML 내 FORM 변수들을 찾거나 WEB DEBUG 등으로 프로토콜 분석을 하는데, 이를 자동화 할 수 있을 것 같다. <FORM> 태그, <INPUT> 태그 부분만 추출해내고 그 변수값 종류, 변수 이름을 얻어내는 코드만 작성해도, 반복작업을 줄일 수 있을듯. --["1002"]
          * 동감, 해당 프로토콜을 분석해서 property로 만들어 버리는 작업을 수행해야 할것 같군. 이작업을 한달에 한번 수행시키도록 해야 할까 ;; --["neocoin"]
          * 도서관이 저번주에 뭐 바꾼답시고 삽질중이라고 있다고 공지가 있었거든. 난 내부 DB 작업만 중단 하는것인줄 알았는데, UI부분이 약간 변경된듯 하다. 어이가 없어서.. My Page 눌러보면 공지 해놓았으니 참고--["neocoin"]
          * {{{~cpp DBConnectoinManager}}} 관련 주의 사항 http://javaservice.net/~java/bbs/read.cgi?m=dbms&b=jdbc&c=r_p&n=1019574430&p=2&s=d#1019574430
          * 다른 Conntion Pooling 용으로 http://www.bitmechanic.com/ 를 생각할수 있으며, 한글 자료는 http://javaservice.net/~java/bbs/read.cgi?m=dbms&b=jdbc&c=r_p&n=1034293525&p=1&s=d#1034293525 에 소개되어 있다.
          * 모든 connection Pooling 관리자에게 이런 문제사항은 노출되어 있으며, bitmechanic 도 예외는 아니다. ;;
  • ProjectSemiPhotoshop/Journey . . . . 8 matches
          * 한일 : 1차 integration
          * 한일 : 프레임웍 작성 , Bmp 로딩 구현, Sampling 구현, 팀원간 소스 이해, 시간예측, 다음 일정 계획
          * 내용 : eXtreme Programming을 실전 경험에서 응용해 보는 것이 어떨가 싶다. : 이 문제에 관해서는 수요일에 파일 구조 시간에 만나서 이야기 하도록 하자. 내 기본 생각은 Xp Pratice 들 중 골라서 적용하기에 힘들어서 못할것으로 생각하는데, 뭐, 만나서 이야기 하면 타결점을 찾겠지. ExtremeBear 도 이 숙제 때문에 중단 상태인데 --["상민"]
          * 아직은 이해하기도 힘들고, 어려운 프로그래밍이지만 앞으로 열심히 해서 세미 포토샵때는 정말 Pare Programming이 될 수 있도록 열심히 공부할께~ -- 현민
          * 현민이와 5분 단위의 PairProgramming 시도하였다. 10.24 때의 모임 보다 훨씬 성과가 있었다고 자평한다. 내 자신이 배우고 깨달은 것이 너무 많아, 정리하기가 힘들다. 그래서 현민이에게 미안한 느낌 마져 약간 든다.
          * 프로그래밍 자체가 약간 게임과 같은 느낌이 좋왔고, 현민이가 어땠는지 궁금하다. 해깔리기만 하지 않을까? --["neocoin"]
          * ["STL"] 관련 서적은 네가 가진게 없을꺼라고 생각한다. 학교에서도 가르쳐주지 않는 부분이라. 스스로 익혀야 한다. 너무나 단 과실이라, 꼭 보기를 권한다. 관련 내용은 ["STL"] 에서 ["STL/vector"],["STL/vector/CookBook"]를 참고하면 될꺼다. --["neocoin"]
          * 현민이에게 야속한 말일지 모르지만, 솔찍히 약간 당황스러웠다. ''무엇을 해야하는가?'' 에서 출발하고 싶었지만, 불행히 ''무엇을 배워야 하는가?'' 로 출발과 끝을 마무리 했다. 역시 ''문제를 인식''하는 단계가 중요함을 느낀다. --["neocoin"]
  • RabbitHunt/김태진 . . . . 8 matches
         #include <stdio.h>
         int main()
          int N,i,j,k=0;
          int c[200][200]={0}, C=-1;
          int b[2][200]={0};
          if(b[0][i]==b[0][j]) {C++; continue;}
          printf("%d",C+1);
  • RandomWalk/신진영 . . . . 8 matches
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          int i=0, j=0, row=0, col=0;
          int count=1, direction=0, walk=0;
          int land[12][12];
  • ReverseAndAdd/김범준 . . . . 8 matches
         def main():
          number = str(input('입력: '))
          for n in range(1, 100):
          nnumber = int(number)
          rnumber = int(reverse)
          print number
         if __name__ == '__main__':
          main()
  • ReverseAndAdd/민경 . . . . 8 matches
         k = input('몇개입력할거니?')
         n = [input('입력해보아') for i in range(k)]
         for i in range(k):
          for j in range(1000):
          if n[i]==int(s):
          print j,n[i]
          n[i]=n[i]+int(s)
  • SecurityNeeds . . . . 8 matches
         a non-firewalled wiki but only a certain group should have access. This may
         get around. Anyone know of a wiki that restricts access in such a way?
          Yes, see Wiki:OrgPatterns which runs in Wiki:FishBowl mode. - ''This may be exactly what I was looking for... thanks!!!''
         ''Why not use webserver passwords to restrict access? Or do you wish to restrict '''editing''' by a restricted group? -- AnonymousCoward ;)''
         Even restricting the editing could be done easily using the security the webserver provides.
  • Self-describingSequence . . . . 8 matches
         [http://online-judge.uva.es/p/v100/10049.html 원문보기]
         === About [Self-describingSequence] ===
         [http://online-judge.uva.es/p/v100/10049img2.gif]
         === Input ===
         === Sample Input ===
          || 문보창 || C++ || 2시간 || [Self-describingSequence/문보창] ||
          || 황재선 || Java || 2시간 || [Self-describingSequence/황재선] ||
          || [1002] || Python || 1시간 40분 || [Self-describingSequence/1002] ||
          || [shon] || matlab || 1차 : 1시간 10분, 2차 : 3시간 || [Self-describingSequence/shon] ||
          || [조현태] || C++ || ? || [Self-describingSequence/조현태] ||
  • SmithNumbers/김태진 . . . . 8 matches
         #include <iostream>
         #include <stdio.h>
         int main(int argc, const char * argv[])
          int i,j,n,N,l,save,sum,ssum,k=0;
         // int arr[100];
          printf("%d\n",save);
  • TddRecursiveDescentParsing . . . . 8 matches
         RecursiveDescentParsing 을 TFP 로 시도를 해보려고 하는데.. Parser부분에 대한 test 의 결과를 얻기 위해서는 AST를 얻도록 해야 하고, AST를 조금씩 구축해나가는 방향으로 디자인유도중인데. 이 아이디어 생각하려는데 1시간을 소비했다. 흡;
          ''먼저 "1"을 넣으면 "1"을 리턴하는 프로그램을 만듭니다. 다음 "314"를 넣으면 "314"를 리턴하게 합니다. 다음엔, "1 + 0"을 넣으면 "1"을 리턴하게 합니다. 다음, "1 + 314"를 넣으면 "315"를 리턴합니다. 다음, "1 + 2 + 314"를 하면 "317"을 리턴합니다. 다음, "1 - 0"을 하면 "1"을 리턴합니다. 다음, "1 - 1"을 하면 "0"을 리턴합니다. 다음, "314 - 1 + 2"를 하면 "315"를 리턴합니다. 다음, "- 1"을 넣으면 "-1"을 리턴합니다. 다음, "( 1 )"을 넣으면 "1"을 리턴합니다. ...... AST는 아직 생각하지 말고 당장 현재의 테스트를 패스하게 만드는데 필요한 것만 만들어 나가고 OAOO를 지키면서(테스트코드와 시스템코드 사이, 그리고 시스템 코드 간) 리팩토링을 지속적으로 합니다 -- 그렇다고 파싱 이론을 전혀 이용하지 말라는 말은 아니고 YAGNI를 명심하라는 것입니다. 그러면 어느 누가 봐도 훌륭한 디자인의 파서를 만들 수 있습니다. DoTheSimplestThingThatCouldPossiblyWork. --김창준''
         대강 다음과 같은 식으로 접근했고요. 테스트코드 2-3줄쓰고 파서 메인코드 작성하고 하는 식으로 접근했습니다. (["Refactoring"] 을 하다보면 FactoryMethodPattern 과 CompositePattern 이 적용될 수 있을 것 같은데, 아직은 일단.)
          parser.setStringStream("a = b+c")
          self.assertEquals(token.tokenString, 'a')
          self.assertEquals(token.tokenString, '=')
          self.assertEquals(token.tokenString,'b')
          self.assertEquals(token.tokenString, '+')
  • VonNeumannAirport . . . . 8 matches
         SPEC : http://icpc.baylor.edu/past/icpc2001/Finals/problems.pdf 중 Problem A
          * 중간에 창준이형이 "너희는 C++ 로 프로그래밍을 하면서 STL를 안사용하네?" 라고 했을때, 그냥 막연하게 Java 에서의 Collection Class 정도로만 STL을 생각하고, 사용을 잘 안했다. 그러다가 중반부로 들어서면서 Vector를 이용하게 되었는데, 처음 한두번 이용한 Vector 가 후반으로 가면서 전체의 디자인을 뒤집었다; (물론 거기에는 디미터 법칙을 지키지 않은 소스도 한몫했지만 -_-;) 그걸 떠나서라도 Vector를 써 나가면서 백터 비교 assert 문 등도 만들어 놓고 하는 식으로 점차 이용하다보니 상당히 편리했다. 그러다가 ["Refactoring"] Time 때 서로 다른 자료형 (앞에서 array 로 썼던 것들) 에 대해 vector 로 통일을 하다 보니 시간이 비교적 꽤 지연이 되었다.
          * ["Refactoring"] Bad Smell 을 제대로 맡지 못함 - 간과하기 쉽지만 중요한 것중 하나로 naming이 있다. 주석을 다는 중간에 느낀점이 있다면, naming 에 대해서 소홀히 했다란 느낌이 들었다. 그리고 주석을 달아가면서 이미 구식이 되어버린 예전의 테스트들 (로직이 많이 바뀌면서 테스트들이 많이 깨져나갔다) 를 보면 디미터 법칙이라던가 일관된 자료형의 사용 (InformationHiding) 의 문제가 있었음을 느낀다.
          -> 이에 따라 Input 부분이 바뀌고, Input 부분이 클래스와 합쳐진 코드의 경우 더더욱 골치.
          * 가장 트래픽이 많이 발생하는 길을 알아낸다. - 복도에 대해서 InformationHiding.
          * 지금 만든 모듈의 소스 수정없이 GUI 버전으로 재작성하기 - Input / Output 먼저 작성하는 사람들은 가장 고생.
          * 출력 Output 의 Sorting 을 2가지로 둔다면?
  • WorldCupNoise/정진경 . . . . 8 matches
         #include <stdio.h>
         int main()
          int Table[50][2];
          int N, n;
          int k;
          int i, j;
          printf("Scenario #%d:\n%d\n\n", n, Table[k][0]+Table[k][1]);
  • XOR삼각형/허아영 . . . . 8 matches
         #include <stdio.h>
         #define SIZE 8
         void printtri(int xortri[SIZE][SIZE]);
         void main()
          int i, j, xortri[SIZE][SIZE] = { {0, } };
          printf("%d", xortri[i][j]);
          printf("n");
  • [Lovely]boy^_^/Temp . . . . 8 matches
         #include <iostream>
         using namespace std;
         inline void SAFE_DELETE(T*& arg)
         int main()
          int* i = new int(5);
  • bitblt로 투명배경 구현하기 . . . . 8 matches
         hdc_original
         SetBkColor(hdc_original, RGB(255,0,255) );
         BitBlt(hdc_mask,0,0,size_x,size_y,hdc_original,0,0,SRCCOPY);
         SetBkColor(hdc_original, RGB(0,0,0));
         SetTextColor(hdc_original, RGB(255,255,255));
         BitBlt(hdc_original,0,0,size_x,size_y,hdc_mask,0,0,SRCAND);
         BitBlt(hdc_background,0,0,size_x,size_y,hdc_original,0,0,SRCPAINT);
         귀차니즘을 한방에 날려줄 #include <부지런함> 이 가능한 전처리기.. 어디없나? 휴..
  • zyint . . . . 8 matches
         http://zyint.com/
         http://cyworld.nate.com/zyint/
         MSN : {{{zyint 앳 zyint닷컴}}} >> 앳을 @로 닷컴을 .com으로 공백을 지운후 이메일 주소를 재구성 하세요.
         = zyint EXCLUSIVE =
          || LPU4.0 Limited Edition || . || ★★★★·|| 라이브앨범 -ㅅ- with랑 it's goin' down, step up 좋다 +ㅁ+ [[BR]]아무래도 팬클럽회원 전용 앨범이라; 노래 수가 많지 않아 아쉽긴 하다.||
         [zyint/vb]
         검색로봇 차단방법 : [Robots Exclusioin]
  • 게임프로그래밍 . . . . 8 matches
         = Setting Up SDL =
          * [http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php Setting_Up_SDL]
         #include "SDL.h"
         int main(int argc,char **argv)
          SDL_Init(SDL_INIT_EVERYTHING);
  • 구구단/김상윤 . . . . 8 matches
         #include<iostream>
         using namespace std;
         int main()
          for(int i=1; i<10 ; i++)
          for(int j=2; j<6; j++)
          for(int k=1; k<10 ; k++)
          for(int l=6; l<10; l++)
  • 구구단/이태양 . . . . 8 matches
         #include<stdio.h>
         void main(){
          int dan,i;
          printf("%d * %d = %d \t",dan,i,dan*i);
          printf("\n");
          printf("\n");
          printf("%d * %d = %d \t",dan,i,dan*i);
          printf("\n");
  • 구조체 파일 입출력 . . . . 8 matches
         #include <iostream>
         using namespace std;
          int age;
         int main()
          cout << "Input name : " ;
          cin >> p.name;
          cout << endl << "Input age : ";
          cin >> p.age;
          cout << endl << "Input phone number : " ;
          cin >> p.phone;
  • 논문검색 . . . . 8 matches
          * [http://www.dlibrary.go.kr/index.html 국가전자도서관]
          * [http://www.nl.go.kr/index.php3 국립중앙도서관]
          * [http://www.nanet.go.kr/index.html 국회도서관]
          * [http://www.kisti.re.kr/ 산업기술정보원(KINITI)]
          * [http://www.kins.co.kr/ 한국아이엔에스(KINS)]
          * [http://www.isinet.com/isi/ ISI NET]
          * [http://www.libra.titech.ac.jp/online.html ONLINE JOURNAL (일본)]
          * [http://ostin.oasis.or.kr/pls/oasis2/ohome 해외과학기술정보네트워크]
          * [http://www.riss4u.net/index.html RISS4U]
  • 데블스캠프2006/월요일/연습문제/for/주소영 . . . . 8 matches
         #include <iostream.h>
         void main()
          int i, j, n;
          cin >> n;
         #include <iostream.h>
         void main()
          int i,j,n;
          cin >> n;
  • 데블스캠프2006/월요일/연습문제/if-else/김건영 . . . . 8 matches
         #include<iostream>
         using namespace std;
         int main()
          int value;
          cin >> value;
          for(int i = 3; i <= value; i = i + 3)
          for(int j = 5; j <= value; j = j + 5)
  • 데블스캠프2006/월요일/연습문제/if-else/김준석 . . . . 8 matches
         #include <iostream.h>
         void main(){
          int i,j,count =0;
          cin >> i;
         #include <iostream.h>
         void main(){
          int j;
          cin >> i;
  • 데블스캠프2006/월요일/연습문제/기타문제/윤성준 . . . . 8 matches
         #include <iostream>
         using namespace std;
         int main(void)
          int num;
          cin >> num;
          for (int i = 1; i <= num; i++) {
          if (i == 5) continue;
  • 데블스캠프2006/월요일/함수/문제풀이/정승희 . . . . 8 matches
         #include<time.h>
         #include <iostream>
         using namespace std;
         int a();
         int main()
         int a()
          int i = rand() % 6 + 1;
  • 데블스캠프2006/화요일/pointer/문제1/김준석 . . . . 8 matches
         #include<iostream>
         using namespace std;
         void swap(int *a, int *b){
          int temp;
         void main(){
          int a =1, b = 18;
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2006/화요일/pointer/문제4/정승희 . . . . 8 matches
         #include<iostream>
         #include<cstring>//문자열을 비교하는 함수(strcmp)를 포함
         using namespace std;
         void main()
          cin>>buf;
          int length=strlen(buf);//길이가 저장됨.
          for(int i=(length-1);i>=0;i--)
  • 데블스캠프2010/다섯째날/ObjectCraft/미션1/허준 . . . . 8 matches
         == main.cpp ==
         #include <stdio.h>
          int att;
          int def;
          int HP;
         void main() {
          printf("저글링1이 저글링2에 데미지 %d를 입혀서 저글링2의 HP가 %d가 되었습니다.\n", zeli1.att, zeli2.HP);
          printf("저글링2가 죽었습니다.\n");
  • 데블스캠프2013/둘째날/API . . . . 8 matches
         == index.php ==
          이름 <input name="name" size="10">
          내용 <input name="text" size="40">
          <input type="submit">
          echo '<script>alert("내용이 없습니다."); location.href="index.php";</script>';
          mysql_query("insert into board(name,text,ip) values ('{$_POST['name']}', '{$_POST['text']}', '{$_SERVER['REMOTE_ADDR']}')");
          echo '<script>alert("등록되었습니다."); location.href="index.php";</script>';
  • 마름모출력/zyint . . . . 8 matches
         # -*- coding: cp949 -*-
         if __name__ == '__main__':
          pattern = raw_input('패턴 입력 : ')
          size = input('변의 길이 : ')
          for i in range(size+1):
          print spc*(size-i) + pattern*(2*i-1)
          for i in range(size-1,0,-1):
          print spc*(size-i) + pattern*(2*i-1)
  • 마방진/김아영 . . . . 8 matches
         #include <iostream.h>
         int main()
          int a[5][5]={{0, },};
          int x, y ;
          for(int count=2;count<26;count++)
          for(int i=0;i<5;i++)
          for(int j=0;j<5;j++)
  • 마방진/변준원 . . . . 8 matches
         #include<iostream>
         #include<vector>
         using namespace std;
         int main()
          int size,i,j;
          cin >> size;
          vector <vector <int> > mabang;
  • 몸짱프로젝트/DisplayPumutation . . . . 8 matches
         #include <iostream.h>
         void perm(char * list, int i , const int n);
         const int SIZE = 4;
         void main()
         void perm(char * list, int i , const int n)
          int j;
  • 몸짱프로젝트/InfixToPrefix . . . . 8 matches
          def __init__(self, aExpression = ''):
          if aToken in self.precedence:
          for l in self.list:
          self.list.insert(-1, aOperator)
          self.list.insert(0, aOperator)
          def convertInfixToPrefix(self):
          for e in self.expression:
          def testConvertInfixToPrefix(self):
          e.convertInfixToPrefix()
          e.convertInfixToPrefix()
         if __name__ == '__main__':
          unittest.main()
  • 반복문자열/문보창 . . . . 8 matches
         #include <iostream.h>
         inline void print_loop(char * str, int iter) { for (int i=0; i < iter; i++) cout << str; }
         void main()
          print_loop("CAUCSE LOVE.\n", 5);
  • 삼각형매크로/임다찬 . . . . 8 matches
         #include <stdio.h>
         #define tri(width,height) width*height/2.0
         int main(void){
          int wi,he;
          printf("밑변 입력 : "); scanf("%d",&wi);
          printf("높이 입력 : "); scanf("%d",&he);
          printf("삼각형의 넓이는 : %f\n",tri(wi,he));
  • 새싹교실/2011/쉬운것같지만쉬운반/2011.5.3 . . . . 8 matches
          1. Programing Language가 왜 생겨났는가?
          7. printf함수는 어떤 원리로 작동할까?
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          9. 32비트 컴퓨터에서는 기본 정수형(int)에 대해 32비트의 메모리 공간을 할당해 주는 데에 비해서 64비트 컴퓨터에서는 64비트의 메모리 공간을 할당해 주기 때문에 자료 크기가 달라지고 MSB의 위치가 달라져서 프로그램이 오작동하거나 실행할 수 없게 된다.
          1. Programing Language가 왜 생겨났는가?
          7. printf함수는 어떤 원리로 작동할까?
  • 송지원 . . . . 8 matches
          * instagram : enoch.g1
          * [Clean Code With Pair Programming]
          * [EnglishSpeaking/2011년스터디]
          * [데블스캠프2011/둘째날/Machine-Learning/NaiveBayesClassifier/송지원]
          * [데블스캠프2011/셋째날/String만들기/송지원]
          * [BeginningHaskellLanguage]
  • 수/마름모출력 . . . . 8 matches
         main(){
         int i, j, num, pat;
          printf("\n패턴? ");
          printf("\n변의길이? ");
          printf(" ");
          printf("%c",pat);
          printf(" ");
          printf("%c",pat);
  • 수학의정석 . . . . 8 matches
         #include <time>
         int main()
         int time_in; // 초기 시작 시간.
         time_in = clock(); // 초기 시작 시간을 입력한다.
         printf("CPU CLOCKS = %d\n", clock() - time_in); // 끝났을때 시간 - 초기 시작시간 = 프로그램 실행 시간
  • 시간맞추기/조현태 . . . . 8 matches
         #include <iostream>
         #include <time.h>
         #include <conio.h>
         using namespace std;
         const int ANSWER_TIME=8;
         void main()
          int second;
          cout << "you win!!!";
  • 여섯색깔모자 . . . . 8 matches
          * Title : 생각이 솔솔 여섯 색깔 모자 ( Wiki:SixThinkingHats )
          * My Point
          * NeoCoin : B) B) B) B) B)
          어떻게 하면 생각을 잘 모을 수 있을까? 어떻게 하면 신속한 회의를 할 수 있을까? 라는 고민에 내려놓은 제 결론이 얼마나 부족한가를 일깨워 주었습니다. 두께가 그리 두껍지 않으니, 가볍게 들고 다니면서 볼수 있습니다. --NeoCoin
         See Also Wiki:SixThinkingHats
         평소에 의견을 교환 하다가 보면 어느새 자신의 자존심을 지키려는 논쟁 으로 변하게 되는 경우가 많다. 이 논쟁이란게 시간은 시간대로 잡아 먹고, 각자에게 한가지 생각에만 편향되게 하고(자신이 주장하는 의견), 그 편향된 생각을 뒷받침 하고자 하는 생각들만 하게 만드는 아주 좋지 못한 결과에 이르게 되는 경우가 많다. 시간은 시간대로 엄청 잡아 먹고... 이에 대해서 여섯 색깔 모자의 방법은 굉장히 괜찮을거 같다. 나중에 함 써먹어 봐야 겠다. 인상 깊은 부분은 회의를 통해서 지도를 만들어 나간후 나중에 선택한다는 내용이다. 보통 회의가 흐르기 쉬운 방향은 각자 주장을 하고 그에 뒷받침 되는것을 말하는 식인데, 이것보다 회의를 통해서 같이 머리를 맞대서 지도를 만든후 나중에 그 지도를 보고 같이 올바른 길로 가는 이책의 방식이 여러사람의 지혜를 모을수 있는 더 좋은 방법이라고 생각한다. 이 책도 PowerReading 처럼 잘 활용 해보느냐 해보지 않느냐에 따라서 엄청난 가치를 자신에게 줄 수 도 있고, 아무런 가치도 주지 않을 수 있다고 생각한다. - [상협]
  • 오페라의유령 . . . . 8 matches
         http://www.aladdin.co.kr/Cover/8970752366_1.gif
         소설이 먼저였지만, 개인적으로 Webber 와 Sarah 의 노래를 엄청나게 좋아하는 관계로. 소설을 읽는 내내 머릿속에서 Think of Me, The Music of Night, Wishing you were somehow here again 가 배경음악으로 깔리었다.
         뮤지컬의 이미지때문인지 (한번도 안본 뮤지컬에 대해 이미지를 떠올리는것도 우스운 일이다. OST와 Sarah 의 뮤직비디오는 많이 보긴 했지만) 크리스틴을 볼때마다 사라아주머니의 젊었을때의 사진을 떠올렸고, Phantom 이 등장할때엔 그 Main Theme (Phantom 의 그 멋진 웃음소리와도 같게 들리는...) 를 떠올렸다.
         http://www.westegg.com/unmaintained/alw/webber.jpg [[BR]]
          * EBS 에선가 Joseph and the Amazing Technicolor Dreamcoat를 방영해줬던 기억이 난다. 성경에서의 요셉이야기를 이렇게 표현할 수 있을까; 형 왈 '아마 성경을 이렇게 가르친다면 교회에서 조는 사람들 없을꺼야;' 어떻게 보면 '아아 꿈많고 성공한 사람. 우리도 요셉처럼 성공하려면 꿈을 가져야해;' 이런식이였지만, 아주 신선했던 기억이 난다.
  • 정렬/문원명 . . . . 8 matches
         #include <iostream>
         #include <fstream>
         using namespace std;
         void main()
          ifstream fin("UnsortedData.txt");
          int arr[10000];
          int temp;
          fin>>arr[i];
  • 제12회 한국자바개발자 컨퍼런스 후기 . . . . 8 matches
         || 14:00 ~ 14:50 || KT Cloud 기반 애플리케이션 개발 전략 (정문조) || Event Driven Architecture (이미남) || 성공하는 개발자를 위한 아키텍처 요구사항 분석 방법 (강승준) || JBoss RHQ와 Byteman을 이용한 오픈소스 자바 애플리케이션 모니터링 (원종석) || Java와 Eclipse로 개발하는 클라우드, Windows Azure (김명신) || Apache Hadoop으로 구현하는 Big Data 기술 완벽 해부 (JBross User Group) || 클라우드 서버를 활용한 서비스 개발 실습 (허광남) ||
         || 15:00 ~ 15:50 || 스타트업을위한 Rapid Development (양수열) || 하둡 기반의 규모 확장성있는 트래픽 분석도구 (이연희) || 초보자를 위한 분산 캐시 활용 전략 (강대명) || Venture Capital & Start-up Investment (이종훈-벤처캐피탈협회) || How to deal with eXtream Applications? (최홍식) || SW 융합의 메카 인천에서 놀자! || 섹시한 개발자 되기 2.0 beta (자바카페 커뮤니티) ||
         || 16:00 ~ 16:50 || 대용량 고가용성 분산 캐쉬서버(infinispan)를 활용한 웹서비스 (이용혁) || 대박날때 후회말고, 성능큭정 자주하자!/성능측정도구 nGrinder (김광섭) || 모바일 웹 개발 플랫폼 (현철주) || IT 개발자 환경의 문제점과 개선점 등 (김효상-IT노조) || 분산 애플리케이션 개발을 위한 기업 통합(EIPs) 전략 (차정호) || SW 융합의 메카 인천에서 놀자! || 되돌아 보는 스프링 프레임워크 (KSUG 커뮤니티) ||
         || 17:00 ~ 17:50 || 쓸모있는 소프트웨어 작성을 위한 설계 원칙 (김민재) || Java Secure Coding Practice (박용우) || 개발자가 알아야하는 플랫폼 전략과 오픈 API 기술 동향 (옥상훈) || 반복적인 작업이 싫은 안드로이드 개발자에게 (전성주) || 개발자가 알아야할 오픈소스 라이선스 정책 (박수홍) || 이클립스 + 구글 앱 엔진으로 JSP 서비스하기 (OKJSP 커뮤니티) || 여성개발자의 수다 엿듣고 싶은 그들만의 특별한 이야기 (여자개발자모임터 커뮤니티) ||
         || 18:00 ~ 18:50 |||||||||||||| Closing 및 경품추첨 ||
          그 다음으로 Track 5에서 있었던 Java와 Eclipse로 개발하는 클라우드, Windows Azure를 들었다. Microsoft사의 직원이 진행하였는데 표준에 맞추려고 노력한다는 말이 생각난다. 그리고 처음엔 Java를 마소에서 어떻게 활용을 한다는 건지 궁금해서 들은 것도 있다. 이 Windows Azure는 클라우드에서 애플리케이션을 운영하든, 클라우드에서 제공한 서비스를 이용하든지 간에, 애플리케이션을 위한 플랫폼이 필요한데, 애플리케이션 개발자들에게 제공되는 서비스를 위한 클라우드 기술의 집합이라고 한다. 그래서 Large로 갈 수록 램이 15GB인가 그렇고.. 뭐 여하튼.. 이클립스를 이용해 어떻게 사용하는지 간단하게 보여주고 하는 시간이었다.
  • 조현태/놀이/지뢰파인더 . . . . 8 matches
          위키에서 마인 파인더를 본 기억이 어렴풋이 남아있다.(SeeAlso MineFinder)
          Upload:minefinder_dine.jpg
         지뢰파인더 1.0v - Upload:MineFinder.exe
          └만들어 보고싶다우..ㅎㅎ 그런데 나 1학년 마치고 군대갈껀디..ㅎㅎ 갔다오면 다 잊어먹어서 'printf가 모에요?'라고 묻는 웃지못할 사태가 발생할듯..;;ㅁ;;
  • 졸업논문/본론 . . . . 8 matches
         웹 애플리케이션 개발자가 가장 많이 쓰는 기능은 SQL을 이용하여 데이터베이스 내용을 삽입, 삭제, 수정, 조회하는 것이다. 그 중에도 데이터를 조회하는 SQL문은 다양한 구조를 가진다. 기본 구조는 select from 이다. 여기서 from절에 테이블이 여러 번 나오는 경우 조인 연산을 수행한다. 조인 연산은 다른 테이블 또는 같은 테이블끼리 가능하다. select from where문을 사용하면 where절에 있는 조건을 만족하는 데이터만 조회한다. aggregate function을 사용하면 원하는 결과를 좀더 쉽게 얻을 수 있다. 이에는 개수(count), 합계(sum), 최소(min), 최대(max), 평균(avg)이 있다. aggregate function에 group by문을 사용하면 그룹 단위로 결과를 얻는다. group by절에는 having을 이용해 조건을 제한할 수 있다. 또한 순서를 지정하는 order by문과 집합 연산인 union, intersect, except 등이 있다. where절 이하에 다시 SQL문이 나타나는 경우를 중첩질의라고 한다. 중첩 질의를 사용할 때는 특별히 (not) exist, (not) unique와 같은 구문을 사용할 수 있다.
         데이터를 삽입,삭제,변경할 때는 조회하는 SQL에 비해 하면 단순하다. 삽입에는 insert into value 구문을, 삭제는 delete from where구문을, 변경은 update set where구문을 사용한다. 삭제와 변경시에는 중첩 질의를 사용할 수 있다.
         Django는 오픈 소스 프로젝트로 code.djangoproject.com/browser/django 에서 전체 소스코드를 확인할 수 있다. 문서에 따르면 django 데이터베이스 API는 "SQL문을 효율적으로 사용하고, 필요할 때는 알아서 join연산을 수행하는 강력한 구문을 가졌으며, 사용자가 필요할 경우 직접 SQL문을 작성할 수 있도록 지원"[5]한다. 추상화된 구문을 사용하더라도 데이터는 관계형 데이터베이스에 저장하게 되는데, MS SQL, MySQL, Oracle, PostgreSQL, SQLite3와 같은 DBMS를 사용할 수 있다.
         [django/ModifyingObject]
         [django/RetrievingObject]
  • 채팅원리 . . . . 8 matches
         클라이언트쪽에는 4개의 Thread가 있다. JFrame을 사용한 클래스가 2개 있는데, 하나는 Login때 ID사용 허가를 확인한는 프레임이고, 다른 하나는 채팅의 기본 프레임이다. 4개의 Thread는 다음과 같다.
         Login : 현재 채팅에 사용중인 ID와 사용하고자 하는 ID를 비교하여, 채팅 참가 허가 유무를 확인한다.
         ChatMain : 채팅의 주 인터페이스를 관리하는 클래스이다. 이 클래스에서 대부분의 GUI를 관리하고, 채팅메세지보여준다. 또한 채팅에 접속한 사람들의 ID를 보여준다.
         ReceiveMessage : 서버로부터 전달되는 메시지를 받아서 ChatMain 클래스의 메시지 출력 화면에 보여주는 역할을 한다.
         UserList : ChatMain 클래스의 사용자 List에 접속한 사용자 ID를 보여주는 기능을 한다.
         클라이언트가 시작되면 Login을 위한 ID 체크를 한다. 서버에 접속하여 서버에 저장되어 있는 사용자 ID Vector에 사용하고자
         클라이언트가 대기실에 입장하면 내부적으로 클라이언트는 서버쪽에 새 사용자가 접속했다는 메시지를 보낸다. 그러면서, Login 프레임대신 ChatMain 프레임을 보이게 한다. 이제부터 대기실에서 채팅이 가능하게 된다. 서버쪽에는 새 사용자가 대기실에 들어왔다는 것을 보여준다.
  • 타도코코아CppStudy/0728 . . . . 8 matches
          * TableDrivenProgramming
          ZeroWiki:DevelopmentinWindows
         #include <iostream>
         using namespace std;
         int main()
         || 마방진(홀수) || [CherryBoy] || Upload:MaBangJin_CherRy.cpp || . ||
  • 튜터링/2011/어셈블리언어 . . . . 8 matches
         TITLE MASM Template (main.asm)
         INCLUDE Irvine32.inc
         main PROC
         main ENDP
         END main
          * inline
  • 파스칼삼각형/김영록 . . . . 8 matches
         #include <iostream.h>
         int num_ret(int X, int Y) //재귀호출 1인경우(X=1,X=Y)엔 1을 리턴하는방식
         void main()
          int X,Y;
          cin >> Y ;
          cin >> X ;
  • 피보나치/민강근 . . . . 8 matches
         #include<iostream>
         using namespace std;
         int pi(int a)
         int main()
          int y;
          cin>>y;
  • 피보나치/유선 . . . . 8 matches
         #include<stdio.h>
         void main(){
         int count;
         int a,b,c;
         printf("숫자를 몇개 출력할까요? 3이상으로 선택해 주세요");
         int i;
         printf("11");
         printf("%d",c);
  • 피보나치/허아영 . . . . 8 matches
         #include <stdio.h>
         int num1, num2, num3;
         int i;
         void main()
          printf("출력 할 회 : ");
          printf("\n");
          int j;
          printf("%d", num3);
  • 05학번 . . . . 7 matches
         #include <cstdlib>
         #include <iostream>
         using namespace std;
         void copy(char *src, char *dest, int length )
         int main ()
          copy("my_string", p, 30 );
  • 50~100 사이의 3의배수와 5의 배수 출력 . . . . 7 matches
         #include <iostream>
         using namespace std;
         int main()
          int a;
          cin >> a;
          for(int i = 1;i <= a; i ++)
  • AOI . . . . 7 matches
         '''O'''lympiad in
          * 여름방학 중 교재 : Programming Challenges ( Aladdin:8979142889 )
          * 원문 : http://online-judge.uva.es/problemset/
          || [CompleteTreeLabeling]||. ||. ||. ||. ||. ||. ||. ||. ||
          || [Bicoloring] ||O ||. ||. ||. ||. ||. ||. ||. ||
         == LINK ==
          * http://online-judge.uva.es/problemset/ <-- 여기에서 로봇이 실시간으로 답이 맞았는지 채점도 해준답니다. 푸신분들은 한번 해 보세요 - 보창
  • Applet포함HTML/진영 . . . . 7 matches
         ''C:\j2sdk1.4.1_01\bin\HtmlConverter.exe 로 컨버트''
          codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1_01-windows-i586.cab#Version=1,4,1,1"
          pluginspage = "http://java.sun.com/products/plugin/index.html#download">
         ["JavaStudyInVacation/진행상황"]
  • BasicJAVA2005 . . . . 7 matches
         || 4 || 06.01.12 || 선호 민경 아영 규완 지희 수생 태훈 현태 || 다솔 희웅 || 빙고판 만들기(Swing) || [BasicJava2005/4주차] ||
          인터파크 책 링크 - [http://book.interpark.com/bookPark/sitemap/BookDisplay.jsp?COMM_001=0000400000&COMM_002=0&GOODS_NO=3914746 클릭!]
          예를 들면, 변수도 한글로 사용이 가능합니다. (예를 들어서 String 임시 = "임시변수입니다."; 이런식으로 작성이 가능하다는 이야기죠.) - 도현
         [http://cslibrary.stanford.edu/104/ Pointer Video] 동영상 용량이 크니 다운받아 보세요. -- 재선
         질문 !! 이클립스 쓰는데, run as에 이상한 JUnit Plug-in Test 이런거만 있는데, 어떻게 정상적으로 java application 나오게 하죠? -- 허아영
          - 그 파일에 public static void main(String[] args) 함수가 없어서 그런거 같은데... --선호
  • C++/SmartPointer . . . . 7 matches
         = smart pointer =
         #define _SMARTPTR_H
         // reference countable smart point
         // circular member setting will not free memory
         // In other word, each object has the other object's smart pointer.
          int _Refcnt;
          IncRefcnt();
          IncRefcnt();
          IncRefcnt();
          void IncRefcnt()
          이런걸 안써도 되어서 Python이 재미있는 것일지도. (하지만 Extending 쪽에서는 결국 써야 하는.. 흑) --[1002]
  • CollectionParameter . . . . 7 matches
         == Collecting Parameter ==
          for(vector<People>::iterator it = result.begin() ; it != result.end() ; ++it)
          for(vector<People>::iterator it = result.begin() ; it != result.end() ; ++it)
          for(vector<People>::iterator it = result.begin() ; it != result.end() ; ++it)
          for(vector<People>::iterator it = result.begin() ; it != result.end() ; ++it)
          for(vector<People>::iterator it = result.begin() ; it != result.end() ; ++it)
          for(vector<People>::iterator it = result.begin() ; it != result.end() ; ++it)
  • DataStructure/Graph . . . . 7 matches
          * Adjacency List(Linked List로 표현)
         = 최소 비용 신장 트리(Minimum Cost Spanning Trees) =
         == Single Source, All Destination(하나의 시작점에서 모든 곳으로의 Shortest Path를 구할수 있단말이다) ==
          * dist값 갱신 : dist[w] = min { dist[w], dist[u] + cost[u, w] }
          * A(k)[i, j] = min { A(k-1)[i,j], A(k-1)[i, k] + A(k-1)[k, j] }
  • DesignPatterns/2011년스터디/1학기 . . . . 7 matches
          1. High Cohesion Low Coupling과 SOLID(SRP, OCP, LSP, ISP, DIP)에 대해 다시 생각해보는 시간이 되었다.
          1. SRP(Single Response Principle)에 대해 얘기하면서 '책임'이란 무엇인가에 대한 이야기가 나왔다. 삽질 경험이 없는 사람에게 객체지향 원칙을 설명할 때 '책임'이 무엇인지 어떻게 이해시켜야 할지 모르겠다. 오늘 얘기하면서 낸 결론도 경험이 없으면 이해하기 어렵다는 것…
          1. Factory Method와 Template Method 방법에대해 나쁜점을 설명하는데 Swing이 나오니까 다시 화난다. 난 Swing디자인이 싫어!!
          * 다음시간에는 임상현의 SE 프로젝트인 WinMerge프로젝트를 도와주겠습니다!!!
          1. Block과 Line에서 어느 쪽이 실제 status를 가지고 있어야 할지가 설계의 주요 이슈였다.
  • EnglishWritingClass/Exam2006_1 . . . . 7 matches
         = EnglishWritingClass =
         1. Prewriting 종류를 기술하라.
         Freewriting, Clustering, Brainstorming, Planning
  • HardcoreCppStudy/첫숙제 . . . . 7 matches
          * 함수의 중복정의(Overloading)에 대해 기술할 것. 예제도 스스로 만들어 보기 // 책에는 재정의라고 나와있음.
          ||[HardcoreCppStudy/첫숙제/Overloading/변준원]||
          ||[HardcoreCppStudy/첫숙제/Overloading/장창재]||
          ||[HardcoreCppStudy/첫숙제/Overloading/임민수]||
          ||[HardcoreCppStudy/첫숙제/Overloading/김아영]||
         한가지 질문.. 숙제를 하셨으니, 짜면서 overloading 으로 얻어지는 자신이 생각하는 장점과 단점은 무엇인가요? 저에게도 정답은 없습니다. 처음 접하시는 여러분의 느낌이 궁금해서요.--NeoCoin
  • HelpMiscellaneous . . . . 7 matches
         === UrlMappings ===
         특정 URL을 fix해주는 기능을 제공합니다. 예를 들어 과거의 {{{http://foobar.org}}}였던 링크가 최근에 {{{http://foobar.com}}}으로 바뀌었다면 이를 UrlMappings에 등록해서 자동으로 잘못된 URL 정보를 fix할 수 있게 해줍니다. 이 기능은 단지 대치만 해주기 때문에 실제로 페이지 내용이 바뀌거나 하지는 않습니다.
         === SubscribePlugin ===
         === ScrapPlugin ===
         === RatingPlugin ===
         === KeywordsPlugin ===
  • ISAPI . . . . 7 matches
          * IIS(Internet Information Services)란 웹 서버, FTP 서버와 같이 기본적이고 범용적인 인터넷 서비스를 시스템에서 제공할 수 있게 해주는 소프트웨어를 말한다. 기존 윈도우2000 제품군의 경우 기본적으로 IIS 5.0을 제공하였고 윈도우XP의 기존 IIS 5.0의 기능을 개선한 IIS 5.1을 제공하고 있다. 한 마디로 HTTP, FTP, SMTP 서버의 묶음이다.
          프로그래 추가/제거 -> Windows 구성 요소 추가/제거 -> 인터넷 정보 서비스(IIS)
         Internet Server Application Programming Interface 의 약자로 개발자에게 IIS 의 기능을 확장할 수 있는 방법을 제공한다. 즉, IIS 가 이미 구현한 기능을 사용해서 개발자가 새로운 기능을 구현할 수 있는 IIS SDK 다. 개발자는 ISAPI 를 이용해서 Extensions, Filters 라는 두 가지 형태의 어플리케이션을 개발할 수 있다.
          * Low-Level Control : access to the whole array of Win32 API or 3rd party API
          * Development requires more time : written in C or C++
          * Scailability gains are not necessarily automatic : runs faster than others but there is no guarantee of perfect scalability
          * ISAPI operates below helpful IIS infrastructure : helpful programming abstractions are absent. (ex: session )
  • IsThisIntegration?/김상섭 . . . . 7 matches
         4337326 2006-02-15 08:15:39 Accepted 0.352 448 28565 C++ 10209 - Is This Integration ?
         #include <iostream>
         #include <math.h>
         using namespace std;
         int main()
          cout.setf(ios::showpoint);
          while(cin >> temp)
  • Java Study2003/첫번째과제/곽세환 . . . . 7 matches
         자바의 주된 특징은 기존의 C/C++ 언어의 문법을 기본적으로 따르고, C/C++ 언어가 갖는 전처리기, 포인터, 포인터 연산, 다중 상속, 연산자 중첩(overloading) 등 복잡하고 이해하기 난해한 특성들을 제거함으로써 기존의 프로그램 개발자들이 쉽고 간단하게 프로그램을 개발할 수 있도록 합니다.
         자바는 C++와는 달리 처음부터 객체지향 개념을 기반으로 하여 설계되었고, 객체지향 언어가 제공해 주어야 하는 추상화(Abstraction), 상속(Inheritance), 그리고 다형성(Polymorphism) 등과 같은 특성들을 모두 완벽하게 제공해 주고 있습니다. 또한, 자바의 이러한 객체지향적 특성은 분산 환경, 클라이언트/서버 기반 시스템이 갖는 요구사항도 만족시켜 줄 수 있습니다.
         자바는 서로 다른 이종(Heterogeneous)의 네트워크 환경에서 분산 되어 실행될 수 있도록 설계되었습니다. 이와 같은 환경에서는 응용 프로그램들이 다양한 하드웨어 아키텍쳐 위에서 실행될 수 있어야만 합니다. 이를 위해 자바 컴파일러는 이종의 하드웨어 및 소프트웨어 플랫폼에서 효율적으로 코드를 전송하기 위해 설계된 아키텍쳐 중립적인 중간 코드인 바이트코드를 생성합니다. 이는 동일한 자바 프로그램의 자바 바이트코드가 자바 가상머신이 설치되어 있는 어떤 플랫폼에서도 실행될 수 있도록 하는 것입니다. 또한, 자바는 기본 언어 정의를 엄격하게 함으로써 효율적인 이식성을 제공해 주고 있습니다. 예를 들어, int 형과 같은 기본 데이터형의 크기를 플랫폼과 무관하게 일정하게 하고, 연산자의 기능을 확실하게 규정하고 있습니다. C 언어를 이용하여 int 형을 선언할 때, 도스에서는 16비트, 윈도우 95/98/NT 등 32비트 운영 체제 환경에서는 32비트, 유닉스에서는 32비트 등 그 플랫폼에 따라 크기가 다르지만, 자바에서는 플랫폼에 상관없이 32비트로 고정되도록 하였습니다. 이는 자바 프로그램이 실행되는 환경이 자바 가상머신으로 동일하기 때문입니다.
         인터프리터(Interpreter) 방식이다:
         자바 언어로 작성된 자바 프로그램을 중간언어 형태인 자바 바이트코드로 컴파일하고, 이렇게 생성된 자바 바이트코드를 자바 인터프리터가 해석함으로써, 자바 인터프리터와 런타임 시스템이 이식(porting)된 모든 플랫폼에서 자바 바이트코드를 직접 실행할 수 있습니다.
          public static void main(String args[]) {
          System.out.println("Hello World!");
  • JavaScript/2011년스터디/7월이전 . . . . 7 matches
          * http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work
          * HTML은 self closing이 안된다는 내용인것 같네요. 다시 읽어봐야겠어요 - [서지혜]
          * 공부하면 할수록 HTML이라던가 웹에 대히 공부해야겠다는 생각만 듭니다. javascript만 사용한다는 것은 무리인것 같아요. 이번에는 연속적으로 키보드 이벤트를 받는 문제였는데 생각보다 쉽지 않네요ㅠ 은 innerHTML은 또 처음 들어요;; 여튼 더 공부하겠습니다!! - [박정근]
          * 오늘은 PairProgramming으로 [http://probablyinteractive.com/url-hunter URLHunter]를 만들어보았는데 setInterval 함수를 사용하여 계속 페이지 주소를 바꿔주는 부분까지 성공했습니다. 처음에는 setTimeout 함수를 사용해서 생각처럼 제대로 작동하지 않았어요. 다음주엔 새내기가 스터디에 합류할텐데 매우 기대됩니다. 우리가 했던것들을 설명해주고 같이 [http://probablyinteractive.com/url-hunter URLHunter]를 만들어보려고 해요. 시간이 너무 걸리지 않도록 어떻게 접근할지 주말에 미리 생각해보겠습니다. - [김수경]
          * PairProgramming으로 위의 주소로 들어가면 보이는 URLHunter를 만드는데 도전하였습니다. 제가 혼자 생각할 때에는 어디서부터 어떻게 접근해야 할지 막막했었는데 Pair로 하니까 점점 먼가가 되가는것 같았어요. 어떻게 하면 주소창을 마음데로 조작 할 수 있는지 더 고민해 봐야겠습니다. - [박정근]
  • JavaStudyInVacation/진행상황 . . . . 7 matches
          * awt 와 swing 의 차이를 알아내기.
         ||영동||["AwtVSSwing/영동"]||
          * http://www.jini-club.net/eclipse/dw_EclipsePlatform.html 한글
          * http://gnome.or.kr/moin.cgi/JavaSWT 한글(간단 소개)
          * http://www-106.ibm.com/developerworks/library/j-nativegui/index.html
          See Also ["Java/NestingClass"] 정진균 군이 수고해 주셨습니다. 그냥 이렇구나 하고 읽어 보세요. --NeoCoin
          이런것들은 다 같이 찾아보고, 다 같이 토론하고, 다들 이해했으면 하나로 정리해서 써두 될텐데요^^ 위에 AWT와 SWING의 차이도.. 그리고 아래 네트워크를 사용하는 방법도 마찬가지구요~ 이렇게 각자 쓸것까지야... --["상규"]
         ||상욱||["ConvertAppIntoApplet/상욱"]||
         ||영동||["ConvertAppIntoApplet/영동"]||
         ||진영||["ConvertAppIntoApplet/진영"]||
          '''''이거부터는 각자 하지 말고 같이 하라고 했는데요....''''' ["JavaStudyInVacation/과제"]를 잘 읽고 하세요. 아무래도 내일 다 끝내는건 무리가 있는듯 하군요. 다음주에는 제가 계속 학교에 있습니다. 다음주에도 계속하겠습니다. 이번주처럼 계속 참여해주세요. --["상규"]
         ["JavaStudyInVacation"]
  • JustDoIt . . . . 7 matches
         스펙 : [3rdPCinCAUCSE/ProblemB]
         아니면 Seminar:FourBoxes
         Seminar:SpiralArray
         B번문제 어떻게 풀어요?? [3rdPCinCAUCSE/ProblemB] -홍선-
         uncapping을 배워보아요 -_-^ 한달에 1~2만원은 거저 벌듯 케케 -홍선-
         DeleteMe scienfun 님, [JustDoIt/소수구하기]에 원래 작성하신 소스는 어찌하실 건지요? 해당 소스는 자신이 작성한 고유한 것이니, 중복이 아니잖아요. 다른 해결책은 없을까요? --NeoCoin
          DeleteMe 저는 저의 발언 때문에 지운줄 알고, 미안한 생각을 하고 있었습니다. --NeoCoin
  • Lines In The Plane . . . . 7 matches
         ==== Recurrent Problems - Lines In The Plane ====
         What is the maximum number L<sub>n</sub> of regions defined by lines("unfolding" or "unwinding") in the plane?
  • MFCStudy_2001 . . . . 7 matches
          * 벽돌깨기:[http://zeropage.org/pds/MFCStudy_2001_final_혜영_Alcanoid.exe 혜영],[http://zeropage.org/pds/MFCStudy_2001_final_인수_Arca.exe 인수],[http://zeropage.org/pds/MFCStudy_2001_final_선호_arkanoid.exe 선호]
          * 오목:[http://165.194.17.15/~namsangboy/Projects/ai-omok/omok.exe 상협],[http://zeropage.org/pds/MFCStudy_2001_final_창섭_winomok.exe 창섭]
          * 지뢰찾기:[http://zeropage.org/pds/MFCStudy_2001_final_영창_MINE_blue.exe 영창];인수와 선호는 소스 날려 먹었다는 납득할수 없는(--+) 이유로 거부;[[BR]]
          * [http://zeropage.org/~neocoin/data/MFCStudy_2001/MFC_Macro설명.rar MFC_Macro설명]:MFC에서 MessageMap을 구현하는 메크로 설명
  • MacroMarket . . . . 7 matches
         moinmoin의 Macro 관련 페이지. {{{~cpp [[TableOfContents]], [[BR]] }}} 등등은 일종의 moinmoin 플러그인으로 파이썬을 이용, 향후 추가가 가능합니다.
         현재 moinmoin에서 만들어진 Macro들에 대해서는 http://purl.net/wiki/moin/MacroMarket 를 참조하세요.
  • ModelViewPresenter . . . . 7 matches
         TwistingTheTriad
         ConnectingTheDots
          * Model - domain data
          * Interactor - 키보드나 마우스 이벤트들을 Command 나 Selection 으로 매핑한다.
         Model-View-Presenter or MVP is a next generation programming model for the C++ and Java programming languages. MVP is based on a generalization of the classic MVC programming model of Smalltalk and provides a powerful yet easy to understand design methodology for a broad range of application and component development tasks. The framework-based implementation of these concepts adds great value to developer programs that employ MVP. MVP also is adaptable across multiple client/server and multi-tier application architectures. MVP will enable IBM to deliver a unified conceptual programming model across all its major object-oriented language environments.
  • OpenCamp/첫번째 . . . . 7 matches
          * 13:00~13:10 Opening
          * 14:15~15:00 Reverse Engineering of Web for Android Apps 정진경
          * 16:00~16:45 OOP in JavaScript 서영주
          * 18:00~19:00 Dinner
          * 데블스도 그렇고 이번 OPEN CAMP도 그렇고 항상 ZP를 통해서 많은 것을 얻어가는 것 같습니다. Keynote는 캠프에 대한 집중도를 높여주었고, AJAX, Protocols, OOP , Reverse Engineering of Web 주제를 통해서는 웹 개발을 위해서는 어떤 지식들이 필요한 지를 알게되었고, NODE.js 주제에서는 현재 웹 개발자들의 가장 큰 관심사가 무엇있지를 접해볼 수 있었습니다. 마지막 실습시간에는 간단한 웹페이지를 제작하면서 JQuery와 PHP를 접할 수 있었습니다. 제 기반 지식이 부족하여 모든 주제에 대해서 이해하지 못한 것은 아쉽지만 이번을 계기로 삼아서 더욱 열심히 공부하려고 합니다. 다음 Java Conference도 기대가 되고, 이런 굉장한 행사를 준비해신 모든 분들 감사합니다. :) - [권영기]
  • PHP . . . . 7 matches
          PHP약어를 풀어쓰면 PHP: Hypertext Preprocessor입니다. 약어의 첫번째 글자가 약어이기 때문에 많은 사람에게 혼란을 줍니다. 이와 같은 약어를 재귀적 약어라고 부릅니다. 궁금하신 분은 Free On-Line Dictionary of Computing사이트를 방문해보세요.
         || [PHP Programming] ||
          * [PHPStudy2005/RWAPMInstall]
          * [PHP Programming/HtmlTag]
          * [zyint/php]
          * [http://www.phpschool.com/v2/index.html PHP School]
          * [http://ko.blog.influx.kr/2012/04/php.html PHP: 잘못된 디자인의 프랙탈]
  • ProjectPrometheus/MappingObjectToRDB . . . . 7 matches
         참조 문서 : http://martinfowler.com/isa/OR-mapping.html
          For Login
          For Recommendation System (Read Book, point )
          For Book Information
          For cauBook Information (중대 도서관시 유일한 키)
          For Recommendation System ( Related Book Point )
         PEAA 의 RDB Mapping 과 관련된 패턴을 바로 적용하는 것에 대한 답변
         한편으로 [http://www.xpuniverse.com/2001/pdfs/EP203.pdf Up-Front Design Versus Evolutionary Design In Denali's Persistence Layer] 의 글을 보면. DB 관련 퍼시스턴트 부분에 대해서도 조금씩 조금씩 발전시킬 수 있을 것 같다. 발전하는 모양새의 중간단계가 PEAA 에서의 Table/Row Gateway 와도 같아 보인다.
          1. 13개월 프로젝트인데 2만라인짜리라는점 - 뭐.. 꼭 소스 라인수로 세는건 무리가 있긴 하지만. Servlet 프로젝트 2만라인. 내가 전에 팀 프로젝트로 MFC 엑셀 만들때가 1만 7천라인이였는데. -_-a 물론, Refactoring 이 잘 되어있고, XP 가 잘 적용된 프로젝트이라면 적은라인수로 많은 일을 하겠지만.
  • ProjectZephyrus/ThreadForServer . . . . 7 matches
         [http://zeropage.org/~neocoin/ProjectZephyrus/data/junit.jar jUnit Lib] [[BR]]
         [http://zeropage.org/~neocoin/ProjectZephyrus/data/mm.mysql-2.0.14-bin.jar MySQL JDBC Driver][[BR]]
         InfoManager쪽의 writeDeleteBuddy 부분을 완성해서 commit시켜라
         만들어서 InfoManager가 최초 생성시 앞의 두개를 수행하도록 하는데 위치는
         InfoManager.getInstance()의 if문 안쪽에 넣어주면 sync문제도 해결될것이다.
         그후 남은 할일이라면, 현재 InfoManager가 다른 package임에도 불구하고 command package에 대한
         information hiding이 잘 지켜지지 않았다. 다른 쪽은 내가 코딩하면서 package내부는 느슨하게,
         InfoManager의 코드들의 경우 attribute에 직접 접근하는 부분이 너무많은듯 하다.
         이부분을 refactoring할 요소가 남은것 같다. 이는 네가 commit후에
         일단, ["ProjectZephyrus/Server"]의 진행율에 기록된 대로 InfoManager의 DeleteBuddy부분외에는 완료되었다.
         6/7일에 상규와 만나서 InfoManager를 거의(?) 마쳤는데, 일단 전에 PacketForm 석천이와 회의할때와 바뀐것이
          * 저도 오늘(월욜)까지 작업 왠만큼 끊내놓을께요 한편, wincvs 안쓸랍니다 eclipse 써야지 원...--재동
  • PythonMultiThreading . . . . 7 matches
         Python 에서는 2가지 thread interface 를 제공한다. 하나는 C 스타일의 API 를, 하나는 Java 스타일의 Thread Object를.
          print "thread : ", i, args
         if __name__=="__main__":
          for i in range(100000,0,-1):
          print "waiting: ", i
         다른 차원의 기법으로는 Seminar:LightWeightThreads 가 있다.
  • SchemeLanguage . . . . 7 matches
          * [http://www.swiss.ai.mit.edu/projects/scheme/mit/7.7/7.7.1/scheme-7.7.1-ix86-win32.exe MIT Scheme]
          * http://zeropage.org/pub/language/scheme/intro.txt - Scheme 이라는 언어가 무엇인지 소개하고있는 자료
         (define (factorial x)
          (begin
          (begin
          (printf "~v * ~v = ~v" x y (* x y))
          (newline)
  • TheKnightsOfTheRoundTable/김상섭 . . . . 7 matches
         #include <iostream>
         #include <math.h>
         using namespace std;
         int main()
          cout.setf(ios::showpoint);
          while(cin >> a >> b >> c)
  • TheKnightsOfTheRoundTable/하기웅 . . . . 7 matches
         #include <iostream>
         #include <cmath>
         using namespace std;
         int main()
          cout.setf(ios::showpoint);
          while(cin>>a>>b>>c)
  • UglyNumbers/JuNe . . . . 7 matches
          for lastug,p in zip([ugs[-1]]*len(prim),prim)]
          ts=[ugs[ind]*mul for ind,mul in zip(tris,prim)]
          ugs.append(min(ts))
         if __name__=='__main__':
          print "The 1500'th ugly number is",ugly(1500)[-1]
  • UserStoriesApplied . . . . 7 matches
         Mike Cohn's User Stories Applied shows how software teams can drive development through user stories, simple, clear, brief descriptions of functionality valuable to real users. It covers user role modeling, gathering stories, working with managers, trainers, salespeople, and other proxies, writing user stories for acceptance testing, and using stories to prioritize, set schedules, and estimate release costs.
  • WritingOS . . . . 7 matches
         = Writing OS =
         http://www.aladdin.co.kr/shop/wproduct.aspx?isbn=8989975603
         http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200503170002
         http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200405280003
         http://www.cs.washington.edu/homes/tom/nachos/
  • django/ModifyingObject . . . . 7 matches
         = insert & update =
         SQL문에서는 insert into values 구문을 이용해 레코드를 삽입하고, update set where 구문을 이용해 레코드를 수정한다. 하지만 django는 이 둘을 하나로 보고 데이터베이스에 레코드를 삽입하고 갱신하는 작업을, 모델로 만든 객체를 저장(save)하는 것으로 추상화했다. 기본적으로 모델클래스는 save메소드를 가진다. 따라서 개발자가 작성한 모델도 save메소드를 가지며, 이는 오버라이딩 할 수 있다. 아래 예에서 보듯이 save 메소드는 새로만든 레코드 필드의 속성에 따라서 적당히 삽입과 갱신 작업을 수행한다.
         e.save() # insert
          # First, try an UPDATE. If that doesn't update anything, do an INSERT.
          # Determine whether a record with the primary key already exists.
          # Create a new record with defaults for everything.
          cursor.execute("INSERT INTO %s (%s) VALUES (%s)" %
  • intI . . . . 7 matches
         int i = 0;
         int i...
         for(int i=0; i<...
         int i=0;
         integer의 i 인거지?? 그럼 언제부터 int i 라는 변수가 사용된 것일까?? 80년대의 C언어 책에서도 int i 를 사용하고 있었을까??
  • 구구단/민강근 . . . . 7 matches
         #include<iostream>
         using namespace std;
         int main()
          for(int a=1;a<=9;a++)
          for(int i=2;i<=5;i++)
          for(int i=6;i<=9;i++)
  • 구구단/유상욱-Scheme . . . . 7 matches
         ( define (gugudan x y)
          (begin (when (> x 9) (exit) )
          (when (> y 9) (begin (gugudan (+ x 1) (- y 9)) (exit) ))
          (print x) (write 'x) (print y) (write '=) (print (* x y)) (newline)
  • 구구단/장창재 . . . . 7 matches
         #include <iostream.h>
         int main()
          for(int i = 1; i <10 ; i++)
          for (int k = 2; k < 6 ; k++)
          for(int j = 1; j <10 ; j++)
          for (int k = 6; k < 10 ; k++)
  • 데블스캠프2005/RUR-PLE/Harvest/김태훈-zyint . . . . 7 matches
         # Function Definitions #
          for i in range(no):
         def get2line(a,b):
         # main source code #
         get2line(6,5)
         get2line(5,5)
         get2line(5,5)
  • 데블스캠프2006/월요일/연습문제/if-else/주소영 . . . . 7 matches
         #include <iostream.h>
         void main()
          int n,i;
          cin >> n;
         #include <iostream.h>
         void main()
          cin >> a;
  • 데블스캠프2006/월요일/연습문제/switch/이경록 . . . . 7 matches
         #include <iostream.h>
         int main(void)
          int score[10];
          int i,A=0,B=0,C=0,D=0,F=0;
          int jul=0;
          cin>>score[i];
  • 데블스캠프2006/월요일/연습문제/switch/정승희 . . . . 7 matches
         #include <iostream>
         using namespace std;
         int main()
          int n[10]={0,},p[5]={0,};
          for(int i=0;i<10;i++)
          { cin >> n[i];
  • 데블스캠프2006/화요일/pointer/문제4/주소영 . . . . 7 matches
         #include<iostream>
         using namespace std;
         void main()
          cin >>buf;
          int length = strlen(buf);
          int i;
          int r=1;
  • 데블스캠프2009/금요일후기 . . . . 7 matches
         == SPECIAL Seminar - 김창준 선배님 ==
         == Short Coding & ACM - 김수경 ==
          * '''서민관''' - 그냥 코딩도 부족한 점이 한참 많은 저한테 Short Coding은 너무 힘들었습니다. 결국 결과물도 내지 못 했고 말이지요. 그렇지만 전에 short coding을 했던 점에서 비추어 봐도 그렇고, 코드를 짧게 하면서 문제에서 요구하는 점을 정확하게 짚어내는 기술과 가장 짧고 간단하게 구현하는 기술이 늘어나는 것 같습니다. 제가 생각하기에 이 부분이 저한테 가장 부족하면서도 가장 필요한 부분이 아닌가 생각합니다. 정말 힘들지만서도 피해갈 수 없는 길이지 싶네요.
          * [송지원] - 처참했다. 내가 처참했던 이유는 Short Coding에 실패했기 때문이 아니라 Coding 자체에 실패했기 때문이다. 아이디어는 제대로 생각했는데 구현을 잘 못하겠다는 나의 첫 마디는 헛소리였다. 아이디어도 틀렸고 코딩도 처참했다. 그리고 마지막엔 아이디어를 줘도 Wrong Answer를 띄우고 말았다. (주어진 숫자에 대해서는 성공했지만 정작 1이나 2를 input으로 받으면 실패했기 때문) 줘도 못받아먹는 이 못난 인간을 어찌하면 좋으리요 ㅋㅋㅋㅋ
  • 데블스캠프2009/목요일/연습문제/다빈치코드/서민관 . . . . 7 matches
         #include <stdio.h>
         int main(void)
          int number;
          int i = 0, j = 0, m, cardnum;
          fflush(stdin);
          printf("%c %d\n", hand[j].color, hand[j].number);
  • 마름모출력/김범준 . . . . 7 matches
         if __name__ == '__main__':
          p = raw_input('패턴 입력: ')
          n = input('변의 길이 입력: ')
          for i in range(1, n+1, 2):
          print ' '*((n-i)/2), p*i
          for i in range(n-2, 0, -2):
          print ' '*((n-i)/2), p*i
  • 반복문자열/김영록 . . . . 7 matches
         #include <iostream.h>
         void string_output();
         int main()
         int i;
         string_output();
         void string_output()
  • 반복문자열/조현태 . . . . 7 matches
         #include <iostream>
         using namespace std;
         void print_CAUCSE_LOVE(void);
         void main(){
          for (register int i=0; i<5; ++i)
          print_CAUCSE_LOVE();
         void print_CAUCSE_LOVE(){
  • 상협/Diary/8월 . . . . 7 matches
          * Designing Object-Oriented Software 이책 다보기 Failure (집에 내려가서 해야징.)
          * Refactoring책 대충 한번 흝어 보기 Failure (집에 내려가서 해야징.. -_-;;)
          * 뭘했는지 잘 기억이.. -_-;; WinSock 좀 보고, ["비행기게임"] 이것도 좀 하궁..
         || ["3DAlca"] || WinSock 봄 || 멀었당. ||네트워크를 위해서.. -_- ||
         || ["3DAlca"] || WinSock봐서 만들 준비 다하기 || 10% || 이룬.. -_-; ||
         || ["3DAlca"] || WinSock봐서 만들 준비 다하기 || 15% || 이룬.. -_-; ||
         || ["3DAlca"] || WinSock봐서 네떡 기반 닫기 || 아직 || 아싸 ||
  • 새싹교실/2013/책상운반 . . . . 7 matches
         #include <stdio.h>
          int main(){
          printf("Hello World! \n");
          printf("%d",a());
          int a(){
          * #include <stdio.h> 를 왜 쓰는 건지
  • 성당과시장 . . . . 7 matches
         국내에서는 최근(2004) 이만용씨가 MS의 초대 NTO인 [http://www.microsoft.com/korea/magazine/200311/focusinterview/fi.asp 김명호 박사의 인터뷰]를 반론하는 [http://zdnet.co.kr/news/column/mylee/article.jsp?id=69285&forum=1 이만용의 Open Mind- MS NTO 김명호 박사에 대한 반론] 컬럼을 개재하여 화제가 되고 있다.
         그외에도 [http://kldp.org/root/gnu/cb/homesteading/homesteading.ko.html 인지권의 개간], [http://kldp.org/root/gnu/cb/hacker-revenge/ 해커들의 반란]이라는 논문도 있다. [http://kldp.org/root/cathedral-bazaar/cathedral-bazaar.html 성당과시장], [http://kldp.org/root/gnu/cb/homesteading/homesteading.ko.html 인지권의 개간], [http://kldp.org/root/gnu/cb/magic-cauldron/ 마법의 솥], [http://kldp.org/root/gnu/cb/hacker-revenge/ 해커들의 반란] 순으로 씌였다.
  • 성적처리프로그램 . . . . 7 matches
         #include <iostream>
         using namespace std;
         int main()
          int i ;
          int num[5]={0} ;
          cin >> i ;
  • 소수구하기/재니 . . . . 7 matches
         #include <iostream.h>
         #include <ctime>
         int main()
          int premium[5133], count = 0;
          for (int i = 3 ; i <= 50000 ; ++++i)
          for (int j = 0 ; j <= count ; j++)
  • 시간맞추기/문보창 . . . . 7 matches
         #include <conio.h>
         #include <iostream>
         #include <ctime>
         using namespace std;
         int main()
          cout << "you win!!!\n";
  • 위시리스트 . . . . 7 matches
          * 크롬북 [http://www.google.com/intl/en/chrome/devices/ 링크 - [:안혁준 안혁준]]
          * [http://books.google.co.kr/books?id=oowq_6bAgloC&printsec=frontcover&dq=go+lang&hl=ko&sa=X&ei=5f-WU8rTCM_-8QXu5oGwAw&redir_esc=y#v=onepage&q=go%20lang&f=false the way to go]
          * http://www.aladin.co.kr/shop/wproduct.aspx?ISBN=8991268838
         The art of computer programming 1 ~ 4A
         Building Machine Learning Systems with Python 한국어판
  • 주민등록번호확인하기/김영록 . . . . 7 matches
         #include <stdlib.h>
         #include <iostream.h>
         int main()
          int sum=0;
          int count = 0;
          cin >> reg_num ;
  • 즐겨찾기 . . . . 7 matches
         [http://xper.org/wiki/seminar/RecentChanges XperSeminar]
         [http://www.passioninside.com 구근이형 개인위키]
         [http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Practices/Kata]
         [http://dbmain.snu.ac.kr/maro/books.html 책]
         [http://www.winapi.co.kr/ WINAPI]
         [http://www.cinsk.org/cfaqs/html/ C에서 자주묻는질문]
  • 타도코코아CppStudy/0724 . . . . 7 matches
          * Higher Order Programming
          * [Refactoring]
          * Higher Order Programming
          * OWIKI:Refactoring
         || 파스칼의 삼각형 || [수진] || Upload:pascal_sujin.cpp || 헉.. 줄까지 맞추다니 멋져요.^^ 함수 분리도 꽤 잘한거 같고.. 무엇보다 다른 개념(조합)을 사용했네요. 여태까지 한 사람들은 거의 다 위에꺼 더해서 했거든요. 하지만 로직과 보여주는게 분리가 안되어 있네요. 이따 저와 함께 고쳐 봅시다. ||
         || 랜덤워크 || [정우] || Upload:random_winy.cpp || 저랑 같이 고쳐봅시다. 고칠게 많네요. 결과는 제대로 되었지만... 이런 식으로 짠 코드는 나중에 수정하기가 골치아프답니다. ||
         || 마방진(홀수) ||[정우] ||Upload:mabang_winy.cpp || 잘했어요. 고칠 거리가 좀 있긴 하지만.. 스스로 고쳐 보세요. 랜덤워크를 저와 함꼐 고쳐보면서 배운걸 마방진 고치는데 적용해 보세요. ||
  • 토이/메일주소셀렉터/김남훈 . . . . 7 matches
         [a-zA-Z] { printf("%s ", yytext); }
         domain_name [0-9A-Za-z][-0-9A-Za-z]*[0-9A-Za-z]
         last_domain com|net|co\.kr
         mail_address {mailname}@({domain_name}\.)+{last_domain}
         {mail_address} { printf("true.\n"); }
         .+ { printf("false.\n"); }
  • 튜터링/2013/Assembly . . . . 7 matches
          * Virtual, 2진수, 메모리 공간, ALU연산, Pipeline, Multitasking, 보호모드, Little-endian, RISC&CISC
          1. Instruction Execution Cycle을 도식하고, 설명하세요.
          1. Directive와 instruction의 차이점에 대해 설명하시오.
          4.다음 방식(indirect, indexed)로 코드를 작성하고, 설명하시오.
          indirect operands indexed operands
          * Interrupt
  • 피보나치/김진목 . . . . 7 matches
         {{{~cpp #include <stdio.h>
         int pres=1, prev=0, temp, i, n ;
         int main(int argc, char *argv[])
          printf("숫자를 입력해보셈 ㅋㅋ : ");
          printf("결과 : %d", pres);
  • 한유선 . . . . 7 matches
         #include<stdio.h>
         main(void)
          int a;
          int i;
          printf("몇단을 외우실꺼예요?\n");
          printf("단을 외울꺼예요~\n");
          printf("%d×%d=%d\n",a,i,a*i);
  • 현재 위키에 어떤 습관이 생기고 있는걸까? . . . . 7 matches
          * URL이나 dos, unix 디렉토리 구조 같아서 친숙한 것 같다. 프로그래머나 컴퓨터 파워유저는 익숙한것 같지만, 한국말에는 어울리지 않는 것 같다. --NeoCoin
          * 그것이 왜? 편한 길인가 앞으로도 편할수 있는 길인가? 나쁜점은 왜 나쁜가? 하는 것을 이야기 하자는 것이지요. 저 이야기에는 분명 많은 부분이 생략되었을 겁니다. 이 길을 내도 되는건가? 왜 사람들이 많이 다닐까? 하는 고민들이요. OneWiki 에 길을 보면서 생각해 BoA요. --NeoCoin
          * 원래 빈칸도 잘 들어 갑니다. 하지만 여전히 검색은 보장 못하지요. --NeoCoin
          * 외국에서 개발되어서 어쩔수 없다기 보다, 현재 Web 인코딩을 그대로 filename에 가져다 쓰기 때문입니다. python 스크립트 만들어저 지워요. --NeoCoin
          * 페이지가 잘못만들어 지면 로그인해서 지운다. 반하여 ZeroWiki 와 차별되는 점 --NeoCoin
          * 좀 이상한(...라기보다는 제로위키에서였다면 생소했을) 페이지(ex) [InterestingCartoon], [GoodMusic], [창섭이 환송회 사진])를 만들어봤다. --[인수]
          과연 있을까나? --NeoCoin
  • 호너의법칙 . . . . 7 matches
         === input ===
          int a[11] = {3,3,3,3,3,3,3,3,3,3,3}
         |index| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
          || 김태훈([진트]) || C || || [호너의법칙/김태훈zyint] ||
         입력이 정말 저런모양인 것인가??? 앞에 int라고까지 적혀있다닛..;;한자씩 입력받는건가? 아니면 저 모양으로 파일입력? 아니면 소스내부에 존재?
          - 죄송 ! input안의 내용이 입력받아도 되고, 선언해도 될 듯, 선언이 더 나을것 같음.
         an 요거 n이 아래첨자군요 -_-;;;........ 태훈[zyint]
  • 1~10사이 숫자 출력, 5 제외 (continue 문 사용) . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main()
          for ( int i = 1 ; i <= 10 ; i++)
          continue;
  • 3N+1Problem . . . . 6 matches
         학교에서 무료함을 달래기 위해 acm programming contest 기출문제를 풀어보는데, ToyProblems 에서도 다룰만한 쉬운 문제가 있기에 이렇게 소개합니다. [http://acm.uva.es/p/v1/100.html 원문보기]
         1. input n
         2. print n
          || [임인택] || [HaskellLanguage] || 30분 || [http://janbyul.com/moin/moin.cgi/HaskellLanguage/3N%2B1Problem 여기] || . ||
         See also BioinfoWiki:AlgorithmQuiz/3Plus1
  • 5인용C++스터디/마우스로그림그리기 . . . . 6 matches
         || 문원명 || UploadZero:PaintApiMwm.zip || 잘했음. ||
         || 노수민 || UploadZero:MousePaintAPI_SM.zip|| 잘 했으나 천천히 그리면 끊겨서 그려짐. ||
         || 나휘동 || Upload:Leonardong_APIdrawing.zip || 컴파일 안됨. ||
         || 문원명 || UploadZero:PaintMfcMwm.zip || 잘했음. ||
         || 나휘동 || Upload:Leonardong_MFCdrawing.zip|| 잘했음. ||
         || 노수민 || [http://165.194.17.15/pub/upload/MousePaintMFC_SM.zip]|| 잘했음. ||
  • AKnight'sJourney/정진경 . . . . 6 matches
         #include <stdio.h>
         char* GetPath(int k)
         int main()
          int i, n, p, q;
          printf("Scenario #%d:\n%s\n\n", i, GetPath(p*100+q));
  • AM/20040705두번째모임 . . . . 6 matches
          * Spy++, goto definition 으로 실제 코드가 돌아가는 모습과 선언부분을 직접 보여줌 -> [1002] 개별상담, 선배에게 조언
         ex) 배우는 부분이 Windows Programming, Window Event Driven Programming, GDI, GUI Control 들이라 한다면
          * Spy++ 과 goto definition 을 통한 분석 & 설명을 중간중간 이용하기.
  • Ajax2006Summer/프로그램설치 . . . . 6 matches
          * 필요한 것은 '''Eclipse 3.2 Platform Runtime Binary''' 입니다. 용량은 33메가 정도입니다 : [http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.2-200606291905/eclipse-platform-3.2-win32.zip LINK]
         3. Workspace 설정 후 '''Help''' - '''Software Updates''' - '''Find and Install''' 을 선택합니다.
         4. 다음 다이얼로그에서는 '''Search for new features to install''' 을 선택 후 '''Next>'''를 클릭합니다.
         5. 맨 위의 '''Callisto Discovery Site'''에 체크박스를 한 후 '''Finish'''를 클릭합니다.
         9. '''Finish''' 를 선택합시다. 그러면 알아서 다운로드를 합니다.
         10. 다운로드가 끝나면 중간에 설치할 것이냐고 물어보는데 '''Install All'''을 선택해 줍시다.
  • Applet포함HTML/상욱 . . . . 6 matches
          codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1_01-windows-i586.cab#Version=1,4,1,1"
          pluginspage = "http://java.sun.com/products/plugin/index.html#download">
         ["JavaStudyInVacation/진행상황"]
  • Benghun . . . . 6 matches
         다른 곳으로 이사중 [http://earth.uos.ac.kr/~puteri/cgi-bin/puteri/wiki.cgi?강병훈 강병훈]
          nosmok - moin 으로 바꾸어서 이런 [FrontPage] 링크가 됩니다. 그리고 로그인 기능을 풀어 놨으니 해보세요. 편해요. --NeoCoin
         혹시 다음에서 일하세요? --NeoCoin
          그렇군ㅇ. ^^; 제가 지금 다음에 머무르고 있어서, 혹시나 했습니다. --NeoCoin
          그냥 뭐 홈페이지 만들지요 ;; --NeoCoin
  • C++Seminar03/SimpleCurriculum . . . . 6 matches
         [C++Seminar03]에서 진행하게 될 대강의 커리큘럼. 각 주에 하면 좋을것 같은 내용들을 간단하게 정리해둡니다. 페이지 크기가 커지면, 하위페이지로 [문서구조조정]을 할 것입니다.
          ===== Opening Lecture =====
          ===== Main Study =====
          ==== Opening Lecture ====
          ==== Main Study ====
         See also [C++Seminar03/SimpleCurriculum]
  • C/Assembly . . . . 6 matches
         Linux Kernel : 2.6.12-1-386
         -fomit-frame-pointer 함수를 call 할때 fp를 유지하는 코드(pushl %ebp, leave)를 생성하지 않도록 한다.
         -E Preprocess only; do not compile, assemble or link
         -S Compile only; do not assemble or link
         -o Compile and assemble, but do not link
         [C/Assembly/Main]
  • CodeRace/20060105/Leonardong . . . . 6 matches
          for mark in ''',.'():;~=-?!`''':
         for word in f.read().split():
          if word in result.keys():
         for word, count in result.items():
         for each in report:
          print each[0], each[1], asciiSum(each[0])
  • CodeRace/Rank . . . . 6 matches
         || 순위 || 이름 || Point ||
         - 특정 Point가 되었을 때, 소정의 상품을 드립니다.
         - 1등 : 3 Point
         - 2등 : 2 Point
         - 3등 : 1 Point
         - 특별상 : 2 Point
  • CompleteTreeLabeling . . . . 6 matches
         [http://online-judge.uva.es/p/v102/10247.html 원문보기]
         === About [CompleteTreeLabeling] ===
         ||Input||standard input||
         모든 잎(leaf)의 깊이가 같고 모든 내부 노드의 차수(degree)가 k인(즉 분기계수(branching factor)가 k인) 트리를 k진 완전 트리(complete k-ary tree)라고 한다. 그런 트리에 대해서는 노드의 개수를 쉽게 결정할 수 있다.
         === Input ===
         === Sample Input ===
         || [조현태] || C || . || [CompleteTreeLabeling/조현태] ||
         || [하기웅] || C++ || 1시간 30분 || [CompleteTreeLabeling/하기웅] ||
  • ComputerGraphicsClass/Exam2004_1 . . . . 6 matches
         Scanline Filling - 각 부분에 대해 어떤 일들이 일어나는지 쓰시오
         Homogeneous Coordination 에 대해 쓰고 왜 Computer Graphics 분야에서 많이 이용되는지 쓰시오
         Anti Aliasing : 배경의 명도가 90이고 칠해진 부분은 0 이 된다. Sub Pixel 은 9 일때 각 부분에 대한 명도값을 구하시오
         Clipping 알고리즘중 Liang-Barsky 를 설명하시고 Cohen-Sutherland 알고리즘보다 성능이 뛰어난 이유에 대해 쓰시오.
         3D Graphic Pipeline 을 그리고 각 부분의 transformation 에 대해 설명하시오
  • ConnectingTheDots . . . . 6 matches
         SoftwareDevelopmentMagazine 에 소개된 ModelViewPresenter 관련 구현 예.
         http://www.sdmagazine.com/documents/s=7147/sdm0206b/0206b.htm
         BoardPanel - View. 실제 Swing 등 구체적 라이브러리들을 이용, 실제 표현을 한다. BoardPresenter 와 상호참조 관계를 가진다.
         관계를 맺는 코드는 Dots.java 에 있다. 즉, initialize() 를 보면 다음의 코드가 나온다.
          _game = new Game(4, Arrays.asList(new String[] {"JL", "TL", "KML"}));
         BoardPanel.mouseReleased -> BoardPresenter.processClick -> Game.join 식으로 호출되며
         Game.boxClosed -> listener.boxClosed (여기서 listener 는 Presenter. Presenter 들은 여러개가 될 수 있다. Game 객체에 addListener 로 등록된 만큼) -> BoardPanel.drawInitials. 식으로 도메인 모델로부터 올라온다.
  • ConvertAppIntoApplet/진영 . . . . 6 matches
         import javax.swing.*;
          public void paintComponent(Graphics g)
          super.paintComponent(g);
          g.drawString("Not a Hello, World applet", 75, 100);
          public void init()
          Container contentPane = getContentPane();
         ["JavaStudyInVacation/진행상황"]
  • Counting . . . . 6 matches
         [http://online-judge.uva.es/p/v101/10198.html 원문보기]
         === About [Counting] ===
         === Input ===
         === Sample Input ===
          || 김상섭 || C++ || . || [Counting/김상섭] ||
          || 황재선 || Java || . || [Counting/황재선] ||
          || 문보창 || C++ || . || [Counting/문보창] ||
          || 하기웅 || C++ || 2시간 || [Counting/하기웅] ||
  • DataStructure/String . . . . 6 matches
         int nfind(char *strstr,char *ptnptn)
          int str_len=strlen(str); // 문자열의 길이
          int ptn_len=strlen(ptn); // 패턴의 길이
          int str_count=0; // 카운터
          int ptn_count=0;
  • FoundationOfUNIX . . . . 6 matches
          * [http://zeropage.org/~neocoin/putty.exe putty Client] 여기서 프로그램 다운 받아서 깔아서 접속하세요
          * find ./ -name '*.txt' (./ 현재 디렉토리 이후 모두 검색 , -name 파일을 이름으로 찾는 것을 의미, '*.txt' 패턴)
          * find ./ -name '*.txt' -ls -exec rm {} \; (현재 디렉토리 이후 *.txt 인파일을 모두 찾아서 지우기.
          * i - input 입력 모두로 전환
          * see also ["linux필수명령어"]
          * 쉘 스크립트 짜기 [http://kldp.org/KoreanDoc/Shell_Programming-KLDP kldp 쉘 프로그래밍 참고 강좌]
  • HelpOnActions . . . . 6 matches
          * `info`: 페이지 정보 및 과거 이력
          * `print`: 페이지를 프린트 뷰로 보기. 상단과 하단의 메뉴가 나오지 않고 콘텐츠를 위주로 나옵니다.
          * `subscribe`: 페이지 구독 SubscribePlugin 참조
          * `titleindex`: 페이지 목록을 텍스트로 보내거나 (Self:?action=titleindex) XML로 (Self:?action=titleindex&mimetype=text/xml'''''') 보내기; MeatBall:MetaWiki 를 사용할 목적으로 쓰임.
  • HowToStudyRefactoring . . . . 6 matches
         ["Refactoring"]을 혹은 동명의 책을 공부하는 법
         OOP를 하든 안하든 프로그래밍이란 업을 하는 사람이라면 이 책은 자신의 공력을 서너 단계 레벨업시켜 줄 수 있다. 자질구레한 기술을 익히는 것이 아니고 기감과 내공을 증강하는 것이다. 혹자는 DesignPatterns 이전에 ["Refactoring"]을 봐야 한다고도 한다. 이 말이 어느 정도 일리가 있는 것이, 효과적인 학습은 문제 의식이 선행되어야 하기 때문이다. DesignPatterns는 거시적 차원에서 해결안들을 모아놓은 것이다. ["Refactoring"]을 보고 나쁜 냄새(Bad Smell)를 맡을 수 있는 후각을 발달시켜야 한다. ["Refactoring"]의 목록을 모두 외우는 것은 큰 의미가 없다. 그것보다 냄새나는 코드를 느낄 수 있는 감수성을 키우는 것이 더 중요하다. 본인은 일주일에 한 가지씩 나쁜 냄새를 정해놓고 그 기간 동안에는 자신이 접하는 모든 코드에서 그 냄새만이라도 확실히 맡도록 집중하는 방법을 권한다. 일명 ["일취집중후각법"]. 패턴 개념을 만든 건축가 크리스토퍼 알렉산더나 GoF의 랄프 존슨은 좋은 디자인이란 나쁜 것이 없는 상태라고 한다. 무색 무미 무취의 無爲적 自然 코드가 되는 그날을 위해 오늘도 우리는 리팩토링이라는 有爲를 익힌다. -- 김창준, ''마이크로소프트웨어 2001년 11월호''
          * Minimize Comments : 코드의 가독성을 떨어뜨리지 않거나 혹은 오히려 올리면서 주석을 최소화하도록 노력한다. 이렇게 하면, 자동으로 리팩토링이 이뤄지는 경우가 많다.
          * Pair Refactoring : 함께 리팩토링한다. 혼자 하는 것 보다 훨씬 빨리 훨씬 더 많은 것을 배울 수 있다. 특히, 각자 작성했던 코드를 함께 리팩토링하고, 제삼자의 코드를 또 함께 리팩토링해 보라. 사람이 많다면 다른 페어가 리팩토링한 것과 서로 비교하고 토론해보라.
  • JUnit . . . . 6 matches
          * http://www.yeonsh.com/index.php?display=JUnit - 연승훈씨의 홈페이지. Cook Book (주소변경)
          * http://huniv.hongik.ac.kr/~yong/moin.cgi/JunitSampleCode - 박응용씨의 위키페이지. JUnit 간단한 예제.
         그리고 배치화일 디렉토리에 path 를 걸어놓고 쓰고 있죠. 요새는 JUnit 이 포함되어있는 IDE (["Eclipse"], ["IntelliJ"] 등등)도 많아서 이럴 필요도 없겠지만요. ^^ --석천
         java junit.swingui.TestRunner %1
          JUnit 에서 UnitTest (PyUnit) 에서처럼 testing message 나오게 하려면 어떻게 해야 하죠..? -임인택
          그 '''에서처럼''' 이란것이 무엇이지요? --NeoCoin
          PyUnit 에서 argument 로 -v 를 주면 testing message 가 나오지 않습니까..?
  • Map연습문제/박능규 . . . . 6 matches
         #include <iostream>
         #include <map>
         using namespace std;
         void main()
          for(int i=0;i<=strlen(m);i++)
          for(int j=0;j<=strlen(g);j++)
  • NextEvent . . . . 6 matches
         오, 정말 확 뒤집어지는 듯한 느낌의 제안이십니다. 말빨을 키워야 겠네요. ;; 검색과, 구상중 --["neocoin"]
          방학이겠지 뭐 --["neocoin"]
         현재 재학 중인 학생들 중 단 한 명이라도 오는 14, 15일의 Seminar:ReadershipTraining 에 와서 "공부하는 방법"을 배워가면, 그리고 그 문화를 퍼뜨릴 수 있다면 참 좋겠습니다. --JuNe
         http://alvin.jpl.nasa.gov/gat/ftp/study.txt
  • One/피라미드 . . . . 6 matches
         #include <stdio.h>
         void main()
          int i,j,k;
          printf("숫자를 입력하시오."); scanf("%d",&j);
          printf("*");}
          printf("\n");
  • PairSynchronization . . . . 6 matches
         NoSmok:PairDrawing 이 있긴 한데, 여기서는 개발자들끼리의 대화이므로 다른것을 써도 좋겠네요. PairModeling? --["1002"]
         ["sun"]이 PairProgramming을 하기에 앞서 CrcCard 섹션을 가지게 되었는데, 서로의 아이디어가 충분히 공유되지 않은 상태여서 CrcCard 섹션의 진도가 나가기 어려웠다. 이때 - 물론, CrcCard 섹션과는 별도로 행해져도 관계없다. - 화이트보드와 같은 도구를 이용해서 서로가 생각한 바를 만들어나가면서, 서로의 사상공유가 급속도로 진전됨을 경험하게 되었다.
          1. 순서를 바꿔가며 하나의 개념을 화이트보드에 그리고, 각 개념은 선으로 그어 표시한다. See Also: MindMapConceptMap
          1. PairSynchronization 이후, CrcCard 섹션이나 PairProgramming을 진행하게되면 속도가 빨리지는 듯 하다. (검증필요)
         See Also NoSmok:PairDrawing
  • PolynomialCoefficients/문보창 . . . . 6 matches
         #include <iostream>
         using namespace std;
         void main()
          int n, k, i, j, temp1, temp2, coeffi;
          while (cin >> n >> k)
          cin >> coeffi;
  • Profiling . . . . 6 matches
         '''Profiling'''(프로파일링)은 원하는 부분의 프로그램 성능을 측정하는 성능 테스트이다.
         80%의 소프트웨어 유지의 노력은(maintenance effort)는 20%의 코드에 쏟아 부어진다.
         '''Profiling'''(프로파일링)은 원하는 부분의 프로그램 성능을 측정하는 성능 테스트이다.
         == Profiling 의 방법 ==
          || C/C++ || [C++Profiling] ||
          || [Java] ||JavaProfiling ||
  • ProjectGaia/계획설계 . . . . 6 matches
          - - ... - Pointer - Pointer - Pointer - Pointer -
          * LSP(Last Slot Pointer)는 슬롯에 있는 ID를 B-Search하기 위해서 가장 안쪽 슬롯의 위치를 가리키도록 함.
          ==== 3. 레코드 삽입 - insert_s() ====
  • ProjectPrometheus/AT_BookSearch . . . . 6 matches
          "Referer":"http://165.194.100.2/cgi-bin/mcu100?LIBRCODE=ATSL&USERID=*&SYSDB=R",
          "Accept":"image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*"}
          print response.status, response.reason
          print response.status, response.reason
         if __name__=="__main__":
          unittest.main(argv=('','-v'))
  • ProjectPrometheus/Iteration1 . . . . 6 matches
         === 1st Iteration - 10 Task Point 완료 ===
         || Task || Point (Pair 기준 1시간 : 1 point) || 진행상황 ||
         || HTML Parsing || 2 || ○ (2시간) ||
         || HTML Parsing 결과를 Object 로 반환 || 1 || ○ (1시간) ||
         || Debian Server Setting; || 0.2 || ○ (20분) ||
  • ProjectPrometheus/Iteration3 . . . . 6 matches
         || 7/22 || 3차 Iteration Planning. 시작 ||
         === 3rd Iteration (7.5 Task Point Loaded. 5.5 Task Point Completed) ===
         || RS Sorting and 출력 || 1 || ○ (46분) ||
         ||||||Story Name : Recommendation System(RS) Implementation, Login ||
         || login 기능 구현 || 1 || ○ ||
  • ProjectPrometheus/UserStory . . . . 6 matches
         ||책 정보를 볼 때, 타 인터넷 사이트에 대한 (amazon, wowbook, yes24 등등) Link 를 제공받아 이용할 수 있다. ||
         3 RS Implementation, Login ~1.5 (0.5) , 0.5
         ||Best Book (Rating, 책 정보 열람에 따른 점수 기준)을 확인할 수 있다. ||
         5 RS (UI), Admin 0.5, 0.5
          * Best Book (Rating, 책 정보 열람에 따른 점수 기준)을 확인할 수 있다.
          * 책 정보를 볼 때, 타 인터넷 사이트에 대한 (amazon, wowbook, yes24 등등) Link 를 제공받아 이용할 수 있다.
  • PyIde/Exploration . . . . 6 matches
         Vim python box 써보다. VIM 의 해당 기능에 대한 빠른 Integration 은 놀랍기 그지없다. (BRM 이건, python 관련 플러그인이건)
         http://www.scintilla.org/ScintillaDoc.html
         BoaConstructor 로 UI 작업하고, 위험하겠지만 어차피 Spike 라 생각하고 Test 없이 지속적으로 리팩토링을 해 나가면서 prototype 을 만들어나갔다. StepwiseRefinement로 진행하니까 코드가 짧은 시간에 읽기 쉽고 빨리 진행되었다.
         약간만 Refactoring 해서 쓰면 될듯. Runner abstract class 추출하고, TestResult 상속받은 클래스 만들고,. Test Loading 은 TestLoader 그대로 쓰면 될것 같다.
         Eric 의 Qt Unittest 모듈이랑, PyUnit Tkinter 코드를 보니, 거의 바로 답이 나와버린 것 같긴 하다.
  • RedThon . . . . 6 matches
          {{|Many programmes lose sight of the fact that learning a particular system or language is a means of learning something else, not an goal in itself.
         AnswerMe 혹시 [김동경] 이라는 사람의 개인페이지가 RedThon 이기도 한가요? 그럼 이 페이지의 이름을 바꾸어야 할텐데요?--NeoCoin
          [http://turing.cafe24.com 왕초보 파이썬] 『열형강의 파이썬』 저자 이강성씨가 만든 파이썬 기초를 가르쳐주는 페이지입니다. 간단하게 따라해보세요.^^ --[Leonardong]
  • Score/1002 . . . . 6 matches
         def toInt(aList): return [{'O':1,'X':0}[v] for v in aList]
          for idx in range(1,len(aList)):
         input 에 대해서 여러 방법으로 변형을 시도. 그 중 좋은 아이디어가 떠오름.
         def ox(aList): return sum((len(e)*(len(e)+1))/2 for e in aList.split("X") if e!='')
         for each in ['OOXXOXXOOO','OOXXOOXXOO', 'OXOXOXOXOXOXOX', 'OOOOOOOOOO','OOOOXOOOOXOOOOX']: print ox(each)
  • StaticInitializer . . . . 6 matches
         Static Initializer 는 이러한 값들을 미리 셋팅하기 위해 사용하며 다음과 같은 문법을 이용한다.
         문제는 StaticInitializer 부분에 대해서 상속 클래스에서 치환을 시킬 수 없다는 점이다. 이는 꽤 심각한 문제를 발생하는데, 특히 Test 를 작성하는중 MockObject 등의 방법을 사용할 때 StaticInitializer 로 된 코드를 치환시킬 수 없기 때문이다. 저 안에 의존성을 가지는 다른 객체를 생성한다고 한다면 그 객체를 Mock 으로 치환하는 등의 일을 하곤 하는데 StaticInitialzer 는 아에 해당 클래스가 인스턴스화 될때 바로 실행이 되어버리기 때문에 치환할 수 없다.
         StaticInitialzer 에서 값만 치환하는 것으로 (상속클래스에서 해당 Class Variable 의 값을 바꿔주는식으로) 해결되는 문제라면 크게 어렵진 않다. 하지만, 만일 저 부분에 DB 나 File 등(또는 File 을 사용하는 Logger 등) 외부 자원을 이용하는 클래스를 초기화하게 된다면 사태는 더욱더 심각해진다. 처음부터 해당 Class 가 DB, File 등 큰 자원에 대해 의존성을 가지게 되는 것이다. 게다가 이는 상속을 하여 해당 부분을 Mock 으로 치환하려고 해도 StaticInitializer 가 먼저 실행되어버리므로 '치환'이 불가능해져버린다.
         이를 방지하려면, StaticInitializer 를 일반 Method 로 추출한뒤, 생성자에서 이를 호출한다. (단, 인스턴스를 2개 이상 만드는 클래스인경우 문제가 있겠다.)
          이 문제가, final static 으로 값이 세팅될때의 문제가 아닌가요? Mock의 생성자에서 교체 가능하지 않나요? --NeoCoin
          Mock 생성자에서 값이 교체되어도 StaticInitializer 자체가 실행된다는 점에는 변함이 없습니다. 만일 StaticInitializer 에서 외부 자원들을 사용한다면, Side-Effect 들을 피하기 어려운 경우가 많다는 것을 강조하고 싶었습니다. --[1002]
         실무에서 저러한 StaticInitializer 를 가장 많이 볼 수 있는 곳은 Logging 관련 코드이다. 보통 Logging 관련 코드들은 개발 마무리 즈음에 붙이게 되는데, 일정에 쫓기다 보니 사람들이 Logging 관련 코드에 대해서는 CopyAndPaste 의 유혹에 빠지게 된다. 순식간에 Logging 과 Property(해당 클래스에 대한 환경설정부분) 에 대한 Dependency 가 발생하게 된다. 팀 차원에서 조심할 필요가 있다. --[1002]
  • TAOCP . . . . 6 matches
          * Title : TheArtOfComputerProgramming
          * My Point
          * TheArtOfComputerProgramming(TAOCP) vol1. FundamentalAlgorithms을 읽는다.
         == Link ==
         [TAOCP/InformationStructures]
         책사야겠네... [http://kangcom.com/common/bookinfo/bookinfo.asp?sku=199711260004 강컴]보다 싼 데 있으면 알려줘~~
  • TCP/IP_IllustratedVol1 . . . . 6 matches
          * "'''''The word illustrated distinguishes this bool from its may rivals.'''''" 이 책의 뒷커버에 적혀있는 말이다. 이말이 이 책을 가장 멋지게 설명해준다고 생각한다.
          * 00 이정직 ["fnwinter"]
          * Comer 박사의 "INTERNETWORKING with TCP/IP Vol.1 : PRINCIPLES, PROTOCOLS, AND ARCHITECTURES" 를 빌렸다. -zennith.
          * 유보라...우선 중간고사를 치른 후 논의 해 보자..... 그 방법 밖이..ㅠㅠ -fnwinter
          * 중간 고시도 끝났으니 다시 논의 해 봐야 하지 않을까나..김군~ -- fnwinter
          * Comer 의 책은 일단 접어두련다. illustrated 를 다 본다음에나 보는게 좋을 듯. 역시 text 라는 이미지는 illustrated 쪽이 좀 더 강하니까. 그리고, 재동아 너는 그럼 공부는 안하고 듣기라도 하려냐? 물론.. 정직 네게 더 진행하자는 의지가 있을 때의 이야기겠지만. 아무튼.. 난 지금 udp 지나 multicasting broadcasting 쪽 보고있다. -zennith
  • WikiGardening . . . . 6 matches
         ''실제 위키의 View 구조를 조성하는 사람들이 드물기 때문에, 기존 게시판에서의 스타일과 똑같은 이용형태가 계속 진행되어버렸다는 생각이 든다. (이 경우 RecentChanges 가 Main View 가 된다.) (조만간 위키 전체에 대한 링크 구조 분석이나 해볼까 궁리중. 예상컨데, 현재의 ZeroWiki 는 Mind Map 스타일에 더 가까운 구조이리라 생각. (개념간 연결성이 적을것이란 뜻. 개인적으로는 볼땐, 처음의 의도한 바와 다르긴 하다.) --1002'' (DeleteMe ["1002"]의 글을 다른 페이지에서 옮겨왔습니다.)
          실제 위키의 View 구조를 조성하는 사람을 WikiGardening을 하는 사람이라고 보면 될까요? see NoSmok:WikiGardening --["이덕준"]
          * [http://165.194.17.15/wiki/FindPage?action=titlesearch&context=0&value=%BC%BC%B9%CC%B3%AA Title search for "세미나"]
         SeeAlso [http://no-smok.net/nsmk/_b9_ae_bc_ad_b1_b8_c1_b6_c1_b6_c1_a4#line42 제로위키 가꾸기], [문서구조조정토론]
  • Winamp . . . . 6 matches
         http://winamp.com
         [WinampPlugin을이용한프로그래밍]
         [WinampPluginProgramming/DSP]
  • XpWeek/20041221 . . . . 6 matches
          EngineeringTask 예상 5m
          TaskPoint 할당 10m
         아침에 TDD하면서 [Refactoring]이 만만치 않다는 생각을 했다. 생각보다 PlanningGame이 오래 걸려 지루한 느낌과 지친다는 느낌을 받았다. 고객의 입장일 때 내가 뭘 원하는지 명확하지 않았다. 그래도 내일은 왠지 잘 될 것만 같다.
         TDD 경험하면서 test class의 Refactoring을 어떻게 해야 될지 모르겠다. test 코드라 굳이 할 필요성을 못 느꼈고 테스트만 하면 된다는 생각이 들었기 때문이다. 인원이 적어서 고객과 개발자의 역할을 번갈아가면서 했는데 개발하기 쉬운 방향으로 생각을 이끌어나가는 것 같았다. 입장을 명확히 한 후 생각을 정리하고 표현해야겠다. 회의가 길어지면서 나타난 의욕상실이 아쉬웠다.
  • ZIM/CRCCard . . . . 6 matches
         || MessageWindow 열기 || MessageWindow ||
         || Message 분배 || MessageWindow, Session ||
         |||||| MessageWindow ||
         || OnlineZimmerList 표시 || Session, OnlineZimmerList ||
  • ZeroPageServer . . . . 6 matches
         === intra.zeropage.org ===
          * nginx (virtual host)
          * [http://planetwar.intra.zeropage.org planetwar]
          * ~~owncloud : [http://intra.zeropage.org/owncloud]~~
          * Linux에 익숙하지 못한 학우들이 연습할수 있는 공간을 마련하기 위해 만든 서버입니다.
          * 단순 실습을 위해서라면 intra.zeropage.org에 계정을 얻는것을 고려해 보세요
  • ZeroPagers . . . . 6 matches
          * 이영서 : ["Lupin'sHome"]
          * 이정직 : ["fnwinter"]
          * 류상민 : NeoCoin
          * 이광민 : ["geniumin"]
          * 정진균 : ["comein2"]
          * 정해성 : ["phoenix_insky"]
  • [Lovely]boy^_^/Diary/12Rest . . . . 6 matches
          * I studied a Grammar In Use Chapter 44,45,46
          * I read a Programming Pearls Chapter 6 a little, because I can't understand very well--;. So I read Chapter 7,8,9,10 roughly. In my opinion, there is no very serious contents.
          * I can treat D3D, DInput, but It's so crude yet.
          * The DInput's message priority is maybe so high... It's very very fast.--; I can't control it.
          * I modify above sentence.--; I test GetAsyncKeyState(), but it's speed is same with DInput.--; How do I do~~~?
          * I made a SnakeBite with Direct3D and DirectInput. I'll add sound with DirectSound, and I'll test DirectX's almost all contents.
          * I saw a very good sentence in 'The Fighting'. It's "Although you try very hard, It's no gurantee that you'll be success. But All succecssfull man have tried."
          * I feel that I am getting laziness.--;
  • aekae/* . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main()
          int i;
          int a,b,c,d;
  • apache/mod_python . . . . 6 matches
          * [moinmoin]을 설치하기 위해서는 [apache]에 [python]모듈을 설치해야 한다.
          * [ftp://ring.aist.go.jp/archives/net/apache/dist/httpd/modpython/win/] : 윈도우즈 환경에서 Apache 와 연동해서 설치할 경우에 왼쪽 링크 참고. 특히 주의할 점은 Apache 버전 자신의 것과 맞는 것으로 다운 받아야 함.(안그럴 경우 아파치 서버 시작 못함)
          * [http://www.modpython.org/live/current/doc-html/inst-testing.html] : 인스톨 테스트
  • ddori . . . . 6 matches
          * Born in 1980 November 9th
         = Interested In =
          * Kevin Kern - Hide and Seek
          * Brian Crain - Betterfly waltz
          * Rage Against Machine
          * Third eye blind - Semi-charmed life
  • snowflower . . . . 6 matches
         ||DCinema||디지털 시네마 인코더/디코더 using JPEG2000 || 2007.01 ~ ||
         ||CanvasBreaker||ObjectProgramming Project|| _ ||
         ||[PaintBox]||Java로 그림판 만들기|| 2005.12 ||
         ||[DirectX2DEngine]||DX로 2D 엔진 제작|| 2006.07 ~ ||
         ||[BuildingParser]||파서를 만들어보세~|| 2006.04.08 ~ 2006.06||
  • 고한종/on-off를조절할수있는코드 . . . . 6 matches
         #include<stdio.h>
         int main()
          int onOff;
          //put your code in here.
          printf("재실행 하시겠습니까? (y/n)\n\n");
  • 구구단/김유정 . . . . 6 matches
         #include <stdio.h>
         void main()
          int n;
          int a;
          printf("몇단인지 입력하세요");
          printf("%d*%d:%d\n",a,n,a*n);
  • 구구단/방선희 . . . . 6 matches
         {{{~cpp #include <iostream>
         using namespace std;
         void main()
          int j=1;
          for(int i=2; i < 6; i++)
          for(int k=6; k < 10; k++)
  • 그래픽스세미나/2주차 . . . . 6 matches
          PPT파일: Upload:CGseminar2.zip
         || 강인수 || Upload:GL_Report2_Insu_MFC.zip 경태형꺼랑 비슷한거..||
         || 이상규 || [http://165.194.17.15/~lsk8248/wiki/Seminar/%b1%d7%b7%a1%c7%c8%bd%ba%bc%bc%b9%cc%b3%aa/2%c1%d6%c2%f7/Space.zip Space] 상하좌우 방향키와 +,- 키를 눌러보세요^^ [[BR]] [http://165.194.17.15/~lsk8248/wiki/Seminar/%b1%d7%b7%a1%c7%c8%bd%ba%bc%bc%b9%cc%b3%aa/2%c1%d6%c2%f7/Space.exe Space 실행 파일] [http://165.194.17.15/~lsk8248/wiki/Seminar/%b1%d7%b7%a1%c7%c8%bd%ba%bc%bc%b9%cc%b3%aa/2%c1%d6%c2%f7/ErrorSpace.exe 에러난 Space 실행 파일(멋진 에러..ㅡ.ㅡ)]||
         || 김창성 || Upload:Blending.zip ||
         [상민] 이번주 기권! --NeoCoin
  • 데블스캠프2006/월요일/연습문제/for/윤영준 . . . . 6 matches
         #include <iostream.h>
         void main(void)
          int i,j,n;
         #include <iostream.h>
         void main(void)
          cin >> i;
  • 데블스캠프2006/월요일/연습문제/if-else/윤성준 . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main (void)
          int i, n;
          cin >> i;
  • 데블스캠프2006/월요일/연습문제/switch/주소영 . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main()
          int score[10]={0,},i,n,a,b,c,d,f;
          cin >> n;
  • 데블스캠프2006/월요일/연습문제/기타문제/이차형 . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main()
          int i;
          continue;
  • 데블스캠프2006/월요일/연습문제/기타문제/임다찬 . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main(){
          int i;
          if(i==5) continue;
  • 데블스캠프2006/월요일/연습문제/기타문제/주소영 . . . . 6 matches
         #include <iostream>
         using namespace std;
         int main()
          int i;
          continue;
  • 데블스캠프2006/화요일/pointer/문제4/이장길 . . . . 6 matches
         #include <iostream>
         using namespace std;
         void main()
          int i;
          cin >> buf;
          int length = strlen(buf);
  • 데블스캠프2009/금요일 . . . . 6 matches
         || 김창준 선배님 || Special Seminar || || ||
         || 김수경 || Short coding || ACM 문제를 풀어보며 short coding을 맛보자 || ||
         ||pm 09:00~11:00 || [데블스캠프2009/금요일/SPECIAL Seminar] || 김창준 선배님 ||
         ||pm 12:00~01:00 || Short coding 맛보기 || 김수경 ||
         ||am 03:00~03:40 || 각자의 문제 풀이 및 short coding 책에서의 코드 || 김수경 ||
  • 데블스캠프2012/넷째날/묻지마Csharp/서민관 . . . . 6 matches
         namespace WindowsFormsApplication1
          int currentScore = 0;
          InitializeComponent();
          int moveX = rand.Next(-4, 4);
          int moveY = rand.Next(-4, 4);
          int respownX = rand.Next(this.Size.Width);
          int respownY = rand.Next(this.Size.Height);
  • 레밍즈프로젝트/프로토타입/에니메이션 . . . . 6 matches
         AddFrame(UINT ITEM)으로 프레임을 추가시키고 외부에서 적절한 타이머를 통해서 움직임을 조절한다.(NextFrame())
          vector<UINT> m_frameList;
          int m_nowFrame;
          void init(){
          init();
          if(m_nowFrame < int(m_frameList.size())-1)
          int getFrameSize(){
          return int(m_frameList.size());
          void addFrame(UINT ITEM){
  • 방울뱀스터디 . . . . 6 matches
          * http://python.netian.com/index.html - 초 간단 문법 익히기
          * [ExtremeProgramming]의 몇가지를 실천할 것입니다. [PairProgramming], [Refactoring]...
         from Tkinter import *
         root.mainloop()
  • 블로그2007 . . . . 6 matches
          * 구글에서 이클립스 찾아서 설치하긴 했는데 코딩하고 Run 돌리니까[[BR]]interpretor 를 정하고 하라고 나오네요. 여기서 어케 해야 하나요?... -송지훈 '''[답변 및 의견 2]'''
          * PHPEclipse ~ Zend팀이 Swing의 방향으로 Zend Studio를 내놨을때 Java 개발툴 시장을 뒤엎은 Eclipse를 위해 PHP공식 팀이 아니라 다른 개발팀이 만든 환경입니다.
         미래에는 PDT로 수렴되겠지만 아직은 정식 버전에 잘 결합이 되지 않을 만큼 불안합니다. 따라서 PHPEclipse를 추천하는데 Web개발을 위해서는 이뿐만이 아니라, HTML Coloring 지원 도구등 여러 도구들이 필요합니다. 귀찮은 작업입니다. Calisto가 나오기 전부터 Eclipse 도구를 분야별로 사용하기 쉽게 패키징 프로젝트가 등장했는데 [http://www.easyeclipse.org/ Easy Eclipse]가 가장 대표적인 곳입니다. 아직도 잘 유지보수되고 있고, Calisto가 수렴하지 못하는 Script 개발 환경 같은 것도 잘 패키징 되어 있습니다. [http://www.easyeclipse.org/site/distributions/index.html Easy Eclipse Distribution]에서 PHP개발 환경을 다운 받아서 쓰세요. more를 눌러서 무엇들이 같이 패키징 되었나 보세요.
         --NeoCoin
         --NeoCoin
  • 새싹교실/2011/AmazingC/5일차(4월 14일) . . . . 6 matches
         #title 새싹교실/2011/AmazingC/5일차(4월14일)
          int number;
          int sum=0;
          int number=1;
          printf("%d", number);
         [새싹교실/2011/AmazingC]
  • 새싹교실/2012/Dazed&Confused . . . . 6 matches
          * 사실상 첫 수업이었다. 어떻게 가르쳐야 할까 고민하다가 나름 PPT를 만들어 보긴 했는데 (그래봤자 [http://winapi.co.kr/ winpai]에서 다 복붇이었지만 -_-) 허허허.... 모르겠다 -_-a 뭐.. 어찌되었든 간에 일단 이론적으로 PPT를 보면서 설명을 하면서 진행을 했는데.. 알긴 아는 거 같은데... 음.. 좀 더 같이 해 보면 알겠지- 그래도 잘 따라와 준 것 같아 고마웠다. 많이 부족한 놈을 선생으로 둔 새싹들도 고생 많았어요 -ㅅ- 다음엔 더 준비 해 올게요a 근데 왜 회고지엔 소라 게임에 대한 이야기만 있는거지.. 에잇 - [권순의]
          * define, rand, srand, 다양한 헤더파일을 처음 써 보았다. 내가 혼자서 다시 해 봐야겠다. 신기했다. 이렇게 다양한 함수를 알게 되어 좋았지만 조금 더 집중해야 할 것 같다. 이번 강의에서는 실습이 적었는데 실습과 직접 프로그래밍을 해 보는 시간을 가졌으면 좋겠다. - [박용진]
          * 새로운 용어들 #define, getchar, rand, <math.h>등에 대해서 알게 되었다. 이런 새로운 용어들을 복습해 봐야겠다. winapi를 알게 되어 조금 더 찾아 볼 수 있어 좋았다 - [박승우]
          * Pointer, 재귀함수, 메모리 등 많은 것을 배우는 시간이었다. 그러나 이 모든 것들이 다 새로운 것이다 보니 심하게 맨붕을 경험하게 되었다. 다음에 차근차근 복습하는 시간을 가져야 겠다.
  • 새싹교실/2013/라이히스아우토반/7회차 . . . . 6 matches
          * 선언법 ex) int {{{arr[10]}}};
          * 선언할 때 초기화 하는 법. ex) int arr[]={0,1,2,3}; int {{{arr[5]={0}}},};
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * Internet Explorer를 제외한 다른 브라우저 (Chrome,FireFox, Opera)로 위키에 들어오면 편집하기 쉬워요.
  • 서지혜/MyJavaUtils . . . . 6 matches
          * String 배열을 List로
          * String을 연산해 새로운 String을 만들 때는 StringBuilder를 이용한다.
          StringBuilder객 체 하나만 선언해서 불변 객체(String)들의 생성을 방지할 수 있다.
  • 정모/2011.7.18 . . . . 6 matches
          * [Spring/탐험스터디]
          * [EnglishSpeaking/2011년스터디]
          * Free talking과 Theme talking으로 나누어 진행.
          * Joseph Yoder와의 만남에서 배운 것. Naming은 상당히 중요합니다. Naming이 적절하면 자세한 구현을 보지 않아도 됩니다. - [김수경]
  • 최소정수의합/임다찬 . . . . 6 matches
         #include <stdio.h>
         int main(void){
          int sum=0;
          int n=0;
          printf("n = %d ,sum = %d\n",n,sum);
  • 캠이랑놀자 . . . . 6 matches
         || 9 || 05.12.29 || [캠이랑놀자/051229] 1시 || Color Image Filtering, Mosaic || (v) ||
         || 13 || 06.1.13 || [캠이랑놀자/060113] 1시 || How to solve it using Image Processing (?) || . ||
         || 16 || . || . || Dancing Block 구현시도 1차 || . ||
         || 17 || . || . || Dancing Block 구현시도 1차 || . ||
          * C++ & Python - 현재 라이브러리들 관계상 C++ 로 구현된 것들이 많은 관계로. 중간에 [1002] 가 Python Wrapper Class 만들기를 시도할 것이긴 함.~ Python 의 경우 이미지 처리에 대해서 prototyping 을 위해 중간에 이용할 예정.
  • 파킨슨의 법칙 . . . . 6 matches
         || http://www.aladdin.co.kr/Cover/8950905310_1.gif ||
         || Aladdin:8950905310 ||
          * Title : 파킨슨의 법칙 - 왜 조직이 커질수록 낭비가 많아지는가 ( Pakinson's Law )
          * My Point :
          * NeoCoin : B) B) B) B)
         책의 첫번째 원칙을 접하고 이를 설명하는 순간부터, 마지막 원칙을 덮을 때까지 '''폭소를 멈출수가 없었다.''' 1957년에 태어난 책이 현재까지도 이렇게 공감을 일으키는지 모르겠다. 조직의 비효율에 대해서 많은 것을 생각하게 하는 기회를 만들어 준 책이다. 두께가 그리 두껍지 않으니, 여행을 떠나면서 들고 가는 것도 좋을것 같다. --NeoCoin
  • 프로그래밍잔치/셋째날후기 . . . . 6 matches
         플밍이 끝난 뒤, CommentMixing 을 하기로 했다. CommentMixing 전, 1002 와 영동 Pair 가 CommentMixing 의 시연 예를 보이며 간단하게 설명을 하였다.
         자리를 바꿔 CommentMixing 을 했다.
         CommentMixing 뒤에 서로의 것을 보며 토론했다.
         중간에 ["1002"]와 JuNe Pair 가 CommentMixing 한 결과 모습을 시연했다.
  • 피보나치/이태양 . . . . 6 matches
         #include<stdio.h>
         void main(){
         int n=0,no1=1,no2=1,no3=0;
         printf("몇번째수:"); scanf("%d",&n);
          for(int i=2;n;i++){
          printf("피보나치수열의 %d번째 수는 %d 입니다",n,no3);
  • 피보나치/정수민,남도연 . . . . 6 matches
         #include <stdio.h>
         int i=1, j=0, n=1, k=0, m;
          printf("%d번때 숫자는 %d 입니다.",m ,k);
         int main()
          printf("몇번째 숫자를 출력하고 싶습니까?\n-> ");
  • 화성남자금성여자 . . . . 6 matches
         void matrix33_inverse (mat33_t mr, mat33_t ma);
         int matrix44_inverse (mat44_t mr, mat44_t ma);
         int matrix44_inverse2 (mat44_t mr, mat44_t ma);
         vec_t vectorNormalize (vec3_t in, vec3_t out);
  • 05학번만의C Study/숙제제출1/이형노 . . . . 5 matches
         #include<iostream>
         using namespace std;
         int main()
          cin >> cel;
  • 05학번만의C++Study/숙제제출1/이형노 . . . . 5 matches
         #include<iostream>
         using namespace std;
         int main()
          cin >> cel;
  • 3D업종 . . . . 5 matches
         http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200503100003
         http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200311100001
         헤더: C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\gl
         dll: C:\WINDOWS\system32
         vc6이나 2003을 쓸 경우, 비슷한 경로에 glut를 복사하고, 프로젝트를 만들때 win32 console로 해서 링커 옵션에 opengl32.lib glu32.lib glut32.lib 파일을 추가합니다.'''
  • 5인용C++스터디/버튼과체크박스 . . . . 5 matches
         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
         BEGIN_MESSAGE_MAP(CMy111View, CView)
         int CMy111View::OnCreate(LPCREATESTRUCT lpCreateStruct)
         ||Value|| Meaning ||
         ||BST_INDETERMINATE|| Button state is indeterminate (applies only if the button has the BS_3STATE or BS_AUTO3STATE style). ||
          else if(check3==BST_INDETERMINATE)
  • ACM_ICPC/2011년스터디 . . . . 5 matches
          * Anything else..
          * ShortCoding 책이 아마 ZeroPage 책장에 있을텐데… 후기를 모아 정회원이 되세요 ㅋㅋㅋㅋㅋ - [김수경]
          * 제 코드에 무엇이 문제인지 깨달았습니다. 입출력이 문제가 아니었어요. 숫자 범위 괜히 0이거나 3000 이상이면 "Not jolly" 출력하고 break하니까 이후에 더 적은 숫자가 들어온 경우가 무시당해서 Wrong Answer(출력 하든 안하든, 0 제외하고 3000 이상일 때만 하든 다 Wrong..;ㅅ;) 입력을 하지 않을 때까지 계속 받아야 하는데, 임의로 끊었더니 그만..... 그리고 continue로 해도 마찬가지로 3000을 제외하고 입력 버퍼에 남아있던 것들이 이어서 들어가서 꼬이게 되는! Scanner을 비우는 거는 어찌 하는 걸까요오;ㅁ;? 쨋든 그냥 맘 편하게 조건 지우고 Accepted ㅋㅋ 보증금 및 지각비 관련 내용은 엑셀에 따로 저장하였습니다. - [강소현]
          * 재귀함수와 백트래킹, Dynamic Programming에 난항을 겪어 최적해구하는 문제에서 고전했습니다.
          * [김태진] - 진경이 출생의 비밀..은 아니고 KOI 은상의 배경이 된, 세 용액이라는 작년 정올 1번문제를 풀어보았습니다. 다들 알고리즘 복잡도는 무시하고 Time Limit Exceeded라도 띄워보자고 짜는데, 이상하게 Wrong Answer.. 값이 int범위에서 해결되지 않아 줄줄 새고 있었습니다-- 범위를 제대로 생각해봐야겠다는 것을 염두함과 동시에 복잡도에 관해서도 좀 더 생각해봐야겠네요.
  • AM . . . . 5 matches
          * 주 교재 : Windows API 정복 ( Aladdin:8973542796 ), Visual C++ 6 완벽가이드 ( Aladdin:8931427301 )
          * [http://www.winapi.co.kr/]
          * [AM]이라는 약어를 보면 AgileModeling 이 떠오르는군요..; - [임인택]
  • APlusProject . . . . 5 matches
         Upload:APP_MeetingRecord_Draft.zip - 회의록 초안입니다.
         Upload:APP_MeetingRecord_0607.zip - 6월 7일까지 회의록입니다. -- 으흐흐 이것도 QA검사 끝
         ExtremeProgrammingInstallled - XP 입문서. 한서 있음. PL 필독.
         Refactoring - Refactoring의 바이블. 한서 있음. Eng 필독.
  • AngularJS . . . . 5 matches
         <h3 ng-init="todos=[]"> Topic </h3>
          <li ng-repeat="todo in todos" class="done-{{todo.done}}">
          <input type="checkbox" ng-model="todo.done"/>
          <button ng-click="todos.splice($index,1)">x</button>
          <input type="text" ng-model="test"/>
          <button>Input</button>
  • ApplicationProgrammingInterface . . . . 5 matches
         {{|An application programming interface (API) is a set of definitions of the ways one piece of computer software communicates with another. It is a method of achieving abstraction, usually (but not necessarily) between lower-level and higher-level software.|}}
          * [API/WindowsAPI] : 윈도우즈에 기본적으로 제공되는 API
  • Bigtable기능명세 . . . . 5 matches
          minor compaction
          1. 해당 태블릿의 SSTABLE들을 minor compaction
          1. merge결과를 String의 리스트로 클라이언트에게 돌려준다
         원형 자료구조를 사용해 공간의 재활용필요 -> 한바퀴 돌아서 공간이 없어지면 memtable들의 minor compaction이 필요하다.
         === Minor Compaction ===
  • C++Seminar03 . . . . 5 matches
         [C++Seminar03/SampleProblems]
          1. 사회자 한명과 2인 1PC 또는 3인 1PC 로 PC 1대당 한조가 되어 PairProgramming 식으로 진행. 사회자는 간단한 개념을 설명하고 개념에 대한 실습(?) 또는 적용된 코드작성을 Pair 해본다. (이런식으로 진행할경우 장소에 문제가 될 수도 있을것 같네요. 실습실 하나를 제로페이지가 점령할수도 없는 일이고..-_- 강의실에서 간단한 설명 -> PC 실로 이동.. 정도가 대안이 될까요? ) --["임인택"]
          * ZeroPage 홍보를 위한 수단중의 하나로 C++ Seminar 가 개최되었으면 합니다. 현재 회장님께서 생각하시는 바가 DevilsCamp 이전까지는 준회원체제로 운영되다가 DevilsCamp 이후로 정회원을 뽑는 방식이 좋다는 쪽인것 같은데 일단 입학실날의 강의실홍보 이후로 C++ Seminar 를 여는게 새내기들의 관심을 모으는데 좋을 것 같습니다. --["임인택"]
         See Also [C++Seminar03/SimpleCurriculum], ["02_C++세미나"]
  • C/Assembly/포인터와배열 . . . . 5 matches
          .string "5678"
          .string "1234"
          .string "123456";
         // 마지막 k변수는 index 주소를 사용해 메모리를 목사하고 있다.
         // 그렇다면 index로 메모리를 복사하는 것은 eax로 복사하는 것보다 느리다는 얘긴가?
  • CC2호 . . . . 5 matches
         [http://winapi.co.kr/clec/cpp1/cpp1.htm winapi.co.kr의 C기초강좌]는 매우 자세하며 양이 많다.
         [http://cplus.about.com/od/beginnerctutoria1/l/blctut.htm Tutorial for Beginner]
         [http://myhome.hanafos.com/~kukdas/index.html C가 있는 홈페이지]
  • CProgramming . . . . 5 matches
         [http://cplus.about.com/od/beginnerctutoria1/l/blctut.htm Tutorial for Beginner]
         [http://myhome.hanafos.com/~kukdas/index.html C가 있는 홈페이지]
         [http://winapi.co.kr/clec/cpp1/cpp1.htm winapi.co.kr의 C기초강좌]는 매우 자세하며 양이 많다.
  • CodeYourself . . . . 5 matches
          ProgramingYourself라는 이름은 어떨까요? 우리 과 학생들에게 가장 중요한 사항으로 보입니다. -[강희경]
          - Programing 이 아니고 Programming 임. 게다가 ~ing 보다는 동사 원형을 쓰는게 맞는 표현이라 생각됨. 주제와는 상관없는 이야기로군..-_-;; - [임인택]
          CodingByYourself 어때요? --[곽세환]
  • CompilerTheory/ManBoyTest . . . . 5 matches
          begin real procedure A(k, x1, x2, x3, x4, x5);
          value k; integer k;
          begin real procedure B;
          begin k := k - 1;
         Donald Knuth 가 Algol 60의 구현 정도를 판변하기위해서 만든 프로그램. 테스트의 목적은 올바르게 구현된 scoping rule, call-by-name의 구현 정도를 판별해서 boys(algol 60 구현물)들중에서 men (쓸만한 놈)을 가려내는 용도로 고안되었습니다.
  • ComputerGraphicsClass/Exam2004_2 . . . . 5 matches
         === Basic Illumination Model ===
         === Ploygon Rendering Methods ===
         === Ray Tracing ===
         === Modeling Trchniques ===
         === Non-Photorealistic Rendering ===
  • ComputerNetworkClass/Exam2006_1 . . . . 5 matches
         3. distance vector, link state 차이점
         AdvertisedWindow 계산 방식, Effective Window 계산 방식
         TCP 수신측 버퍼 오버시 TCP 프로토콜의 처리과정 및 Probing 을 이용한 에러제어
         Advertised Window를 이용하지 못하는 상황하에서 TCP의 에러처리 방식에 대한 추론.
  • CxImage 사용 . . . . 5 matches
         == include ==
         3. StdAfx.h 에 #include "ximage.h" 선언
         5. Additional 에 ./include
         6. link-> object/library modules 에 Debug/CxImages.lib
          m_pImage->Load(lpszPathName, CxImage::FindType(lpszPathName));
         App Class 에서 InitInstance() 의 아래부분 주석 처리
         //if (!ProcessShellCommand(cmdInfo))
  • ExtremeProgrammingExplained . . . . 5 matches
         ExtremeProgramming 의 철학을 소개한 서적. 저자 KentBeck. TheThreeExtremos 중 한명. 얼마전에 2판이 나왔다.
         [책분류] [ExtremeProgramming] [ExtremeProgrammingInstalled] [ExtremeProgrammingExplained2/E]
  • GIMP . . . . 5 matches
          * Linux 스샷
          http://www.gimp.org/screenshots/linux_screenshot2.png
          http://www.gimp.org/screenshots/windowsxp_screenshot1.png
          http://www.gimp.org/screenshots/windowsxp_screenshot2.png
          http://www.gimp.org/screenshots/windowsxp_screenshot3.png
  • HelpOnInstallation/MultipleUser . . . . 5 matches
         각 사용자는 따로 설치할 필요 없이 관리자가 설치해놓은 모니위키를 단지 make install로 비교적 간단히 설치할 수 있습니다.
         # make install DESTDIR=/usr/local
         === moni-install 실행하기 ===
         $ /usr/local/moniwiki/bin/moni-install
  • JTDStudy/두번째과제/상욱 . . . . 5 matches
         import javax.swing.*;
          private GridBagConstraints gc;
          public void init() {
          gc = new GridBagConstraints();
          gl.setConstraints(button1, gc);
  • Java/DynamicProxy . . . . 5 matches
          * Generic caching decorator(See DecoratorPattern) - [http://www.onjava.com/pub/a/onjava/2003/08/20/memoization.html Memoization in Java Using Dynamic Proxy Classes], and [http://roller.anthonyeden.com/page/SKI_BUM/20030810#dynamicproxy_net#dynamicproxy_net .NET equivalent]
          * [http://www-128.ibm.com/developerworks/library-combined/j-dynproxies.html Decoupling validation logic]
  • Java/JDBC . . . . 5 matches
          public static void main(String[] args) throws SQLException, ClassNotFoundException {
          String url = "jdbc:oracle:thin:@localhost:1521:NSH2";
         예전에 resin 에서 tomcat으로 바꾸면서 jdbc 설정하는거 몰라서 대박이었는데... -_-; - eternalbleu
  • Java2MicroEdition . . . . 5 matches
          * Profile : Mobile Information Device Profile (MIDP)
          그림을 보면 맨 아래에 MID, 즉 휴대전화의 하드웨어 부분이 있고 그 위에는 Native System Software가 존재하며 그 상위에 CLDC가, 그리고 MIDP에 대한 부분이 나오는데 이 부분을 살펴보면, MIDP Application과 OEM-Specific Classes로 나뉘어 있는 것을 알 수 있다. 여기서의 OEM-Specific Classes라는 것은 말 그대로 OEM(Original Equipment Manufacturing) 주문자의 상표로 상품을 제공하는 것이다. 즉, 다른 휴대전화에서는 사용할 수 없고, 자신의(같은 통신 회사의) 휴대전화에서만 독립적으로 수행될 수 있도록 제작된 Java또는 Native로 작성된 API이다. 이는 자신의(같은 통신 회사의) 휴대전화의 특성을 잘 나타내거나 또는 MIDP에서 제공하지 않는 특성화된 클래스 들로 이루어져 있다. 지금까지 나와있는 많은 MIDP API들에도 이런 예는 많이 보이고 있으며, 우리나라의 SK Telecom에서 제공하는 SK-VM에도 이런 SPEC을 가지고 휴대전화의 특성에 맞는 기능, 예를 들어 진동 기능이나, SMS를 컨트롤하는 기능 들을 구현하고 있다. 그림에서 보듯이 CLDC는 MIDP와 OEM-Specific Classes의 기본이 되고 있다.
          * [http://zeropage.org/~dduk/development/j2me/midp-2_0-src-windows-i686.zip midp 2.0 (win용)]
          * [http://eclipseme.sourceforge.net/ eclipse j2me plugin]
  • JavaStudy2003/두번째과제/노수민 . . . . 5 matches
          public int process(int number) {
          public void main() {
          System.out.println(process(7));
         === 상속과 인스턴스 메소드의 재정의(Overriding) ===
  • JollyJumpers/1002 . . . . 5 matches
          return sum(i-e for i,e in zip(range(1,len(values)+1),
          for i in range(len(values)-1))))) == 0
         for e in [[1,4,2,3],[1,4,2,-1,6]]: print jolly(e)
         고민하던중,. 다른 사람들의 코드를 보니 시간이 오래걸린 부분이 입력값 parsing 부분이였나 보다 생각이 듬.;
  • LIB_2 . . . . 5 matches
         씨에서는 interrupt란 예약어로 함수를 인터럽트 콜이 가능한 함수를 만들 수 있다.[[BR]]
         void interrupt LIB_ISR(...){
          LIB_INT_COUNT++;
          for ( int i = 0 ; i < suspend_tcb_ptr + 1; i++ ){
          /////////////// CONTEXT SWITCHING
         void LIB_INIT_ISR(){
          LIB_INT_NESTING = 0;
          INT16U Time_Vect = 0x08 * 4;
          int86(0x27,®s,®s);
         void interrupt LIB_context_sw(){
          /////////////// CONTEXT SWITCHING
  • MFC/DeviceContext . . . . 5 matches
         #define _MFC_
         = Mapping Mode =
         || MM_LOENGLISH || x는 좌우서 우로 갈 수록 커지고, y는 가장 상단에서 그 위로 갈 수록 커진다. 0.01inch 단위 ||
         || MM_HIENGLISH || x는 좌우서 우로 갈 수록 커지고, y는 가장 상단에서 그 위로 갈 수록 커진다. 0.001inch 단위 ||
         || MM_TWIPS || 0.05point 단위 (6.9x10^-4인치)의 길이를 갖는다. 방향성은 MM_LOENGLISH와 동일 ||
  • MFCStudy_2002_1 . . . . 5 matches
          * 목표 : 방학중 스터디 진행, Programming 에 대한 감각 익히기. Windows Programming 에 대한 이해.
         || 정훈 || [http://zp.cse.cau.ac.kr/~wizardhacker/data/WinOmok.exe WinOmok.exe] ||
  • Map/박능규 . . . . 5 matches
         #include <iostream>
         #include <map>
         using namespace std;
         void main()
          for(int i=0;i<=strlen(m);i++)
  • MoniWikiProcessor . . . . 5 matches
         MoinMoin 1.1 이하에서는 Processor와 Parser로 분리되어있었고, 1.3 이후에는 Processor Parser가 Parser로 통합되었다.
         MoinMoin Processor및 Parser의 기능을 하며, {{{plugin/processor/}}}하위에 추가할 수 있습니다.
  • MultiplyingByRotation . . . . 5 matches
         [http://online-judge.uva.es/p/v5/550.html 원문보기]
         === About Multiplying By Rotation ===
         === Input ===
          || 김회영 || c++ || ? ||[MultiplyingByRotation/김회영]||
          || 문보창 || c++ || ? ||[MultiplyingByRotation/문보창]||
          || 곽세환 || c++ || ? ||[MultiplyingByRotation/곽세환]||
  • MySQL/PasswordFunctionInPython . . . . 5 matches
          for each in aStr:
          if each == ' ' or each == '\t': continue
         if __name__=="__main__":
          print mysqlPass("testing")
  • ParserMarket . . . . 5 matches
         Use a special pagename {{{~cpp ["parser/yourParser.py"]}}} and start your parser with the line {{{~cpp
         ||HTML: ["parser/html.py"]||Christian Bird||chris.bird@lineo.com||1.0|| ||
         If you are not familiar with Python and/or the MoinMoin code base, but have a need or an idea for a parser, this is the place to ask for it. Someone might find it useful, too, and implement it.
  • PragmaticVersionControlWithCVS/CreatingAProject . . . . 5 matches
         || [PragmaticVersionControlWithCVS/UsingTagsAndBranches] || [PragmaticVersionControlWithCVS/UsingModules] ||
         = Creating a Project =
         == Creating the Initial Project ==
         == Structure Within the Project ==
  • ProgrammingContest . . . . 5 matches
         == Internet Problem Solving Contest ==
          ''Registeration 에서 Team Identifier String 받은거 입력하고 고치면 됨. --석천''
         수준이 궁금하신 분들은 K-In-A-Row를 풀어보세요. http://ipsc.ksp.sk/problems/prac2002/sampl_r.php
         만약 자신이 K-In-A-Row를 한 시간 이상 걸려도 풀지 못했다면 왜 그랬을까 이유를 생각해 보고, 무엇을 바꾸어(보통 완전히 뒤집는 NoSmok:역발상 으로, 전혀 반대의 "極"을 시도) 다시 해보면 개선이 될지 생각해 보고, 다시 한번 "전혀 새로운 접근법"으로 풀어보세요. (see also DoItAgainToLearn) 여기서 새로운 접근법이란 단순히 "다른 알고리즘"을 의미하진 않습니다. 그냥 내키는 대로 프로그래밍을 했다면, 종이에 의사코드(pseudo-code)를 쓴 후에 프로그래밍을 해보고, 수작업 테스팅을 했다면 자동 테스팅을 해보고, TDD를 했다면 TDD 없이 해보시고(만약 하지 않았다면 TDD를 하면서 해보시고), 할 일을 계획하지 않았다면 할 일을 미리 써놓고 하나씩 빨간줄로 지워나가면서 프로그래밍 해보세요. 무엇을 배웠습니까? 당신이 이 작업을 30분 이내에 끝내려면 어떤 방법들을 취하고, 또 버려야 할까요?
         만약 팀을 짠다면 두사람은 PairProgramming으로 코딩을 하고(이 때 Interactive Shell이 지원되는 인터프리터식 언어라면 엄청난 플러스가 될 것임), 나머지 하나는 다른 문제를 읽고 이해하고, (가능하면 단순한) 알고리즘을 생각하고 SpikeSolution을 종이 위에서 실험한 뒤에 현재 커플이 완료를 하면 그 중 한 명과 Pair Switch를 하고 기존에 코딩을 하던 친구 중 하나는 혼자 다른 문제를 읽고 실험을 하는 역할을 맡으면 효율적일 겁니다. 즉, 두 명의 코더와 한 명의 실험자로 이루어지되 지속적으로 짝 바꾸기를 하는 것이죠.
         또, Easy Input Set은 직접 수작업으로 풀고 그걸 일종의 테스트 데이타로 이용해서, Difficult Input Set을 풀 프로그램을 TDD로 작성해 나가면 역시 유리할 것입니다. 이렇게 하면 Time Penalty는 거의 받을 일이 없겠죠.
         http://ace.delos.com/usacogate 에서 트레이닝 받을 수 있지요. 중,고등학생 대상이라 그리 어렵지 않을겁니다. ["이덕준"]은 ProgrammingContest 준비 첫걸음으로 이 트레이닝을 추천합니다.
  • ProgrammingLanguageClass/2002 . . . . 5 matches
          * ["ProgrammingLanguageClass/Report2002_1"]
          * ["ProgrammingLanguageClass/Report2002_2"]
         === examination ===
          * ["ProgrammingLanguageClass/Exam2002_1"]
          * ["ProgrammingLanguageClass/Exam2002_2"]
  • ProjectPrometheus/Iteration . . . . 5 matches
          * Release 1 : Iteration 1 ~ 3 (I1 ~ I3)까지. 책 검색과 Login , Recommendation System (이하 RS) 기능이 완료.
          * Release 2 : I4 ~ I6 (또는 I7). My Page Personalization (이하 MPP), RS 에 대한 UI, Admin 기능 완료. 요구한 Performance 를 만족시킨다. (부가기능 - 책 신청, 예약)
         || Iteration || 구현 기능 || Story Point ||
         || 3 || RS Implementation, Login || ~1.5 (0.5) , 0.5 ||
         || 5 || RS (UI), Admin || 0.5, 0.5 ||
  • ProjectPrometheus/개요 . . . . 5 matches
         하지만, 현재의 도서관 시스템은 사용하면 할 수록 불편한 시스템이다. "Ease of Learning"(MS 워드)과 "Ease of Use"(Emacs, Vi) 어느 것도 충족시키지 못한다.
         지금 도서관의 온라인 시스템은 상당히 오래된 레거시 코드와 아키텍춰를 거의 그대로 사용하면서 프론트엔드만 웹(CGI)으로 옮긴 것으로 보인다. 만약 완전한 리스트럭춰링 작업을 한다면 얼마나 걸릴까? 나는 커스터머나 도메인 전문가(도서관 사서, 학생)를 포함한 6-8명의 정예 요원으로 약 5 개월의 기간이면 데이타 마이그레이션을 포함, 새로운 시스템으로 옮길 수 있다고 본다. 우리과에서 이 프로젝트를 하면 좋을텐데 하는 바램도 있다(하지만 학생의 사정상 힘들 것이다 -- 만약 풀타임으로 전념하지 못하면 기간은 훨씬 늘어날 것이다). 외국의 대학 -- 특히 실리콘벨리 부근 -- 에서는 SoftwareEngineeringClass에 근처 회사의 실제 커스터머를 데려와서 그 사람이 원하는 "진짜" 소프트웨어를 개발하는 실습을 시킨다. 실습 시간에 학부생과 대학원생이, 혹은 저학년과 고학년이 어울려서(대학원생이나 고학년이 어울리는 것이 아주 중요하다. see also SituatedLearning ) 일종의 프로토타입을 만드는 작업을 하면 좋을 것 같다. 엄청나게 많은 것을 배우게 될 것이다.
         이런 프로젝트가 컴공과 학생에게 쉽게 떨어질리는 만무하다. 그래서 대부분은 디자인 단계에서 끝내게 된다. 유스케이스 몇개 그려보고 끝나는 것이다. 좀 더 용감하고 야망이 높은 사람들은 밑바닥부터 구축을 해나갈지도 모르겠다. 어찌 되었건 프로그래밍은 중요하다. 빌게이츠가 늘 하는 말이 "Code is the thing"이란다. 만약 프로그래밍을 직접 해보지 않고 끝내게 되면 자신이 배울 수 있는 엄청난 크기의 빙산을 그냥 지나치는 셈이다.
  • Python/DataBase . . . . 5 matches
         port - integer, TCP/IP port
         client_flag - integer, 필요할 경우 사용하기 위한 flag (0)
         print cur.description
         print cur.rowcount
         print res[x][x]
  • Refactoring/RefactoringTools . . . . 5 matches
         = Chapter 14 Refactoring Tools =
         == Refactoring with a Tool ==
         == Technical Criteria for a Refactoring Tool ==
         == Practical Criteria for a Refactoring Tool ==
         === Integrated with Tools ===
         ["Refactoring"]
  • Seminar . . . . 5 matches
         || [Debugging/Seminar_2005] || 디버깅 세미나 || 남상협 || 1~2학년 || 2005. 5. 16 ||
         || [DebuggingSeminar_2005] || 디버깅 세미나 || 이정직 || 2~3학년 || 2005. 8. 10 ||
         [ZeroPageSeminar]
  • Simple_Jsp_Ex . . . . 5 matches
          int result = 0;
          for(int i=1; i<=9; i++) {
          for(int j=1; j<=9; j++) {
         String str = "Hello Word!";
          for(int i=0; i<10; i++) {
  • Star . . . . 5 matches
         [[https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1100 원문보기]]
         [[http://online-judge.uva.es/p/v101/p10159.gif]] ~~[[DeadLink]]~~
         === Input ===
         === Sample Input ===
  • SubVersion/BerkeleyDBToFSFS . . . . 5 matches
         #!/bin/sh
         svnadmin create --fs-type=fsfs $nRepos
         svnadmin dump $cRepos | svnadmin load $nRepos
         chown www-data.svnadmin $cRepos -R
  • TestDrivenDevelopmentBetweenTeams . . . . 5 matches
         관련 문서 : http://groups.yahoo.com/group/testdrivendevelopment/files 에 Inter-team TDD.pdf
         일단 각 팀들끼리 TDD 를 하면서 팀들간의 대화를 통해서 일종의 공통 interface 를 빼낼 수 있다. 일단은 일종의 MockObject 로 가짜값을 채워서 테스트를 통과시킨뒤, 실제 Object 가 구현되면, 천천히 하나씩 실제 Object 의 interface 를 끼워가면서 테스트를 통과하는지를 확인한다. 그리고 최종적으로 실제 Object 로 MockObject 를 대체시킨다.
         Java 의 경우 inteface 키워드나 abstact class 를 이용하여 interface 를 정의할 수 있다. 팀의 구성원끼리 Pair를 교체한 뒤 interface를 정의하면 더욱 효과적이겠다.
  • TheGrandDinner . . . . 5 matches
         [http://online-judge.uva.es/p/v102/10249.html 원문보기]
         === About [TheGrandDinner] ===
         === Input ===
         === Sample Input ===
          || [조현태] || C++ || ??? || [TheGrandDinner/조현태] ||
          || [김상섭] || C++ || 많이..ㅡㅜ || [TheGrandDinner/김상섭] ||
          || [하기웅] || C++ || 생각은 많이. 코딩 시작해서는 1시간 || [TheGrandDinner/하기웅] ||
  • TourMacro . . . . 5 matches
         #keywords linux,GNU
         MoinMoin MoniWiki HelpContents
         [[Tour(arena=backlinks,HelpContents)]]
         [[Tour(arena=keylinks,GPL)]]
  • UML서적관련추천 . . . . 5 matches
         출처 : ObjectProgramming 수업 게시판
         UML Distilled: A Brief Guide to the Standard Object Modeling Language,3rd Edition
         The Unified Modeling Language User Guide 2/E
         The Unified Modeling Language Reference Manual (2/E)
         참고로 UML 은 'Modeling Language' 입니다. 모델링 서술을 위한 언어일 뿐, 모델링이나 디자인 방법 자체에 대한 설명을 하진 않습니다. 디자인 관련 서적은 따로 서술하겠습니다.
  • ViImproved . . . . 5 matches
          * http://www.vim.org/scripts - vim plugin
          * [Linux/Development UsingVIM]
          * http://kltp.kldp.org/stories.php?topic=25 - kltp 의 vi 관련 팁 모음, 홈페이지 자체는 지원 중단됨 - DeadLink
          * [[http://vimawesome.com/|vim plugin 검색 사이트]]
  • XOR삼각형/임인택 . . . . 5 matches
         def xorTriangle(current, lineNum, list):
          for i in range(0, current) :
          print newList
          if current<lineNum:
          xorTriangle(current+1, lineNum, newList)
  • XpWeek/20041220 . . . . 5 matches
          먼저 설치 : [http://zeropage.org/pub/language/java/j2re-1_4_2_01-windows-i586.exe Java 1.4.2]
          위에 것 설치 후 : [http://zeropage.org/~neocoin/eclipse3.0/eclipse-SDK-3.0-win32.zip Eclipse]
          * [http://javastudy.co.kr/api/api1.4/index.html JDK API(Korean)] [http://zeropage.org/pub/j2sdk-1.4.1-doc/docs/index.html JDK Full Document]
  • XsltVersion . . . . 5 matches
         <?xml version="1.0" encoding="ISO-8859-1"?>
          <xsl:output method="html" omit-xml-declaration="yes" indent="no"/>
          This Wiki is running an XSLT engine by
          implementing XSLT v<xsl:value-of select="system-property('xsl:version')"/>
  • Yggdrasil/가속된씨플플/4장 . . . . 5 matches
         sort(students.begin(), students.end(), compare);
         bool compare(const Student_info& x, const Student_info& y)
          compare 함수 포인터를 넘겨주면 students vector(또는 list)내에서 값을 꺼낸다. Student_info 형이 나오겠지 그 것들을 compare 함수에 넘겨주는 거다. --[인수]
         == String 클래스 ==
  • ZPBoardHistory . . . . 5 matches
          *[http://zeropage.org/jsp/board/thin/?table=seminar]
          *[http://zeropage.org/jsp/board/thin/?table=T999844101271]
          *[http://zeropage.org/jsp/board/thin/?table=T999617115441]
          *[http://zeropage.org/jsp/board/thin/?table=T996891244793]
  • ZPHomePage/참고사이트 . . . . 5 matches
          [http://www.microsoft.com/mscorp/innovation/yourpotential/main.html]
          마이크로소프트가 발표한 경영비젼입니다 Windows2003를 테마로 만든 것 같은데, 우리 차기 ZP홈피도 2003 테마로 만들었으면 합니다. 부드러운 분위기가 메무 맘에 드네요 -[iruril]
          * http://innovative.daum.net/vol2/innovation.html - 다음 커뮤니케이션
  • abced reverse . . . . 5 matches
         #include <iostream>
         using namespace std;
         int main()
          for(int i = 0; i < 5 ; i++)
  • mantis . . . . 5 matches
          * /core/user_api.php 에서 416line 을 아래와 같이 바꿔서 이메일 인증이 아니라 임시 암호를 부여하고, 사용자가 바꾸게끔 한다.
          * administrator , 암호는 root 로 로그인 후에 계정관리에서 preference 부분에 가서 제일 하단 부에 있는 언어 선택을 한글로 해야 한글로 메뉴를 보고 한글을 사용할 수 있습니다.
         ./mantis-1.0.2/core/adodb/drivers/adodb-mysql.inc.php
          * 에러 메시지 제거는? 에디트 플러스 Find in file 에서 htmlspecialchars 이 것을 다 찾아서 @htmlspecialchars 이것으로 바꿔 주면 됩니다.
  • woodpage/VisualC++HotKeyTip . . . . 5 matches
          *컴파일시 error나 경고에 warning에 대하여 한줄씩 이동함 또 전체 문서에서 찾기(Alt + E + I) 에서 찾은결과에 대하여도 F4로 이동
          *역시 이동하는 기술로 BrowseGoToDefinition 이라고 함 마우스 오른쪽 팝업메뉴에도 나옴 사용법은 예를 들어 fSelect()라는 함수를 사용했을때 그함수내용을 보고싶으면 fSelect에다가 커서를 놓고 F12를 누름 (변수,define도 됨) 그럼 fSelect()가 구현된(?)곳으로 이동함 사용하면 아주 유용함 단점은 *.ncb 파일이 조금 커짐 별문제 아님 사실 마우스 오른쪽 팝업에서 쓰는걸 더 많이 씀
          *Find in File 로 현재 페이지가 아닌 전체 파일에서 찾아줌 소스분석할때 필수
  • woodpage/쓰레기 . . . . 5 matches
          *JavaNetworkProgramming (출판사:인포북)
          *3D Game Programming using DirectX (출판사:(주)민커뮤니케이션)
          *JavaNetworkProgramming
          *JavaNetworkProgramming --> 종료
  • 강희경/도서관 . . . . 5 matches
          * Pleasure Of Finding Things Out (리처드 파인만)
         || 4 || NoSmoke:TheArtOfComputerProgramming || 카누스 || [강희경] || [TAOCP] ||
         || 1 || NoSmoke:TheArtOfComputerProgramming || 카누스 || [강희경] || [TAOCP] ||
  • 같은 페이지가 생기면 무슨 문제가 있을까? . . . . 5 matches
          * 일단 중복 페이지가 생기고 고치는 것은 어떨까요? --NeoCoin
          * 2년 정도 위키를 쓰면서 그런 고민은 크지 않았습니다. 현제 ZeroPage 에서 사용하는 위키는 정리하는 사람 수 자체가 적어서 경험하지 못했을수 있습니다. 사람 수가 많은 [노스모크]에서도 못느껴봤습니다. --NeoCoin
         타 위키에서 비슷한 논의들을 보면서 이 방법이 적당하다는 생각합니다. [Leonardong]의 어떻게는 무엇인가요? ''페이지를 생성할때, 검색해서 찾아 중복 페이지를 만들지 않는다.'' 가 기본 전략인것 같은데 맞나요? --NeoCoin
          저도 거의 NoSmok 에서 읽었고, 최근들어 http://doc.kldp.org 를 보면서 같은 생각이 듭니다. 그외 링크라면 그외 위키를 기억하기는 힘듭니다. ZeroWiki 에서도 초기에 비슷한 토의가 있었던 것 같습니다. --NeoCoin
          페이지이름을 만들때, '''제목대상 검색'''은 이전부터 지원되었습니다. 예를들어 이동 창에 Front를 쳐보세요. 처음부터 후자를 이야기 하는 것으로 알고 있었습니다. 보통 '''내용검색(FullTextSearch)'''는 부하 때문에 걸지 않습니다. 하지만, 현재 OneWiki 의 페이지가 적고, 페이지를 만드는 행위 자체가 적으므로, 후자의 기능 연결해 놓고 편리성과 부하의 적당한 수준을 관찰해 보지요. --NeoCoin
  • 구구단/김범준 . . . . 5 matches
         if __name__ == '__main__':
          for i in range(2, 10):
          for j in range(2, 10):
          print i,'*',j,'=',i*j,
          print ''
  • 구구단/변준원 . . . . 5 matches
         #include<iostream>
         using namespace std;
         int main()
          int i,j;
  • 권영기 . . . . 5 matches
          * [정모/2013.2.26] - OMS : 재미있는 문제 (Indexed Binary Tree)
          * [MachineLearning 스터디]
          * [정모/2014.1.13] - OMS : Robot Path Planning
          * [정모/2014.11.19] - OMS : Bit Masking
  • 그래픽스세미나/1주차 . . . . 5 matches
          PPT파일: Upload:CGseminar01.zip
          * 선을 Clipping하는 방법
          * Outcode가 0000 일 경우엔 Clipping 이 필요하다.
         || 강인수 || Upload:OpenGL_Report1_Insu.zip API Ver. ||
         || 강인수 || Upload:GL_Report1_Insu_MFC.zip MFC Ver. ||
         || [류상민] || Upload:OpenGL01_NeoCoin_GLUT.zip ||
         || [상규] || [http://165.194.17.15/~lsk8248/wiki/Seminar/%b1%d7%b7%a1%c7%c8%bd%ba%bc%bc%b9%cc%b3%aa/1%c1%d6%c2%f7/Triangle.zip API Ver.] ||
  • 김태진 . . . . 5 matches
         = Curriculum Vitae of ZeroPage 21th, Tae-Jin Kim =
          * SWTV(SW Testing&Verification) 연구실에 있습니다.
          * [Refactoring/BadSmellsInCode]
          * ?action=info&all=1 를 주소 뒤에 붙이면 변경내역을 볼 수 있음.
          * action=info&all=1 를 주소 뒤에 붙이면 변경내역을 볼 수 있음. -> 그냥 페이지 보다가 i 누르는 게 더 편하지 않음? - [김수경]
  • 데블스캠프2006/월요일/연습문제/기타문제/이경록 . . . . 5 matches
         #include <iostream.h>
         int main(void)
          int a;
          continue;
  • 데블스캠프2006/화요일/pointer/문제2/윤성준 . . . . 5 matches
         #include <iostream>
         using namespace std;
         void main()
          int n;
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2006/화요일/pointer/문제2/정승희 . . . . 5 matches
         #include<iostream>
         using namespace std;
         void main()
          for(int i=4;i>=0;i--)//맨앞에 a[6]=0이라서 안됨
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2006/화요일/pointer/문제2/주소영 . . . . 5 matches
         #include<iostream>
         using namespace std;
         int main()
          int i;
  • 데블스캠프2012/넷째날/묻지마Csharp/Mission3/서민관 . . . . 5 matches
          int value = int.Parse(label4.Text);
          label4.Text = value.ToString();
          String text = label3.Text;
          text = text.Substring(0, text.Length - 1);
  • 데블스캠프2012/둘째날/후기 . . . . 5 matches
          * [김민재] - XE를 다루면서 MySQL에 대해서는 조금 알았지만, 오늘 이야기를 들으면서 많은 종류의 DB와 프레임워크가 있다는 것을 처음 알고 놀랐습니다. 아직 실력이 많이 부족한 탓에 이해를 못한 점도 있었지만, 웹에 대한 전반적인 이야기를 들으면서 웹에 대해 많이 이해할 수 있었습니다. 특히 우리가 사용하는 웹 서비스 하나를 위해 140대나 되는 Queueing Server가 필요하다는 점에 놀랐습니다. 앞으로는 여러가지 분야에 호기심을 가지고 관심을 가지도록 해야겠습니다.
          * [김민재] - APM이 뭔가 했더니 Apache + PHP (perl? python?) + MySQL 인걸 알았을 때의 놀라움 ㅋㅋㅋㅋ 내 컴퓨터에서 준석이 형 페이지에 접속했을 때 정말 신기했습니다. 또 MyAdmin으로 데이터베이스를 직접 만드는 것도 처음 해보았습니다. (cafe24 호스팅에서는 DB 만들기가 안되더라구요..) 오늘 여러모로 신기한 체험을 많이 해 보았습니다.
          * [정진경] - 입학 하기 전에 산 컴퓨터에 CentOS를 깔고 제일 먼저 해봤던게 웹서버 구축이었던 것 같네요. 윈도우즈 환경에서도 어렵지 않게 구축할 수 있네요. (물론 지금의 시점에서지만,) 개인 서버를 구축하고 응용할 수 있으면 나름 장점이 있는 것 같습니다. 활용하기 나름이지만, 최근 Online Judge System에 VC++ 컴파일러를 올리고 싶어서 윈도우즈 서버도 생각하고 있는데, 추후에 도움이 될지도 모르겠네요.
         = Kinect =
          * [서영주] - 코드를 이상하게 만드는 방법은 정말 다양하다는걸 알았습니다. #define이나 흔히 사람들이 생각할 함수의 인자명을 이상하게 하는 것 등등. 근데 단순히 함수, 변수의 이름, 인자의 이름 등에 관한 네이밍만으로도 상당히 헷갈릴 수 있는걸 보고 단순하지만 네이밍의 중요함을 다시 한 번 느꼈습니다. 이상한 기능이야 안쓰면 그만이겠지만 네이밍같은 부분은 안할수가 없을테니까요.
  • 레밍딜레마 . . . . 5 matches
         || http://www.aladdin.co.kr/Cover/8955610017_1.gif [[BR]] ISBN 8955610017||
          * Title : 레밍 딜레마 ( The Lemming Dilemma )
          * Point : B) B) B) B)
         시리즈 물인데, 같은 시리즈의 하나인 혜영이가 남긴 감상 [http://zeropage.org/jsp/board/thin/?table=multimedia&service=view&command=list&page=0&id=145&search=&keyword=&order=num 네안데르탈인의 그림자] 와 같은 짧고 뜻 깊은 이야기이다. 왜 이 책을 통해서 질문법을 통한 실용적이며, 진짜 실행하는, 이루어지는 비전 창출의 중요성을 다시 한번 생각하게 되었다. ["소크라테스 카페"] 에서 저자가 계속 주장하는 질문법의 힘을 새삼 느낄수 있었다.
         --NeoCoin 2002.1.6
  • 레밍즈프로젝트/연락 . . . . 5 matches
         2. 픽셀의 기능 : Pixel 인터페이스는 draw라는 순수 가상 함수를 가지고 있어 그리고 전달인자로 CMyDouBuffDC*를 받게 되지. 그리고 SetPixel(int x, int y)따위를 통해서 윈도우에 그림을 그리게 되지 (이부분은 [레밍즈프로젝트/프로토타입/SetBit]참조)을 통해서 배경에 대한 픽셀을 뿌리게 되는거지.
         #include <iostream>
         using namespace std;
         #include "Pixel.h"
  • 레밍즈프로젝트/프로토타입/MFC더블버퍼링 . . . . 5 matches
         Test는 OnDraw 상에서 하였다. OnDraw는 Invalidate를 통해서 OnPaint가 호출되면 자동으로 호출된다.
         void CDoubleBufferingView::OnDraw(CDC* pDC)
          CDoubleBufferingDoc* pDoc = GetDocument();
          //DoubleBuffering
          //end DoubleBuffering
  • 문자반대출력/남상협 . . . . 5 matches
         for line in source.readlines():
          print >> fout,line[::-1]
  • 반복문자열/김정현 . . . . 5 matches
          public static void main(String args[])
          int a=5;
          for(int i=0;i<a;i++)
          System.out.println("KJH LOVE");
  • 반복문자열/남도연 . . . . 5 matches
         #include <iostream.h>
         void input(){
         void main(){
          int i;
          input();
  • 반복문자열/황세연 . . . . 5 matches
         #include <stdio.h>
         int main(void)
          int i;
          {printf("%d CAUCSE LOVE.\n",i);
  • 별표출력/하나조 . . . . 5 matches
         #include <stdio.h>
         void main(void)
          int x,y;
          printf("%c",star);
          printf("\n");
  • 새싹교실/2011/Pixar . . . . 5 matches
          * Programming in eXperience and Research
          * FiveFs : Facts(사실), Feelings(느낌), Findings(알게된 점), Future Action Plan(앞으로의 계획), Feedback(피드백)
  • 새싹교실/2011/學高/7회차 . . . . 5 matches
          * break, continue
         === 자기 반성 및 수정할 점(feeling/finds) ===
         === 자기 반성 및 고칠 점(feeling/finds) ===
  • 새싹교실/2011/무전취식/레벨6 . . . . 5 matches
         == Ice Breaking ==
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 어쩐지 저는 이 반도 아닌데 육피에 거주하다보니 (그리고 우리반 새싹은 거의 질문형식이다보니) 다른 이런저런 새싹을 보게되고 끼네요. 덕분에 ICE Breaking에 제 이름이..- 사실 지금 후기를 쓰는것도 피드백 갯수를 채우려는 속셈...응? 배열은 C시간에도 이제 막 배우고 있는건데 여기는 제대로 연습안했다간 망하기 쉬운곳이라더군요. 삽질열심히 해야겠어요. -[김태진]
  • 새싹교실/2012/열반/120604 . . . . 5 matches
          * int power(int n, int k);
          * void power(int *n, int k);
  • 새싹교실/2013/라이히스아우토반/6회차 . . . . 5 matches
          * continue 쓰는 상황을 보여 줌.
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * Internet Explorer를 제외한 다른 브라우저 (Chrome,FireFox, Opera)로 위키에 들어오면 편집하기 쉬워요.
         그후 배열에 대한 간단한 개념을 배우면서 continue를 어떻게 써야 하는지 배웠습니다.
  • . . . . 5 matches
          * [새싹C스터디2005/pointer]
          ||[장이슬]||sting825 골뱅이 msn 닷 com|| ||
         == Info ==
         [Linked List/숙제]
         main(){
         http://prof.cau.ac.kr/~sw_kim/include.htm
  • 숙제1/최경현 . . . . 5 matches
         #include <iostream>
         using namespace std;
         int main()
          cin >> celsius;
  • 스터디제안 . . . . 5 matches
         CACM, IEEE Software, IEEE Computer, Seminar:SoftwareDevelopmentMagazine 등의 잡지를 정리해서 그 요약글을 매 달(나눠서) 올리는 스터디는 어떨까?
          스터디의 이름에 담겨 있는 정보가, 해당 분야나 스터디의 시기의 정보뿐 아니라, 목표에 부합하는 의미가 첨가되는 것 역시 의미있을 것으로 생각합니다. 이름을 읽을때 마다 목표를 상기시키는 역할도 겸할수 있어서, 거울의 역할을 할 수 있을 것입니다. 하지만, 말씀 하신대로 독립적인 주제와 독립적인 의미를 가지게, 목표만을 이름으로 삼는것은 스터디의 내용과 괴리 될수 있다는 위험때문에, 피해야 할 것으로 생각합니다. --["neocoin"]
          목표'''만'''으로 이름 짓는 것이라는 것이지 뭐, 예를들어서, ''C++ 잘해 보자 훌륭한 넘 되자'' 라는 목표땜에, {{{~cpp GoodGuy}}} 이라고 이름 지으면 --;; --["neocoin"]
          내가 받아들이는 것은, 공부하는 주제로만 짓자는 것 으로 내가 착각을 한 모양이군. 그래서 목표를 섞어도 별 상관 없다는 생각이었는데? --["neocoin"]
  • 시간맞추기/남도연 . . . . 5 matches
         #include <iostream.h>
         #include <conio.h>
         #include <ctime>
         void main(){
          cout<<"You win!!!"<<endl;
  • 위키로프로젝트하기 . . . . 5 matches
          * How - 목표를 위한 방법과 일정의 기록이다. Offline 또는 Online 상에서 한 일에 대한 ["ThreeFs"] 를 남겨라.
          * 공동 번역 - 영어 원문을 링크를 걸거나 전문을 실은뒤 같이 번역을 해 나가는 방법이다. Offline 으로만으로도 가능한 방법이지만 효율적인 방법으로 다른 방법들을 곁들일 수 있겠다.
         일반게시판에 경우 프로젝트가 어떻게 진행될까? 하나의 프로젝트당 하나의 게시판이 열려있어야 한다. 프로젝트가 10개라고 한다면 게시판이 10개가 열려있어야 하고, 각각의 글들은 시간순서대로 저장이 된다. 위키에서의 page 10개의 의미와 게시판 10개의 의미중 어떤 것이 더 cost가 적게 들까? 그리고, 시간순서의 글 index 나열방식과 텍스트 내의 하이퍼링크중심 글 나열방식중 어느것이 더 의미있는 정보를 담을까?
          * 온라인이라는 잇점이 있다. 시간과 공간의 제약을 덜 받는다. 하지만, 오프라인을 배제해서는 안된다. 각각의 대화수단들은 장단점들이 존재한다. 위키의 프로젝트는 가급적 Offline에서의 프로젝트, 스터디와 이어져야 그 효과가 클 것이다. ZeroPage 의 ["정모"] 때 자신이 하고 있는 일에 대한 상황을 발표하고, 서로 의사소통을 할 수 있겠다.
  • 이영호/64bit컴퓨터와그에따른공부방향 . . . . 5 matches
         C, C++, Assembly, Linux Kernel, Network, Compilers
         내가 걸어야할 길은 지금과 같은 Network, Linux Kernel이 아니라
         (C를 사용할 시 Inline Assmbly만을 허용한다.)
          * Global Optimization 관점에서, 어느 부분은 생산성을 살리고 어느 부분은 퍼포먼스를 추구할까? 퍼포먼스를 추구하는 모듈에 대해서는, 어떻게 하면 추후 퍼포먼스 튜닝시 외부 모듈로의 영향력을 최소화할까? (InformationHiding)
         참고로 저는 82년부터 기계어(Machine Code)로 프로그래밍을 해본 사람입니다. 그렇지만 그 경험이 제가 현재 컨설턴트로, 프로그래머로 살아가는데 결정적 도움이 되었다는 생각은 들지 않습니다.
  • 이영호/시스템프로그래밍과어셈블리어 . . . . 5 matches
         API Hooking을 통해 Application 이하의 차원에서 프로그램을 자유 자재로 다룰 수 있다는 것을 배웠다.
         몇몇 게임(카트라이더, 워록, 대항해시대 등등)의 프로그래머들이 Application 층만을 다룰줄 아는 무식한 프로그래머라는 것을 알았다. (특히, 워록의 프로그래머는 프로그래머라기 보다 코더에 가깝고 배운 것만 쓸 줄 아는 무식한 바보이다. 그 프로그래머는 개발자로서의 수명이 매우 짧을 것이다. 3년도 못가 짤리거나 혹은 워록이라는 게임이 사라질걸?) - (이 게임들은 코드를 숨기지 못하게 하는 방법도 모르는 모양이다. 이런식으로 게임들을 건들여 패치를 만들 수 있다. KartRider는 요즘에와서 debug를 불가능하게 해두고 실행 파일을 packing 한 모양이다. 뭐 그래도 많은 코드들을 따라가지 않고 ntdll.ZwTerminateProcess에 BreakPoint를 걸어 앞 함수를 건들이면 그만이지만.)
         System Programming을 통해 Application층 프로그래밍의 본질을 깨닫기 시작했으며, 가장 중요한 것이 Assembly란 것을 다시 한번 깨달았다.
  • 인수/Assignment . . . . 5 matches
         == incompleted assignment queue ==
         || AI || 9/7 || 9/7.자정전까지 || 나는 인공 지능 시스템인가? 에 대한 자신의 생각을 A4 반 장 정도(10line?) dwkim@cau.ac.kr로 제출 || || O ||
         || DB || 9/13 || 9/18, 수업 || Fig4-12 Insurance DB Schema. find PK and FK || || O ||
         || 모델링 || 9/26 || 10/15 || 3장 연습문제 || so fxxking hw... || O ||
          * Oh.. Thank you. I'm checking my assignment, too. That's good~ -- [창섭]
  • 임수연 . . . . 5 matches
         http://bingoimage.naver.com/data3/bingo_22/imgbingo_22/sinctlst/24331/sinctlst_1.jpg -수연아~에이~ [joosama]
  • 정모/2011.4.4/CodeRace/김수경 . . . . 5 matches
         = River Crossing =
          def initialize
          print "FAIL"
          def initialize
          print "FAIL"
  • 정모/2013.5.20 . . . . 5 matches
         [http://www.worlditshow.co.kr/main/main.php 홈페이지]
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * TIP : Internet Explorer를 제외한 브라우저(FireFox라던가 Chrome이라던가)로 들어오면 각 항목 우측에 "편집"이라고 떠요. 좀 더 편하게 수정 할 수 있죠.
  • 제12회 한국자바개발자 컨퍼런스 후기/유상민의후기 . . . . 5 matches
          * 원문 내용중에는 내용 중 메모, 지적질(?), 아이디어들이 뒤섞여 있어서 내용은 제거. JCO 의 pdf 찾아보면 됨. 없다고 판단되는 내용만 남김 --NeoCoin
          * 좋은점 ~ 괜찮은 소프트웨어(stan2j) 추천, walking skeleton 이야기 재미있었다. 대부분의 말들에 자신의 경험을 소개한건 매우 가치있었다.
          * 위의 disk vs mem 하면 차이가 큰게 당연한데 아주 큰 차이가 있을 테스트를 왜 보여주는지 이해가 안갔다. 더불어 하지 않았다는 것은 위의 벤치마크가 쿼리 히트율이 떨어진다는 의미인데... in memory db 로 벤치마크를 하면 모를까.. 그냥 스트레스 테스트 결과로 보강했으면 좋겠다.
         이렇게 기억하는데 검색해보니 http://inpion.com/ 서울에 사무실 있다. 잘못 기억한듯.
         여기에 주거나, 대답이 필요하면 neocoin@gmail.com
  • 제13회 한국게임컨퍼런스 후기 . . . . 5 matches
         || 10:30 – 11:30 || Unity3D와 UPS로 멀티플레이 게임 만들기 || 노영하(머치디퍼런트) || Programming ||
         || 11:40 – 12:40 || 게임용 다이나믹 오디오 믹싱 – 쌍방향 사운드 믹싱 전략 || Jacques Deveau(Audiokinetic) || Audio ||
         || 17:00 – 18:00 || 엔비디아 Nsight™ Visual Studio로 게임 디버깅 및 최적화하기 || 최지호(NVIDIA) || Programming ||
          * 세 번째 세션은 또 음악의 세계로... 역시나 자기네 회사 프로그램을 사용하면 사운드 효과를 다양하게 낼 수 있다는 것에 대해서 이야기 해 주었다. 뭐 Chaining 관계를 이용한 소리의 조합이라나 뭐라나..
  • 제로스 . . . . 5 matches
         || . 1. 9. || Upload:CH2_Operating-System-Structures.ppt || 수생, 소현 ||
         || . 1. 26. || Upload:Ch06_CPU_Scheduling.ppt || 수생,소현 ||
         * 이론 : Operating System Concepts(6/E) : Windows XP Update - 한국어판
          * 현재 프로젝트의 방향은 정하지 않은 것으로 보이니까 공룡책으로 이론 공부를 하고 Nachos라는 교육용 OS 프로그램 분석을 병행하면서 여기서 얻은 지식으로 OS를 만드는 접근 방법을 사용하는 것이 어떨까 하는데 다들 의견이 어떠신지 궁금? -- 이론 : Operating System Concepts -- 실습 : Nachos - [진석]
  • 중앙도서관 . . . . 5 matches
         하지만, 현재의 도서관 시스템은 사용하면 할 수록 불편한 시스템이다. "Ease of Learning"(MS 워드)과 "Ease of Use"(Emacs, Vi) 어느 것도 충족시키지 못한다.
         지금 도서관의 온라인 시스템은 상당히 오래된 레거시 코드와 아키텍춰를 거의 그대로 사용하면서 프론트엔드만 웹(CGI)으로 옮긴 것으로 보인다. 만약 완전한 리스트럭춰링 작업을 한다면 얼마나 걸릴까? 나는 커스터머나 도메인 전문가(도서관 사서, 학생)를 포함한 6-8명의 정예 요원으로 약 5 개월의 기간이면 데이타 마이그레이션을 포함, 새로운 시스템으로 옮길 수 있다고 본다. 우리과에서 이 프로젝트를 하면 좋을텐데 하는 바램도 있다(하지만 학생의 사정상 힘들 것이다 -- 만약 풀타임으로 전념하지 못하면 기간은 훨씬 늘어날 것이다). 외국의 대학 -- 특히 실리콘벨리 부근 -- 에서는 SoftwareEngineeringClass에 근처 회사의 실제 커스터머를 데려와서 그 사람이 원하는 "진짜" 소프트웨어를 개발하는 실습을 시킨다. 실습 시간에 학부생과 대학원생이, 혹은 저학년과 고학년이 어울려서(대학원생이나 고학년이 어울리는 것이 아주 중요하다. see also NoSmok:SituatedLearning ) 일종의 프로토타입을 만드는 작업을 하면 좋을 것 같다. '''엄청나게''' 많은 것을 배우게 될 것이다. --JuNe
         이런 프로젝트가 컴공과 학생에게 쉽게 떨어질리는 만무하다. 그래서 대부분은 디자인 단계에서 끝내게 된다. 유스케이스 몇개 그려보고 끝나는 것이다. 좀 더 용감하고 야망이 높은 사람들은 밑바닥부터 구축을 해나갈지도 모르겠다. 어찌 되었건 프로그래밍은 중요하다. 빌게이츠가 늘 하는 말이 "Code is the thing"이란다. 만약 프로그래밍을 직접 해보지 않고 끝내게 되면 자신이 배울 수 있는 엄청난 크기의 빙산을 그냥 지나치는 셈이다.
  • 지금그때2003/계획 . . . . 5 matches
          * Section I - Opening,
          8:14~8:30 OST 와 Seminar:SimpleRule 소개 오신 선배 소개
          * Section I - Opening,
          * Section II - Seminar:OpenSpaceTechnology
          8:00~8:15 OST 와 Seminar:SimpleRule 소개
  • 지금그때2004/게시판홍보문안 . . . . 5 matches
         * 참석한 사람들의 폭발적인 반응 <a href = "http://zeropage.org/wiki/_c1_f6_b1_dd_b1_d7_b6_a72003_2f_c8_c4_b1_e2" target = blink> <font color = "blue" >☞ 지금그때2003후기 바로가기 ☜</font> </a>
         <a href = "http://dduk.idaizy.com/nowthen/apply.php" target = _blink> <font color = "blue">☞ 신청하러 가기 ☜ </font> </a>
         ... <a href="http://my.netian.com/~zwolf/poem/p0401.htm" target = _blink> more </a>
         <a href = "http://zeropage.org/wiki/_c1_f6_b1_dd_b1_d7_b6_a72003_2f_c8_c4_b1_e2" target = blink> <font color = "blue" >☞ 지금그때2003후기 바로가기 ☜</font> </a>
         <a href = "http://dduk.idaizy.com/nowthen/apply.php" target = _blink> <font color = "blue">☞ 신청하러 가기 ☜ </font> </a>
  • 창섭 . . . . 5 matches
         ["linux필수명령어"][[BR]]
         [http://165.194.17.15/pds/200232993449/SSHWinClient-3.1.0-build235.exe ssh 접속프로그램][[BR]]
         ["ItMagazine"][[BR]]
         [http://my.dreamwiz.com/bicter/index.htm PC 상식과 팁]
         [http://www.realvnc.com/cgi-bin/3.3.6-vncform.cgi -.-]
  • 최소정수의합/김유정 . . . . 5 matches
         #include <stdio.h>
         main()
          int sum;
          int n;
          printf("n=%d,sum=%d\n",n,sum);
  • 최소정수의합/김태훈zyint . . . . 5 matches
         #include <stdio.h>
         int main()
          int sum=0, n=0;
          printf("n = %d, sum = %d\n",n,sum);
  • 최소정수의합/이규완 . . . . 5 matches
         #include <stdio.h>
         void main()
          int n=1;
          int sum=0;
          printf("n=%d, sum=%d", n, sum);
  • 최소정수의합/이태양 . . . . 5 matches
         #include<stdio.h>
          int n=0,sum=0;
          printf("n=%d sum=%d\n",n,sum);
         int main(){
  • 파이썬->exe . . . . 5 matches
         주제 : win32com 을 이용한 파이썬 프로그램 py2exe로 실행파일 만들기
         win32com 에 있는 것들을 사용해서 프로그램을 만들고 나면..
         --packages win32com
         python setup.py py2exe --packages win32com
         sys.argv.extend(['--packages', 'win32com'])
  • 파일 입출력_2 . . . . 5 matches
         #include <iostream>
         using namespace std;
         int main()
          fprintf ( fpt , "Hello World!") ;
  • 프로그래머가알아야할97가지/ActWithPrudence . . . . 5 matches
         이터레이션 초반에 스케줄이 아무리 여유로워 보인다고 해도, 시간 압박을 다소 받는 건 어쩔 수 없다. “제대로 하기”와 “빨리 하기” 중 선택해야 할 경우, 나중에 다시 돌아와서 고칠 수 있다는 전제하에 “빨리 하기”를 선택하고 싶어지기도 한다. 스스로에게나 팀에게 또는 고객에게 이런 약속을 할 때에는 정말로 나중에 고치겠다는 뜻이다. 그러나 십중팔구 다음 이터레이션에서 새로운 문제가 나타나서 거기에 집중하게 되곤 한다. 이렇게 연기된 작업은 기술적 부채(Technical Debt)라고 알려져 있으며 이런 일에 익숙해져서는 안 된다. 특별히, 마틴 파울러(Martin Fowler)는 그의 기술적 부채 분류 체계에서 이를 의도하지 않은 기술적 부채와 헷갈려서는 안 되는 계획적인 기술적 부채라고 부른다.
         --[http://programmer.97things.oreilly.com/wiki/index.php/Seb_Rose Seb Rose] 원저
         원문: http://programmer.97things.oreilly.com/wiki/index.php/Act_with_Prudence
  • 피보나치/현정,현지 . . . . 5 matches
         #include <stdio.h>
         int suyul[1000],i,num;
         void main()
         printf("알고싶은 '항'을 입력해주세염!\nNumber : ");
         printf("%d항의 숫자는 %d입니다.\n",num,suyul[num-1]);
  • 05학번만의C Study/숙제제출1/정진수 . . . . 4 matches
         #include <iostream.h>
         int main()
          cin >> Cel;
  • 05학번만의C++Study/숙제제출1/정진수 . . . . 4 matches
         #include <iostream.h>
         int main()
          cin >> Cel;
  • 05학번만의C++Study/숙제제출1/조현태 . . . . 4 matches
         #include<iostream>
         void main(){
          std::cin >> celsius;
         책 읽어보고, using namespace std; 쓰는이유, 뭐 이런것을 익히고 자신만의 C++스타일도 찾을겸.
  • 2dInDirect3d/Chapter2 . . . . 4 matches
         = Creating a Device =
          UINT Adapter, // 어댑터의 번호, D3DADAPTER_DEFAULT를 사용
          HWND hFocusWindow, // 현재 창의 HWND를 넣어준다.
          IDirect3DDevice8** ppReturnedDeviceInterface
          2. BehaviorFlag에는 버텍스를 처리하는 방법을 넣어준다. D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_MIXED_VERTEXPROCESSING, D3DCREATE_SOFTWARE_VERTEXPROCESSING중 한가지를 사용한다. (사실은 더 많은 옵션이 있다.) 대개 마지막 SOFTWARE를 사용한다.
         MinZ = 0.0f : Z의 최소값. 대개 0.0f
          HWND hDestWindowOverride,
          1. 결과값은 D3D_OK, 실패했을경우엔 D3D_INVALIDCALL이나 D3D_DEVICELOST가 리턴된다.
         ["2dInDirect3d"]
  • 5인용C++스터디/다이얼로그박스 . . . . 4 matches
         대화상자(DialogBox)는 최상위 윈도우(top-level window)의 자식 윈도우로서 일반적으로 사용자로부터 정보를 얻기 위해 사용된다. Dialog는 사용자들이 파일을 선택하여 열기 등의 작업을 쉽게 하도록 합니다. 파일 작업을 쉽게하기 위해 제공하는 컴포넌트가 FileDialog클래스이다. Dialog는 Frame윈도우와 비슷한데 그 차이점을 살펴보면, 대화상자는 윈도우에 종속적이기 때문에 그 윈도우가 닫히면 대화상자도 따라서 같이 닫히게 된다는 것이다. 또한 윈도우를 최소화시켜도 대화상자는 사라지게 된다.
          Single document Multiple documents
         즉 modal dialog는 그 dialog가 닫혀지기 전에는 부모 윈도우로 마우스를 이용한 focus이동을 할 수 없다. 따라서, dialog를 닫지 않는 이상 main window프로그램을 이용할 수 없다.
  • ACM2008 . . . . 4 matches
         short coding 이란 책 - 내가 신청하려고 했으나 누군가가 신청해서 이미 도서관에 있었던 책. 이런 경험 몇 번 없었는데. 재미있었음 - 에서 본 유익한 정보 한토막.
         [http://acm.pku.edu.cn/JudgeOnline/ POJ] Peking university Judge Online 이란 시스템이 있는데 온라인으로 프로그래밍 문제를 제공하고, 온라인으로 소스를 보내면 서버에서 컴파일해서 결과를 알려주는 시스템이다. 책에서는 code 의 길이를 이용한 코드 골프쪽에 초점을 맞추고 있었지만 이 프로젝트의 목표상 그럴 필요는 없을거 같다. 다만 온라인으로 제공되는 문제가 꽤 있고 평가하는 시스템이 있으므로 보다 즐겁게 놀 수 있는 '꺼리' 일 것 같다.
  • AI오목컨테스트2005 . . . . 4 matches
          * [http://zerowiki.dnip.net/~undinekr/OmokBase.zip] - 현태의 AI + 네트워크 가능한 오목 프레임 워크
          * [http://zerowiki.dnip.net/~undinekr/OmokBase.zip]
         상협쓰~ 지난번에 이야기한 중간일정 좀 적어주기를. 추후에 Minimax 랑 AI 개론 세미나 끼게..~ --[1002]
          * [http://zerowiki.dnip.net/~undinekr/OmokBase.zip] - 위에 링크 걸어 놨었는데~
  • ALittleAiSeminar/Namsang . . . . 4 matches
          def __init__(self, aStone, aBoard):
          Player.__init__(self, aStone, aBoard)
          for i in range(len(posList)):
         [ALittleAiSeminar]
  • AM/AboutMFC . . . . 4 matches
         --NeoCoin
         F12로 따라가는 것은 한계가 있습니다.(제가 F12 기능 자체를 몰랐기도 하지만, F12는 단순 검색에 의존하는 면이 강해서 검색 불가거나 Template을 도배한 7.0이후 부터 복수로 결과가 튀어 나올때가 많죠. ) 그래서 MFC프로그래밍을 할때 하나의 새로운 프로젝트를 열어 놓고 라이브러리 서치용으로 사용합니다. Include와 Library 디렉토리의 모든 MFC관련 자료를 통째로 복사해 소스와 헤더를 정리해 프로젝트에 넣어 버립니다. 그렇게 해놓으면 class 창에서 찾아가기 용이하게 바뀝니다. 모든 파일 전체 검색 역시 쉽게 할수 있습니다.
         --NeoCoin
         그런데요. C# 관련해서 프로그래밍 프로젝트는 없어요? Windows플랫폼이라면, 일반 어플리케이션은 C# 뿐만아니라, Embeded 까지 .NET 계열이 맡게 될텐데 말이죠 :) --NeoCoin
  • APlusProject/ENG . . . . 4 matches
         Upload:APP_CodingConvention_0407.zip
         Upload:APP_CodingConvention_0408.zip
         Upload:APP_CodingConvention_0412.zip -- 조금 추가하였습니다.
         해결 방법: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 폴더로 이동
         C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis.exe -i
         === mdb 파일에 insert 쿼리시 에러 해결 ===
  • APlusProject/PMPL . . . . 4 matches
         Upload:APP_RequirementDefinition_0428-0524.zip
         Upload:APP_RequirementDefinition_0526.zip - 정의서 최종문서 -- QA(윤주)에게 검토됨
         Upload:APP_TracingChart.zip - 수정해주세요~ 액셀파일입니다
         Upload:APP_TracingChart_0619.zip - 한글파일로 수정했고, 세로로 안되서 가로로 했다. 버전은 0.2
  • AdventuresInMoving:PartIV . . . . 4 matches
         [http://online-judge.uva.es/p/v102/10201.html 원문보기]
         === About [AdventuresInMoving:PartIV] ===
         === Input ===
         === Sample Input ===
         || 문보창 || C++ || 2일 || [AdventuresInMoving:PartIV/문보창] ||
         || 김상섭 || C++ || 2주일 || [AdventuresInMoving:PartIV/김상섭] ||
  • Algorithm/DynamicProgramming . . . . 4 matches
         http://en.wikipedia.org/wiki/Dynamic_programming
         Introduction To Algorithm 에도 이에 대한 설명이 있습니다.
         == Optimal Binary Search Tree ==
         [http://linneus20.ethz.ch:8080/binary.html]
  • AppletVSApplication/영동 . . . . 4 matches
          * Thinking In Java에서 찾아 썼습니다.
          * main() 함수를 반드시 포함한다.
          * 애플리케이션과는 달리 main()함수가 필요없다.
         ["JavaStudyInVacation/진행상황"]
  • ArtificialIntelligenceClass . . . . 4 matches
         Upload:namsang:AI - Prentice Hall - Artificial Intelligence - A Modern Approach - 1995.pdf
         [http://www.wowbook.com/generic/book/info/book_detail.asp?isbn=ISBN89-88397-88-6 인공지능 개념및 응용]
          * [http://aima.cs.berkeley.edu/instructors.html 미국대학 시험문제들]
         요새 궁리하는건, othello team 들끼리 OpenSpaceTechnology 로 토론을 하는 시간을 가지는 건 어떨까 하는 생각을 해본다. 다양한 주제들이 나올 수 있을것 같은데.. 작게는 책에서의 knowledge representation 부분을 어떻게 실제 코드로 구현할 것인가부터 시작해서, minimax 나 alpha-beta Cutoff 의 실제 구현 모습, 알고리즘을 좀 더 빠르고 쉬우면서 정확하게 구현하는 방법 (나라면 당연히 스크립트 언어로 먼저 Prototyping 해보기) 등. 이에 대해서 교수님까지 참여하셔서 실제 우리가 당면한 컨텍스트에서부터 시작해서 끌어올려주시면 어떨까 하는 상상을 해보곤 한다.
  • Boost . . . . 4 matches
          * [http://boost.org/status/cs-win32.html 컴파일러 테스트] 페이지를 보면 알 수 있듯이 가장 많은 테스트를 통과하는 것은 gcc. VC++ 6 은 테스트도 안한다.
          * ["Boost/SmartPointer"] : Boost 에서 제공되는 스마트 포인터 사용 방법
         전에 ["JuNe"] 형이 말씀하시던게 이거였구나. --["neocoin"]
          정헌이 이거가지고 프로그램 짰잖아. --["neocoin"]
  • BoostLibrary . . . . 4 matches
          * [http://boost.org/status/cs-win32.html 컴파일러 테스트] 페이지를 보면 알 수 있듯이 가장 많은 테스트를 통과하는 것은 gcc. VC++ 6 은 테스트도 안한다.
          * [BoostLibrary/SmartPointer] : Boost 에서 제공되는 스마트 포인터 사용 방법
         전에 ["JuNe"] 형이 말씀하시던게 이거였구나. --["neocoin"]
          정헌이 이거가지고 프로그램 짰잖아. --["neocoin"]
  • BusSimulation/영창 . . . . 4 matches
         = Info =
         [[NewWindow("http://zeropage.org/cvs/bus_simulation/?root=sapius&rev=7", "최초 동작 버전")]]
         [[NewWindow("http://zeropage.org/cvs/bus_simulation/?root=sapius&rev=8", "station, bus 객체의 people의 승탑 메소드 구현")]]
         [[NewWindow("http://zeropage.org/cvs/bus_simulation/?root=sapius", "탑승하차상황 가정 버전")]]
          왜 OOP적 접근법이 필요한지 약간 감이 잡힌다고 해야할까? 이런 현실의 내용을 simulation 하기에는 structured programming의 접근법으로는 참 다루기가 힘든점들이 많을 것 같다. - [eternalbleu]
  • CalendarMacro . . . . 4 matches
         {{{[[Calendar(noweek,yearlink)]]}}} show prev/next year link
         [[Calendar(noweek,yearlink)]]
         '''archive option check blogged dates and link to the archive'''
  • ComposedMethod . . . . 4 matches
          void controlInitialize() {/* ... */}
          void controlTerminate() {/* ... */}
          controlInitialize();
          controlTerminate();
         개인적으로, 간단해보이지만 아주 중요한 이야기라 생각함. ProgrammingByIntention 의 입장에서, 또한 '같은 레벨의 추상화를 유지하라'라는 대목에서. (StepwiseRefinement 를 하면 자연스럽게 진행됨) --[1002]
  • ComputerNetworkClass/2006 . . . . 4 matches
          * http://orchid.cse.cau.ac.kr/course/cn/index.php?code=project1
          * http://zerowiki.dnip.net/~namsangboy/program/WinPcap_3_1.exe
         [ComputerNetworkClass/Report2006/BuildingWebServer]
         [ComputerNetworkClass/Report2006/BuildingProxyServer]
  • DebuggingApplication . . . . 4 matches
         == CRT Debugging 관련 페이지 ==
         [http://msdn.microsoft.com/library/en-us/vsdebug/html/_core_using_c_run2dtime_library_debugging_support.asp?frame=true]
         [http://www.sysinternals.com/]
  • DebuggingSeminar_2005/UndName . . . . 4 matches
         DLL 파일에 의해서 분석된 내용을 보면 DLL 에 함수의 이름이 이상하게(?) 변형되어 있는것을 확인하실 수 있는데(DUMPBIN.EXE 를 통해서 가능합니다.) 이 이름의 원형을 알고 싶을때가 있습니다. 그럴때 undname.exe 라는 파일을 사용하시면 아주 쉽게 확인해 보실 수 있습니다.
         Microsoft(R) Windows (R) 2000 Operating System
         [DebuggingSeminar_2005]
  • ExtremeBear/VideoShop/20021106 . . . . 4 matches
          * ["PairProgramming"]이 불균형했다. ["PairProgramming"]의 본질에 다가서기 위해 시간을 정해야겠다.
          * ["PairProgramming"]이 집중도를 높여 효율이 증가했다.
          * ["PairProgramming"] 하면서 역시 배우는 게 많다
  • Gof/AbstractFactory . . . . 4 matches
         === Intent ===
          * AbstractProduct(Window, ScrollBar)
          * ConcreteProduct(MotifWindow, MotifScrollBar)
          * 추상 인터페이스(ProductInterface)를 수행한다.
          InterViews 는 AbstractFactory 클래스들을 나타내기 위해서 'Kit'를 접미사로 사용한다. 이것은 WidgetKit과 DialogKit abstract factory 들을 명확한 ["룩앤필"] UI 객체를 위해서 정의한다. InterViews는 또한 서로 다른 복합 객체를 생성하는 LayoutKit 을 포함다. 예를 들면, 어떤 layout은 문서의 방향(인물이나 풍경)에 따른 서로 다른 복합 객체를 개념적으로 정렬한다.
          ET++[WGM88]은 다른 윈도우 시스템(예를 들면, X Windows 와 SunViews)간의 호환을 수행하기 위해서 Abstract Factory 패턴을 사용했다. 윈도우 시스템의 추상 base 클래스는 윈도우시스템의 자원 객체(예를 들면, MakeWindow, MakeFont, MakeColor)를 생성할 수 있는 인터페이스를 정의한다. Concrete 서브 클래스는 특정 윈도우 시스템에 인터페이스를 수행한다.
  • HardcoreCppStudy/첫숙제/ValueVsReference/임민수 . . . . 4 matches
         #include <iostream>
         using namespace std;
         void main()
          * main() 함수의 리턴형이 void 이기 때문에 return 0은 쓰면 안 됩니다. -영동
  • HelpOnUserPreferences . . . . 4 matches
          * '''[[GetText(Name)]]''': 사용자의 실제 이름 혹은 별명. WikiName 형식으로 만들면 편리합니다.
          * '''[[GetText(Quick links)]]''': 최상단에 있는 메뉴에 자신이 원하는 링크를 추가하거나 원하는 위키페이지에 대한 링크를 넣을 수 있습니다. QuickLinks 페이지를 참조해주세요.
          * '''[[GetText(Subscribed wiki pages (one regex per line))]]''': 모든 페이지의 변경알림을 받아보고 싶은 경우에 '''`.*`''' 를 집어넣으시면 됩니다. (위키위키가 많은 변경이 있는 경우 권장하지 않습니다.) 각 페이지를 보고싶은 경우에는 각각의 페이지 이름을 줄 단위로 넣으시면 됩니다. 정규식에 익숙하신 사용자의 경우에 정규식을 사용하실 수도 있습니다. 설정에 따라서 상단의 아이콘 툴바에 [[Icon(email)]]이 나타날 수 있으며, 이메일 아이콘을 누르면 해당 페이지를 구독하는 폼이 뜨게 됩니다.
         /!\ 이메일 구독은 `config.php`에서 설정을 해야 합니다. 자세한 내용은 SubscribePlugin을 참조하세요.
  • Ieee754Standard . . . . 4 matches
          * [http://docs.sun.com/htmlcoll/coll.648.2/iso-8859-1/NUMCOMPGD/ncg_goldberg.html What Every Computer Scientist Should Know About Floating-Point Arithmetic] (''강추'')
          * [http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf How JAVA's Floating-Point Hurts Everyone Everywhere]
  • IpscAfterwords . . . . 4 matches
         후.. 좌절(아까 떡볶이 먹을때에도 너무 강조한것 같아서 이제는 다시 자신감 회복모드 중입니다만) 임다. -_-; 결국 5시간동안 한문제도 못풀었네요. 처음 경험해본 K-In-A-Row 문제를 풀때나 Candy 문제를 풀때만해도 '2-3문제는 풀겠다' 했건만. 어흑;[[BR]]
          * 전에 K-In-A-Row 같은 경우는 일종의 StepwiseRefinement 의 형식이 나와서 비교적 코딩이 빠르게 진행되었었고, (비록 답은 틀렸지만) Candy 문제의 경우 덕준이가 빨리 아이디어를 내어서 진행이 빨랐었는데, 실전에서는 그런 경우들이 나오지 않아 버겨웠던듯 하네요.
          * 중반부로 들어가면서 사람들이 문제들을 못풀다보니 팀플레이도 흐트러진것 같습니다. 이전에 K-In-A-Row 풀때나 Candy 풀때만해도 실마리를 잡아서 '풀 수 있겠다' 라고 생각해서인지 팀플레이가 잘 되었던거 같은데.. 역시 어려울때 잘하기란 힘든것 같네요.
          * IPSC Winner 가 발표되었네요. 재밌게도 Open 과 Second 둘 다 러시아이고, 양쪽 팀 다 Pascal 을 이용했다는. ^^
         석천군 팀이 B번 문제(Job Balancing)를 풀긴 풀었으나 시간이 너무 걸려서 옵티마이징을 필요로 했습니다. 제가 O(m*n^2)에서 O(m*n)으로 만들어줬는데, 그것으로도 부족했습니다. 집에 돌아와서 잠을 자다가(NoSmok:포앵카레문제해결법 ) 몇 가지 아이디어가 떠오르더군요. 오늘 아침에 일어나서 30분 정도 뚝닥거려서 B Difficult Set을 5초 안에 끝내는 코드를 만들었습니다. 어떻게 사고했냐구요? TDD로 원소 하나 짜리, 두 개 짜리, 세 개 짜리, ... 를 하다보니까 일반해가 보이더군요. 역시 마음에 여유가 있으면 잘 되는 것 같습니다.. see also IpscLoadBalancing
  • JAVAStudy_2002/진행상황 . . . . 4 matches
         swing 약간과 기타 Java 관련 기초 지식 습득. [[BR]]
          * 2월 4일 : Core Java 책 Event Handling 부분 다보고 나서 이제 Swing 부분 보기 시작 했습니다.
         현재 Java swing API중 버튼이나.. 텍스트 박스에 대한 것을 익혔습니다.(Application쪽..)[[BR]]
  • LazyInitialization . . . . 4 matches
         == Lazy Initialization ==
         ExplicitInitialization의 모든 장점은 단점으로, 단점은 장점으로 된다. 당연하다.(--;)
         LazyInitialization의 하나의 변수당 두개의 메소드로 나눠서 초기화를 한다. 하나는 변수가 LazyInitialization되는 것을 감추어 주는 getter이고, 다른 하나는 변수에다 디폴트값으로 할당을 해줄 DefaultValueMethod이다. 이 방법은 유연성이 증대된다. 당신이 서브클래스를 만든다면, DefaultValueMethod를 오버라이딩함으로써, 기능을 바꿀 수 있다. 전장에서도 언급했듯이 성능도 증대시킬 수 있다.
          int getCount()
          int defaultCount()
          int getPeriod()
          int defaultPeriod()
         별로 안쓸듯하지만... 켄트벡 왈 : 일단은 ExplicitInitialzation으로 출발을 하고, 상속될 거 같으면 LazyInitialization을 사용한다.
  • Linux/탄생과의미 . . . . 4 matches
          * [http://en.wikipedia.org/wiki/Linux 영문]
          * 1991년 헬싱키의 대학생인 리누즈 토발즈(Linus Tovalds)가 개인적인 관심으로 작은 Unix시스템 구조인 Minix의 PC용 커널을 개발로부터 출발하게 되었다.
         [Linux]
  • MFCStudy_2001/진행상황 . . . . 4 matches
          * 모든 프로그램의 접수처는 neocoin@orgio.net 입니다. 링크 시키란 의미가 아닙니다.
          lib파일 포함시키는 범,릴리즈 모드와 디버그 모드의 차이점,메인 윈도우의 포인터 얻어오기(CAlcaDlg *pDlg=(CAlcaDlg*)AfxGetMainWnd();)
          *1월 7일 : Define 상수 결정, Stage 1의 블럭 초기화, 바의 움직임(키보드 or 마우스)
          *1월 14일 - 13일 일요일에 석천이형의 조언에 따라 코드 전체적으로 대대적인 Refactoring(이 용어가 맞는지는 모르겠네여..^^;;)을 해서 할수 있는 한 많은 코드들을 함수로 만들었습니다. 이에 따라 라인수가 아주 많이 줄어들게 되었고, 공격과 방어 인공지능을 같은 함수로 동작하게 하여 방어 할 수 있는 패턴은 모두 컴퓨터 공격할 수 있게 하였습니다.(덕분에 코드를 체계적으로 만들때는 상당히 힘들었지만, 한번 그렇게 하니 작업이 훨씬 쉬어 졌습니다. 참으로 중용한 사실을 몸소 체험 한거 같습니다) 3,4 방어 및 공격 인공 지능을 추가 했습니다. 이제 사람을 이길 확률이 좀더 높아 졌지만, 아직도 부족한것 같고 띈 3,3 방어 및 공격과 효율적인 3 만들기를 추가할 예정입니다.
  • MIB . . . . 4 matches
         = Man in Black =
         http://www.meninblack.com
          * 요즘 ["상민"]이는 "MIB들이 처리해 줄꺼야" 라는 말을 많이 쓴다. dcinside에서 "MIB들이 처리 했습니다." 라는 소리 한마디 듣고 전염이 되어 버렸다. 여기에서 MIB라면 일전에 창준 선배가 말씀하신 그린베레 프로그래머(Green Beret Programmer(Wiki:GreenBeretCoding) 정도의 의미가 될 것이다. 후에 MIB Programmer가 더 적당한 말이 될수 있겠다고 생각하곤 한다.
  • MT날짜정하기 . . . . 4 matches
         === Opinion ===
          * Seminar:PraiseGame --재동
         MT 무산인가요? 그날 http://30th.caucse.net/ 30주년 기념회를 하는데요? --NeoCoin
          재학생도 참가비 내고 가는건가? 너무 센데 저거? --NeoCoin
  • MoinMoinRelease . . . . 4 matches
         This describes how to create a release tarball for MoinMoin. It's of minor interest to anyone except J
  • MoniWikiTheme . . . . 4 matches
          * '''include'''로 처리된다.
         http://chemie.skku.ac.kr/wiki/wiki.php/TwinPages?action=theme&theme=kz
         http://chemie.skku.ac.kr/wiki/wiki.php/TwinPages?action=theme&theme=blog
         http://chemie.skku.ac.kr/wiki/wiki.php/TwinPages?action=theme&theme=samplehome
  • OperatingSystemClass/Exam2006_2 . . . . 4 matches
         6. Paging System에서 여러 가지 주소 맵핑 방법이 있는데 각각을 설명하시오.
         7. Threshing 이 일어나는 원인과 시스템이 Threshing을 어떻게 발견하고 처리하는지 쓰시오.
         [OperatingSystemClass]
  • PersonalHistory . . . . 4 matches
          * [http://izyou.net/wireless Moblie computing class term paper]
          * [XpWeek] - 2004년 겨울방학 ExtremeProgramming 체험하기
          * [ZeroPageMagazine] - 미완성
          * 참고 페이지 - [GuiTesting]
  • PlatformSDK . . . . 4 matches
         기타 최신버전은 [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/devdoc_platform_software_development_kit_start_page.asp MSDN platform SDK 소개 페이지] 에서 다운로드 하는 것이 가능하다.
         [WindowsProgramming]
  • Plex . . . . 4 matches
         Seminar:Plex - http://www.cosc.canterbury.ac.nz/~greg/
         특히 좋아하는 이유로는 State Machine 의 개념으로 텍스트를 파싱하고 가지고 놀 수 있다는 점이 있겠다. 예를 들어 HTML에서 span 태그에 대해 파싱한다고 할때 <span 시작 - span 내용 - </span> 끝이라면 그냥 이를 서술해버리면 된다는.~
         BuildingWikiParserUsingPlex
  • PrimaryArithmetic . . . . 4 matches
         [http://online-judge.uva.es/p/v100/10035.html 원문보기]
         === Input ===
         === Sample Input ===
          || Seminar:지원 || Python || 30분 || Seminar:PrimaryArithmetic/지원 ||
          || JuNe || Python || 10분 || Seminar:PrimaryArithmetic/JuNe ||
  • ProgrammingPearls/Column6 . . . . 4 matches
         == Perspective on Programming ==
          * 알고리즘과 자료구조의 교체 : Sequential 한것을 Binary Tree로 교체함으로써 O(n*n)이 O(n*lg n)으로 줄었다.
         === Principles ===
         ["ProgrammingPearls"]
  • ProjectGaia/참고사이트 . . . . 4 matches
          *[http://www.istis.unomaha.edu/isqa/haworth/isqa3300/fs009.htm Extendible Hashing] in English, 개념.코볼 구현소스
          *[http://www.cis.ohio-state.edu/~hakan/CIS671/Hashing.ppt Hash PPT]기본 개념 잡을려면.. 이걸보세엽.
          *[http://perso.enst.fr/~saglio/bdas/EPFL0525/sld009.htm Extendible Hashing]
  • ProjectPrometheus/Iteration2 . . . . 4 matches
         === 2nd Iteration - 8 Task Point Load. 7 Task Point 완료 ===
         || Task || Point (Pair 기준 1시간 : 1 point ) || 진행상황 ||
  • ProjectPrometheus/Iteration9 . . . . 4 matches
          * 바구니 기능 - 근데, 우리가 생각한 기능은 아닌듯. 용도가 좀 다름. 이에 따라 login 이 쿠키 스타일로 바뀜. (JSP 를 쓰던데, Session 스타일일 가능성도)
          * login 체제 (만일 Java라면 Cookie 를 어떻게 저장할까? 바구니 기능이 겹칠 수도 있겠다 생각)
         미스테리 : logging.jsp 파일이 include 시에 과거 코딩으로 돌아온다.
  • ProjectSemiPhotoshop . . . . 4 matches
         2002년 2학기 Object Programming 과목 ''' 상민,경태,현민 ''' 조의 프로젝트 페이지 입니다.
          * 금 integration이나, 남은 기능들의 구현
          * [http://165.194.17.15/~neocoin/jsboard/list.php?table=pds ProjectSemiPhotoshop/자료실] - 프로젝트용 자료실 입니다.
          http://165.194.17.15/~neocoin/ProjectSemiPhotoshop/
  • ProjectSemiPhotoshop/계획서 . . . . 4 matches
          * 10/24 pm1:00~pm4:00 VC예제 작성 , GDI, BMP, Key Input 예제 작성
          * Sampling 구현
          * 11/26 화 2차 integration ( 히스토그램, Quantization)
          * 11/28 목 3차 integration ( 남은 기본 기능, 명암 변화들 )
          * 11/30 토 4차 integration ( 추가 기능 )
  • ProjectVirush/ProcotolBetweenServerAndClient . . . . 4 matches
         || 로그인 || login id pw || login true || 아이디, 비밀번호 || 예약된 명령의 처리 상황||
         || 회원 가입 || join id pw e-mail || join true || 아이디, 비밀번호, 이메일 || 가입 성공 | 아이디 중복 ||
  • Prolog . . . . 4 matches
         PROgramming in LOGic
         [[include(틀:ProgrammingLanguage)]]
  • PythonXmlRpc . . . . 4 matches
          * http://python.kwangwoon.ac.kr:8080/python/Internet/xmlrpc.html
          * http://kldp.org/HOWTO/html/XML-RPC-HOWTO/index.html
          print "Dispatching: " , method, params
         if __name__=='__main__':
  • RandomWalk2 . . . . 4 matches
         이 페이지에 있는 활동들은 프로그래밍과 디자인에 대해 생각해 볼 수 있는 교육 프로그램이다. 모든 활동을 끝내기까지 사람에 따라 하루에서 삼사일이 걸릴 수도 있다. 하지만 여기서 얻는 이득은 앞으로 몇 년도 넘게 지속될 것이다. 문제를 풀 때는 혼자서 하거나, 그게 어렵다면 둘이서 PairProgramming을 해도 좋다.
          * ObjectOrientedProgramming에서 이 문제를 처음 소개했다.
         ||인수 || . ||C++ ||["RandomWalk2/Insu"] ||
         다른 친구와 PairProgramming을 해서 이 문제를 다시 풀어보라. 그 친구는 내가 전혀 생각하지 못했던 것을 제안하지는 않는가? 그 친구로부터 무엇을 배울 수 있는가? 둘의 시너지 효과로 둘 중 아무도 몰랐던 어떤 것을 함께 고안해 내지는 않았는가?
         see also DoItAgainToLearn
  • RandomWalk2/TestCase2 . . . . 4 matches
         input1.txt
         input2.txt
         input3.txt
         input4.txt
  • Reverse Engineering처음화면 . . . . 4 matches
         4. 프로그래밍 후의 Debugging을 위한 초석.
         2. Windows API + C
         1. System Programming (Kernel)
         2. Network Programming
  • RunTimeTypeInformation . . . . 4 matches
         동적으로 만들어진 변수의 타입을 비교하고, 특정 타입으로 생성하는 것을 가능하게 한다. (자바에서는 instanceof를 생각해보면 될 듯)
          int compare(derived &ref);
         int my_comparison_method_for_generic_sort(base &ref1, base &ref2)
         = RTTI in MFC =
  • ServiceOrientedProgramming . . . . 4 matches
         Adrian Tang 교수의 UbiquitousComputing 관련 강연에서 잠깐 언급되어서 웹을 뒤져봤는데 자료가 꽤 있는것 같다. UbiquitousComputing 과 SemanticWeb 등등과 맞물려 있는 프로그래밍 패러다임인것 같다. 개념정리를 해서 이곳에 정리를 해볼 예정 - [임인택]
          * [http://www.openwings.org/download/specs/ServiceOrientedIntroduction.pdf Introduction to service oriented programming]
  • ShellSort . . . . 4 matches
         [http://online-judge.uva.es/p/v101/10152.html 원문보기]
         여틀 왕(King Yertle)은 그의 거북이 왕관을 재배치해서 가장 계급이 높은 귀족과 가장 가까운 측근들을 더 위쪽으로 올리고 싶어한다. 쌓여있는 거북이들의 순서를 바꾸는 방법은 거북이 한 마리가 원래 자기 위치에서 빠져 나와서 맨 위로 올라가서 자리를 잡는 방법 밖에 없다.
         === Input ===
         === Sample Input ===
         Elizabeth Windsor
         Elizabeth Windsor
  • Spring/탐험스터디 . . . . 4 matches
         [[pagelist(^Spring)]]
          * [Spring Framework 3]로 작지만 유용한 프로그램을 만들어보자!
          * [Spring]의 핵심 가치와 원리에 대한 이해
          * Spring Framework 3 다루는 다른 교재 가능
  • Telephone . . . . 4 matches
         http://zeropage.org/pub/WinMergeSetup.exe - winmerge
         """자신의프로그램이름""" < test1.in > out.txt
         '''test1.in'''
  • TheOthers . . . . 4 matches
          * 유덕윤 - C using Win32 API or MFC
          * MFC(또는 Win32 API)로 DB와 GUI 코딩하기
          |__ UIProtoType - UI ProtoType 관련 문서 & Binary
  • TheTrip/Leonardong . . . . 4 matches
          for each in aList:
          for each in expensesBiggerThanMean:
         if __name__ == '__main__':
          unittest.main()
  • UsenetMacro . . . . 4 matches
         This works well with GoogleGroups Beta service. This helps make links to GoogleGroups with text remotely extracted from usenet topic.
          global $DBInfo;
          $img = sprintf('<img src="%s/google-16.png" alt="GoogleGroups:"'.
          ' align="middle" hspace="1" />', $DBInfo->imgs_dir);
          return sprintf('%s<a href="%s">%s</a>', $img, $url, $subj);
         [http://nohmad.sub-port.net/wiki/CodingLog/2003-09]
  • WikiWikiWebFaq . . . . 4 matches
         '''Q:''' So what is this WikiWiki thing exactly?
         '''A:''' A set of pages of information that are open and free for anyone to edit as they wish. The system creates cross-reference hyperlinks between pages automatically. See WikiWikiWeb for more info.
  • WordIndex . . . . 4 matches
         This is an index of all words occuring in page titles.
          * TitleIndex -- a shorter index
         [[WordIndex]]
  • ZPBoard/AuthenticationBySession . . . . 4 matches
         login.php - 회원 인증 폼에서 ACTION 속성으로 사용
         <script language = "JavaScript">window.location.replace("example.html");</script>
         <script language = "JavaScript">window.location.replace("example.html");</script>
         좀 더 직접적으로 이야기 하기전에 한번 더 다음의 상황을 보고 추측해보기 바랍니다. (Hint: 거창한 문제점을 가지고 문제삼은게 아닙니다. 쿠키니 세션이 아닌 로직상의 문제점을 살펴보면 해답이 있습니다.)
  • ZeroPage정학회만들기 . . . . 4 matches
          * ZeroPage의 현재활동의 우수성(외부행사, 각종 seminar, 경진대회 성적, 학술제 성적, 각종 study group & project, 회원들의 학점등등...)을 담는다. see also ZeroPageEvents
          * 이번에 르네상스클럽에서 할 Seminar:ReadershipTraining 와 같은 행사의 과내 행사화. RT와 Open Space Technology 를 조합하는 방법도 가능하리란 생각.
  • callusedHand/projects/fileManager . . . . 4 matches
          가상 파일 시스템 도입 / Linux configuration center(?) / 원격 로그인
          * Linux
          * C socket programming & unix network programming
  • cogitator . . . . 4 matches
         But, infinite passion & interest to the zeropage
         기술개발이 아닌 아닌 information policy 를 공부하러 ICU로 왔음
  • django/Model . . . . 4 matches
          "id" integer NOT NULL PRIMARY KEY,
         = Admin =
         Django는 정의한 모델에 Admin클래스를 재정의해서 이를 삽입, 삭제, 갱신할 수 있는 기본적인 관리자 인터페이스를 자동으로 생성해준다. 사용자 인터페이스는 입력 항목을 원하는대로 배치할 수 있으며, 원하는 디자인도 적용할 수 있다. 이것으로 기본적인 입력 시스템은 만들어졌다.
         Upload:Screenshot-Django-site-admin.png
  • erunc0/Mobile . . . . 4 matches
         mobile. 왠지 거창하다. 내가 하는 일은 요즘 pda를 산다면 대부분이 사는 arm processor 를 장착한 wince 기반의 ipaq 기종에 미니 게임을 만든다는.. --; 아직 시장도 없거니와. sk 쪽에서 휴대폰에 이어 앞으로 펼쳐지게(?)될 pda 시장에 sk 이름에 걸맞게 휴대폰 장사에 이어 독점 비슷하다 싶이 하기위해 자그마치 500 억이라는 투자로 인해 매일 같이 삽질을 하고 있다.
          * wince tool - ms site에가면 찾을 수 있음. 자그마시 300~400 mega. --; visual studio 와 아주 유사. 거의 똑같음
          * gx library 에서 제공해주는 몇안되는 함수를 이용하여. pda 화면에 대한 pointer를 얻어와 삽질해서 뿌린다. dx 할때랑 똑같음.
          * bitmap 뿌리는 것이 쉬워 보여도.. 무진장 어렵다.. 아직도 삽질 중이다.. 그 엄청난 bit 연산과.. 무지막지한 pointer들. 도대체가 뭔 말인지 몰라 그냥 긁어 쓴다. 우헤헤헤헤..
  • iText . . . . 4 matches
          PdfWriter.getInstance(document, new FileOutputStream("Hello.pdf"));
          e.printStackTrace();
          e.printStackTrace();
          public static void main(String args[]) {
  • jinahut . . . . 4 matches
         나의 공간을 의미하는, jinahut .
         .... written by jina. 2oo6/o1/o7
         = jinahut.idaizy.net =
         [http://jinahut.idaizy.net 영원한, 나의 공간, 나만의 초가집]
  • lostship . . . . 4 matches
         [http://zeropage.org/pub/util/vncviewer.exe VNC View] [http://zeropage.org/pub/util/putty.exe putty Client] [http://zeropage.org/pub/util/WinSCP2.exe WinSCP 2.0 Beta]
          || ["lostship/MinGW"] || 윈도우 환경에 gcc 와 STLport 설치 ||
          || ["Boost/SmartPointer"] || 스마트 포인터 쓰기 ||
  • spaurh . . . . 4 matches
          * Nappingin:취미생활
         SeeAlso Nappingin:spaurh
  • while문 구구단 . . . . 4 matches
          print a * b
          continue
         {{{ print a * b}}} -> {{{print '%d X %d = %2d'%(a,b,a * b)}}}
  • 구근 . . . . 4 matches
          * 홈페이지 & 개인위키 : http://www.passioninside.com/
          * E 메일 : passion at passioninside dot com
          * [http://www.passioninside.com/wiki/passion/moin.cgi/Passion_2f_c3_d6_b1_d9_bc_d2_bd_c4 최근소식]
  • 김수경/JavaScript/InfiniteDataStructure . . . . 4 matches
         Implementing Infinite Data Structure in JavaScript.
          * {{{filter(f(a)) := for each a in seq, sequence of a which f(a) is true.}}}
  • 논문번역/2012년스터디 . . . . 4 matches
          * Experiments in Unconstrained Offline Handwritten Text Recognition
          * by Markus Wienecke, Gernot A. Fink, Gerhard Sagerer
  • 덜덜덜 . . . . 4 matches
         '''[http://winapi.co.kr/clec/cpp1/cpp1.htm winapi.co.kr의 C기초강좌] 매우 자세하며 양이 많다. 이것이 교재 적당히씩 읽고 와주세요'''
         ||[김진아]||jin-_-a골뱅이hotmail.com|| :) || :) || :) || :) ||
         ||[이재영]||michin1213골뱅이hotmail.com|| :) || :( || :) || :( ||
         [DevCppInstallationGuide] // 인스톨 가이드 입니다. <- 필수!!
  • 데블스캠프2003/셋째날/J2ME . . . . 4 matches
         [http://165.194.17.15/pub/language/java/j2sdk-1_4_0_01-windows-i586.exe J2SE]
         [http://165.194.17.15/pub/language/j2me_wireless_toolkit-2_0-windows.exe wireless toolkit]
          * ["MobileJavaStudy/NineNine"] - 구구단을 종류별로 출력하는 프로그램
  • 데블스캠프2005/화요일후기 . . . . 4 matches
         허아영, 박경태, 윤성복, [송수생],[최경현],남도연, 이규완, 김민경, 김범준, 최정빈, 정진수, [이재혁], 김소현, 김태훈([zyint]), [조현태] 한유선,김영록,김재성, 정수민
         [[HTML(<center>)]]'''후기 적는 방법 : ThreeFs Fact(사실), Feeling(느낌), 교훈(Find)[[BR]] 을 구분해서 명확히 이야기 해줄래요?''' [[HTML(</center>)]]
         김태훈([zyint]) :사실:python과 알고리즘을 배웠다/느낌:힘들었지만 파이선 만드는것이 재밌었다+ㅁ+/교훈:구조적으로 만들자-_- 소스 드럽지 않게;
  • 데블스캠프2006/월요일/연습문제/if-else/김대순 . . . . 4 matches
         #include<iostream.h>
         void main()
          int i,j;
          cin >> i;
  • 데블스캠프2006/월요일/연습문제/switch/윤영준 . . . . 4 matches
         #include <iostream.h>
         void main(void)
          int student[10], i=0, a=0, b=0, c=0, d=0, f=0;
          cin >> student[i];
  • 데블스캠프2006/월요일/연습문제/기타문제/김대순 . . . . 4 matches
         #include<iostream.h>
         void main()
          int i;
          if(i==5) continue;
  • 데블스캠프2006/월요일/연습문제/기타문제/윤영준 . . . . 4 matches
         #include <iostream.h>
         void main(void){
          int i;
          continue;
  • 데블스캠프2009/수요일/JUnit/서민관 . . . . 4 matches
          private int operand1;
          private int operand2;
          public double calculate(char op, int num1, int num2)
  • 동문서버위키 . . . . 4 matches
         http://dongmun.cse.cau.ac.kr/phpwiki/index.php?RecentChanges
         동문서버위키가 현 상황에서 제로페이지의 위키나 다른 성공적 위키 사이트에 비해 상대적으로 사용이 저조하고 NoSmok:DegreeOfWikiness 가 낮고 무엇보다도 사람들이 해당 위키를 통해 얻는 "삶 속에서의 가치"(혹은 효용)가 없어서 한마디로 실패한 커뮤니티 사이트가 된 이유는 무엇일까.
          * 테스트 기간때의 개인페이지의 영향 - 동문서버팀에서 '좋은 선례' 를 만들어보기 위해 동문서버 프로젝트 자체가 돌아가는 모습 (ex - [http://dongmun.cse.cau.ac.kr/phpwiki/index.php?PPGroup_Board 동문서버게시판프로젝트]) 을 일부러 위키에 남겨보고, 몇몇 사람들이 공동번역페이지나 스터디 페이지 같은 것들을 열어봤었지만. 이미 그때 사람들의 주 관심사들은 자신들의 페이지들에 일기를 남기는 것이였었죠. 그 이후, 인식을 바꿀만한 사건들이 나오지 않은 것 같습니다.
          * 주제의식의 부족 - 이것은 앞의 이야기와 이어지는데요. 인식을 바꾸지 못했던 점과 이어지죠. 주제에 대해서 [http://dongmun.cse.cau.ac.kr/phpwiki/index.php?%B5%BF%B9%AE%C0%A7%C5%B0 동문위키] 페이지에서 언급을 했었으면서도 실제로 열려있는 페이지들이 그러하지 못했죠. 이는 시험서비스였다는 점도 작용하겠지만, 시험서비스가 기간이 너무 길었죠. (기약없는 시험서비스기간) --석천
  • 루프는0부터? . . . . 4 matches
         for(int r=0; r!=rows; ++r)
         for(int r=1; r<=rows; ++r)
         일찍이 다익스트라가 그 이유를 밝혀놓았습니다. Seminar:WhyNumberingShouldStartAtZero
  • 문서구조조정토론 . . . . 4 matches
         ["neocoin"]:말씀하시는 문서 조정은 문서 조정은 문서 작성자가 손대지 말아야 한다라는걸 밑바탕에 깔고 말씀 하시는것 같습니다. 문서 조정자는 특별히 문서 조정을 도맡는 사람이 아니고, 한명이 하는 것이 아니라, 다수가 접근해야 한다는 생각입니다. "다같이" 문서 조정을 해야 된다는 것이지요. 문서 조정을 한사람의 도맡고 이후 문서 작성자는 해당 문서에서 자기가 쓴 부분만의 잘못된 의미 전달만을 고친다라는 의미가 아닌, 문서 조정 역시 같이해서 완전에 가까운 문서 조정을 이끌어야 한다는 생각입니다. 즉, 문서 구조 조정이후 잘못된 문서 조정에서 주제에 따른 타인의 글을 잘못 배치했다면, 해당 글쓴이가 다시 그 배치를 바꿀수 있고, 그런 작업의 공동화로, 해당 토론의 주제를 문서 조정자와 작성자간에 상호 이해와 생각의 공유에 일조 하는것 이지요.[[BR]] 논의의 시발점이 된 문서의 경우 상당히 이른 시점에서 문서 구조조정을 시도한 감이 있습니다. 해당 토론이 최대한 빨리 결론을 지어야 다음 일이 진행할수 있을꺼라고 생각했고, thread상에서 더 커다랗게 생각의 묶음이 만들어 지기 전에 묶어서 이런 상황이 발생한듯 합니다. 그렇다면 해당 작성자가 다시 문서 구조 조정을 해서 자신의 주제를 소분류 해야 한다는 것이지요. 아 그리고 현재 문서 구조조정 역시 마지막에 편집분은 원본을 그대로 남겨 놓은 거였는데, 그것이 또 한번 누가 바꾸어 놓았데요. 역시 기본 페이지를 그냥 남겨 두는 것이 좋은것 같네요.(현재 남겨져 있기는 합니다.) --상민
          ["neocoin"]: 그렇다면 저에게는 지금까지 페이지가 나온 이유 자체가 모호해 집니다. 그럼 말씀하시는 주제가 결국 "문서 구조 조정은 신중히 해야한다." 이것이라고 생각합니다. 이것은 의견이라기 보다 문서 구조 조정시의 기본 명제라 생각하며, 이중에 말씀하신 "문서 구조 조정시에 위치 변경은 글쓴이의 의도의 방향을 바꾼다."라는 것도 문서 구조 조정을 신중히 겠지요. 이런 것은 당연히 동의 합니다. [[BR]] 이것에 반대한다는 말이 없고, 이는 해당 의견의 암묵적 동의라고 생각하고, 잘못된 부분에 대하여 다시 구조조정을 해 주십사 원한 것인데, 다시 대화가 다른 방향으로 전개되어서 "문서 구조 조정자"와 "문서 작성자"로 나뉘어서 접근하시는 말씀인것으로 받아 들였습니다.[[BR]]해당 글처럼 잘못 된 부분의 지적 이후, 고치지 않는다면 다른 이가 해당 문서를 더 고치지 못하는 위화감 이랄까요. 그런것이 발생한다고 생각합니다. 현재 위키에 00들와 01들이 이러한 "조심스러움의 유발 요인" 때문에 활발히 글을 날리는데 방해가 될것이라고 생각합니다. 글을 장려하는 입장에서 글을 계속 올리다 보니, 대화의 주제가 어긋난 것 같습니다. --상민
         저는 PairProgramming을 가르치기에 앞서 NoSmok:PairDrawing 을 경험하게 합니다. 여기에는 여러가지 방법이 있는데, 구체적인 대상(사람 얼굴이나 동물 등)을 정해놓고 서로 한 줄 씩 번갈아 가며 그리는 방법이 있고, 아니면 아무것도 정하지 않고, 혹은 대강의 주제만 정해놓고 그냥 "멋진 그림"을 그리자는 합의하에 번갈아 가며 한 줄 씩 그리는 방법이 있습니다. 모두 그리는 중엔 말을 하지 않습니다. 여기서, 후자 경우 적극적으로 상대방의 의도를 이해하려는 노력이 없으면 좋은 그림이 나오기 어렵습니다 -- 한사람은 사람을 그리려고 하고 다른 사람은 나무를 그리려고 하는(혹은 상대가 나무를 그리려고 하고 있다고 오해한) 경우를 생각해 보세요. 상대의 의도를 이해하려고, 또 그것이 더 잘 드러나도록 서로 노력하다보면 혼자 그린 그림보다 더 좋은 그림이 나오는 경우가 종종 있습니다.
  • 문자열연결/조현태 . . . . 4 matches
         #include <fstream>
         #include <iostream>
         using namespace std;
         void main()
  • 반복문자열/김소현 . . . . 4 matches
         #include <stdio.h>
          int i;
          printf("CAUCSE LOVE. \n");
         void main()
  • 반복문자열/김유정 . . . . 4 matches
         #include <stdio.h>
         main()
          int i;
          printf("%dCAUCSE LOVE.\n",i);
  • 반복문자열/윤보라 . . . . 4 matches
         #include <stdio.h>
         void main()
         { int i = 0;
          printf("CAUCSE LOVE.\n");
  • 반복문자열/이규완 . . . . 4 matches
         #include <stdio.h>
          printf("CAUCSE LOVE\n");
         void main()
          int i;
  • 반복문자열/이정화 . . . . 4 matches
         #include <stdio.h>
         main()
          int count;
          printf("CAUCSE LOVE.\n");
  • 반복문자열/이태양 . . . . 4 matches
         using System;
          static void Main(){
          for(int i=0;i<5;i++){
          Console.WriteLine("CAUCSE LOVE.");
  • 사과나무/과제방/1회차/김도익 . . . . 4 matches
         scanf() 함수는 입력란을 만들어 자료를 입력받는 함수입니다. 입력된 자료는 매개변수로 지정한 변수에 대입됩니다. 문장 형식을 통해 입력된 자료를 변수에 대입한다는 점에서 변수의 값을 문장 형식에 사용하는 printf() 함수와는 출력 방향이 반대인 셈입니다
         scanf() 함수를 사용하기 전에 printf() 함수로 안내문을 보여주는 것이 좋습니다.
         scanf() 함수로 입력된 자료는 변수에 저장됩니다. 이때 입력받을 수 있는 자료형의 종류가 정해진 상태이므로 사용자가 제대로 입력해주어야 합니다. 따라서 scanf() 함수로 자료를 입력받기 전에 어떤 자료를 입력해야 하는지 알려주는 안내문이 필요합니다. 이 안내문은 printf() 함수를 통해 미리 보여줄 수 있습니다.
          * printf("형식",형식에 필요한 요소들 ... ) 형식으로는 %d, %lf, %s ... 등이 있다. 이런걸 바랬는데 내가 과제 설명을 너무 대충 해줬구나, my fault - [고한종]
  • 상협/감상 . . . . 4 matches
         || ["PowerReading"] || - || - || 1 || ★★★★★ ||
         || [여섯색깔모자] || 에드워드 드 보노 || 1 ||4/24 ~ 5/1 || 이책은 PowerReading 처럼 활용정도에 따라서 가치가 엄청 달라질거 같다. ||
         || [Refactoring] || 마틴파울러 || 1 || 굿 || 괜찮은 책이다. 아직 내가 이해와 적용을 제대로 못해서 아쉽다 ||
         || [OperatingSystem] || H.M.Deitel || 1 || 굿 || 운영체제공부를 처음으로 시작한다면 이책이 적당하다고 생각한다 ||
  • 새싹교실/2011/學高 . . . . 4 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 참고로 ZeroWiki는 MoniWiki Engine을 사용하며 Google Chrome이나 Mozila Firefox, Safari보다는 Internet Explorer에서 가장 잘 돌아가는 것 같습니다.
  • 새싹교실/2012/아우토반/앞반/5.17 . . . . 4 matches
         stringtoupper
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2012/열반/120507 . . . . 4 matches
         int main()
          int A[10]; // 정수형 데이터 10개
          printf("%d", A[0]); // 배열의 첫 번째 원소 출력
  • 새싹교실/2013/양반/4회차 . . . . 4 matches
          * break, continue
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2013/양반/7회차 . . . . 4 matches
          * break, continue
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2013/케로로반/실습자료 . . . . 4 matches
         Social Executive of Computer Science and Engineering will hold a bar event. There are many pretty girls and handsome guys. It will be great day for you. Just come to the bar event and drink. There are many side dishes and beer. Please enjoy the event. but DO NOT drink too much, or FBI will come to catch you. Thank you.
  • 시간맞추기 . . . . 4 matches
         === input ===
         you win!!!
          || 김태훈([zyint]) || C || 10분 || [시간맞추기/김태훈zyint] ||
  • 실시간멀티플레이어게임프로젝트 . . . . 4 matches
         시간이 되면 AspectOrientedProgramming을 현 프로젝트에 적용하는 방법을 알려드립니다.
          load balacing server 같은 걸 만들수 있는 건가..? -- erunc0
         if __name__ == '__main__':
          unittest.main()
  • 위키설명회2005 . . . . 4 matches
          [데블스캠프2004/월요일]의 [MiningZeroWiki]와 비슷하다
          * 음 그리고.. 위키위키의 메인 로고이미지 http://zeropage.org/wikis/nosmok/moinmoin.gif 는 그대로 계속 쓰는건가요..? ^.^a - [임인택]
  • 인수/Smalltalk . . . . 4 matches
          Transcript cr; show: a; show: ' * '; show: b; show: ' = '; show: a*b; printString.
         RWBoard>>initialize: aSize
          ^self new initialize:aSize.
  • 정모/2011.3.2 . . . . 4 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * 정모 방식이 피드백을 하는 것으로 갯수를 채워야 정회원이 유지된다고 들었습니다. 커피 포인트 도장을 찍는 것 같아, 다 모으면 정회원 혜택! 이라는 것이 더 와닿습니다. 새싹 교실 강사 지원을 했는데, 매주 2시간 씩 8회 이상 수업하는 것과 printf가 아닌 다른 방식으로 확인하는 것이 신기했습니다. 제가 잘 할 수 있을 지 모르겠지만, 되도록 중간고사 전후로 끝내는 내에서 열심히 진도를 나가보겠습니다ㅠㅠ 그리고 책읽기 모임! 장소 이번에도 카페 같은 곳으로 잡는건가요?ㅁ? 월요일 5시로 정했지만 6피의 서랍장 있는 쪽 책상에서 시험기간만 아니면 조용히 대화해도 괜찮지만..음 토모카나 기숙사 쪽의 카페를 애용하는 것도 괜찮고, 과방이나 다른 빈 강의실을 잡는 것도 괜찮을 듯 싶어요. - [강소현]
  • 정모/2012.10.8 . . . . 4 matches
         == Ice Breaking ==
          * Spring - 페이지 링크 거는 것이 가능??
          * Pinple - 추정했습니다.
          * English Speaking with 즉흥 연기(?)
  • 정모/2012.4.30 . . . . 4 matches
          * [김희성]의 Image Processing
          * [Spring/탐험스터디]
          * LinuxKernel
          * mock, TDD, unit test, refactoring, maven 등 자바에 대해 깊은 부분까지 다룰 예정.
  • 창섭/배치파일 . . . . 4 matches
         [http://my.dreamwiz.com/bicter/index.htm 출처]
         For %%<변수> IN (<집합>) DO <명령> [<옵션>] ☞ 배치파일용.
         For %<변수> IN (<집합>) DO <명령> <옵션>] ☞ 순차처리용.
         for %%f in (bak tmp $$$) do del *.%%f /p ☞ 배치파일의 경우
         for %d in (read,wh,file) do hlist %d*.* ☞ 도스 프롬프트에서 실행시
         - 문자열 : 문자열을 생략하면 'press any key to continue...'라는 메세지가 화면에 출력됩니다. 만약 PAUSE 명령 뒤에 어떤 메세지를 지정하여 그 메시지를 출력하고 싶다면 'Echo On' 명령을 우선 내려야 합니다.
  • 최소정수의합/남도연 . . . . 4 matches
         #include <iostream.h>
         void main()
          int n=1;
          int sum=0;
  • 최소정수의합/임인택2 . . . . 4 matches
          in ((-b+det)/twice_a,
         minint val =
          in
         에서 rnd의 타입이 Integer로 되었는데 Integer는 다른 값으로 나눠지지 않았다(내가 방법을 모르고 있을수도 있겠지만). haskell wiki를 뒤져 toRational 이라는 함수를 찾았지만 출력되는 모양이 영 마음에 들지 않는다.
  • 컴공과프로그래밍경진대회 . . . . 4 matches
          * ["1thPCinCAUCSE"] - 1회 대회
          * ["2ndPCinCAUCSE"] - 2회 대회
          * ["3rdPCinCAUCSE"] - 3회 대회
          * ["4rdPCinCAUCSE"] - 4회 대회
  • 콤비반장의메모 . . . . 4 matches
          만화 형사 가제트(Inspector Gadget)에서 콤비 반장(Chief Quimby)은 형사 가제트에게 비밀 지령을 내릴땐 항상 자동 폭파되는 특별한 메모지를 사용하곤 했다. 그러나 인터넷 시대를 맞이한 콤비 반장은 이제 메모지 대신 한번만 사용할 수 있는 파일을 사용하려고 한다. ["콤비반장의메모"]와 같은 일회용 정보는 컴퓨터로 어떻게 구현할 수 있을까.
         메모리를 mp3 버퍼.. (e.g. 32kByte) 를 더블 버퍼로 잡아서, 네트워크로 더블 버퍼링 시스템으로, 네트웍으로 받은 자료로 다음 버퍼를 채우고.. 이런 형식으로 버퍼를 채운 다음에, 플러그 인 형식으로 배포하는건 어떨까요. 머.. 이건 winamp 에만 한정되겠지요. - [zennith]
         그냥 생각이 갑자기 나서 몇자 적어 봅니다. 자기 자신이 압축을 풀 수 있는 Zip - self-..어쩌구였는데 그러한 형태로 만들고 마지막에 분리한 데이타 파일을 지우는 식으로 만들어 봐도 재미있을꺼 같다는 생각이 들어서 .. 다 아는 건가? - fnwinter [정직]
          * hint: Zip file format - Self Extractor 와 비슷한 아이디어.
          [출처]매일경제 -- fnwinter 헉...화학물질...컴퓨터 공학이 아니넹..
         see also UriWiki:InstantMp3Player
  • 타도코코아CppStudy/0731 . . . . 4 matches
         || 마방진(홀수) || [CherryBoy] || Upload:MaBangJin_CherRy.cpp || . ||
          ZeroWiki:창섭/BitmapMasking
          ZeroWiki:DoubleBuffering
          Upload:DoubleBufferingEX.zip
  • 프로그래밍잔치/셋째날 . . . . 4 matches
          * '''Comment Mixing'''
          * 창준(["JuNe"]) 선배께서 제시하신 Comment Mixing
          관련 화일 : [http://zeropage.org/pub/WinMergeSetup.exe winmerge(화일비교프로그램)]
  • 피보나치/S.S.S . . . . 4 matches
         if __name__=='__main__':
          num=input('입력 하세요:')
          for n in range(num):
          print num3
  • 피보나치/정수민 . . . . 4 matches
         m=int (raw_input('몇번째?'))
         for m in range(m):
          print k
  • 하드웨어에따른프로그램의속도차이해결 . . . . 4 matches
          * hardware independent하게 게임속도를 유지하려면 매프레임 그릴때마다 이전프레임과의 시간간격을 받아와서 거기에 velocity를 곱해 position을 update하는 식으로 해야한다. 타이머를 하나 만들어 보자.
          * 궁금한게 있는데, ["MFCStudy_2001/MMTimer"] 로 안된단 말이야? 가장 빠른걸로 알고 있어서, 동작 제어는 타이머단에서 하고, loop에서 열심히 그림 그려서 fliping만 해주면 되지 않을까? 낮에는 경황이 없어서, 그냥 멀티미디어 타이머 이야기만 했는데, winamp 같은 시간에 의존적인 프로그램들도 이 타이머를 사용해서 말이지. --["neocoin"]
  • 허아영 . . . . 4 matches
         위키Page -->> [http://165.194.87.227/zero/index.php?title=%C7%E3%BE%C6%BF%B5&url=ixforyouxl click]
         FORTUNE 50 Most Powerful Women in Business 에 실리는 것!!!
         [http://money.cnn.com/magazines/fortune/mostpowerfulwomen/2006/ 링크]
  • 황재선 . . . . 4 matches
          * ExploringWorld
         jtable.getColumnModel().getColumn(index).setPreferredWidth(size);
         http://www.ictp.trieste.it/~manuals/programming/Java/tutorial/uiswing/components/table.html#width
  • 2008리눅스스터디 . . . . 3 matches
          [http://www.linuxlab.co.kr/docs/10-4.htm]
          [http://www.linuxlab.co.kr/docs/11-3.htm]
          [http://www.linuxlab.co.kr/docs/12-2.htm]
  • 2012년독서모임 . . . . 3 matches
          * [권순의] - Fault Line
          * [권순의] - 오랜만에 시작하는군요. Fault Line은 보이지 않는 균열이 세계 경제를 위협한다는 내용으로 지표면에서 단층면이 접하는 선인 단층선이 Fault Line인데 그 곳에서 지진이 발생한다는 것 때문에 따 왔다고 하더군요. 그래서 과거 시행했던 정책이나 여러 사건들을 통해 현재의 경제가 어떠한 상황에 이르게 되었는지에 대해서 서술한 책입니다. 사실 무지 재미 없습니다. -_- 읽은지 꽤 됬는데 눈에 잘 안 들어오고 하다 보니 아직도 다 못 읽었..
  • 2학기파이선스터디 . . . . 3 matches
          http://www.python.or.kr:8080/python/GUI/tkinter/ - Tkinter 모듈 설명서
          http://turing.cafe24.com - 초보를 위한 파이선 설명
  • 5인용C++스터디/움직이는공 . . . . 3 matches
         ||황재선|| Upload:MovingBall_JS.zip || 잘했음. ||
         ||노수민|| [http://zeropage.org/pub/upload/MovingBall_SM.zip] || 잘했음. ||
         ||나휘동|| [http://zeropage.org/pub/upload/Leonardong_VibratingBall.zip] || 공이 올바르게 움직이지 않음. ||
  • AcceptanceTest . . . . 3 matches
         원문 : http://extremeprogramming.org/rules/functionaltests.html
         AcceptanceTest는 UserStory들에 의해서 만들어진다. Iteration 동안 IterationPlanning 회의때 선택되어진 UserStory들은 AcceptanceTest들로 전환되어진다. Customer는 해당 UserStory가 정확히 구현되었을때에 대한 시나리오를 구체화시킨다. 하나의 시나리오는 하나나 그 이상의 AcceptanceTest들을 가진다. 이 AcceptanceTest들은 해당 기능이 제대로 작동함을 보장한다.
         ["ExtremeProgramming"]
  • ActionMarket . . . . 3 matches
         moinmoin 의 Action 들 관련. Action은 Macro와는 달리 Show, Edit, Delete, Diff, Info (우측 상단 아이콘들 기능) 등 해당 페이지에 가하는 행위를 말합니다.
         http://purl.net/wiki/moin/ActionMarket 를 참조하세요.
  • AdvertiseZeropage . . . . 3 matches
          * WikiWiki Seminar 를 하거나 프로그래밍 Seminar
          * WikiWiki Seminar를 중간 고사 끝나고 하기로 정모에서 결정하였습니다. --[Leonardong]
  • AnalyzeMary . . . . 3 matches
         주변에서 남들과 비슷하게 일을 하는 듯 하면서 늘 더 나은 성과를 보이는 사람들이 있다. 대부분은 "메리에겐 뭔가 특별한 것이 있다"(There is something about Mary) 수준의 감탄사를 외치는 데에서 끝난다. 그러면서 나는 왜 그들처럼 될 수 없을까 한탄하고, 곧 까맣게 잊는다.
         NeoCoin은 02년도 기말 시험에서 너무나 시간이 없게되는 상황을 맞이 하였다. 학교 출발까지 15분, 통학 시간 1:30 분 남은 상태에서 밥먹으면서 교수님에 성향 대하여 AnalyzeMary를 하고 15분은 강의 노트에 대한 AnalyzeMary , 그리고 도착전까지 열심히 외웠다. 도착 직전까지 외운 내용 조차 시험에 그대로 출제되어 있었다. 결국, 시험의 1문제의 부분적것 외에 전부 정답 작성이 가능했다. 여태까지 살아오면서, 최고의 효율이란 무엇인가를 느낄수 있었다. --NeoCoin
  • Ant/BuildTemplateExample . . . . 3 matches
          <target name="init">
          <target name="compile" depends="init">
          <!-- 즉, ${src} 는 위의 property 에 정의한 "." 이 되며, ${build}는 "build". 즉, init 단계에서 만든 디렉토리가 된다. -->
  • AntTask . . . . 3 matches
          <target name="init">
          <target name="compile" depends="init">
          <!-- 즉, ${src} 는 위의 property 에 정의한 "." 이 되며, ${build}는 "build". 즉, init 단계에서 만든 디렉토리가 된다. -->
  • AppletVSApplication/진영 . . . . 3 matches
          * "'''Application'''"은 main()함수를 포함하고 있어서 자기 스스로 실행이 되는 반면에
          * "'''Applet'''"은 main()함수 없이 자기 스스로 실행되지 않고 html에 의해 돌아가는 것 같습니다.
           DeleteMe 그럼 여기에서 html 은 무엇이죠? --NeoCoin
         ["JavaStudyInVacation/진행상황"]
  • AwtVSSwing/영동 . . . . 3 matches
         = Swing =
          * AWT는 사용하긴 쉽지만 한계가 있다. 롤오버 이미지를 사용하는 등 실제로 많이 쓰는 기능을 AWT로 구현하기 어려우며, 운영체제마다 버그가 생기기 때문에 사용하기 불편하다. Swing은 Top-Level의 컨테이너만을 운영체제의 자원을 사용할 뿐 그 하부에 있는 모든 것은 자바 코드에 의해 만드는 방식을 가진다. 발생하는 버그도 자바 가상머신의 범위 내에서 처리가 가능하다. 게다가 컴포넌트의 모양도 사용자의 입맛에 맞게 맞춰주는 것이 가능하다.
          * javax.swing.*;
         ["JavaStudyInVacation/진행상황"]
  • BeeMaja . . . . 3 matches
         [http://online-judge.uva.es/p/v101/10182.html 원문보기]
         [http://online-judge.uva.es/p/v101/p10182a.gif] [http://online-judge.uva.es/p/v101/p10182b.gif]
         === Input ===
         === Sample Input ===
  • BusSimulation . . . . 3 matches
          * Data Input - 시물레이션 데이터는 busData.txt 와 busStationData.txt 두 가지 로부터 받아들인다. 각 데이터의 값은 단계가 올라감에 따라서 추가되어간다.
          * User Input - 사용자는 자신이 원하는 시간 후의 시물레이션 결과를 볼 수 있다. 시간과 분을 입력받는다.
          * Input
          * Input
          *Input
          * Input
          * 종점에서는 모든 승객이 내린다. 종점에서는 타는 승객이 없다. (주의 - 아래 InputData에서 원하는 시간을 5400(1시간30분)이 아니라 9600(2시간40분)으로 설정함)
          * Input
          * Input
         || ["BusSimulation/태훈zyint"] || 태훈 ||
         Discrete Event Simulation이 되겠군요. 사람이 몇 명이 기다리느냐, 길 막힘 상태 등은 이산 확률 분포를 사용하면 될 것입니다. NoSmok:TheArtOfComputerProgramming 에서 NoSmok:DonaldKnuth 가 자기 학교 수학과 건물 엘레베이터를 몇 시간 관찰해서 데이타를 수집한 것과 비슷하게 학생들이 직접 84번, 85-1번 등의 버스를 타고 다니면서 자료 수집을 해서 그걸 시뮬레이션 실험하면 아주 많은 공부가 될 것입니다 -- 특히, 어떻게 실세계를 컴퓨터로 옮기느냐 등의 모델링 문제에 관해. 실제로 NoSmok:DonaldKnuth 는 TAOCP에서 이런 연습문제를 만들어 놨습니다. 제가 학부생 때 누군가 이런 숙제를 내줬다면 아마 한 두 계단(see also ["축적과변화"]) 올라설 계기가 되지 않았을까 하고 아쉬울 때가 있습니다. 이 문제에 드는 시간은 하루나 이틀 정도가 되겠지만 여기서 얻은 경험과 지혜는 십 년도 넘게 자신의 프로그래밍 인생에 도움이 될 것이라 믿어 의심치 않습니다. (팀으로 문제 해결을 하면 더 많은 공부가 되겠지요) see also ProgrammingPartyAfterwords 참고자료 --JuNe
  • Button/상욱 . . . . 3 matches
         import javax.swing.*;
          public static void main(String[] args){
         ["JavaStudyInVacation/진행상황"]
  • Button/영동 . . . . 3 matches
         import javax.swing.*;
          JOptionPane.showInputDialog(
          JOptionPane.INFORMATION_MESSAGE,
          public static void main(String[] args) {
         ["JavaStudyInVacation/진행상황"]
  • B급좌파 . . . . 3 matches
         김규항 칼럼집. Cine21 의 '유토피아 디스토피아' 연재중.
         http://my.dreamwiz.com/fairday/utopia%20main.htm
         글 투를 보면 대강 누가 썼는지 보일정도이다. Further Reading 에서 가끔 철웅이형이 글을 실을때를 보면.
  • CNight2011/윤종하 . . . . 3 matches
          int stuID;
          int grade;
          * 순의형의 Linked list 설명
  • ClipMacro . . . . 3 matches
         [[Clip(linux)]]
         [[Clip(linux)]]
         잘 안되네요. 윈XP pro !SP2 , Internet Explore 6.0 !SP2 에서 테스트 했습니다. paste와 copy는 별 반응없고, Unload 괜히 눌렀다가 위의 그림만 지웠네요 ^^;
         익스플로러 XP프로 SP2에서 잘 되는군요. print screen키를 누르신다음에 paste해보세요 -- Anonymous [[DateTime(2005-03-31T16:55:09)]]
  • Cpp/2011년스터디 . . . . 3 matches
          * XCode에서 코드를 좀 더 업그레이드 시켜보려고 했으나 망할 --VS2008-- '윈도' 에만 돌아가는 것들(Windows.h)이 있어 실패하고 한종이 컴퓨터에서만 짜기로 했음.
          * 난 이 짤을 정말 쓰고 싶군. 내가 하고싶은말을 모두 담아놨어. http://flyingsbgame.blog.me/140137167016 -[김태진]
         참고 : 경악스러운 문제의 그 릴리즈 http://pds22.egloos.com/pds/201108/21/51/Tetris-rino2.exe
  • CryptKicker2 . . . . 3 matches
         [http://online-judge.uva.es/p/v8/850.html 원문보기]
         알려진 평문 공격법(known plain text attack)이라는 강력한 암호 분석 방법이 있다. 알려진 평문 공격법은 상대방이 암호화했다는 것을 알고 있는 구문이나 문장을 바탕으로 암호화된 텍스트를 관찰해서 인코딩 방법을 유추하는 방법이다.
         === Input ===
         === Sample Input ===
         programming contests are fun arent they
  • C언어정복/3월30일-숙제 . . . . 3 matches
         1. 인치(inch) 단위를 센티미터 단위로 변환하는 프로그램을 사용자에게 입력을 받고, 계산된 값을 출력하라. (1in = 2.54cm)
         2. printf() 함수를 한 번만 사용하여 다음과 같이 4줄에 걸쳐서 표현되는 문자열을 출력하라.
  • DirectDraw . . . . 3 matches
         Include Files 에는 C:\DXSDK\INCLUDE를 [[BR]]
         그리고 Project Setting -> Link -> Object/Library modules에는
         #include <ddraw.h>
          * DDSCL_NOWINDOWCHANGES : 최소화/최대화를 허용하지 않는다.
         ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN; // 오프스크린임을 표시
         hb = (HBITMAP) LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP), IMAGE_BITMAP, cxDesire, cyDesire, LR_CREATEDIBSECTION);
  • DirectVariableAccess . . . . 3 matches
         스몰토크 진영에서는 IndirectVariableAccess를 선호했다. 그러다가 켄트아저씨가 DirectVariableAccess를 써 보고는 그것의 가독성에 놀랐다.
         하지만 이 클래스가 상속이 될 가능성이 있다면, setter/getter를 오버라이딩 해서 사용할수 있으므로, IndirectVariableAccess를 쓰는 것이 괜찮다.
         void Point::setXnY(int xNumber, int yNumber)
  • Erlang/설치 . . . . 3 matches
          === Windows ===
          === Linux(Debian) ===
          >>> apt-get install erlang
  • FrontPage . . . . 3 matches
          * [https://docs.google.com/spreadsheet/ccc?key=0AuA1WWfytN5gdEZsZVZQTzFyRzdqMVNiS0RDSHZySnc&usp=sharing 기자재 목록]
          * [https://docs.google.com/spreadsheets/d/1c5oB2qnh64Em4yVOeG2XT4i_YXdPsygzpqbG6yoC3IY/edit?usp=sharing 도서목록]
         === Link ===
  • FundamentalDesignPattern . . . . 3 matches
         DesignPatterns 의 패턴들에 비해 구현이 간단하면서도 필수적인 패턴. 전체적으로 가장 기본이 되는 소형 패턴들. 다른 패턴들과 같이 이용된다. ["Refactoring"] 을 하면서 어느정도 유도되는 것들도 있겠다. (Delegation의 경우는 사람들이 정식명칭을 모르더라도 이미 쓰고 있을 것이다. Java 에서의 InterfacePattern 도 마찬가지.)
         기본적인 것으로는 Delegation, DoubleDispatch 가 있으며 (SmalltalkBestPracticePattern에서 언급되었던 것 같은데.. 추후 조사), 'Patterns In Java' 라는 책에서는 Delegation 과 Interface, Immutable, MarkerInterface, Proxy 를 든다. (Proxy 는 DesignPatterns 에 있기도 하다.)
          * InterfacePattern
          * MarkerInterface
         근데, 지금 보면 저건 Patterns in Java 의 관점인 것 같고.. 그렇게 '필수적 패턴' 이란 느낌이 안든다. (Proxy 패턴이 과연 필수개념일까. RPC 구현 원리를 이해한다던지 등등이라면 몰라도.) Patterns in Java 에 있는건 빼버리는 것이 좋을 것 같다는 생각. (DoubleDispatch 는 잘 안이용해서 모르겠고 언어 독립적으로 생각해볼때는 일단은 Delegation 정도만?) --["1002"]
  • Hacking/20041118네번째모임 . . . . 3 matches
          * Windows 98 Hacking - 넷바이오스 해킹 툴
         [Hacking]
  • HardcoreCppStudy/두번째숙제/CharacteristicOfOOP/김아영 . . . . 3 matches
         '''* 데이터 은닉(Data Hiding)'''
         데이터 은닉이란 모듈이 그것이 갖는 기능들을 명세한 인터페이스(interface)를 통해서만 접근되고, 그 기능을 구현하는 방법은 다른 모듈로부터 은닉되도록 하는 것을 말한다. 캡슐화된 객체의 외부 인터페이스를 엄밀히 정의함으로써 독립적으로 작성된 모듈간의 상호 종속성을 극소화하여 캡슐화된 객체는 외부 인터페이스만을 통하여 접근될 수 있도록 한다면, 세부적인 구현 상세 사항에 대해서는 객체내에 은닉시킬 수 있다. 또한 캡슐화된 객체는 객체 구현내역을 변경, 혹은 향상시킬 때 이 객체를 사용하는 타 객체들을 변경하거나 다시 컴파일하지 않도록 할 수 있다. 또 모듈의 내부 구현 사항들이 외부의 접근으로부터 보호될 수 있음으로, 그 객체의 정당성을 보증할 수 있으며, 오류가 발생되었을 경우에 오류는 한 모듈내로 국지화될 수 있다.
         '''* 상속성(Inheritance) '''
         추상화란, 객체가 자신의 정보를 안에 감추고 있으면서 외부에 구체적인 것이 아닌 추상적인 내용만을 알려주는 것을 말한다. 때문에 추상화란 정보의 은닉(Information Hiding)이라고도 한다.
  • HelloWorld/상욱 . . . . 3 matches
          public static void main(String[] args) {
          System.out.println("Hello World.");
         ["JavaStudyInVacation/진행상황"]
  • HelloWorld/영동 . . . . 3 matches
          public static void main(String args[])
          System.out.println("HelloWorld");
         ["JavaStudyInVacation/진행상황"]
  • HelpContents . . . . 3 matches
          * OpeningStatement - 페이지에 꼭 들어가야 할 정보
          * HelpForBeginners - 위키 초보자를 위한 페이지
          * HelpOnEditing - 페이지를 고치기
         HelpIndex를 보시면 자동으로 만들어진 도움말 목록을 보실 수 있습니다.
  • HelpForBeginners . . . . 3 matches
         위키위키의 문법을 지금 당장 알고싶으신 분은 HelpOnEditing 페이지로 가시기 바랍니다.
         위키위키에 대하여 좀 더 배우고 싶으신 분은 Wiki:WhyWikiWorks 와 Wiki:WikiNature 를 읽어보시기 바라며, Wiki:WikiWikiWebFaq 와 Wiki:OneMinuteWiki 도 도움이 될 것 입니다.
          * FindPage: 다양한 방법으로 찾아보기
          * TitleIndex: 이 위키위키에 있는 모든 쪽 목록
          * WordIndex: 위키위키 페이지 이름을 구성하고 있는 단어들의 목록(따라서 이 위키위키의 주된 콘셉트를 보여줍니다.)
         도움말은 HelpContents 혹은 HelpIndex를 참고하세요.
  • HelpOnNavigation . . . . 3 matches
         각 페이지의 좌측 상단 (혹은 임의의 위치)에는 대문(FrontPage 혹은 home), 최근 바뀐 글(RecentChanges), 목록(모든 페이지의 가나다순 알파벳순 목록), 찾기(FindPage), 도움말(HelpContents) 등등의 메뉴가 있습니다.
          * [[Icon(print)]] 인쇄 친화적인 형태로 보기
          * [[Icon(info)]] 페이지에 관한 정보 보기 (페이지의 모든 고친 정보 등)
  • HelpOnProcessingInstructions . . . . 3 matches
          * '''plain''': 일반 텍스트
          * <!> vim 이나 기타 여러가지 포맷 지정자는 `plugin/processor` 아래의 지원 가능한 모든 프로세서에 대해서 가능합니다.
         Please see HelpOnEditing.
  • HelpOnSmileys . . . . 3 matches
         [[EditHints]]
         {{{EditToolbar]]}}} 혹은 {{{[[EditHints]]}}}와 마찬가지로 이것은 매크로 플러그인입니다.
         [[Navigation(HelpOnEditing)]]
  • HelpOnSubPages/SubPages . . . . 3 matches
          * ["../"] (anonymous parent link)
          * [wiki:../ free parent link]
          * XWindows
  • HowToStudyDataStructureAndAlgorithms . . . . 3 matches
         제가 생각컨데, 교육적인 목적에서는, 자료구조나 알고리즘을 처음 공부할 때는 우선은 특정 언어로 구현된 것을 보지 않는 것이 좋은 경우가 많습니다 -- 대신 pseudo-code 등으로 그 개념까지만 이해하는 것이죠. 그 아이디어를 Procedural(C, 어셈블리어)이나 Functional(LISP,Scheme,Haskel), OOP(Java,Smalltalk) 언어 등으로 직접 구현해 보는 겁니다. 이 다음에는 다른 사람(책)의 코드와 비교를 합니다. 이 경험을 애초에 박탈 당한 사람은 귀중한 배움과 깨달음의 기회를 잃은 셈입니다. 참고로 알고리즘 교재로는 10년에 한 번 나올까 말까한 CLR(''Introduction to Algorithms, Thomas H. Cormen, Charles E. Leiserson, and Ronald L. Rivest'')을 적극 추천합니다(이와 함께 혹은 이전에 Jon Bentley의 ''Programming Pearls''도 강력 추천합니다. 전세계의 짱짱한 프로그래머/전산학자들이 함께 꼽은 "위대한 책" 리스트에서 몇 손가락 안에 드는 책입니다. 아마 우리 학교 도서관에 있을 것인데, 아직 이 책을 본 적 없는 사람은 축하드립니다. 아마 몇 주 간은 감동 속에 하루하루를 보내게 될 겁니다.). 만약 함께 스터디를 한다면, 각자 동일한 아이디어를 (같은 언어로 혹은 다른 언어로) 어떻게 다르게 표현했는지를 서로 비교해 보면 또 배우는 것이 매우 많습니다. 우리가 자료구조나 알고리즘을 공부하는 이유는, 특정 "실세계의 문제"를 어떠한 "수학적 아이디어"로 매핑을 시켜서 해결하는 것이 가능하고 또 효율적이고, 또 이를 컴퓨터에 어떻게 구현하는 것이 가능하고 효율적인지를 따지기 위해서이며, 이 과정에 있어 수학적 개념을 프로그래밍 언어로 표현해 내는 것은 아주 중요한 능력이 됩니다. 개별 알고리즘의 카탈로그를 이해, 암기하며 익히는 것도 중요하지만 더 중요한 것은 알고리즘을 생각해 낼 수 있는 능력과 이 알고리즘의 효율을 비교할 수 있는 능력, 그리고 이를 표현할 수 있는 능력입니다.
         알고리즘을 공부하면 큰 줄기들을 알아야 합니다. 개별 테크닉들도 중요하지만 "패러다임"이라고 할만한 것들을 알아야 합니다. 그래야 알고리즘을 상황에 맞게 마음대로 응용할 수 있습니다. 또, 자신만의 분류법을 만들어야 합니다. (see also HowToReadIt Build Your Own Taxonomy) 구체적인 문제들을 케이스 바이 케이스로 여럿 접하는 동안 그냥 지나쳐 버리면 개별자는 영원히 개별자로 남을 뿐입니다. 비슷한 문제들을 서로 묶어서 일반화를 해야 합니다. (see also DoItAgainToLearn)
         이와 관련해서 Anany Levitin의 ''A NEW ROAD MAP OF ALGORITHM DESIGN TECHNIQUES''(DDJ, 2000 Apr)를 권합니다. 그는 알고리즘 디자인 테크닉을 다음 네가지로 크게 나눕니다:
  • IdeaPool/PrivateIdea . . . . 3 matches
         || 나휘동 || 위키 정원사의 도구상자 || 2007.3.13 || - || - || [WikiGardeningKit] ||
          * 구상한 아이디어에 대한 자세한 사항은 관련 페이지를 만들어서 옮겼습니다. 시작하려는 사람들은 그 페이지를 Starting Point 로 하여 시작하면 되겠지요. :) --[창섭]
  • InsideCPU . . . . 3 matches
         = Inside CPU =
         음...여기까지만..귀찮아서 못 적겠다.. 보통 플로피의 0번 섹터를 write하기 위해 rawrite.exe란 프로그램을 쓴다. 플로피의 데이타를 얻기 위해 BIOS의 인터럽트루틴을 사용한다. 이를 위한 인터럽트는 INT 13h가 된다.
         보호모드란 80286부터 적용된 하드웨어적 지원이다. 이는 다른 CPU에도(다른 이름으로) 존재하며 운영체제에게 안전한 태스크 관리와 보다 빠른 Context Switching 을 적용할 수 있다. 이를 위해 몇몇의 assemble 코드가 추가 되었으며 80386 부터는 코드가 확장되어 보다 큰 메모리를 어드레스 할 수 있게 되었다. [[BR]]
         이를 위해 각각의 어드레스 접근에 privilege level을 두었고 이를 각각의 Application에 적용시켰다. 보호모드의 경우 멀티태스킹을 지원하기 위한 방법이다. 이는 지속적이고 반복적으로 일어나는 Context Switching 을 하드웨어적인 방법으로 만들어 소프트웨어적인 방법보다 빠른 Context Switching을 통해 하드웨어의 효율성을 높였다. 보호모드를 위한 레지스터와 방법들..
         == EXAMPLE 1. LINUX ==
         = INT 13H - From BIOS - =
  • IntegratedDevelopmentEnvironment . . . . 3 matches
         IDE는 Integrated Development Environment를 말하며 한국어로는 통합 개발 환경을 의미한다. 보통 텍스트 편집기에 syntax highlite와 debugger, 빌드 도구, 컴파일러 등이 모두 통합되어 나오며 IDE하나만으로도 소스코드를 작성하는데 문제가 없다.[* 최근에는 이마저도 부족한 경우도 있다.]
         [[include(틀:IDE)]]
         종종 일반 Text editor가 너무나 많은 기능을 제공하는 나머지 IDE랑 헷갈리기도 한다. vim의 plugin을 깔거나 sublime을 잘 설정하면 IDE부럽지 않게 사용할수 있으나 해당 프로그램은 기본적으로 TextEditor이다. plugin을 통해서 지원하는 기능은 사실상 통합된 기능이라 보기 어렵기 떄문이다.
  • IoLanguage . . . . 3 matches
         Seminar:IoLanguage
         See also Seminar:코딩도장
         ProgrammingLanguage
  • JuneTemplate . . . . 3 matches
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • Knapsack . . . . 3 matches
          1. weighted, 0-1 knapsack problem -> find the exact match
          1. weighted, unbounded knapsack problem -> find the exact match
          1. weighted/valued, unbounded knapsack problem -> maximize the value not exceeding the weight limit
  • MFC/Control . . . . 3 matches
         #define _MFC_
         = a kind of control =
         이외에도 common control 로서 애니메이트 컨트롤, tree 컨트롤, spin button 등의 컨트롤 들이 존재한다.
  • MFC/RasterOperation . . . . 3 matches
         #define _MFC_
         = CDC Drawing Modes =
         = Explaination =
  • NeoZeropageWeb . . . . 3 matches
         '''GNUBoard (main) + Zerowiki + Trac'''
         '''Trackback Center (main) + Tattertools 1.0 + Zerowiki + Trac'''
         '''Zerowiki (main) + Trac'''
  • NumericalAnalysisClass . . . . 3 matches
         강의내용 : 최근의 수치해석 수업은 그래픽스 수업의 선수과목으로서 성격이 이전과 달라졌다. 주로 line, curve, plane, matrix 등 그래픽스와 관련된 내용을 배운다.
          * ["NumericalAnalysisClass/Report2002_2"] - ["CubicSpline/1002"]
         === examination ===
         ''Object-Oriented Implementation of Numerical Methods : An Introduction with Java and Smalltalk'', by Didier H. Besset.
  • OurMajorLangIsCAndCPlusPlus/signal.h . . . . 3 matches
          || SIGINT || Ctrl - C 인터럽트 ||
          || __cdecl signal(int, void (__cdecl *)) || 해당 시그널에 동작할 행동을 지정한다. 첫번째 인자가 시그널 번호, 두번째 인자가 행동을 지정한다. ||
          || int __cdecl raise(int) || 이 함수를 호출한 프로시져에 첫번째 인자에 시그널번호에 해당하는 시그널을 보낸다. 실패하면 0이 아닌값을 리턴하는데, 오직 유효하지 않은 시그널 번호에서만 실패하게 된다. ||
  • PC실관리 . . . . 3 matches
         에어컨 청소법 - [ttp://kin.naver.com/browse/db_detail.php?d1id=8&dir_id=813&docid=92267&ts=1052495994]
         그림을 포함한 청소 설명 - [http://www.airlove.co.kr/shop/index.php?inc=html/air]
  • PNA2011/서지혜 . . . . 3 matches
          * 9 NINES를 가진 전설적인 언어?
          * Motivation, Organization, Information/Innovation/Insight, Jiggle
          * Doing is faster than arguing
          * Think forward
  • PragmaticVersionControlWithCVS/HowTo . . . . 3 matches
         || [PragmaticVersionControlWithCVS/Getting Started] || [PragmaticVersionControlWithCVS/AccessingTheRepository] ||
         == Organizing a Version Control System ==
  • ProcessExplorer . . . . 3 matches
         http://www.sysinternals.com/Utilities/ProcessExplorer.html
         http://www.sysinternals.com/images/screenshots/ProcessExplorer.gif
         그밖에도 http://sysinternals.com 에는 쓸만한 유틸리티들이 많음.
  • PyGame . . . . 3 matches
         사용하기 정말 쉽다. [Python] Interpreter 에서 한줄 한줄 입력하면서 공부할 수도 있다.
         ["데기"]는 PyGame 을 이용해서 3D Viewing System 을 만든바 있다.
          def __init__(self, aSize):
          pygame.Surface.__init__(self, aSize)
  • PythonIDE . . . . 3 matches
         현존 하는 파이선의 대표적인 개발환경은 상당한 수가 존재한다. 이중에 알려진 몇가지가 IDLE, SPE, Wing, PyDev 등이 있다.
          * wingIDE : 디버깅이 지원되는 IDE, 유료로 판매한다.
          * Visualwx : wxToolkit 의 WYSWIG 을 지원하는 디자인 중심의 IDE. 파이선 프로그래밍을 지원한다. GUI 개발시 wxWindow 를 공부하는 유저에게 상당히 좋은 학습자료가 될 수 있다.
  • RegularExpression/2011년스터디 . . . . 3 matches
         matcher.find();
          var str='<body onload="firprint(;" onkeydown="keyboard);"> <input value="pause" onclick="pause();"/>';
  • ReverseAndAdd/1002 . . . . 3 matches
          rev = int(str(n)[::-1])
         for e in [195,265,750]: print reverseAndAdd(e)
  • ReverseAndAdd/이동현 . . . . 3 matches
          print "회문을 찾을 수 없는수?"
          reverse(n+int(str(n)[::-1]), count+1)
          print n
  • RubyLanguage/InputOutput . . . . 3 matches
         == InputOutput ==
          * STDOUT << , STDIN >>
          * each_line : 세퍼레이터를 넘겨 한 단위(세퍼레이터로 구분)씩 읽어옴
          * readlines : 배열로 읽어옴
         puts.client.readlines
  • SharpZeroJavaProject . . . . 3 matches
         [http://www.caucse.net/cgi-bin/moin/moin.cgi/_c0_da_b9_d9_c7_c1_b7_ce_c1_a7_c6_ae_2f_230_c6_c0_20_bf_c2_b6_f3_c0_ce_20_b0_d4_c0_d3 자바프로젝트 #0팀 온라인 게임]
  • SimpleDelegation . . . . 3 matches
          Vector(int size) {
         위임하는 객체(delegating object)는 위임 객체 또는 위임자 객체, 위임된 객체(delegate)는 대리자로 번역할 수 있을 것 같고(차라리 영어를 그대로 쓰는게 좋을지도 모르겠네요), 주체성은 참조를 의미하지 않을까요?
          cmd->Execute(this); // delegating object의 참조(this)를 delegate에게 전달
  • SqLite . . . . 3 matches
         어플리케이션 내에 포함(Embedding) 이 가능한 DB. Java 에서 HypersonicSql 과 비슷한 역할. C/C++ 에서 간단한 데이터베이스 기능을 추가하고 싶을 때 비교적 쉽게 이용 가능.
         [http://www.int64.org/sqlite.html - SQLite C++ Wrapper]. 단, 이 코드의 경우 long long 형을 쓰는 관계로 VC6 에서는 컴파일이 되지 않는다. long long 형을 쓰는 부분을 __int64 로 바꾸면 VC6 에서도 이용은 가능.
  • StephaneDucasse . . . . 3 matches
         OORP(ObjectOrientedReengineeringPatterns) 의 저자중 한명.
         Refactoring 책에서 acknowledgement 를 읽던중 StephaneDucasse 이름을 보게 되었다. 이전이라면 저 이름을 그냥 지나쳤을텐데. 신기하다. --[1002]
  • StringResources . . . . 3 matches
         /** StringResorces.java - Information strings, Component's label strings resources load
  • TdddArticle . . . . 3 matches
         류군 이야기로는 Oracle 의 경우 설치하고 딱 실행하는데만 기본 메모리 200메가 잡아먹는다고 한다. -_-; 로컬 테스트를 위해 HypersonicSql를 쓸만도 하군.; (In-memory DB 식으로 지원가능. 인스톨 할것도 없이 그냥 콘솔에서 배치화일 하나 실행만 하면 됨. 근데, JDBC 를 완벽히 지원하진 않는 것도 같아서, 약간 애매. (ResultSet 의 first(), last(), isLast() 등의 메소드들이 실행이 안됨)
          그래서 오라클이 크다는 말씀이 아니실까? 나도 찍어봐야겠네 --NeoCoin
         Xper:XperSeminar 를 보니 일단 셋팅이 되고 익숙해지면 TDD 리듬이 덜 흐트러지는 방법 같았다. (재우씨랑 응주씨가 원래 잘하시고 게다가 연습도 많이 하셔서이겠지만;) password 추가되고 테스트 돌리는 리듬이 좋아보인다. 단, 테스트 돌아가는 속도가 역시 Real DB 이면서 [Hibernate] 까지 같이 돌아가서 약간 느려보이는데, 이건 해보고 결정 좀 해야겠군.
         reference 쪽은 최근의 테스트와 DB 관련 최신기술 & 문서들은 다 나온 듯 하다. 익숙해지면 꽤 유용할 듯 하다. (hibernate 는 꽤 많이 쓰이는 듯 하다. Intellij 이건 Eclipse 건 플러그인들이 다 있는걸 보면. XDoclet 에서도 지원)
         간만에 여유가 생겨서 한번 따라해보게 되었는데, [Hibernate] 가 생각보다 복잡한 녀석이라는 것을 알게 되었다. (내가 O-R Mapping Tool 에 대한 경험이 없기 때문에 더더욱) 한번에 습득하기에 쉬운 녀석은 아니였군.;
  • ThreeFs . . . . 3 matches
         Facts, Feelings, Findings. (사실, 느낌, 교훈/깨달은 점)
  • TuringMachine . . . . 3 matches
         = Turing Machine =
         == Intruduction ==
         참조) Turing Award : 알랜 튜링의 업적을 기리기 위해서 제정한 상으로, 컴퓨터 공학분야의 노벨상이라 칭해짐.
  • WantedPages . . . . 3 matches
         A list of non-existing pages including a list of the pages where they are referred to:
  • ZIM . . . . 3 matches
          * ["ZIM/UIPrototype"] (Window&Reports) (by 패키지 개발팀)
          * Class Diagram & Interaction Diagram ( by 시스템 아키텍트)
          * OS: Linux (Zeropage)
          * 시스템 엔지니어(System Engineer) : 이덕준
  • Zero,One 위키 통합에 대한 토론 . . . . 3 matches
         위키의 활성화를 위해 분리하였으나, 그리 효과는 크지 않은것 같습니다. 확인해본결과 중복된 페이지가 많지 않아, 적절히 통합가능 합니다. 어떻게 할까요?--NeoCoin
          지금 로그인해야 쓸수 있나요? 아닐껄요. 로그인해야 지울수 있는 기능일 아니에요? --NeoCoin
         통합하였습니다. :) --NeoCoin
  • ZeroPageServer/set2001 . . . . 3 matches
          * Linux version 2.2.16-22
          * gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
          * Resin 1.2
  • ZeroPage회칙토론 . . . . 3 matches
          ["neocoin"]:그거 어디에 있는지 아시는 분? --상민
          ["neocoin"]:설마, 그렇게 까지는 필요 없겠지 회원 자격 상실 조건과, 정모 만 확실하게 정하면 더 이상 무슨 규칙이 있겠냐 --상민
         각 항목에 몇조 몇항을 두는 이유는 index가 용이하라고 있는것이겠지만, 이 상황에 경우는 그리 필요없을것이라 생각함.--석천
  • ZeroWikian . . . . 3 matches
         [[include(틀:추가바람)]]
          * [celfin]
          * [Hyacinth]
          * [KIN]
  • [Lovely]boy^_^/ExtremeAlgorithmStudy/MathematicalFoundations . . . . 3 matches
          * 내림(Floors), 올림(Ceilings)
          * 수열(Series), 급수(Summation), 수학적 귀납법(Mathematical induction), ... 이건 좀 생소해 보이는데.. 무슨 수렴성 판정하는거 같다.(Bounding the terms), 적분
  • dduk . . . . 3 matches
         [http://zp.cse.cau.ac.kr/~dduk/cgi-bin/moin/moin.cgi]
  • fnwinter . . . . 3 matches
          InsideCPU
          Python/Win32/델파이/VB/MFC/기타등등에 쓰일 범용 Skin Library
          http://netgroup-serv.polito.it/windump/ -zennith.
  • html5/offline-web-application . . . . 3 matches
          * 'window.applicationCache', 또는 'applicationCache'
         || CHECKING ||업데이트 체크 중 ||
         || DOWNLOADING ||업데이트 다운로드 중 ||
         || checking ||업데이트 체크 중 ||
         || downloading ||업데이트 다운로드 중 ||
  • neocoin/MilestoneOfReport . . . . 3 matches
         = Internal Document =
          * 실행 방법,과정 (Process of Executing)
         = Thing to Select both I/E Documents =
         ["neocoin"]
  • neocoin/Read/5-6 . . . . 3 matches
         ["neocoin/Read"]/5-6
          * 작성자 : ["류상민"](99,["neocoin"])
         ["neocoin/Read"]/5-6
  • 구구단/정수민 . . . . 3 matches
         k = input('구구단을 외자 구구단을 외자')
         for n in range(1,10):
          print k,'*',n,'=',(k*n)
  • 그래픽스세미나/5주차 . . . . 3 matches
          PPT 파일: Upload:CGSeminar5.zip
          *MATERIAL_SHINE 0.2500
          *MATERIAL_SHINESTRENGTH 0.5000
          *MATERIAL_SHADING Blinn
          *MATERIAL_FALLOFF In
          *MATERIAL_SHINE 0.2500
          *MATERIAL_SHINESTRENGTH 0.0500
          *MATERIAL_SHADING Blinn
          *MATERIAL_FALLOFF In
          *INHERIT_POS 0 0 0
          *INHERIT_ROT 0 0 0
          *INHERIT_SCL 0 0 0
          *MESH_FACE 0: A: 0 B: 2 C: 3 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 2 *MESH_MTLID 1
          *MESH_FACE 1: A: 3 B: 1 C: 0 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 2 *MESH_MTLID 1
          *MESH_FACE 2: A: 4 B: 5 C: 7 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 3 *MESH_MTLID 0
          *MESH_FACE 3: A: 7 B: 6 C: 4 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 3 *MESH_MTLID 0
          *MESH_FACE 4: A: 0 B: 1 C: 5 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 4 *MESH_MTLID 4
          *MESH_FACE 5: A: 5 B: 4 C: 0 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 4 *MESH_MTLID 4
          *MESH_FACE 6: A: 1 B: 3 C: 7 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 5 *MESH_MTLID 3
          *MESH_FACE 7: A: 7 B: 5 C: 1 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 5 *MESH_MTLID 3
  • 김준호 . . . . 3 matches
          # 3월 16일에는 앞으로 새싹교실이 어떻게 진행될것인지와 컴퓨터의 기본장치들을 배웠습니다 예를들어 CPU, Main Memory 등등 입니다.
          예를들어 printf , \n , %d %e %c를 배웠습니다.
          근데 printf가 글쓰는것에 이용하는것과 \n이 줄띄우는것은 알았습니다. 그런데 %d %e %c는 잘 이해가 안됩니다. ㅠㅠ
  • 단식자바 . . . . 3 matches
         [Java], [http://zeropage.org/~iruril/jdk-1_5_0_01-windows-i586-p.exe ZP pub의 JDK]
         [Eclipse], [http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.1-200506271435/eclipse-SDK-3.1-win32.zip&url=http://eclipse.areum.biz/downloads/drops/R-3.1-200506271435/eclipse-SDK-3.1-win32.zip&mirror_id=26 이클립스 3.1]
  • 데블스캠프2003/다루어볼문제와관련세미나 . . . . 3 matches
          * 저는 STL 같은 것은 그냥 할수 있을 만큼 사용할줄만 알면 되다고 생각합니다. Library 가 제공하는 것은 우리에게 좀더 고차원적인 사고에 전념할수 있는 것이 겠지요. 배열의 길이에 신경쓰지 않는 것만으로, C++에서 얼마나 무한한 사고가 가능할까요? 학교 교제는 C++을 가르치는 것이 아니라, C에다 어떻게 충돌을 일으키지 않고 문법을 추가시켜 C++이 되었는가를 가르치기 때문에 이런 기회는 필요 할것 같습니다. 아마 궁금한 사람은 STL의 소스를 보겠지요. 사족으로 STL은 OOP보다 Generic Programming의 관점에서 구현되 었습니다. --NeoCoin
          * 세미나 기간 중에 하루 "Parellel/Distributed Computing for Dummies"를 해드릴 수 있습니다. CSP와 Tuple Space 등을 다루게 될 것 같습니다. 학생들은 서너명씩 팀을 이루어 수십대의 컴퓨터를 동원 어떤 문제를 해결하는 경이적인 체험을 하게 될 것입니다. --JuNe
  • 데블스캠프2005/RUR-PLE/Harvest . . . . 3 matches
         == 김태훈([zyint]) ==
         # Function Definitions
         #main source code
  • 데블스캠프2005/RUR-PLE/Newspaper/Refactoring . . . . 3 matches
         = 데블스캠프2005/RUR-PLE/Newspaper/Refactoring =
         #define it.
         #define it.
  • 데블스캠프2005/RUR-PLE/TwoMoreSelectableHarvest/이승한 . . . . 3 matches
         def checkLine():
         ##main
         repeat(checkLine,6)
  • 데블스캠프2005/목요일후기 . . . . 3 matches
         [[HTML(<center>)]]'''후기 적는 방법 : ThreeFs Fact(사실), Feeling(느낌), 교훈(Find)[[BR]] 을 구분해서 명확히 이야기 해줄래요?''' [[HTML(</center>)]]
         김태훈([zyint]) 러플 보안과 비쥬얼 파이선을 배웠다. 직접 로봇을 움짓이는것같은 러플은 매우 흥미로웠다. VPython의 신기한 기능...암호화의 원리를 배우게 되었다>.< 매우 재미있었다.
  • 데블스캠프2005/월요일후기 . . . . 3 matches
         [[HTML(<center>)]]'''후기 적는 방법 : ThreeFs Fact(사실), Feeling(느낌), 교훈(Find)[[BR]] 을 구분해서 명확히 이야기 해줄래요?''' [[HTML(</center>)]]
         김태훈([zyint])
  • 데블스캠프2009/화요일 . . . . 3 matches
         || 안혁준 || winAPI || || ||
         ||pm 04:00~05:00 || winAPI || 안혁준 ||
         ||pm 05:00~06:00 || winAPI || 안혁준 ||
  • 데블스캠프2010/Prolog . . . . 3 matches
          * [http://lakk.bildung.hessen.de/netzwerk/faecher/informatik/swiprolog/indexe.html Editor]
         13.독일인은 프린스(Prince) 담배를 피운다.
  • 데블스캠프2011/넷째날/Git . . . . 3 matches
          * setup git and github - http://help.github.com/win-set-up-git/
          * github repository address - https://github.com/beonit/devils2011GitSeminar
          * git cheat sheet - http://ktown.kde.org/~zrusin/git/git-cheat-sheet-medium.png
  • 데블스캠프2011/첫째날/오프닝 . . . . 3 matches
          || [박정근] || :) || pjk41018 || Linus ||
          || [김수경] || 오늘 맛있는 거 먹어요. || linflus || Linflus ||
  • 동영상처리세미나 . . . . 3 matches
          * 2006.08.10, 2006.08.17 : input 받아 출력
         for each in y
          for each x in x
  • 문자반대출력/변형진 . . . . 3 matches
         PHP에서는 strrev()라는 문자열 처리 기본 함수를 제공하지만, 현재 버전에서의 PHP는 기본 함수로는 Multibyte String을 지원하지 못한다.
         fputs($fp, join("", array_reverse(preg_split("//u", join("", @file("source.txt"))))));
  • 문자열검색 . . . . 3 matches
          x는 x[40] = "His teaching method is very good.";
         자료 -> His teaching method is very good.
         자료 -> His teaching method is very good.
  • 병역문제어떻게해결할것인가 . . . . 3 matches
          * 자세한 사항은 [https://inclue.kr/3 복무 정보], [https://inclue.kr/4 구직 정보]를 참조하면 됩니다.
          * ~~[http://www.caucse.net/phpwiki/index.php?%C4%C4%B0%F8%C0%CE%B1%BA%B4%EB%B0%A1%B1%E2 컴공인군대가기(동문서버 위키)]~~
  • 비행기게임 . . . . 3 matches
          print 'static method', x, y
          게임 그래픽 부분이 만만치 않긴 하지.. 흐흐. 스프라이트 그리는 사람이 고충이 생각보다 많음. 안티 엘리어싱 부분의 경우 투명색이 제대로 처리가 되지 않기 때문에 도트노가다를 해주어야 하거든. 나의 경우 포토샵으로 일단 트루컬러로 그린뒤 그것을 256 indexed color 로 바꾸고 투명색 하나 넣어서 도트노가다 해주는 식이거나, 또는 아에 3D 툴로 그리던지. (3D 툴로 모델링하고 렌더링시에 웬만한 툴들은 alpha channel 을 따로 저장하거든. 그래서 3D 툴로 만든건 안티 엘리어싱 문제를 그리 의식하지 않음.) 또는 아에 엔진 자체가 3D이고 스프라이트들이 3D 이던지지만 이건 논의 대상 밖이겠군; 해성이의 경우는 원래 도트 노가다에 일가견이 있기에 뭐 전부 그려주긴 했고;
          암튼. 초반의 열정이 후반의 끈기로 이어지려면, 해당 일에 대한 좋은 방법들을 중간에 계속 궁리하고, 적용해봐야겠지. 개인적인 조언이라면, 초반에 너무 그래픽 등에 많이 신경쓰지 않는것이 낫다고 생각함. 일단은 전반적인 틀과 게임 엔진을 만든다는 기분으로 하고, 그 엔진이 자신이 원하는 아이디어를 수용할 수 있는가에 더 촛점을 맞추는게 낫지 않을까 함. 단, 생각은 전반적인 부분을 보되, 구현을 쉽게 하기 위해서는 구체적 예제 데이터를 가지고 작업하는것이 효율적이겠지. 그리고 그 예제 데이터를 기반으로 일종의 SpikeSolution식으로 구현을 한뒤, 그 구현된 프로그램을 보고 다시 코드를 작성하던지 또는 ["Refactoring"] 해서 일반화시키던지.(새로 짜도 얼마 시간 안걸림. 예상컨대, 아마 중반에 소스 한번 뒤집어주고 싶은 욕구가 날껄? 흐흐) --["1002"]
  • 사람들이모임에나오지않는다 . . . . 3 matches
         사람들을 다그쳐 봐야 아무런 효과가 없습니다. 어떻게 그들에게 영향을 줄까(influence)를 고민해야 합니다. 내가 그 사람을 바꾸려고 하지말고, 그 사람이 스스로 바뀌어서 "자발적으로 나오고 싶은 마음이 굴뚝 같게" 될 수 있는 상황을 만들어야 합니다.
         "Reform the environment, stop trying to reform the people. They will reform themselves if the environment is right." --NoSmok:BuckminsterFuller
  • 사랑방 . . . . 3 matches
         시험이 막바지에 이르자, 사람들이 글러쉬를 하고 있다. --["neocoin"]
          ''약간은 사기라고 봐도 됩니다. 퀵소트에서 첫번째 원소를 피봇으로 잡는 경우가 헤스켈에서 아주 간단히 표현될 수 있다는 점을 이용한 것이죠 -- 첫번째가 피봇이 되면 문제가 생기는 상황들이 있죠. 보통 헤스켈의 "간결성"을 강조하기 위해 전형적으로 사용되는 예입니다. 뭔가 독특한 점을 강조하기 위해 쓰인다는 것 자체가 이미 약간의 과장을 암시하고 있습니다. see also Seminar:QuickSort --JuNe''
         negative LA assertion을 쓰면 간단합니다. {{{~cpp &(?!#\d{1,3};)}}} RE를 제대로 사용하려면 ''Mastering Regular Expressions, 2Ed ISBN:0596002890''를 공부하시길. --JuNe
  • 새싹C스터디2005/선생님페이지 . . . . 3 matches
          * 배열을 추가했습니다. 배열(이중)을 제대로 가르쳐야 Linked List를 제대로 가르칠 수 있을 것 같네요. Linked List를 쓰는 이유를 알려면 이중 배열을 알아야한다 생각해요. 안쓰면 뭐가 안좋은지 알 수 있을테니까요. [이영호]
         여러분들보다 조금은 세미나 경험이 많은 사람이기에 한가지 이야기만 드리겠습니다. 세미나를 통해 무언가를 설명할 때 정의(definition)에 대해서 명확하게 알려주도록 노력해 보세요. 여러분이 세미나를 한 후에 신입생들에게 "변수의 정의가 무엇이냐?", "함수의 정의가 무엇이냐?" 와 같은 질문을 한다면 신입생들이 대답을 할 수 있을까요? 혹은 여러분들은 이러한 질문에 명쾌하게 대답을 할 수 있습니까? 어떤 새로운 것을 배울 때 가장 중요한 것은 그것이 어디에 쓰이는 것인지, 그것이 어떻게 쓰는 것인지와 같은 것들이 아니라 그것이 무엇인지를 아는 것입니다. 무엇인지 확실하게 알아야 그 다음을 이해하는데에도 보다 쉽지 않을까요?
  • 새싹교실/2011/쉬운것같지만쉬운반/2011.3.15 . . . . 3 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2011/씨언어발전 . . . . 3 matches
          * Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2013/라이히스아우토반/4회차 . . . . 3 matches
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
          * Internet Explorer를 제외한 다른 브라우저 (Chrome,FireFox, Opera)로 위키에 들어오면 편집하기 쉬워요.
  • 새싹교실/2013/록구록구/1회차 . . . . 3 matches
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2013/양반/2회차 . . . . 3 matches
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 새싹교실/2013/양반/5회차 . . . . 3 matches
         Facts, Feelings, Findings, Future Action Plan. 즉, 사실, 느낀 점, 깨달은 점, 앞으로의 계획.
  • 서울대컴공대학원구술시험/05전기 . . . . 3 matches
         int max(int, int)는 두 인자중 큰 수를 반환하는 함수입니다. a) 트리의 높이를 구하는 함수 b) 2n + 1
  • 세미나/2004 . . . . 3 matches
         || 2 || 상규&홍선 || cache || [1st Seminar] ||
         || 5 || 세환&보창 || 크래킹 || [CrackingProgram] ||
         || 7 || 휘동 || [Debugging] || 간단한 디버거 사용 시연, 디버깅에 대해 이야기 나누기||
  • 시간관리하기 . . . . 3 matches
         ==== Getting Things Done (끝도 없는 일 깔끔하게 해치우기) ====
         '''The Simplest Thing That Could Possibly Work'''
  • 위키요정 . . . . 3 matches
         관련한 기술들을 NoSmok:WikiGardening 에서 참고 할수 있다.
         하지만 위키는 일전에 창준이형 말씀대로 NoSmok:WikiGardening 처럼 구두를 수선하는 것보다 정원을 다듬는 은유법이 더 어울리는 것 같다. 망가지지 않도록 끊임없이 관리하는 것, 정원일이란 그대로 두면 인간에게 불편한 자연을 좀더 편하게 즐길수 있게 만드는 작업이라서 그러한 것일까?
         --NeoCoin
  • 일반적인사용패턴 . . . . 3 matches
          * ["HelpOnFormatting"]
          * ["HelpOnEditing"]
         위키위키의 장점중 하나로 자유로운 링크에 있습니다. 기본적으로 auto link를 지원하므로 해당 위키 페이지 링크 뿐만 아니라 다른 웹 페이지의 링크도 자유롭습니다. (쓰다가 보면 가끔 위키 내에서 다른 페이지로 날라가기 허다해진다는. --;) 위키페이지 링크는 [[ "해당페이지이름" ]] 을 하시면 되고, 일반 웹 페이지는 URL을 그냥 입력해주시면 됩니다.
  • 임인택/코드 . . . . 3 matches
          * 헤더파일 : windows.h, imm.h
          * 헤더 : winuser.h, windows.h
  • 전문가의명암 . . . . 3 matches
         NoSmok:AlfredNorthWhitehead''''''는 ''Civilization advances by extending the number of important operations which we can perform without thinking of them.''라는 명언을 남겼다.
  • 정모/2002.12.30 . . . . 3 matches
          || 책 || PowerReading ||
          * 학술제, Team 별 Shooting Game 제작, Programming Party
  • 정모/2002.9.26 . . . . 3 matches
         시간관리, 우선순위 관리에 대해 고민하는 사람들이 많았다. 마침 재동이 '끝도없는일 깔끔하게 해치우기'(NoSmok:GettingThingsDone) 를 읽던 중이여서 책을 아는 사람들이 그와 관련한 이야기들이 있었다.
         이런 비형식적인 오프모임도 좋은 것 같다. 오늘은 Seminar:RenaissanceClub 모임 스타일이랑 비슷한데, 꼭 '안건', '의견' 식으로 가지 않아도 좋을 것 같다. 사람들의 최근 관심사가 무엇인지 알고, 서로 자유롭게 의견을 말하거나 물어보는. 개인적으로는 이런 스타일로 계속 가보는 것도 재미있을 듯 싶다. ^^; --["1002"]
  • 정모/2011.7.25 . . . . 3 matches
          * [Spring/탐험스터디]
          * 다시 구현해보는 WinMerge 계속 진행중입니다.
          * [EnglishSpeaking/2011년스터디]
  • 정모/2011.8.22 . . . . 3 matches
          * [Spring/탐험스터디]
          * [EnglishSpeaking/2011년스터디]
          * 준식이의 wow add on 글이 delete라고 되어 있길래 뭔가 했더니 그런 이유가 있었군요 -ㅅ-;; 흐으음.. 사생대회.. 오랜만에 하네요,, 혼자 약간 떨어져 앉아 ㅋㅋㅋ Pink Floyd의 음악을 들으며.. 이것 저것 잡다하게 막 뭔가 해 놓고 나니.. 다 쓰레기네요 ㅋㅋㅋㅋㅋ 재밌었습니다 - [권순의]
  • 정모/2012.7.25 . . . . 3 matches
          * Spring : SimpleWiki 작성. 게시물 Page Repositery 기능. Hibernate 사용하는 기능을 Page Repositery에 붙이려고 하는데 Hibernate가 어려워서 잘 될까 모르겠다. 이후에는 Spring의 security 기능을 이용해서 회원가입 기능을 붙일 예정. 위키 문법을 어느 정도까지 다루어야 할지 생각 중.
          * MVC의 Model과 DDD(는 아니지만)의 Domain - Repository와의 관계에 대해 고민했다. DAO와 Repository의 차이가 무엇인지 아직 잘 모르겠다. - [서지혜]
  • 정모/2013.9.4 . . . . 3 matches
          * 클린 코드 : SRP(Single Responsibility Principle), DIP(Dependency Inversion Principle) 방식을 공부하였고 디자인패턴 중 템플릿 메소드에 대해서 공부하였습니다.그리고 스레드에 대해서 공부 하였습니다. trello와 github연동하는 방법이 있습니다.상당히 유용할 것같으므로 관심있으신분들은 조금만 찿아보시면 쉽게 하실수있습니다.
  • 졸업논문 . . . . 3 matches
          * http://xper.org/wiki/seminar/_b3_ed_b9_ae_c0_d0_b1_e2
          * http://tint.egloos.com/1310733
         = Link =
  • 주요한/노트북선택... . . . . 3 matches
          나같은 경우에는 [http://kr.dcinside14.imagesearch.yahoo.com/zb40/zboard.php?id=notesell nbinsde노트북중고] 에서 중고 매물로 소니바이오 S38LP를 158만원에 샀는데,, 아는 선배는 같은것을 새거로 290만원 가까이 주고 샀었다는 말을 주고 보람도 있었음,,
          노트북은 에버라텍이 가격대 성능비가 괜찮다고 하고, IBM 거는 튼튼하다고 하고 뭐 여러가지가 있는데, 저 http://nbinsde.com 에서 직접 정보를 모아 보는게 제일 좋을듯... 나같으면 새거같은 중고 노트북을 사겠지만.. - [(namsang)]
  • 중위수구하기 . . . . 3 matches
         === input ===
         || 김태훈([zyint]) || PHP || . || [중위수구하기/김태훈zyint] ||
  • 지금그때2004 . . . . 3 matches
         그때의 사진을 찾습니다.'''--NeoCoin
          휘동이가 좋은 기회를 놓칠지 모르겠군. --NeoCoin
          * 연기해서 다음주 화요일인가요? 일주일이라서 저는 수요일인줄 알았는데.. 어떻게 된건지요? --NeoCoin
  • 지금그때2004/회고 . . . . 3 matches
          * 질문 : 기록을 찾을수 없어서 그러한데, 이번에 리허설을 대략 몇시간 정도 했나요? --NeoCoin
          * 도우미들이 적극적으로 Recorder 가 되는 건 어떨까. MinMap이나 ScatterMap 기법들을 미리 숙지한뒤, 레코딩 할때 이용하면 정리 부분이 더 원활하게 진행될것 같다.
          * 적는 사람 입장에서는 2개 짜리 책상이 좋았습니다. 그러나 관찰 해보면, 책상이 작은 쪽이 좀더 가까이 바라보고 이야기하는 느낌을 받았습니다. 적절히 섞여 있는 편이 좋은것 같습니다.--NeoCoin
  • 지금그때2006/선전문 . . . . 3 matches
         이 행사의 모토는 이렇습니다. "<a href="http://sgti.kehc.org/child/contents/teaching/14.htm"> <B> 지금 알고 있는 것을 그때도 알았더라면 </B> </a> " 단지 후회에서 그치지 않고 어떻게 했을까 생각해 봅니다. 의외로 지금도 늦지 않았다는 것을 발견할 수도 있습니다.
         이 행사의 모토는 이렇습니다. "<a href="http://sgti.kehc.org/child/contents/teaching/14.htm"> <B> 지금 알고 있는 것을 그때도 알았더라면 </B> </a> " 단지 후회에서 그치지 않고 어떻게 했을까 생각해 봅니다. 의외로 지금도 늦지 않았다는 것을 발견할 수도 있습니다.
         <a href="http://165.194.17.5/zero/index.php?title=%C1%F6%B1%DD%B1%D7%B6%A72006%2F%C8%C4%B1%E2&url=zeropage"> 후기 쓰러 가기(클릭) </a>
  • 최대공약수 . . . . 3 matches
         === input ===
          || 김태훈([zyint]) || C || 30분 || [최대공약수/김태훈zyint] ||
  • 최소정수의합 . . . . 3 matches
          - 문제가 그렇습니다. 처리조건은 HINT라기 보다는 그 말 대로, 처리하기 위한 조건이라서 문제의 하위 조건이라고도 볼 수 있습니다.
         === input ===
         || 김태훈[zyint] || C || . || [최소정수의합/김태훈zyint] ||
  • 캠이랑놀자/051229 . . . . 3 matches
         == Color-Whitening ==
         == Alpha-Blending ==
         == Mosaic (Sampling) ==
  • 큰수찾아저장하기 . . . . 3 matches
         === input ===
          ||김태훈[zyint]|| C || . || [큰수찾아저장하기/김태훈zyint] ||
  • 프로그래밍잔치 . . . . 3 matches
         || 99 || ["이덕준"] , ["comein2"] , ["JihwanPark"] , ,||
         || 00 || 정직(["fnwinter"]) , 영현(["erunc0"]), ["zennith"] , 광식(["woodpage"]) , , ,||
          * 잔치하니까 왠지 시골 잔치가 생각난다 ... 잔치 국수 먹고 싶다!....["fnwinter"]
  • 프로그래밍잔치/정리 . . . . 3 matches
          -> Opening Question 의 중요. 토론을 시키기 전, 그 주제를 명확하게 표현해주는 '질문' 문장을 미리 3-4개정도 작성해온다.
          -> Opening Question 이 있다면 어느정도 해결가능하리라 생각. Facilitator 가 답을 유도하지 않되, 너무 다른 길로 걸어가지 않도록 하는 기준이 될 수 있으리라 생각.
          * Pair Programming 중 실천적인 구체적 방법을 미리 제시해주지 않음. - Pair 가 잘 이루어지지 않는 팀을 빨리 파악하고 빠른 대처/처방안을 주었더라면 하는 아쉬움이 든다.
  • 프로그래밍잔치/첫째날 . . . . 3 matches
          * '''Think Difference 낯선 언어와의 조우'''
         === 시간 - Think Different! 낯선언어와의 조우! ===
          * Python 은 메소드(함수, 프로시저)의 길이가 7줄을 넘으면 안된다. line 기준
  • 프로젝트 . . . . 3 matches
          * [XpWeek] - 2004년 겨울방학 ExtremeProgramming 체험하기
          * [ZeroPageMagazine] - 미완성
          * 참고 페이지 - [GuiTesting]
  • 프로젝트기록의필수요소토론 . . . . 3 matches
         ["neocoin"] 지금 프로젝트중 어정쩡한 상황으로 가는게 있는데, 반달정도에 한번도 업데이트 안되는 것을 그 예라고 생각합니다. 프로젝트의 끝이 명확해야 하지 않을까요? 비록 팀원들간에 사정으로 해당 프로젝트가 와해 되었다면, 팀원들중 아무나, 혹은 다른 회원의 지적으로 종료 시점을 기록해서 와해 이유와, 차후 방지에 관하여 한번쯤 생각해 봐야 할것이라고 생각 됩니다. [[BR]]
         [1002] 프로젝트 이름에 대해서 한마디 한다면, 'Java', 'ExtremeProgramming' 은 공부하려고 하는 지식의 종류이지 프로젝트의 이름으로 부적절하다고 봅니다. 만일 Java Study 팀이 두 개인 경우라면? 문제가 발생할 수 밖에 없습니다. 초창기에 해당 기술부분으로 페이지를 열 수는 있지만, 나중에 프로젝트가 끝나고 난다음에는 일반화시켜서 본래의 이름을 반환해주는 것이 좋다고 생각합니다. (즉, 'Java' 페이지는 Java 에 대한 소개나 기술 등을 넣어주고, 'Java' 페이지이름을 썼던 프로젝트팀은 프로젝트팀 이름의 새 페이지를 만들어서 경과보고를 하는식으로..)
         ["neocoin"] ZeroWiki의 프로젝트 페이지를 위한 6하 원칙을 생각해 봤습니다. 저정도면 될것 같네요. 어디서(where)이 있지만 이것은 보나마나 여기서 여기서니 프로젝트 이름으로 대체해서 했습니다. 앞으로의 모든 페이지가 저 정보가 꼭 있어야 한다고 정모에서 건의 함이(이거 원 정모를 해야 --;) --상민
  • 허아영/MBTI . . . . 3 matches
         '''사고형 (Thingking)'''
         T가 이렇다고 내가 F(feeling)쪽의 성향도 없는것은 아니다.
  • 05학번만의C++Study/숙제제출/2 . . . . 2 matches
          * 평상시에는 문자열의 주소를 하나의 전달인자로 취하여, 그 문자열을 한 번 출력하는 함수를 작성하라. 그러다가 0이아닌 int형 값을 두 번째 전달인자로 제공하면, 그 시점에 도달할 때까지 그 함수가 호출되었던 횟수만큼 그 문자열을 반복해서 출력한다. (문자열이 출력되는 횟수는 두 번째 전달인자의 값이 아니라 그 함수가 호출되었던 횟수와 같다.)물론 이 함수는 거의 쓸모가 없다. 하지만 이것은 이 장에서 설명한 몇 가지 프로그래밍 기술을 사용할 것을 요구한다. 이들 함수를 사용하여 함수의 작동을 보여 주는 간단한 프로그램을 작성하라
          * 여기서 질문!! 전달인자가 1개인 함수와 2개인 함수만들어 오버 로딩 하라는 것인가? 그게 아니라면... cin을 라인별로 입력 받아햐겠는데.. 어떤때는 변수를 하나만 받고 어떤때는 변수를 두개 받아야하니.. 라인별로 처리 해야할듯.. 하지만 라인별로 처리해도....;;;; 음... 생각이 떠오르지 않음..;;; 쳇..;;[[BR]] 어제 교수가 defalte 에 대해 설명했던거 같은데.. 전달인자를 취하지 않으면 이미 입력된 변수의 값으로 처리한다. 라고...;; 음..;;;이렇게 해야하나?
  • 06 SVN . . . . 2 matches
         1. Tortoise install
         3. Create visual studio project in that folder.
  • 2002년도ACM문제샘플풀이 . . . . 2 matches
          * [http://cs.kaist.ac.kr/~acmicpc/problem.html 2002년도 문제 샘플] 풀이입니다. ["신재동"]과 ["상규"]가 '개발 시간 최소화' 라는 문제 때문에 시작부터 TDD와 Refactoring 그리고 OOP를 버렸습니다. 그래서 중복도 심하고 남에게 보여주기 정말 부끄럽지만... 용기내서 올립니다. 리펙토링 후에 변한 모습을 다시 올리도록 하겠습니다.
          ''부끄러워할 필요가 없다. 촉박한 시간에 쫓겼다고는 하나, 결국 정해진 시간 내에 모두 풀은 셈이니 오히려 자랑스러워 해야 할지도 모르겠다. 아마 네 후배들은 이런 배우려는 태도에서 더 많은 걸 느끼지 않을까 싶다. 이걸 리팩토링 해서 다시 올리는 것도 좋겠고, 내 생각엔 아예 새로 해서(DoItAgainToLearn) 올려보는 것도 좋겠다. 이번에는 테스트 코드를 만들고 리팩토링도 해가면서 처음 문제 풀었던 때보다 더 짧은 시간 내에 가능하게 해보면 어떨까? 이미 풀어본 문제이니 좀 더 편하게 할 수 있을 것 같지 않니? --JuNe''
  • 2005MFC스터디 . . . . 2 matches
         교재 판매 점 : [http://kangcom.com/common/bookinfo/bookinfo.asp?sku=200401310006]
  • 2005리눅스프로젝트<설치> . . . . 2 matches
          * 데비안을 사용할려고 했지만 경험부족 때문에 X-WINDOW를 설치를 못해서 다른 버전중에 레드핫 계열인 Fedora core4를 선택했습니다. 레드핫,데비안,Fedora 설치 해서 이 버전이 제일 갠찮은 것같아서 이걸로 사용하기로 결정을 했습니다.
          ''데비안에서는 x-window-system 패키지만 설치하면 만서 ok 인데;; 써보면 배포방식이 데비안 만큼 편한것이 없죠''
          * 저도 데비안을 사용하고 싶은데 그 x-window 깔줄몰라서 이러는 중입니다...ㅜㅜ
  • 2006신입생/방명록 . . . . 2 matches
         -아발이 돈 좀 뿌렸나보네^^ㅋㅋ - [http://165.194.17.5/zero/?url=celfin&sessionId=celfin&sessionName=하기웅 하기웅]
  • 2thPCinCAUCSE/ProblemA/Solution . . . . 2 matches
         ["2thPCinCAUCSE/ProblemA"] 의 해.
         || ["2thPCinCAUCSE/ProblemA/Solution/상욱"] || [상욱] || C++ || 50분 ||
  • 3rdPCinCAUCSE/J-sow전략 . . . . 2 matches
         input x, y
         [3rdPCinCAUCSE]
  • 5인용C++스터디/윈도우즈프로그래밍 . . . . 2 matches
         #redirect DevelopmentinWindows
  • AM/20040712세번째모임 . . . . 2 matches
          * 참고자료 Upload:am_study2.ppt [DevelopmentinWindows]
  • ArsDigitaUniversity . . . . 2 matches
         학부생 수준의 전산 전공을 일년만에 마칠 수 있을까. 그런 대학이 있다(비록 지금은 펀드 문제로 중단했지만). 인터넷계의 스타 필립 그리스펀과 그의 동료 MIT 교수들이 만든 학교 ArsDigitaUniversity다. (고로, Scheme과 함께 NoSmok:StructureAndInterpretationOfComputerPrograms 를 가르친다)
         자신의 전산학 지식을 전체적으로 정리하거나, 밑바닥부터 새로 공부하고 싶은 사람들에게 많은 참고가 된다 -- 모든 수업이 한 달이면 끝난다. ArsDigitaUniversity의 "하면서 배우는"(learn by doing) 교육 모델(날마다 구체적인 Problem Set이 주어지고 오전에 수업이 끝나면 오후에 Recitation을 하며, 매 주 NoSmok:교육적인시험 을 친다)도 흥미롭다. 모든 수업에 대해 VOD와 문제, 해답, 수업 노트가 제공된다.
          * MIT 박사 과정 타라 수잔의 교수 경험 http://www-math.mit.edu/~tsh/teaching/aduni.html
  • AsemblC++ . . . . 2 matches
         .exe파일의 어셈블 코드부분에 대한 질문. [http://zeropage.org/wiki/AsemblC_2b_2b?action=edit 지식in]
         [http://www.google.co.kr/search?num=20&hl=ko&newwindow=1&client=firefox-a&rls=org.mozilla:ko-KR:official&q=disassembler&spell=1 역어셈블러 구글검색]
  • BNUI . . . . 2 matches
         General Skin Library
         XML(Expat)->Object->Window->Control
  • BicycleRepairMan . . . . 2 matches
         http://bicyclerepair.sourceforge.net/ . python refactoring 툴. idlefork 나 vim 에 통합시킬 수 있다.
         Seminar:BicycleRepairMan , PyKug:BicycleRepairMan
  • BookTemplate . . . . 2 matches
         DeleteMe when you fill in this page (이 페이지를 채워 넣을 때 삭제해 주세요)
          * My Point
  • C++Seminar03/SampleProblems . . . . 2 matches
         [C++Seminar03]에서 ZeroWikian 들이 풀게 될 문제들을 간단하게 정리합니다.
         [C++Seminar03], [문제분류]
  • CMM . . . . 2 matches
          * SE-CMM : Systems Engineering Capability Maturity Model. 시스템공학 분야에서 적용하여야 할 기본 요소들을 대상으로 현재의 프로세스 수준을 측정하고 평가하기 위한 모델로서 기본적인 프레임웍은 SW-CMM과 유사
          * IPD-CMM : Integrated Product Development Capability Maturity Model. 고객 요구를 보다 잘 충족시키기 위하여 소프트웨어 제품의 생명주기 동안에 각각 진행되는 프로젝트들이 적시에 협동할 수 있는 제품 개발체계를 도입하기 위한 모델
          * CMMI : Capability Maturity Model Integration. 모델을 사용하는 입장에서는 각각의 모델을 별개로 적용하는 것보다는 전체적 관점에서 시너지 효과를 내기 위해서는 어떻게 적용할 것인가에 대한 방안이 필요하게 되어 개발된 통합 모델
  • COM/IUnknown . . . . 2 matches
         = IUnknown Interface =
         virtual HRESULT QueryInterface(REFIID riid, void** ppvObject) = 0;
         HRESULT (*QueryInterface) (IUnknown *This, REFIID *This, REFIID riid, void** ppvObject);
         == QueryInterface ==
         C++ 스마트 포인터에서는 참조 카운팅을 이용해서 dangling pointer 문제를 해결한다. boost 의 shared_ptr이 이를 구현한다.
         인터페이스 포인터는 '''QueryInterface(IID_IUnknown, (void**) &pIUnknownInterface)''' 를 통해서 얻을 수 있으며, 이의 유효를 검사하는 것이 가능하다.
  • CategoryCategory . . . . 2 matches
         OriginalWiki와 일관적으로 만드려면 모든 분류는 "Category"로 시작하도록 지정해야 합니다. 물론 다른 방식으로 이름을 붙여도 문제되지 않습니다.
         For more information, see Wiki:AboutCategoriesAndTopics .
  • CauGlobal/ToDo . . . . 2 matches
          * 인터뷰 정리 - [CauGlobal/Interview]
          * Contact Point 별
          * [http://www.dvuser.co.kr/info/sony/dcr-dvd201_review.htm 디지털 캠코더]
  • ChainsawMassacre . . . . 2 matches
         [http://online-judge.uva.es/p/v100/10043.html 원문보기]
         === About [ChainsawMassacre] ===
         === Input ===
         === Sample Input ===
  • CommonPermutation . . . . 2 matches
         [http://online-judge.uva.es/p/v102/10252.html 원문보기]
         === Input ===
         === Sample Input ===
         walking
  • ComputerNetworkClass/Exam2004_1 . . . . 2 matches
         다음은 Distance Vector 와 Link State 의 비교이다. 각 부분을 적으시오.
         Multicasting 시 확장방법
  • CppStudy_2002_2/슈퍼마켓 . . . . 2 matches
          * inventory -- 산 물건의 목록을 보여준다
         >>> inventory
  • CryptKicker . . . . 2 matches
         [http://online-judge.uva.es/p/v8/843.html 원문보기]
         === Input ===
         === Sample Input ===
         또 gh, ing, ed, the, a 와같은 자주출현하는 글자쌍도 존재한다. 만약 암호화된 코드에 덩그라니 한글자짜리 x 가 존재한다면 그것은 a일 가능성이 높아진다. 또 qer가 있따면 이것은 the가 될 확률이 높아지는것이고.
  • CubicSpline/1002/test_tridiagonal.py . . . . 2 matches
         if __name__=="__main__":
          unittest.main()
  • DecomposingMessage . . . . 2 matches
         === Decomposing Message ===
          controlInitialize();
          controlTerminate();
  • DevPartner . . . . 2 matches
         솔루션탐색기에서 솔루션의 속성 페이지(ALT+ENTER)를 열면, "Debug with Profiling"이란 항목이 있습니다. 이 항목의 초기값이 none으로 되어 있기 때문에, None이 아닌 값(대부분 native)으로 맞추고 나서 해당 솔루션을 다시 빌드해야합니다. 링크시 "Compuware Linker Driver..."로 시작하는 메시지가 나오면 프로파일링이 가능하도록 실행파일이 만들어진다는 뜻입니다.
  • DirectX2DEngine . . . . 2 matches
          * SDK는 이 주소로 받으세요 : [http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=1FD20DF1-DEC6-47D0-8BEF-10E266DFDAB8&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f5%2ff%2fd%2f5fd259d5-b8a8-4781-b0ad-e93a9baebe70%2fdxsdk_jun2006.exe DOWNLOAD]
          * SVN 이용 : svn://zeropage.org/home/SVN/rhasya/dxengine
  • EdsgerDijkstra . . . . 2 matches
          * http://www.cs.utexas.edu/users/EWD/indexEWDnums.html - Dijkstra 의 컬럼들을 읽을 수 있는 곳.
          * [http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD227.PDF StepwiseProgramConstruction] - Structured Programming
  • EmbeddedGogo . . . . 2 matches
         = EmbeddedLinux =
         부트로더 공부할려면 어셈블리하고 인텔 CPU에 대해 우선 공부해야 될텐데 ---[fnwinter]
  • EnglishSpeaking/TheSimpsons . . . . 2 matches
         [[pagelist(^EnglishSpeaking/TheSimpsons/S01)]]
         [EnglishSpeaking/2011년스터디]
  • ExploringWorld/참고링크 . . . . 2 matches
         Java Servlet Container
         ExploringWorld
  • ExtractMethod . . . . 2 matches
         See ["Refactoring/ComposingMethods"]
  • ExtremeBear . . . . 2 matches
         ["ExtremeProgramming"] 을 실전과 같이 경험해 보기 위한 스터디.
          * [http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/crc/ CRC cards] : CRC cards Tutorial
  • ExtremeBear/OdeloProject . . . . 2 matches
          * gui사용(swing)
          * tdd와 PairProgramming 을 익숙하게 단련한다.
  • FileStructureClass . . . . 2 matches
         교수: 강현철 교수님 [http://dblab.cse.cau.ac.kr/FS/index.html 수업홈페이지]
         === examination ===
  • FoafMacro . . . . 2 matches
         ||[[Foaf(http://internetalchemy.org/iand/foaf.rdf)]]||
         ||[[Foaf(http://internetalchemy.org/iand/foaf.rdf,homepage)]]||
  • FortuneMacro . . . . 2 matches
          1. fortune이 설치되어 있어야 한다. {{{/usr/bin/fortune, /usr/share/games/fortune/}}}
          1. 이게 맞지 않는다면 {{{plugin/fortune.php}}}에서 소스를 직접 조정해 주세요.
  • GarbageCollection . . . . 2 matches
         2번째 경우에 대한 힌트를 학교 자료구조 교재인 Fundamentals of data structure in c 의 Linked List 파트에서 힌트를 얻을 수 있고, 1번째의 내용은 원칙적으로 완벽한 예측이 불가능하기 때문에 시스템에서 객체 참조를 저장하는 식으로 해서 참조가 없으면 다시는 쓰지 않는 다는 식으로 해서 처리하는 듯함. (C++ 참조 변수를 통한 객체 자동 소멸 관련 내용과 관련한 부분인 듯, 추측이긴 한데 이게 맞는거 같음;;; 아닐지도 ㅋㅋㅋ)
         특정 주기를 가지고 가비지 컬렉션을 하기 때문에 그 시점에서 상당한 시간상 성능의 저하가 생긴다. 이건 일반적 애플리케이션에서는 문제가 되지 않지만, time critical 애플리케이션에서는 상당한 문제가 될 부분임. (Incremental garbage collection? 를 이용하면 이 문제를 어느정도 해결하지만 리얼타임 동작을 완전하게 보장하기는 어렵다고 함.)
  • Genie . . . . 2 matches
         [VendingMachine/재니]
  • Hacking/20040930첫번째모임 . . . . 2 matches
          cd, pwd, man, ls, cp, rm, mkdir, rmdir, mv, cat, more, less, grep, find, echo, uname, adduser, passwd, id, su
         [Hacking]
  • HerdingFrosh . . . . 2 matches
         [http://online-judge.uva.es/p/v101/10135.html 원문보기]
         === About [HerdingFrosh] ===
         === Input ===
         === Sample Input ===
  • HolubOnPatterns . . . . 2 matches
          * [http://www.yes24.com/24/goods/1444142?scode=032&OzSrank=1 Holub on Patterns: Learning Design Patterns by Looking at Code] - 원서
  • HowBigIsIt? . . . . 2 matches
         [http://online-judge.uva.es/p/v100/10012.html 원문보기]
         [http://online-judge.uva.es/p/v100/p10012.gif]
         === Input ===
         === Sample Input ===
  • IDL . . . . 2 matches
         [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 을 사용하도록 하자.
  • InterIconMap . . . . 2 matches
         http://chemie.skku.ac.kr/wiki/pds/InterIconMap/wkpgmail.png 140x21
         TwinPages http://chemie.skku.ac.kr/wiki/imgs/moni2/inter.png 16x16
  • IsThisIntegration? . . . . 2 matches
         [http://online-judge.uva.es/p/v102/10209.html 원문보기]
         === IsThisIntegration? ===
         [http://online-judge.uva.es/p/v102/p10209.jpg]
         === Input ===
         === Sample Input ===
         || 하기웅 || C++ || 2시간 || [IsThisIntegration?/하기웅] ||
         || 허준수 || C++ || ? || [IsThisIntegration?/허준수] ||
         || 김상섭 || C++ || ㅡㅜ || [IsThisIntegration?/김상섭] ||
  • JSP . . . . 2 matches
         == Install and Excute ==
         1. http://tomcat.apache.org 에서 4.1 v 받아서 Install
         == JSP Programming ==
         3. C:\Program Files\Apache Group\Tomcat 4.1\bin 의 startup
         == Index ==
  • Java Script/2011년스터디/박정근 . . . . 2 matches
          document.write("Infor : "+s,"<br>")
          for (var i in person)
          for (var i in person)
  • JavaScript/2011년스터디/박정근 . . . . 2 matches
          document.write("Infor : "+s,"<br>")
          for (var i in person)
          for (var i in person)
  • JavaStudy2002/해온일 . . . . 2 matches
          * 첫째주 ... '우리가 배우는 자바라는 것이 과연 무엇일까?' 와 'OOP in Java' 라는 것에 대해 공부.
          * Structerd Programming Style 시연 Java, C
  • JavaStudy2004 . . . . 2 matches
          * 추천도서 - Java HowToProgram - Deitel사. 2학년 전공 JavaProgrammingClass에서 교재로 사용하는 책. 간단하고 쉽다. 자바를 처음 시작하는 이에게 추천도서
          그리고 실습 같은것을 2명 짝 PairProgramming으로 하는걸 생각하고 있습니다
  • KDP_토론 . . . . 2 matches
          * 로그인의 실명화 - UserPreferences 에 자신의 이름과 password를 등록시키면 자신의 SessionID가 붙는 MoinMoin 바로가기를 얻을 수 있을것임. 그 링크를 즐겨찾기에 놓고 사용하면 자동으로 로그인이 된 상태로 모인모인에 접속가능.
  • Karma . . . . 2 matches
         [http://karma-runner.github.io/0.10/index.html]
         [http://www.yearofmoo.com/2013/01/full-spectrum-testing-with-angularjs-and-karma.html]
  • LoveCalculator . . . . 2 matches
         || 김태훈[zyint] || C++ || 1시간23분 || [LoveCalculator/zyint] ||
  • MIT박사가한국의공대생들에게쓴편지 . . . . 2 matches
         http://www.allblog.net/GoPage/goPageFrame.aspx?http%3a%2f%2focomet.jaram.org%2ftt%2findex.php%3fpl%3d158 에서 퍼옴.
         특히 한국 중 고등학교에서 가르치는 수학의 수준이 미국의 그것보다 훨씬 높기 때문에 공대생들로서는 그 덕을 많이 보는 편이죠. 시험 성적으로 치자면 한국유학생들은 상당히 상위권에 속합니다. 물론 그 와중에 한국 유학생들 사이에서 족보를 교환하면서 까지 공부하는 친구들도 있습니다. 한번은 제가 미국인 학생에게 족보에 대한 의견을 슬쩍 떠본일이 있습니다. 그랬더니 정색을 하면서 자기가 얼마나 배우느냐가 중요하지 cheating 을 해서 성적을 잘 받으면 무얼하느냐고 해서 제가 무안해진 적이 있습니다. (물론 미국인이라고 해서 다 정직하게 시험을 보는 것은 물론 아닙니다.)
  • MobileJavaStudy . . . . 2 matches
          * ["MobileJavaStudy/NineNine"] - 구구단을 종류별로 출력하는 프로그램 제작 (9월 20일 까지)
  • NumericalAnalysisClass/Report2002_2 . . . . 2 matches
         (3) Compute and plot the piecewise cubic interpolate L3(x)
         (4) Compute and plot the cubic N-spline S3(x)
  • OpenCamp . . . . 2 matches
          * 일시: 2014년 Spring Semester 예정
          * 주제: Programming Language and its Application(프로그래밍 언어와 그 응용)
  • OurMajorLangIsCAndCPlusPlus/2006.1.5 . . . . 2 matches
         [OurMajorLangIsCAndCPlusPlus/string.h]
         [OurMajorLangIsCAndCPlusPlus/print]
  • Perforce . . . . 2 matches
         프로그램은 서버, 클라이언트 환경으로 관리되며, 서버는 소스의 모아서 관리한다. 서버 프로그램은 유닉스, 맥, MSWin 버전으로 제공된다. 클라이언트는 GUI, CMD 버전의 툴을 지원하며 다양한 OS 에서 이용가능하다. 또한 IDE 와 연동역시 지원한다. (IDE에는 3dmax, maya, photoshop, office 등을 포괄하는 방대한 시스템)
         = Relate Links =
  • PluginInfoMacro . . . . 2 matches
         [[PluginInfo(PluginInfo)]]
  • PosixThread . . . . 2 matches
         http://www-106.ibm.com/developerworks/linux/library/l-pthred.html
         http://www-106.ibm.com/developerworks/linux/library/l-posix1.html
  • PowerOfCryptography . . . . 2 matches
         === Input ===
         === Sample Input ===
         === Hint ===
         [PowerOfCryptography/Hint]
  • ProgrammingLanguageClass/Exam2002_2 . . . . 2 matches
          * pass by value-result, pass by reference, pass by name 에서 actual parameter 로의 Binding Time 을 서술하시오
  • ProjectLegoMindstorm . . . . 2 matches
         = ProjectLegoMindstorm (2008) =
         == LINK ==
          * [http://mindstorms.lego.com/eng/Hong_Kong_dest/Default.aspx 레고 마인드스톰 홈피]
  • ProjectPrometheus/Estimation . . . . 2 matches
         Login System 0.5
         Admin System 0.5
  • ProjectPrometheus/Tips . . . . 2 matches
         Seminar:UsingIdle
  • PyOpenGL . . . . 2 matches
         PyKug:PyOpenGL Python OpenGL Binding. Python 으로 [OpenGL] 프로그래밍을 하게끔 도와준다.
  • QueryMethod . . . . 2 matches
          string status;
          string& getStatus() {
  • ReleaseDebugBuildStartGo의관계 . . . . 2 matches
          inline bool isValid(){return b_isValid_;}
  • ReverseAndAdd . . . . 2 matches
         [http://online-judge.uva.es/p/v100/10018.html 원문보기]
         일단 어떤 수를 받아서 그 수를 뒤집은 다음 뒤집어진 수를 원래의 수에 더하는 과정을 뒤집어서 더하기라고 부르자. 그 합이 회문(palindrome, 앞뒤 어느 쪽에서 읽어도 같은 말이 되는 어구. 예:eye, madam, 소주만병만주소)이 아니면 회문이 될 때까지 이 과정을 반복한다.
         === Input ===
         === Sample Input ===
  • RoboCode . . . . 2 matches
          * [http://robocode.alphaworks.ibm.com/docs/robocode/index.html RoboCode API(English)]
         ||[RoboCode/random], [RoboCode/sevenp], [로보코드/베이비] , [RoboCode/msm], [RoboCode/siegetank],[RoboCode/ing] || 2005년 데블스캠프 ||
  • RuminationOnC++ . . . . 2 matches
         = Intro =
          '''Technique in book'''
          - 제본하자 -_-; - intaek
  • SWEBOK . . . . 2 matches
         [http://object.cau.ac.kr/selab/lecture/undergrad/20021/참고자료/SWEBOKv095.pdf SWEBOK] - Software Engineering Body of Knowledge
  • StandUpMeeting . . . . 2 matches
         Xper:StandUpMeeting
         ExtremeProgramming
  • SummationOfFourPrimes . . . . 2 matches
         [http://online-judge.uva.es/p/v101/10168.html 원문보기]
         == Input ==
         [http://www.n2n.pe.kr/util/find_prime.php 소수판정기]로 답을 확인해볼 수 있겠네요. --[Leonardong]
  • SuperMarket . . . . 2 matches
          * inventory -- 산 물건의 목록을 보여준다
         >>> inventory
  • TestDrivenDevelopmentByExample . . . . 2 matches
         개인적으로 TDD 중 빠른 테스트 통과를 위해 가짜 상수로 쌓아나갈때 어떻게 '중복' 이라 하여 ["Refactoring"] 할까 고민했었는데, 이전의 SeminarHowToProgramIt 에서의 예제 이후 이 문서에서의 예제가 깔끔하게 풀어주네요. 인제 한번 들여다 본 중이긴 하지만, 저자가 저자인 만큼 (KentBeck).~
  • TheWarOfGenesis2R . . . . 2 matches
          == Doing ==
         = Link =
         ["2dInDirect3d"] [Direct3D] ["프로젝트분류"]
  • TheWarOfGenesis2R/일지 . . . . 2 matches
          * 파일을 읽고 쓸 수 있다. (Text모드도 Binary모드도 OK)
          * 초기에는 Text모드로 스크립트를 만들고, 추후에 Binary모드로 스크립트를 만들 계획
  • Ubiquitous . . . . 2 matches
          유비쿼터스 컴퓨팅의 최종 목표는 '''‘고요한 기술’'''의 실현이다.('사라지는 컴퓨팅 계획(Disappearing Computing Initiative)')
  • UglyNumbers/1002 . . . . 2 matches
          for x in [2,3,5]:
          print idx,currentCount
  • UniversalsAndParticulars . . . . 2 matches
         WardCunningham은 이런 말을 했다. 작지만 유용한 프로그램을 매일 만들어봐라. 복잡하고 큰 걸 만들다 보면 중요한 아이디어가 감추어져 버릴 수 있다.
         자바 스윙에서 어떤 API를 통해 어떻게 그림을 그리는지를 가르치기 보다, Event Driven Programming을 가르치되, 스윙이라는 맥락을 방편으로 이용해 가르친다. 해당 프레임웍의 API가 복잡한 경우, 학습자들은 오히려 그 API를 외우고 공부하느라 더 중요한 것을 잊을 수 있다. 따라서 이런 경우 가르치는 사람이 미리 좀 더 추상적인 차원의 레이어를 만들어(이를 교육학에선 스캐폴딩이라 한다) 제공할 수 있다.
  • VMWare . . . . 2 matches
         유사제품으로 [Parallels] ( [eXtremeProgramming] 으로 개발되었다고 함. Mac 버전의 경우 윈도우 환경을 거 70%~90% 퍼포먼스로 구현했다고 들었음) 가 있다.
         유사기술을 적용한 Linux [Xen] 커널이 등장하기 시작했으며, Xen 은 차후 나타나게될 멀티코어 CPU 환경(플랫폼 자체가 완전히 다른)에 적합한 커널의 구축을 목표로 하고 있다고 한다. (완전히 다른 프로세서라면 당연히 해당 머신에 접근하는 인터페이스 역시도 다를텐데 XEN 을 이용해 해당 부분을 추상화시켜서 접근하는 식으로..) 현재에는 해당 기술을 보안 분야에서 이용하기 위한 연구가 진행중이며 기존의 단일 커널하의 커널모드, 유저모드 식의 구분이 아닌 관리자 커널, 애플리케이션 커널과 같은 구분으로 2개의 서로 다른 커널을 구현해 커널 단에서 애플리케이션이 머신에게 직접적으로 접근할 가능성을 원천 차단하는 방식의 연구가 되고 있다.
         = RELATED LINKS =
  • VisualStuioDotNetHotKey . . . . 2 matches
         Shift+Alt+F12 : 이거 찾기보다 좋더군요. 함수나 define등 아무거나에서 사용
         Ctrl-Shift-G : #include "파일명" 에서 "파일명" 파일로 바로 직접이동
  • WardCunningham . . . . 2 matches
         ExtremeProgramming의 세 명의 익스트리모 중 하나. WikiWiki 창안자.
         see NoSmok:WardCunningham
  • WeightsAndMeasures . . . . 2 matches
         [http://online-judge.uva.es/p/v101/10154.html 원문보기]
         === Input ===
         === Sample Input ===
          테스트 케이스가 필요하다면 꽁수가 있기는 하다. Java로 standard input으로 읽는 라인을 합쳐다가 모조리 특정 URL에 포스트 하도록 하는 코드를 만들어 업로드 한다. 그러면 심사때 사용하는 테스트 케이스를 알 수 있다. --JuNe
  • XpWeek . . . . 2 matches
         한 주 동안 ExtremeProgramming을 '''최대한''' 체험해보기.
         See also [ExtremeBear],[ExtremeProgramming]
  • YongAn처음화면 . . . . 2 matches
         [Beginning_XML]
  • ZIM/UIPrototype . . . . 2 matches
         http://zeropage.org/~reset/zb/data/Zim_LoginMode.gif
          * '''Message Window'''
  • ZPHomePage . . . . 2 matches
          * http://www.click4u.pe.kr/index_0.html - 홈페이지를 만드는데 필요한 다양한 내용들이 들어있습니다.^^
          * http://cafe.naver.com/rina7982.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=750 - 웹안전색상
  • ZeroPageMagazine . . . . 2 matches
         어떤 식으로 시작해야 할까요? [유쾌한이노베이션]에서 읽은 내용을 한 번 실험해보면 재밌겠다는 생각을 합니다. 여러 팀으로 나눠서 ZeroPageMagazine의 프로토타입을 만드는거지요. 프로토타입은 완성품이 아니기 때문에, 한 팀에서 여러가지 프로토타입을 만드는 것이 전혀 문제될 것이 없습니다. 오히려 권장할만한 일이죠. 그렇게 프로토타입을 모아 놓고, 좋은 부분을 골라서 합치는 과정을 반복할 수 있을 것입니다.
         AnswerMe ZeroPageMagazine은 앞으로도 계속 만들어나갈 것인가요? 일회성 행사에 그친다면 아쉬움도 많이 있겠지만 앞으로도 계속 만들어나갈 것인지 아니면 한번 만들고 끝낼 것인지에 따라 발간형식이 달라질것 같아서요. 예를들어 직접 인쇄를 해서 ZeroPagers, ZeroWikian들에게 나누어줄 것인지, 혹은 위키위키형식으로 만들어나갈 것인지, 혹은 웹페이지, PDF, ... 등등 발간형태가 여러가지가 될 수 있는데 이에 대해서도 생각해 보아야 할것 같습니다 - [임인택]
  • ZeroPageServer/Wiki . . . . 2 matches
         한글화 중 오타, 띄어쓰기 잘못된곳 , 이해 가지 않은 부분, 어색한 부분, 상황에 맞지 않거나, 이중 해석될수 있는 메세지를 보고해 주세요. 대안도 가능하면 제안해 주세요. --NeoCoin
          아하! CssMarket 에 있는것도 그런게 있네요. 감사합니다. ~ --NeoCoin
  • ZeroPage소개 . . . . 2 matches
          * ZeroPage는 컴퓨터공학부 내에 있는 학술 동아리로서, 올해 21년째를 맞이 하고 있습니다. ZeroPage에서는 Computer Science&Engineering 전반에 걸쳐 구성원들이 하고자하는 분야를 탐구하고, 프로젝트를 진행하고 있습니다. 또, 매주 정모를 통해 구성원들과 자신의 스터디, 프로젝트 진행사항들을 이야기하고 각종 세미나들을 통해 자신이 알고 있는 것을 다른 사람들과 공유하여 구성원들 모두가 함께 발전해나가고자 하는 동아리입니다. 또한 새싹교실과 데블스 캠프와 같이 동아리 구성원이 아닌 학우들도 함께 참여할 수 있는 프로그램을 통해 함께 발전해나가고자 하고 있습니다.
  • [Lovely]boy^_^/USACO . . . . 2 matches
         || ["[Lovely]boy^_^/USACO/PrimePalinDromes"] ||
         || ["[Lovely]boy^_^/USACO/MixingMilk"] ||
  • callusedHand/projects/algorithms . . . . 2 matches
          * '''ACM''' http://www.acm.inf.ethz.ch/ProblemSetArchive.html
          * http://www.inf.bme.hu/contests/tasks/
  • django/AggregateFunction . . . . 2 matches
         = max, min =
          for c in Consequence.objects.values('loss'):
  • erunc0/RoboCode . . . . 2 matches
          * not yet playing.. but this is so exsiting!!!!
  • html5/geolocation . . . . 2 matches
          * Geolocation API 관련 메서드는 모두 window.navigator 객체에 정의
         ||heading||진행방향||
  • html5/web-workers . . . . 2 matches
          * terminate() : 워커 강제 종료
          * window, document사용 불가
  • maya . . . . 2 matches
          * Software engineering
  • stuck!! . . . . 2 matches
         설치법 - [DevCppInstallationGuide]
         '''[http://winapi.co.kr/clec/cpp1/cpp1.htm winapi.co.kr의 C기초강좌] 매우 자세하며 양이 많다. 이것이 교재 적당히씩 읽고 와주세요'''
  • zyint/vb . . . . 2 matches
         [zyint/vb/md5]
         [zyint]
  • 갓헌내기C,C++스터디 . . . . 2 matches
          * playing with C,엡솔루트 C++ , WINAPI , C로 쓴 자료구조론 (이석호 저)
          * playing with C는 내년에 새싹을 가르치는 만큼 스터디 보다는, 누군가를 붙잡고 가르쳐 보는것에 집중해서 공부를 진행
  • 강규영 . . . . 2 matches
          * DeleteMe 실명도 알려 주시면 주시면 안될까요? ;; --NeoCoin
          * DeleteMe 깨갱 ;; --NeoCoin
  • 강연 . . . . 2 matches
          ==== Adrian Tang 교수의 UbiquitousComputing ====
          * [http://www.caucse.net/boarding/view.php?table=board_freeboard&page=1&id=10847 유비쿼터스 컴퓨팅]
  • 객체지향분석설계 . . . . 2 matches
          * 예외1 : 여러 작업에서 중복되는 보조 업무를 유즈케이스로 뽑기도 한다. ex> Login/Logout
         = Link 및 참고자료 =
  • 공업수학2006 . . . . 2 matches
         Advanced Engineering Mathematics 9th ed
  • 그래픽스세미나/6주차 . . . . 2 matches
          PPT파일: Upload:CGseminar6.alz Upload:CGseminar6.a00
  • 김동준/원맨쇼Report/08김홍기 . . . . 2 matches
         [http://inyourheart.biz/zerowiki/wiki.php/%EA%B9%80%EB%8F%99%EC%A4%80 Main으로]
  • 김민재 . . . . 2 matches
          * [Pinple] 프로젝트 구성원
          * [데블스캠프/2013] Speaker - "Opening", "새내기의,새내기에의한,새내기를위한C언어"
  • 김상협 . . . . 2 matches
         이멜 : sainthyup@ 핫 멜 점 컴
         엠에스엔 : sainthyup@ 핫맬컴
  • 대순이 . . . . 2 matches
         안녕 . [http://165.194.87.227/zero/index.php?url=ZeroWiki&title=%B1%E8%C1%F8%C7%CF 클릭하지마요!]
         하이? [http://imagebingo.naver.com/album/image_view.htm?user_id=suk9214&board_no=28496&nid=13589]
  • 대학원준비 . . . . 2 matches
         [http://www.icu.ac.kr/indexa.jsp 입학]
         [http://www.icu.ac.kr/AdmissionIndexList.jsp?tableName=n_anotice# 입학설명회]
         http://www.postech.ac.kr/department/cse/linus/home_kor/admission_06.htm
  • 데블스캠프2003/ToyProblems . . . . 2 matches
         vending machine
         FileInputOutput [파일입출력] RandomFunction
  • 데블스캠프2004 . . . . 2 matches
         == 데블스 캠프 관련 링크 (Link to Devils Camp) ==
          * 현재 가장 많이 사용되는 페이지 위주로 [문서구조조정] 했습니다. 더 좋은 의견 있으면 수정하세요. --NeoCoin
  • 데블스캠프2004준비 . . . . 2 matches
         이번 데블스캠프2004에는 작년과 다른점이나 새로워지는 점같은것은 없나요? --NeoCoin
          당연히 없었습니다. [데블스캠프]의 기본취지를 보시면, '밤새서 회원을 뽑기위한' 것 입니다. [데블스캠프]를 재정의하던지, 새로운 행사로 이름을 바꾸던지 해야지요.--NeoCoin
  • 데블스캠프2005/Socket Programming in Unix/Windows Implementation . . . . 2 matches
         UnixSocketProgrammingAndWindowsImplementation
  • 데블스캠프2006/SVN . . . . 2 matches
         1. Tortoise install
         3. Create visual studio project in that folder.
  • 데블스캠프2006/준비 . . . . 2 matches
          * 앗.. 신입생들의 머리를 확~ 달아오르게 하는 Toy Programing 은 없는거야? ^^; -[상욱]
          * 저기에서 할게 다 Toy Programming인데... 뭘 낼지를 정해야지.. --[선호]
  • 데블스캠프2009/금요일/연습문제/ACM2453/조현태 . . . . 2 matches
         main(a,b,c){while(scanf("%d",&a)&&a){for(b=0;!(a&1<<b);++b);for(c=1<<b;a&c;c<<=1);printf("%u\n",(a|c)&~(c-1)|(c>>b+1)-1);}}
  • 데블스캠프2009/월요일/연습문제/HTML-CSS/강소현 . . . . 2 matches
         pedding:0px;
         margin:0px;
  • 데블스캠프2009/월요일/연습문제/HTML-CSS/서민관 . . . . 2 matches
         padding:0px;
         margin:0px;
  • 데블스캠프2009/화요일후기 . . . . 2 matches
         == winAPI - 안혁준 ==
          * 전 늘 WinAPI가 어렵습니다. 욕이 절로나와요. --유상민09
  • 데블스캠프2012/넷째날/묻지마Csharp/Mission2/서민관 . . . . 2 matches
          int oldYear = dateTimePicker1.Value.Year;
          int currentYear = dateTimePicker2.Value.Year;
  • 데블스캠프2012/다섯째날/후기 . . . . 2 matches
          * [권순의] - OMS에서도 관련된 주제로 이야기 하고 이번 시간에도 관련 주제로 이런 저런 이야기를 들었네요. Winapi를 가지고 하는거라 뭐랄까.. 이거 뭔가 너무 날거인거라 ㅋㅋ 거기다 소스도 참 ㅋㅋㅋㅋ 희성이도 인터넷에 돌아다니는 것도 이것과 비슷하다고 하는데 ㅋㅋ 뭐.. 비트맵이 예전엔 사양이 안 좋은 상황에서 쓰이다 보니 그런거니까 라고 ㅎㅎ.. 재미있었습니다.
          * [김희성] - Win32API를 할려다가 OMS에 없었던 12학번이 많아 OMS에서 했던 주제를 다시 했는데, 반응이 그다지 좋지 않은 것 같습니다. 비트맵 특성상 변수가 많이 쓰이는데 이해도를 위해 변수명을 축약이 아닌 풀네임으로 작성한 것이 오히려 가독성을 낮추어 이해를 어렵게 한 것 같습니다. 오랜만에 비트맵 했더니 예제 시연에서 삑나고... 여러가지로 문제가 많았던 것 같습니다.
  • 땅콩이보육프로젝트2005 . . . . 2 matches
          * [http://nlp.kookmin.ac.kr/HAM/kor/index.html 한국어 형태소 분석기]
  • 레밍즈프로젝트 . . . . 2 matches
         [http://kin.naver.com/knowhow/entry.php?eid=nBJQ5nKhX9tqUom8yL2H1B/AEoQj3M68]
         [CVS], [VisualStudio]6, [MFC], [XP]의 일부분, [FreeMind]
  • 문자반대출력 . . . . 2 matches
         === input ===
         || 김태훈([진트]) || C || . || [문자반대출력/김태훈zyint] ||
  • 반복문자열 . . . . 2 matches
         === input ===
         || 김태훈 || C || || [반복문자열/김태훈zyint] ||
  • . . . . 2 matches
         [DevCppInstallationGuide] // 인스톨 가이드 입니다. <- 필수!!
         [http://winapi.co.kr/clec/cpp1/cpp1.htm winapi.co.kr의 C기초강좌]
  • 상협/Diary/7월 . . . . 2 matches
          * Designing Object-Oriented Software 이책이랑 Refactoring 책 빌려야징..
  • 새싹교실/2012/절반/중간고사전 . . . . 2 matches
          * #include와 헤더파일에 관한 성질
          * continue, break의 차이에 대해서
  • 새싹교실/2013/이게컴공과에게 참좋은데 말로설명할 길이 없네반 . . . . 2 matches
          (나는 그전에 WIN API를 준비해야할 것같다.)
         - 진도 : 컴퓨터 역사, 컴퓨터 언어의 역사, 컴퓨터 구조(미약하게.. 운영체제가 뭔지, 메모리가 뭔지, 컴퓨터가 뭔지.), 자료형, main함수(기본 구조)
         - 진도: 메모리 구조(미약하게), printf와 scanf 정말 간단하게 다음시간에 더 자세하게 쓰임새 알려주어야 할뜻 , 제어문 간단한 사용법과 필요성
  • 새회원을받으면 . . . . 2 matches
         현재 위키 실험 중인가 보군요. 그런데 왜 이리 체계 없이 느껴지는지, 지금 일련의 행사에 대한 계획이나 기록 어디 없나요? --NeoCoin
          - [http://netory.org 네토리]처럼 정기적(또는 비정기적)인 무언가가 있었으면 좋겠습니다. 굳이 그것이 모임의 형태가 아니더라도 ''새내기들이 자신이 제로페이지에 지원하였다는 사실을 잊어버리지 않게''해 주는게 필요하지 않을까요? 예를 들면, 숙제를 내준다던지, ProgrammingParty 같은 것들이요. - [임인택]
  • 서로간의 참조 . . . . 2 matches
          pView->UpdateWindwo();
          AfxGetMainWnd
  • 소수점자리 . . . . 2 matches
         ios_base::fmtflags initialState = cout.setf(ios_base::fixed, ios_base::floatfield);
         cout.setf(ios_base::showpoint);
  • 송수생 . . . . 2 matches
         [BeingALinuxer]
  • 숫자를한글로바꾸기 . . . . 2 matches
          || 김태훈 || C || 40min || [숫자를한글로바꾸기/김태훈zyint] ||
  • 식인종과선교사문제/변형진 . . . . 2 matches
         이 문제를 푸는데 흔히 이용되는 Backtracking 기법을 사용하지 않고 구현하는 방법이 없을까 해서, Case-by-case로 최소한의 상황에 대한 처리 방법을 지정해보았다.
         여기서는 구현하지 않았지만, 모든 cases에 대해 각각 어떻게 처리할 수 있는지를 먼저 컴퓨터가 계산하여 DB에 담아서 일괄 처리하면, 이 문제가 상당히 복잡해질 경우 Backtracking보다 나은 효율을 보일 수도 있지 않을지?
  • 양아석 . . . . 2 matches
          =for number in range(num)
         facing_north():북쪽을보는가
  • 요정 . . . . 2 matches
         또 트롤이란 요정이 있는데, 키는 대략 5-7cm 가량이다. 반면에 스프라이트라고도 불리는 꽃의 요정 데번은 약 12cm정도였다. 틸베리의 게르마스가 쓴 책에는 불과 8cm 정도밖에 안되는 포튜니스란 요정이 나오는데, 서양 사람들은 이 요정을 두려워했다. 그래서 그 시대 사람들은 요정을 ' good fellow' 또는 'kind people' 이라고 불렀다.
          정확히 서양의 동화 신화에서 등장하는 요정으로 생각하면 되겠죠. 반지제왕이 나오기 전에 원래 구설 동화랄까요? [위키요정] 이야기 하면서 [요정] 이야기를 써야 할곳을 찾다가 가지고 온거니까요. --NeoCoin
  • 위키개발2006 . . . . 2 matches
         || 페이지및 사이트 include || 남상협 ||
          owiki_join - 해당 서버, 가입자들이 있는 서버
  • 유상민 . . . . 2 matches
         #redirect NeoCoin
         [NeoCoin]
  • 이민석 . . . . 2 matches
          * 06월 06일 OMS 발표: http://zeropage.org/seminar/61737
          * 10월 29일 OMS 발표: http://zeropage.org/seminar/63770
  • 일취집중후각법 . . . . 2 matches
         ["Refactoring"]의 도를 얻기 위한 수련법의 하나. see also HowToStudyRefactoring
  • 정규표현식/스터디/메타문자사용하기 . . . . 2 matches
          ||{{{[:graph:]}}} ||{{{[:print:]}}}와 동일하나 빈칸제외 ||
          ||{{{[:print:]}}} ||출력가능한 모든 문자 ||
  • 정모/2002.10.30 . . . . 2 matches
          * 부족한 내용을 채워주세요. --["neocoin"]
          ["NextEvent"] 에 아이디어를 풀어주세요 --["neocoin"][[BR]]
  • 정모/2011.10.12 . . . . 2 matches
          * Dynamic Programming으로 문제를 풀어보려 했으나 진경이를 제외하고는 accept시키지 못하여 재귀문으로 구현하는 것부터 해보기로 하였습니다.
          * [Spring/탐험스터디]
  • 정모/2011.8.29 . . . . 2 matches
          * [:Spring/탐험스터디 스프링 스터디]
          * [:EnglishSpeaking/2011년스터디 잉글리쉬 톩킹 스터디]
  • 정모/2012.1.13 . . . . 2 matches
          * Spring - 김수경, 서지혜
          * [iPhoneProgramming/2012년프로젝트] - Apple에서 제공해주는 예시들을 참고하는 것이 어떻겠냐는 조언을 받음.
  • 정모/2012.1.6 . . . . 2 matches
          * [http://valleyinside.com/2012-technology-trend/ 2012년 기술 트렌드]
          * Spring - 김수경, 서지혜
  • 정모/2012.5.14 . . . . 2 matches
          * [Spring/탐험스터디]
          * 조금 늦어서 중간부터 들었지만 OMS 재미있게 들었습니다. 키보드 할 때 들어와서 키보드에 대한 이야기인가 했더니 한글에 대한 발표였네요. 사실 저는 Windows를 항상 주로 사용해왔기 때문에 한글 사용 관련하여 크게 불편함을 느낀 적은 없었는데 이번 OMS를 들으며 다양한 언어를 지원하기 위해 고려해야하는 점에 대해 생각해보게 됐습니다. PC실 관리는 사용하는 사람들이 불편할 때 학회실로 오게 하는 것이 좋다고 생각합니다. 그게 관리하는 쪽에서도, PC실 이용하는 쪽에서도 편한 방법이죠. - [김수경]
  • 정모/2012.7.11 . . . . 2 matches
          * Spring - simple Wiki 만들기 진행.
          * Chrome plugin - 영어 공부가 하기 싫어서 만듦. 우클릭 방지 풀기.
  • 정모/2012.8.1 . . . . 2 matches
          * Spring - 하이버네이트로 심플위키 만들고 있음, 하이버네이트는 사용하기에 난이도가 높은 것 같음.
          * 교수님 만나고 이런저런 개인 사정으로 스터디도 중간중간 빠지고 정모도 늦고...... Planning poker 좀 듣고 싶었는데 말이죠... - [서민관]
  • 정모/2012.9.24 . . . . 2 matches
          * Spring
          * Pinple
  • 정모/2013.2.26 . . . . 2 matches
          * [김태진] 학우가 3월 11일 정모시간에 Data Mining에 관한 간단한 세미나를 할 예정입니다.
  • 정모/2013.3.18 . . . . 2 matches
          * Q : 개발자가 필요하셔서 오셨다고 했는데, 어떤 개발자를 원하시는지? A : everything(...), 안드로이드 할 수 있으면 된다고 생각함. 서버 유지관리도. 아이폰 점유율 망해서 안 할 생각.
          * (의견)가입서를 쓰는 것 자체가 소속감을 불러 일으키므로 있었으면 좋겠다. (Off-line 용)
  • 정모/2013.7.15 . . . . 2 matches
          * [남근우] 회원의 'Introduction to psychology'
         == GDG miniCon 2013 ==
          * 오늘(15일) 7시부터 코엑스 그랜드볼룸에서 진행합니다. (https://sites.google.com/site/gdgminicon)
  • 제로위키이용의어려움 . . . . 2 matches
         그래서, 현 ZeroWiki 쓰기를 막아 버리고, 기존 사용자들과 새로운 사용자들과 새로운 위키에서 작업하는 것도 좋을것이라는 생각이 들었습니다. NeoCoin은 그냥 삭제를 생각했는데, [1002]는 처음에는 그냥 모든 Contents 를 앞으로 한두달간 막아 버리고, 새로운 규칙들이 생기면 기존 contents 를 녹여가는 것을 생각했습니다. 그리고 이야기 중에서 현 ZeroWiki 를 SisterWiki 로 연결한 새로운 위키도 괜찮다는 생각이 들었습니다.
         --NeoCoin
  • 주민등록번호확인하기 . . . . 2 matches
         || 김태훈([zyint]) || C || 40분? || [주민등록번호확인하기/김태훈zyint] ||
  • 지금그때 . . . . 2 matches
         [지금그때/OpeningQuestion]
         지금그때2012 in [ZeroPage성년식]
  • 지금그때2003/ToDo . . . . 2 matches
          * 재 공지 NeoCoin (V) [지금그때2003/선전문]
          NeoCoin 군은 페이지 보는대로 외부 링크로 사용하시길.
  • 지금그때2003/규칙 . . . . 2 matches
          ==== 게임 규칙(앞면 - index card 구멍이 왼쪽) ====
          a. 선호, 인수, 상민 Seminar:SimpleRule Test 금요일 1시간 동안 진행 (V)
  • 지금그때2006 . . . . 2 matches
          [여섯색깔모자]와 [MindMap]을 활용합니다.
          * 주제뽑기 - [지금그때/OpeningQuestion]
  • 책거꾸로읽기 . . . . 2 matches
         얼마 전부터 글로벌 기업들은 과거 자기네 땅에서 자기나라 사람들을 고용해 처리하던 고객관리며 회계, 물류 같은 이른바 백 오피스(Back Office)업무를 인도에 넘겨주고 있다. 주된 이유는 비용을 절감하기 위해서다. BPO(Business Process Outsourcing)산업이 번성하면서 인도는 '''세계의 사무실'''이라는 별명까기 얻게 됐다. 인도에서 BPO산업이 숙성한 이유는 여러가지다. 먼저 영어가 되는 직원들을 쉽게 구할 수 있고, IT산업이 발달해 멀리 떨어진 본국 기업과도 불편 없이 일할 수 있다는 장점이 있다. 재밌는 건 여기에 절묘한 '''황금분할'''이론도 숨어 있다는 사실이다. 미국동부와 인도는 딱 12시간의 시차가 있다. 미국인들은 잠을 잘 때 인도인들은 일을 할 수 있다는 예기이다. 적은 비용을 들여서 쉬지 않는 24시간 업무 체제를 가동시키는 셈이다. 하지만 요즘 미국인들의 '''인도인들이 일자리를 빼았는다'''는 불만으로 정치적 문제로 비화되기까지 이르었다.
  • 책분류Template . . . . 2 matches
         DeleteMe when you fill in this page (이 페이지를 채워 넣을 때 삭제해 주세요)
          * My Point
  • 타도코코아CppStudy/0811 . . . . 2 matches
         || Seminar:SpiralArray || . || . || . ||
         || ZeroWiki:Telephone || 수진 || Upload:telephone_sujin.cpp || . ||
  • 통계청 . . . . 2 matches
         [http://kosis.nso.go.kr/cgi-bin/sws_999.cgi?ID=DT_1WB41&IDTYPE=3 총독서량]
         독서 통계는 5년 마다 한번씩이냐? 왜 아직도 업데이트가 안되는지.. 느낌표 끝나서 조사하기 싫은건가?--NeoCoin
  • 파스칼삼각형/김남훈 . . . . 2 matches
         (define (pascal r c)
         문제는 내가 scheme 시스템에서 stdin stdout 을 어떻게 다루는지 몰라서 그냥 함수만 만들었다는 점.
  • 프로그래밍잔치/둘째날후기 . . . . 2 matches
         전자수첩을 하기로 하고.. 샌드위치를 먹으며 각자의 역할과 작은 팀을 나누었고 칠피에 올라가서 시작.. 언어는 C++, MFC 툴킷을 사용하기로 했다. 그러나.. 총 개발시간의 절반을 MFC 와 싸우다가.. 인수군의 제안과 창섭군과 은지누나의 동의로 JAVA 로 언어를 바꾸고.. 인수군은 전자계산기를 기웅군, 은지누나와 페어를 하며 짜고 창섭군은 상욱군과 함께 전화번호부를 짜던 중 창섭군의 JAVA 실력 부재와 swing 경험 부족으로 인해(ㅜ.ㅜ) 은지누나와 상욱은 페어를 바꾸고.. 결국 어설픈 틀의 전화번호부와 계산기를 합치고 C++ 로 짜여진 상욱군의 만년달력을 끝으로 시간종료.
         창섭이나 인수가, 자신들의 팀프로젝트때 어떻게 했었는지 (특히 창섭.. 내가 자신과 Pair를 할때 어떤 방법들을 이용했었는지) 한번쯤 생각했더라면 좀 더 좋은 결과가 있지 않았을까. GUI Programming 먼저. UI 가 먼저되면 역시 좀.. 특히 사람들이 MFC와 Java 에 익숙하지 않다고 할때.
  • 피보나치/이승한 . . . . 2 matches
          print n1+n2
         if __name__ == '__main__':
  • 피보나치/임인택 . . . . 2 matches
         #using iteration w/o array (or anytype like array)
          for i in range(0, num-2):
  • 학회간교류/08 . . . . 2 matches
          * TGWings
          * 제로페이지, PCRC, JARAM, TGWING, 숭실대
          * 자람에 연락은 제가 하고 TGWing에는 승한형이 하기로. 일단 연락에 대한 회답이 오길 기다림 2008.11.30 - [김홍기]
  • 함수포인터 . . . . 2 matches
         == link ==
         [http://www.cs.sfu.ca/%7Ecameron/Teaching/383/PassByName.html 5. html 문서]
  • 혀뉘 . . . . 2 matches
          * http://cyworld.com/rubywind
          * 추억만듦... since 1991.3.27
  • 회원정리 . . . . 2 matches
         경영학에서는 최근들어 조직이론에 패러다임 이동이 있습니다. 흔히들 말하는 군대식, 위계식, 고정적 조직에서 네트워크식, 수평적, 동적 조직으로의 변화이지요. 이합집산이 쉬워졌습니다. 조직과 조직간, 개인과 개인간의 결합력(coupling)이 약해졌습니다. 하지만 한번 모인 이상 응집력(cohesion)은 높습니다. 꼭 원하는 사람들만 모일 수 있죠. 대학사회에서도 비슷한 현상들이 나타나고 있지 않나 생각합니다. 예전에는 뭔가 큰 조직에 발을 담궈놓아야 편안함과 안정감을 느꼈는데 이제는 그렇지 않습니다. "개인주의적"이라고 비판을 받기도 하지만 현실을 부정할 수는 없을 듯 합니다. 그렇다면 변화하는 패러다임에 맞는 동아리 활동은 어떤 모양새여야 할까요?
         이전 99년도 즈음에 소위 'Filtering' 이라는 말이 있었습니다. 초기에 우루루 몰리는 회원, 한학기 반이 지난뒤 우루루 사라지는 현상을 보면서 일종의 회원정리 차원으로 한 일이죠. 하지만, 그 이후 학과 내 비 ZP 사람들이 ZP 에 대해 좋은 시선을 가질리는 없었습니다.
  • 02_C++세미나/0523 . . . . 1 match
          * 포인터와 동적할당을 이용한 Linked List
  • 05학번만의C++Study/숙제제출/1 . . . . 1 match
         섭씨 온도를 전달인자로 전달받아 화씨 온도로 환산하여 리턴하는 사용자 정의 함수를 main() 함수가 호출하는 프로그램을 작성하시오. 프로그램은 섭씨 온도로 입력할 것을 요구해야 하고, 다음과 같은 실행 결과를 출력해야 한다. 참고로, 섭씨 온도를 화씨 온도로 변환하는 공식은 Fahrenheit = 1.8 X Celsius + 32.0 이다.
  • 1st Seminar . . . . 1 match
         http://images.google.co.kr/imgres?imgurl=http://allan.ultra.nyu.edu/~gottlieb/courses/2001-02-fall/arch/lectures/figs/cache-set-assoc.png&imgrefurl=http://allan.ultra.nyu.edu/~gottlieb/courses/2001-02-fall/arch/lectures/lecture-22.html&h=460&w=777&sz=7&tbnid=NW3J1fy7BkwJ:&tbnh=83&tbnw=140&start=52&prev=/images%3Fq%3Dcomputer%2Bcache%26start%3D40%26hl%3Dko%26lr%3D%26ie%3DUTF-8%26newwindow%3D1%26sa%3DN
  • 1thPCinCAUCSE/ProblemA . . . . 1 match
         ["1thPCinCAUCSE"], ["문제분류"]
  • 1thPCinCAUCSE/ProblemC . . . . 1 match
         ["1thPCinCAUCSE"], ["문제분류"]
  • 2004여름방학MT . . . . 1 match
         Seminar:PraiseGame 라는 것을 재동이형이 예전에 제안했네요. 괜찮아보이는데요. --[Leonardong]
  • 2011국제퍼실리테이터연합컨퍼런스공유회 . . . . 1 match
          * IAF는 International Association of Facilitator의 약자.
          1. 3 Most Valuable Learnings - 채홍미/조현길 60분
  • 2thPCinCAUCSE/ProblemB/Solution . . . . 1 match
         ["2thPCinCAUCSE/ProblemB"] 의 해.
  • 3rdPCinCAUCSE/ProblemB . . . . 1 match
         [3rdPCinCAUCSE],[문제분류]
  • 3rdPCinCAUCSE/ProblemC . . . . 1 match
         [3rdPCinCAUCSE],[문제분류]
  • 5인용C++스터디 . . . . 1 match
          || 나휘동 || [http://zeropage.org/pub/upload/TypingGamePlan.hwp] || . ||
  • ADisciplineOfProgramming . . . . 1 match
         http://cs.sungshin.ac.kr/~dkim/dop-chapter0.html
  • AI세미나 . . . . 1 match
         Artificial Intelligence (인공지능)에 대한 세미나.
         http://www.math.umn.edu/~wittman/faces/main.html - Neural Network를 사용하여 사람의 얼굴 인식.
  • AM/20040629첫번째모임 . . . . 1 match
          * 목표 : window 테트리스짜기
  • AcceleratedC++/Chapter15 . . . . 1 match
         = Chapter 15 Revisiting character pictures =
  • Bigtable/DataModel . . . . 1 match
          1. memtable의 T/S가 더 최신이 아니라면 minor compaction을 하여 로그를 비운다.
  • BuildingParserWithJava . . . . 1 match
         3학년 1학기 ProgrammingLanguageClass에서 숙제로 파서를 만들면서 한계를 많이 느꼈었다. 가장 큰 문제는 모든 흐름이 함수 호출을 따라 흘러간다다는 것이었다. 어느 곳이 잘못되었는지 알기가 어려웠기 때문에 찾는데 무척 애를 먹었다. 문법을 하나 추가하는 작업도 매번 오래 걸렸다. 그러다 보니 평가에 중요한 예외처리를 할 시간이 많지 않았다.
  • CNight2011 . . . . 1 match
          * 많다면 많은 정보들이 한꺼번에 머릿속에 들어왔었는데요, 이것 저것 배우면서 저게 유용하긴 한데.. 분명 포인터랑 연관되어있다긴 하는데 뭐가 어떻게 연관된거야?! 라고 하다가 Linked List를 배우면서 왜 구조체가 필요한지(very powerful!) 왜 많은 수의 자료들을 무조건 배열로만 쓸 수는 없는지등 많은 것을 알게되었어요. 나중에는 카트가 3D면서 렉없는 상당히 잘만든 게임이라는 말도 들었는데, 자료가 유동성 있으면서 접근하기 쉬운 그런걸 만든다는게 쉬운 것만은 아니겠구나 라고 생각했지요. 자구를 공부하면 이런 부분을 공부하는거겠죠. 재밌겠네요+_+(까봐야 알지만) -[김태진]
  • CPPStudy_2005_1/STL성적처리_2_class . . . . 1 match
         = Info =
         = Input Text =
         [[NewWindow("http://www.zeropage.org/viewcvs/www/cgi/viewcvs.cgi/accelerated_cpp_stl_grade/?root=sapius", "source code")]]
  • CategoryMacro . . . . 1 match
         If you click on the title of a category page, you'll get a list of pages belonging to that category
  • CategorySoftwareTool . . . . 1 match
         If you click on the title of a category page, you'll get a list of pages belonging to that category
  • CategoryTemplate . . . . 1 match
         If you click on the title of a category page, you'll get a list of pages belonging to that category
  • CauGlobal/Episode . . . . 1 match
         Episode in Episode --;;
  • ChocolateChipCookies . . . . 1 match
         [http://online-judge.uva.es/p/v101/10136.html 원문보기]
         === Input ===
         === Sample Input ===
  • ClearType . . . . 1 match
          * [http://www.microsoft.com/typography/ClearTypeInfo.mspx ClearType기술 홈페이지] - 윈도우 적용 방법이나 기술에대한 자세한 소개.
          * 특허문제로 Adove, Linux, Apple 들이 각 다른 방식의 벡터 드로잉 방법을 가지고 있다고 한다.
  • CodeRace . . . . 1 match
         이 대회는 신입생의 흥미를 불러일으키기위해서 시행될수도 있습니다. 이때는 재학생을 같이 참여시켜 [PairProgramming]을 활용해 보는 것도 좋은 방법입니다.
  • CodingStandard . . . . 1 match
         ["ExtremeProgramming"]
  • CommentEachOther . . . . 1 match
         전에도 느꼈었고, 여러 대가들께서도 자주 말씀하시곤 하는데, 자신의 코드의 퀄리티를 높이려면 남이 만들어놓은 소스를 보라는 이야기가 있다. 이 글을 읽는 분들도 동의하리라 생각한다. CommentEachOther 는 [AOI]나 LittleAOI 처럼 여러 사람이 한 문제에 대한 풀이를 올리고 그것들에 대한 코멘트를 하는 스터디라 할 수 있겠다. 여기서 코멘트라 함은 소스코드에서 명령문 옆에 붙이는 간단한 부연설명이 될 수도 있겠고, 코드 전체에 대한 비평이나 느낌일수도 있다. 처음에는 간단한 문제로 시작해서 디자인 principle 이 들어가있는 프로그램으로 횟감의 스케일을 키워나가는게 어떨까 생각을 한다. 나는 그냥 제안하는 입장이고, 간혹 간단하게 작성한 소스를 올리는 정도로만 참여하도록 하고, 적극적인 참여를 할 사람들이 생기면 이곳에 문제와 자신의 코드를 올리고 토론을 해봤으면 좋겠다. 토론의 방법이야 오프라인 모임에서 하거나 따로 코멘트 페이지를 만들거나. 자. 다들 어떻게 생각하시는지? 참여할분들(!) 계시면 아래에 참여자 목록과 문제를 업로드해 주셨으면.~ - 임인택
  • CreativeClub . . . . 1 match
          * Trouble Shooting을 위한 wiki 운영.
  • C언어정복/3월30일 . . . . 1 match
         11. printf()와 scanf() 함수 이용 시연
  • C프로그래밍 . . . . 1 match
         printf 포맷
  • DefaultValueMethod . . . . 1 match
         string Book::defaultSynopsis()
  • DevCppInstallationGuide . . . . 1 match
         └main.c이라는 이름으로 저장하기 보다 '''프로젝트 이름.c'''으로 저장하는 것이 나중에 다시 볼 때 좋습니다.
  • DevOn . . . . 1 match
         [[include(틀:추가바람)]]
  • Doublet . . . . 1 match
         "이상한 나라의 앨리스(Alice in the Wonderland)"를 쓴 루이스 캐롤(Lewis Carroll)은 끝말잇기를 비롯하여, 영어 단어를 이용한 퍼즐들을 많이 만들었습니다.
  • DrawingToy . . . . 1 match
         Upload:DrawingToy.JPG
  • EasyJavaStudy . . . . 1 match
          * ["Java"], ["Eclipse"], ["JUnit"], ["TestDrivenDevelopment"], ["TestFirstProgramming"]
  • Ellysavet . . . . 1 match
         아무런 소식이 없어서, ZeroPagers 에서 ZeroWikian 으로 분류를 바꾸었습니다. 원하시면 언제든지 참여해 주세요. --NeoCoin
  • EnterpriseJavaBeans . . . . 1 match
         처음 공부하는 사람은 MasteringEJB 의 예제를 간단히 실행해보기를 추천.
         Lomboz - ["Eclipse"] 플러그인. 내부적으로 XDoclet를 이용, Home & Remote & Local Interface 를 자동으로 생성해준다.
  • EuclidProblem . . . . 1 match
         [http://online-judge.uva.es/p/v101/10104.html 원문보기]
         === Input ===
         === Sample Input ===
  • EvolutionaryDatabaseDesign . . . . 1 match
         http://martinfowler.com/articles/evodb.html
  • Factorial2 . . . . 1 match
         Hint. 기본자료형으로는 택도 없습니다.
  • FactorialFactors . . . . 1 match
         [http://online-judge.uva.es/p/v8/884.html]
         === Input ===
         === Sample Input ===
  • FastSearchMacro . . . . 1 match
         5000여개의 파일이 있을 때 FastSearch는 2초 걸렸다. php는 파일 처리속도가 늦다는 이유로 FullSearchMacro를 쓰면 약 15여초 걸린다. 그 대신에, wiki_indexer.pl은 하루에 한두번정도 돌려야 되며, 5분여 동안의 시간이 걸린다.
  • FooBarBaz . . . . 1 match
          * Programming Language 서적에 나오는 예제 코드에 Foo, Bar, Baz 등의 단어가 자주 등장한다.
  • Freemarker . . . . 1 match
         '' Programming Jakarta Struts 인용''
  • GameProgrammingGems . . . . 1 match
         위의 Game Programming Gems는 게임에 쓰이는 전반적인 알고리즘(2D, 3D, AI(길찾기 포함))들을 전반적으로 대부분 다루어 놓고 얼마나 효율적인 프로그래밍을 할 수 있고 어떻게 해야 가능한 가를 보여주는 책이 되겠다. [[BR]]
  • GotoStatementConsideredHarmful . . . . 1 match
          SeeAlso : PPR:GotoConsideredTheBestProgrammingPracticeEverInvented PPR:GotoStillConsideredHarmful PPR:GotoConsideredHarmful
  • HardcoreCppStudy/첫숙제/ValueVsReference/김아영 . . . . 1 match
         - 함수내에서 전달된 변수를 사용하기 위해서 간접(indirection) 연산자를 사용해야 한다.
  • Hartals . . . . 1 match
         [http://online-judge.uva.es/p/v100/10050.html 원문보기]
         === Input ===
         === Sample Input ===
  • Header 정의 . . . . 1 match
         #define Header 이름
  • HelpOnPageDeletion . . . . 1 match
         지워지거나 손상된 페이지를 복구하려면 [[Icon(info)]]를 통해서 페이지 변경내역을 볼 수 있어야 합니다. 단축키로 '''i'''를 누르면 변경 내역을 보여줍니다.
  • Hibernate . . . . 1 match
         요새 한참 인기있는 Java O-R Mapping Tool
         조만간 [http://www.theserverside.com/resources/HibernateReview.jsp Hibernate In Action] 이란 책이 출간될 예정. Chapter 1 을 읽을 수 있다.
         [http://www.theserverside.com/resources/article.jsp?l=Hibernate Introduction to hibernate] 기사가 연재중이다.
  • HierarchicalWikiWiki . . . . 1 match
         HierarchicalWikiWiki''''''s can be created by using the InterWiki mechanism.
  • HostFile . . . . 1 match
         windows 의 경우는 system32/drivers/etc/host 라는 화일.
  • HotterColder . . . . 1 match
         [http://online-judge.uva.es/p/v100/10084.html 원문보기]
         === Input ===
         === Sample Input ===
  • HowManyFibs? . . . . 1 match
         [http://online-judge.uva.es/p/v101/10183.html 원문보기]
         === Input ===
         === Sample Input ===
  • HowToBlockEmpas . . . . 1 match
          ''검색결과의 삭제에 대한 내용이 다음 사이트에 있군요.'' [http://www.google.com/intl/ko/remove.html]
  • HowToDiscussIt . . . . 1 match
          * NoSmok:HowToMakeMeetingsWork
  • Hyacinth . . . . 1 match
         http://Hyacinth.xiop.net
  • IsDesignDead . . . . 1 match
          * http://martinfowler.com/articles/designDead.html - 원문.
  • ItMagazine . . . . 1 match
          * SoftwareDevelopmentMagazine
  • Jakarta . . . . 1 match
         라이브러리, 툴, API 군과 Framework & Engine, Server Application 등을 제공.
  • Jolly Jumpers/정진경 . . . . 1 match
         n,a,b,k,c[3000];main(){for(;scanf("%d%d",&n,&a)+1;puts(k-1?"Not jolly":"Jolly"))for(memset(c,0,n*4),k=n;--n;a=b){scanf("%d",&b);a=abs(a-b);if(!c[a])c[a]=1,k--;}}
  • JollyJumpers/정진경 . . . . 1 match
         c[3000];main(n,a,b,k){for(;scanf("%d%d",&n,&a)+1;puts(k-1?"Not jolly":"Jolly"))for(memset(c,0,n*4),k=n;--n;a=b)scanf("%d",&b),c[abs(a-b)]++?0:k--;}
  • KIV봉사활동/자료 . . . . 1 match
         [[include(KIV봉사활동/자료/멤버십)]]
  • KentBeck . . . . 1 match
         ExtremeProgramming의 세 명의 익스트리모 중 하나. CrcCard 창안. 알렉산더의 패턴 개념(see also DesignPatterns)을 컴퓨터 프로그램에 최초 적용한 사람 중 하나로 평가받고 있다.
  • KnowledgeManagement . . . . 1 match
          * I : Information
          * S : Sharing
  • LC-Display . . . . 1 match
         [http://online-judge.uva.es/p/v7/706.html 원문보기]
         === Input ===
         === Sample Input ===
  • LinearAlgebraClass . . . . 1 match
         길버트 스트랭은 선형대수학 쪽에선 아주 유명한 사람으로, 그이의 ''Introduction to Linear Algebra''는 선형대수학 입문 서적으로 정평이 나있다. 그의 MIT 수업을 이토록 깨끗한 화질로 "공짜로" 한국 안방에 앉아서 볼 수 있다는 것은 축복이다. 영어 듣기 훈련과 수학공부 두마리를 다 잡고 싶은 사람에게 강력 추천한다. 선형 대수학을 들었던(그리고 학기가 끝나고 책으로 캠프화이어를 했던) 사람이라면 더더욱 추천한다. (see also HowToReadIt 같은 대상에 대한 다양한 자료의 접근) 대가는 기초를 어떻게 가르치는가를 유심히 보라. 내가 학교에서 선형대수학 수강을 했을 때, 이런 자료가 있었고, 이런 걸 보라고 알려주는 사람이 있었다면 학교 생활이 얼마나 흥미진지하고 행복했을지 생각해 보곤 한다. --JuNe
  • LoginMacro . . . . 1 match
         [[Login]]
  • MFC Study 2006 . . . . 1 match
          * 참고 http://winapi.co.kr
  • MFC/CObject . . . . 1 match
         #define _MFC_ _HIERARCHY_CHART_
  • MVCModel . . . . 1 match
         http://zeropage.org/~erunc0/study/java/mvc_model/swing_mvc_model.html
  • MemeHarvester . . . . 1 match
         || 데이터 수집 || 로봇이 모든 웹을 돌아다니면서 데이터 저장 || 사용자가 특정 웹을 지정하고, 해당 웹에서 사용자가 원하는 키워드가 포함된 글이 올라올 경우나 새 글이 올라올 경우(옵션에 따라) 실시간으로 알려줌, RealTimeSearchEngine ||
  • MentorOfArts . . . . 1 match
         서강대학교 컴퓨터 학과 스터디그룹. Interwiki 로는 '''{{{~cpp Moa:}}}''' 를 이용합니다.
         http://purl.oclc.org/NET/moa/moin.cgi/
  • MiningZeroWiki . . . . 1 match
          활동 아이디어 n조 * (OHP필름2장, 보드마커, IndexCard 1장, 지우개용휴지2장 ), 접착테이프
          * 1안 : 주최자가 시작점을 주고, 2인 일조가 되어 OHP에 보드마커를 이용해 링크 방향으로 MindMap 그린다. 차후 큰 장소에 OHP를 합쳐본다.
  • ModelingSimulationClass/Exam2006_2 . . . . 1 match
         2. M/M/1 Queue에서의 Waiting Time을 유도하라.
  • MoniWikiBlogOptions . . . . 1 match
         set category index. Plese see BlogCategories
  • NetBeans . . . . 1 match
         [[include(틀:IDE)]]
  • NewTestsForOldBugs . . . . 1 match
         ["ExtremeProgramming"]
  • NumericalAnalysisClass/Report2002_1 . . . . 1 match
         Cubic Spline 함수를 계산하기 위해서는 Tri-Diagonal Matrix 에 대한 해를 구할 수 있어야 한다. 다음과 같이 주어진 Tri-Diagonal Matrix 시스템의 해를 계산하는 프로그램을 작성하시오.
  • OOD세미나 . . . . 1 match
          정말 중간에 어려워서 LineDrawable 얘기할땐 잠깐 졸았지만 너무 유익한 세미나 였습니다~ - [박성현]
  • Omok . . . . 1 match
          * 그래픽을 썼을 때 저의 경우 코드라인수는 250line 정도였습니다. - 창섭
  • OnceAndOnlyOnce . . . . 1 match
         OAOO. 필요한 부분에 대해서는 중복없이 오직 한번만 나타나야 한다는 원칙. ["Refactoring"] 의 원칙.
  • One/실습 . . . . 1 match
          * int형 배열 10개 공간에 숫자 대입하고 출력
  • OutlineProcessorMarkupLanguage . . . . 1 match
         현재 RSS 리더에서 피드를 공유하는 목적으로 주로 이용되는 포맷으로, Radio UserLand 의 DaveWiner 가 개발했다.
  • PHPStudy2005 . . . . 1 match
          * [PHPStudy2005/RWAPMInstall]
          * [PHP Programming/HtmlTag]
  • PNGFileFormat/ImageData . . . . 1 match
         현재는 compression method 0만 있음. zlib의 inflate, deflate와 같다. 최대 윈도우 사이즈는 32768바이트
         === Inflate ===
  • PatternsOfEnterpriseApplicationArchitecture . . . . 1 match
         http://martinfowler.com/eaaCatalog/
  • PolynomialCoefficients . . . . 1 match
         [http://online-judge.uva.es/p/v101/10105.html 원문보기]
         === Input ===
         === Sample Input ===
  • PowerReading . . . . 1 match
          - 저도 읽어보고있는데 괜찮은것 같아요. self-testing ..(?) 을 안해서 그렇지..-_-; Do It Now! 를 마음속으로만 외치는군요.....- 임인택
  • PragmaticVersionControlWithCVS/UsingModules . . . . 1 match
         || [PragmaticVersionControlWithCVS/CreatingAProject] || [PragmaticVersionControlWithCVS/ThirdPartyCode] ||
  • ProjectPrometheus/AcceptanceTest . . . . 1 match
         AcceptanceTest Server - http://zeropage.org/~reset/cgi-bin/AcceptanceTestServer/testserver.cgi
  • ProjectVirush . . . . 1 match
         Trac을 이용해 [http://165.194.17.5/trac/aekae/timeline 프로젝트 진행상황]과 [http://165.194.17.5/trac/aekae/browser//ProjectVirush Source Code]를 확인할 수 있습니다.
  • PyIde/BicycleRepairMan분석 . . . . 1 match
         코드 분석방법에서 Eclipse 의 Ctrl + Alt + H 를 눌렀을때 나오는 Method call hierarchy 기능으로 코드를 읽어나가는 것이 유용하다는 점을 알아내었다. StepwiseRefinement 를 역순으로 따라가는 느낌이랄까.
  • RISCOS . . . . 1 match
         plz Add RISC OS links. I feel curious that.
  • RUR-PLE . . . . 1 match
          * [http://prdownloads.sourceforge.net/wxpython/wxPython2.6-win32-unicode-2.6.1.0-py24.exe wxPython다운로드]
  • RandomWalk2/서상현 . . . . 1 match
         DoItAgainToLearn 할 생각임. 처음 할때는 중간 과정을 기록하지 않고 했지만 다시 할때는 과정을 기록해 봐야겠음.
  • RealTimeOperatingSystemExam2006_2 . . . . 1 match
          d) mutex 구조체 (맞나?)의 변수중 Counting관련 머시기가 있는데 이걸 상호배제 세마포에서는 어떻게 활용하나?
  • Redmoon . . . . 1 match
         무언가 해보려는 페이지 같기는 한데요... --NeoCoin
  • ReverseEngineering/책장사 . . . . 1 match
         4. Windows 구조에 관련된 서적.
  • RoboCode/random . . . . 1 match
         Upload:random.ElLin_1.0.jar
  • RoboCode/siegetank . . . . 1 match
         Upload:siegetank.Zyint_1.0.jar
  • RubyOnRails . . . . 1 match
          * [http://beyond.daesan.com/articles/2006/07/28/learning-rails-1 대안언어축제황대산씨튜토리얼]
  • SRPG제작 . . . . 1 match
         == Main Program ==
  • SearchAndReplaceTool . . . . 1 match
          * HandyFile Find and Replace (http://www.silveragesoftware.com/hffr.html)
  • SibichiSeminar/TrustModel . . . . 1 match
         [SibichiSeminar], [2011년활동지도]
  • SimpleDirectmediaLayer . . . . 1 match
          * SDL 소개(한글): http://www.libsdl.org/intro.ko/toc.html
  • SmallTalk/강좌FromHitel/차례 . . . . 1 match
          | 1.4.1. Dolphin Smalltalk 등록하기
  • SmallTalk_Index . . . . 1 match
          | 1.4.1. Dolphin Smalltalk 등록하기
  • SnakeBite/창섭 . . . . 1 match
          * 뱀을 설계할 때 Linked List 로 해야 하는 것 같아 그걸 짜는데... 1학년 공부를 소홀히 해서 애를 먹었습니다.--;;
         DeleteMe) CRgn과 CRect에 있는 PtInRegion과 PtInRect함수로 영역 검사를 해보는 편이 편할듯 by 최봉환[[BR]]
  • SoftwareEngineeringClass/Exam2006_1 . . . . 1 match
         2) Tayloring 과 Deploy를 설명하라.
         3) S/W Test 와 Independent Verification & Validation 비교하라
  • SoftwareEngineeringClass/Exam2006_2 . . . . 1 match
         4. 심사를 하고 받은 후의 Software Engineer 로써 앞으로 조직의 비전을 위한 자신의 각오, 결단을 기술하시오.
  • SolidStateDisk . . . . 1 match
         백업 메카니즘으로서 배터리나 일반적인 자기디스크를 내장하곤 한다. SDD 는 일반적인 HDD I/O interface 로 연결된다. 이로 인해서 얻을 수 있는 잇점은 적은시간에 빈번한 I/O 작업이 일어날 경우에, seek time 이나 rotational latency 가 없는 메모리로서, 자기디스크에 비해 월등한 성능을 나타낼 수 있다. 그에 덧붙여 구동부가 없는 구조로서 좀더 내구성이 뛰어나다고도 할 수 있겠다. 단점은, 특성상 대용량화가 어려우며 커다란 데이터의 요구량이 커질때. 즉 access time 보다 transfer time 이 더 요구될때 효율성이 안좋다.
  • SourceCode . . . . 1 match
         * 소리바다 클라이언트 http://fallin.lv/distfiles/soribada.py
  • SpikeSolution . . . . 1 match
          (ex) DB를 연결하기 위해 DB를 Install 하기, DB 작동이 어떻게 되는지 query 날려보기. 해당 라이브러리가 어떻게 작동하는지 간단한 예제 프로그래밍 등
         ["ExtremeProgramming"]
  • Spring/탐험스터디/2011-02-04 . . . . 1 match
         [[pagelist(^Spring/탐험스터디)]]
  • Squeak . . . . 1 match
          * Squeak - Open Personal Computing and Multimedia
  • Steps . . . . 1 match
         [http://online-judge.uva.es/p/v8/846.html 원문보기]
         === Input ===
         === Sample Input ===
  • SubVersionPractice . . . . 1 match
         = Link =
  • SystemPages . . . . 1 match
         [[SystemInfo]]
          * TitleIndex - 제목으로 페이지들 목록 보기
          * FindPage - 페이지 찾기
          * InterWiki - 직접링크를 걸 수 있는 InterWiki들.
  • The Tower of Hanoi . . . . 1 match
         T<sub>n</sub> is the minimum number of moves that will transfer n disks from one peg to another under Lucas's rules.
  • TheKnightsOfTheRoundTable . . . . 1 match
         [http://online-judge.uva.es/p/v101/10195.html 원문보기]
         === Input ===
         === Sample Input ===
  • TowerOfCubes . . . . 1 match
         [http://online-judge.uva.es/p/v100/10051.html 원문보기]
         === Input ===
         === Sample Input ===
  • TugOfWarInput . . . . 1 match
         제대로 작성된 프로그램은 당연히 온라인 로봇 심사위원의 테스트 케이스를 모두 통과하며, 게다가 덤으로 50,50,100,200 인 경우에도 통과한다. 하지만 Programming Challenges 책에 실린 모법 답안 등의 프로그램은 로봇 심사위원의 테스트는 통과하지만 50,50,100,200 같은 경우는 실패한다.
  • UnitTestFramework . . . . 1 match
          * http://xprogramming.com
  • UpdateWindow . . . . 1 match
         재귀함수가 실행될때마다 Invalidate()를 호출하도록 해 두었는데. 화면 갱신은 재귀함수가 끝난 경우에만 하고 있었다.
         [상규]군에게 물어 해답을 찾았다. Invalidate()함수는 다음 WM_PAINT메세지가 왔을때 화면을 다시 그리도록 명령하는 함수이다. 재귀나 반복문을 수행하는 동안에는 WM_PAINT 메세지가 발생하지 않기 때문에 강제적으로 WM_PAINT메세지를 발생시켜 주어야 하는데, 그 함수가 UpdateWindow()함수이다.
  • UrlMappingMacro . . . . 1 match
         [[UrlMapping]]
  • VisualStudio2005 . . . . 1 match
         http://www.microsoft.com/korea/events/ready2005/vs_main.asp
  • VoiceChat . . . . 1 match
          * linux, mac, pocket pc 용 버전도 있다.
  • WTL . . . . 1 match
         #Redirect WindowsTemplateLibrary
  • Westside . . . . 1 match
         * Minihome : [http://www.cyworld.com/pyung85]
  • WikiEngine . . . . 1 match
         See Wiki:WikiEngine
  • WikiFormattingRules . . . . 1 match
         Wiki:TextFormattingRules
  • WikiGardeningKit . . . . 1 match
         http://no-smok.net/nsmk/WikiGardening 이걸 전부 할 수는 없고
  • WikiWiki . . . . 1 match
         What the hell is a WikiWiki? See the OriginalWiki.
  • WinMerge . . . . 1 match
         http://winmerge.sourceforge.net/
  • X . . . . 1 match
         === Game Programming Gems 시리즈 읽기 ===
  • XML/Csharp . . . . 1 match
         [http://www.c-sharpcorner.com/UploadFile/shehperu/SimpleXMLParser11292005004801AM/SimpleXMLParser.aspx Simple XML Parser in C#]
  • XMLStudy_2002 . . . . 1 match
          *[["XMLStudy_2002/Encoding"]]
  • XpWeek/20041222 . . . . 1 match
         [http://kin.naver.com/browse/db_detail.php?d1id=1&dir_id=10106&docid=722107 jsp에서 ms타임을 년시분초로 바꾸어주는 방법]
  • XperDotOrg . . . . 1 match
         국내 ExtremeProgramming 사용자(?) 모임.
  • YetAnotherTextMenu . . . . 1 match
         차라리 "텍스트 메뉴" 자체를 Event Driven Programming 개념을 전달하기 위한 toy problem으로 쓰는 건 어떨까? 간단한 구조를 통해, 콜백 함수가 무엇인지 등을 배울 수 있을 것이다.
  • ZIM/EssentialUseCase . . . . 1 match
          ''XP 는 User Story에서의 사용자 무게중심 & 실제 구현시의 걸릴 Task point 으로 잡고, UP 는 기반이 될 아키텍처 순위로 잡고. 둘을 비교해서 생각하는 것도 좋겠군요. 조언 감사해요.~ ^^ --석천''
  • ZPBoard/PHPStudy/기본문법 . . . . 1 match
          * define() 을 사용하여 정의할 수 있으며, 변수와는 달리 한번 정의된 뒤로는 변경할 수가 없다.
  • ZPBoard/PHPStudy/쿠키 . . . . 1 match
         boolean setcookie ( "이름" [, string value [, 제한시간 [, "경로" [, "주소" [, 보안]]]]])
  • ZeroPageServer/FixDate . . . . 1 match
         Linux 시간 맞추기
  • ZeroPageServer/계정신청방법 . . . . 1 match
         [[include(틀:Deprecated)]]
  • ZeroPageServer/계정신청상황2 . . . . 1 match
         || 신청인 || id || 학번 || join ||신청|| email || 상태(완료작업) ||
  • ZeroPage성년식 . . . . 1 match
         == Link ==
  • [Lovely]boy^_^/Cartoon . . . . 1 match
         빌려줘 회사로 놀러오면, 밥먹여 줄께 ^^;; --NeoCoin
  • [Lovely]boy^_^/Diary/2-2-1 . . . . 1 match
          * ObjectProgramming Report 나옴.(모자이크 만들어오기, until 9/12), 관련 자료 수집.
  • [Lovely]boy^_^/Diary/7/15_21 . . . . 1 match
          * Grammar In Use 39-41
          * Grammar in use 42-45
          * Grammar In Use 46~49
  • django/RetrievingObject . . . . 1 match
         RiskReport.objects.extra(where=['id IN (3, 4, 5, 20)'])
         SELECT * FROM risk_report WHERE id IN (3, 4, 5, 20);
         = join =
  • fm_jsung . . . . 1 match
          * fm_jsung 뜻이 머에여? -0- free style mc jin sung 멋진 아뒤 찾는 도중에, 친구의 도움으로^^
  • gester . . . . 1 match
         수개월간 아무런 소식이 없어서, ZeroPagers 에서 ZeroWikian 으로 분류를 바꾸었습니다. 원하시면 언제든지 참여해 주세요. --NeoCoin
  • html . . . . 1 match
         Document Type Definition(Doctype). HTML 문서의 버전을 명시한다. 버전 명시 이유는 [http://hooney.net/2007/08/21/438/ 여기]에서.
  • html5/drag-and-drop . . . . 1 match
          * Event Bubbling
  • html5/문제점 . . . . 1 match
          * http://www.findmebyip.com/litmus#target-selector
  • html5practice . . . . 1 match
         = Think big! 우리는 창의력 대장! :) =
  • jQuery . . . . 1 match
         - jQuery.com introduction
          * Internet Explorer, Firefox, Safari, Opera 모두에서 작동
  • nilath개인페이지처음화면 . . . . 1 match
          Network Programming(40% 진행)
  • snowflower/Arkanoid . . . . 1 match
         Object Programming의 일환으로 Arkanoid(벽돌깨기)를 제작하고 있습니다ㅏ.
  • whiteblue . . . . 1 match
          * ["whiteblue/LinkedListAddressMemo"]
          * ["JavaStudyInVacation"]
  • zennith/MemoryHierarchy . . . . 1 match
         === Main Memory (Virtual Memory System) ===
  • zyint/articleTest . . . . 1 match
         [zyint]
  • 개초보의 프로그래밍에 관련된 개인적인 자료처음화면 . . . . 1 match
         http://kin.naver.com/open100/db_detail.php?d1id=1&dir_id=10105&eid=R5EfswL9ADckxU2I0vzUwtUrE3Qb5J7l&l_url=
  • 걸스패닉/디자인 . . . . 1 match
          * Upload:coin.gif 코인: 점수를 나타낸다. 원래 보석으로 할려고 했으나, 내맘대로 바꿈.
  • 겨울방학프로젝트/2005 . . . . 1 match
         || [PaintBox] || 시험끝났다고 놀지 말고 3일 빡세게 해서 JAVA로 그림판 짜기 || 보창 아영 선호 ||
         || [알고리즘] || Introdution to Algorithm 으로 공부 || 상섭 선호 보창 휘동 민경 도현 ||
  • 김수경/StickyWall . . . . 1 match
          * [https://github.com/Linflus/StickyWall Repository]
  • 김영준 . . . . 1 match
         == Link (!) ==
  • 김영현의Wiki처음화면 . . . . 1 match
         [ProgrammingWithInterface] [좋은글귀s]
  • 김희성/ShortCoding . . . . 1 match
          [김희성/ShortCoding/최대공약수]
  • 남도연 . . . . 1 match
         http://165.194.17.120/~saintanger/home.htm
  • 달라이라마와도올의만남 . . . . 1 match
          * My Point
  • 데블스캠프2003 . . . . 1 match
         || 7월 3일 || 목요일 || 임영동(Linux) || 리눅스 ||
  • 데블스캠프2003/넷째날 . . . . 1 match
         ["데블스캠프2003/넷째날/Linux실습"]
  • 데블스캠프2005/FLASH키워드정리 . . . . 1 match
         parseInt
         input&DynamicText&staticText
  • 데블스캠프2005/RUR_PLE/조현태 . . . . 1 match
         Upload:test_dine_4.rur
  • 데블스캠프2005/VPython . . . . 1 match
         http://vpython.org/download/VPython-Win-Py2.4-3.2.2.exe 설치
  • 데블스캠프2005/참가자 . . . . 1 match
         감기 걸려서 오늘 못 갈꺼 같네. 내일 세미나를 해야겠어..ㅠㅠ --[fnwinter]
  • 데블스캠프2006/월요일 . . . . 1 match
         ||am 04:00~06:00 ||[데블스캠프2006/CPPFileInput] [http://zerowiki.dnip.net/~namsangboy/schoolScore.html 데블스캠프2006/성적관리프로그램] [http://zeropage.org/svn/namsangboy/SchoolScore/SchoolScore.cpp Source]|| 남상협 (01) ||
         [http://wiki.izyou.net/moin.cgi/Zeropage/DevilsCamp2006]
  • 데블스캠프2006/준비/월요일 . . . . 1 match
         [http://wiki.izyou.net/moin.cgi/Zeropage/DevilsCamp2006]
  • 데블스캠프2006/화요일 . . . . 1 match
         [데블스캠프2006/화요일/pointer]
  • 데블스캠프2009/수요일 . . . . 1 match
         || 이병윤 || RootKit || Windows의 구조와 IA32 의 구조를 간단하게 설명. 커널레벨로의 접근을 이용한 간단한 루트킷 작성 || ||
  • 데블스캠프2009/수요일후기 . . . . 1 match
          * '''서민관''' - kernal이나 어셈블러 언어 등 전까지 별로 접할 일이 없던 생소한 개념들이 많이 나와서 솔직히 쉽지는 않았습니다. 그래도 OS의 구조나 Ring system 같은 것들은 개념적으로라도 알아두면 괜찮을 것 같네요. 그리고 전날 혁준 선배가 설명해준 dll에 대해 잠깐 다시 복습할 수 있었던 것도 좋았고요. 아쉬웠던 점은 역시 수업이 너무 고수준이라서 대략적인 이해만 하고 넘어가야 했던 것입니다. 그리고 수업 이후에 개인적으로 VMware의 사용법을 가르쳐 주신 것은 정말 감사합니다. 선배가 제 구세주입니다.
  • 데블스캠프2010/다섯째날/ObjectCraft . . . . 1 match
         1. Factorize, [REFACTORING]
          || zergling || 5 || 0 || 50 ||
  • 데블스캠프2011/넷째날/Android . . . . 1 match
          * 주제 : Android for Beginner
  • 데블스캠프2011/다섯째날/후기 . . . . 1 match
          * 수경이의 String 코드 레이스에서 저의 프로그래밍 달리기를 너무 빡세게 했던게 부끄러워서 이번엔 1학년 학우(저 같은 경우 성화수 학우)에게 설명해주고 그 학우가 하고 싶은 스펙으로 함께 프로그래밍 하고자 많이 노력했습니다. 파트너 교체 후 순의랑 파란 바를 만들어버리는 실수를 저지르긴 했습니다만 제가 부족한 탓이었구요-_-;; 개인적으로 화수의 '0층부터 지하까지' 아이디어는 신선했어요. 형진이가 처음에 의도했던 엘레베이터 문제(밖에서 누르고 층을 누르는 케이스)는 다른 클래스도 필요하고 일단 화수를 이해시키는데에 초점을 둬서 그걸 못 푼 점은 좀 아쉬웠어요.
  • 데블스캠프2011/둘째날/Scratch . . . . 1 match
          * http://info.scratch.mit.edu/Scratch_1.4_Download
  • 데블스캠프2012/넷째날/묻지마Csharp . . . . 1 match
         === Mission 3. Timer & String ===
  • 맞춤교육 . . . . 1 match
         [http://news.kbs.co.kr/news.php?id=694145&kind=c 기업, '맞춤교육' 대학에 요구]
  • 몸짱프로젝트/BucketSort . . . . 1 match
          * 개발방식 : TestDrivenDevelopment using [JUnit]
  • 문서구조조정 . . . . 1 match
         새로 페이지를 만들어주거나, 기존의 스레드 토론에서의 의견, 주장 등의 글들을 요약 & 정리 해줌으로서 해당 주제를 중심으로 페이지의 내용이 그 주제를 제대로 담도록 해준다. 이는 프로그램 기법에서 일종의 ["Refactoring"] 과 비슷한 원리이다.
  • 박성현 . . . . 1 match
          1. INS ( Image Network Service ) - ( 2010년 )
          1. Win32API - ( 2010년 ~ 2011년 )
  • 박소연 . . . . 1 match
         지금 나는 데블스캠프에서 공부ing?????????ㅋㅋ
  • 박진섭 . . . . 1 match
         DeleteMe [홈페이지Template] 를 참고로 하여 페이지를 구성하시기를 추천합니다. --NeoCoin
  • 박진하 . . . . 1 match
         = http://jinahut.mr4u.com =
  • 박치하 . . . . 1 match
         치하 안녕~ [http://165.194.87.227/zero/index.php?url=ZeroWiki&title=%B1%E8%C1%F8%C7%CF 클릭하지마요!]
  • 배열초기화 . . . . 1 match
         int a[100]
  • 배진호 . . . . 1 match
          * [http://www.cyworld.com/bloodjino 싸이주소] 진부하다고 하지만 아직 합니다
  • 병희 . . . . 1 match
         수개월간 아무런 소식이 없어서, ZeroPagers 에서 ZeroWikian 으로 분류를 바꾸었습니다. 원하시면 언제든지 참여해 주세요. --NeoCoin
  • 상민 . . . . 1 match
         #redirect NeoCoin
  • 새싹교실/2012/사과나무/과제방 . . . . 1 match
          * printf()와 scanf()에 대해서 조사해오는 것이 과제 입니다.
  • 새싹교실/2012/햇반 . . . . 1 match
         1) break, continue등 제어문
  • 새싹스터디2006/의견 . . . . 1 match
         제로페이지 위키에 [새싹스터디2006]에서 소그룹으로 진행한 기록이 재학생에게 필요할까요? [제로페이지의문제점]에서도 ''스터디가 신입 수준을 벗어나지 못한다''라는 점을 지적합니다. [2004년활동지도]의 1학기 스터디, [새싹C스터디2005]의 Class페이지들이 대표적입니다. 반면 [새싹C스터디2005/선생님페이지], [새싹배움터05/첫번째배움터], [새싹C스터디2005/pointer]와 같은 페이지는 현재 [새싹스터디2006]을 진행하는데 도움을 줍니다. 조금만 가다듬으면 [STL]페이지처럼 주제별로 정리할 수 있습니다.
  • 생각하는프로그래밍 . . . . 1 match
         처음 읽었던 때를 대학교 2학년 가을학기로 기억한다. 어디서 봤는지 기억나질 않지만(지금은 찾을 수도 없다) " [ProgrammingPearls]라는 책이 있는데, 연습문제를 다 풀어보는데 6개월이 걸렸다"라는 서평을 읽은 후(들었는지도 모르겠다) 한 번 도전해보자는 마음으로 도서관에서 책을 빌렸다. 봄학기에 자료구조 수업을 재미있게 들었던 터라 자신감마저 가지고 원서를 읽기 시작했다.
  • 속죄 . . . . 1 match
          * My Point
  • 송년회날짜정하기 . . . . 1 match
          * 이거 왜 지워요;; 올해 말에 또 써먹으면 되지요 --NeoCoin
  • 수면과학습 . . . . 1 match
          * Jenkins & Dallenbach(1924) 실험
  • 순수원서 . . . . 1 match
         E-mail : choiwscj at intizen 점 com
  • 시간관리인생관리/요약 . . . . 1 match
          * 우리는 충동에 의해서 행동하는 정도를 확인하려고 한다. '''규정하기(Labelling)''' 연습을 해보자.
  • 시작 . . . . 1 match
         }}} [[ISBN(ISBN 숫자,KR]] [[FullSearch(내용단어)]] [[PageList(제목단어)]] [[RSS(RSS주소,5)]] [[LinkCount(페이지제목)]]
  • 아잉블러그 . . . . 1 match
         [LinuxServer]페이지의 오류로 분리된 페이지.
  • 안전한장소패턴 . . . . 1 match
         ...좋은 물리적 환경 (CommonGroundPattern, PublicLivingRoomPattern)은 어떤 스터디 그룹에서든 필수적이다. 이 패턴에서 설명하는 지성적 환경 역시 마찬가지로 필수적이다.
  • 양쪽의 클래스를 참조 필요시 . . . . 1 match
         1. Set 함수를 만들어서 pWnd Setting
  • 열정적인리더패턴 . . . . 1 match
         스터디 그룹은 지속적인 에너지(EnduringEnergyPattern)를 갖고 안전한 장소([안전한장소패턴])가 되기 위한 리더십이 필요하다. 이 패턴은 이런 특성을 만들기 위해 리더가 해야할 일을 설명한다.
  • 예수는신화다 . . . . 1 match
          * My Point
  • 우리가나아갈방향 . . . . 1 match
         이 말의 의도는 충분히 이해를 하지만 오해의 소지가 있을 것 같아 사족을 답니다. 모여서 할 수 있는 공부가 분명히 있습니다. 이것은 혼자서만 할 수 있는 공부와는 다릅니다. 모여서 하면 아주 좋은 성과를 볼 수 있는, 그러나 혼자서는 하기 힘든 그런 공부가 분명히 있습니다. 수프를 먹으면서 포크의 "비어있음"을 탓하고 스푼의 "차있음"을 찬양하지만, 과일을 먹으면서는 포크의 "비어있음"을 고마워하고 스푼의 "차있음"을 비난하는 법입니다. 사건(event)과 물건(thing), 즉 사물에는 "나"와의 관계 속에서 그것의 "도"를 밝혀주는 길과 쓰임이 생깁니다. 그 길로 다니면 편하고 자연스럽고 쓸모를 얻지만, 자신이 길을 억지로 내려고 하면 불편하고 거북하며 쓸모를 얻지 못합니다. --김창준
  • 위키메뉴얼 . . . . 1 match
         현재까지 완성된 메뉴얼의 모습: [http://rkd49.zeropage.org/index.php]
  • 위키설명회 . . . . 1 match
          * Rename, [문서구조조정]을 통해서 [Refactoring]을 경험하고, 이것이 프로그래밍의 영역에서 어떠한 관점을 가지고 있는지 이야기 해 본다.
  • 유럽여행 . . . . 1 match
         http://www.snailhome.com/new_minbak/europe
  • 이학 . . . . 1 match
         단. 목적과 방향성없는 질문. 그리고 [http://kldp.org/KoreanDoc/html/Beginner_QA-KLDP/ 잘만들어진 메뉴얼을 읽지 않은 상태에서의 질문] 은 조금 생각해봐야 하지 않을까요. 이미 좋은 문서가 있는 가운데에서 선배들이 할 일은 '고기낚는 법' 을 가르쳐주는 것일지도.
  • 임다찬 . . . . 1 match
         나중에 [JollyJumpers] - dynamic programming 사용하나요???
  • 임인택/Link . . . . 1 match
          * [http://www.keysound.com/index.htm KeySound]
  • 자리수알아내기/나휘동 . . . . 1 match
         numDigit n base = ceiling (logBase base n) + 1
  • 장용운 . . . . 1 match
         Windows API
  • 재미있게공부하기 . . . . 1 match
         NeoCoin군은 재미있게 숙제하는 요령을 익힌 것 같다. 축하한다. 후배들을 위해 그 요령을 한번 풀어놓아보겠니? --JuNe
  • 전시회 . . . . 1 match
         == Comming Soon ==
  • 전철에서책읽기 . . . . 1 match
         작년 1월에 지하철을 타며 책읽기를 했는데 한 번쯤 이런 것도 좋을 듯. 나름대로 재미있는 경험. :) Moa:ChangeSituationReading0116 --재동
  • 정모/2002.11.13 . . . . 1 match
          DeleteMe) 이날 참석한 인원을 적어주세요. 해당 정보는 차후 회원 구분이 있을때 필요한 자료입니다. --["neocoin"]
  • 정모/2002.3.28 . . . . 1 match
          * 광고 - 학기중에 Generic Programming 을 공부 합시다. --상민
         PHP, 아파치, java, 파이썬, 모인모인, RESIN, mysql,
  • 정모/2002.5.16 . . . . 1 match
          * HCI(Human Computer Interaction)발표 하겠습니다. 이번 심리학과 리포트 때문에 작성하던 것인데, 같이 하시는 분께서 관련 업계 종사자라서, 너무 많은 자료 때문에 제가 치일 정도 입니다. 일단 방대한 자료는 필요시 드릴수 있고, (관련 논문, Samsung 개발자료 etc, xp, aqua, palm guide line 등) 발표 골자는 기본적으로 심리학의 이해 시간에 발표 자료 기반으로 컴공과에 맞추어 발표 하겠습니다. 못했지요. 약간 아쉽네요. 차후 HCI자료가 필요하신분이 있거나, 이런 분야도 있구나 란걸 알고 싶으면 세미나 해드립니다. --상민
  • 정모/2003.12.1 . . . . 1 match
          * Linux - 2명
  • 정모/2003.2.12 . . . . 1 match
          * 반갑습니다. 그런데 어쩌다가 여기에.. ;; --NeoCoin
  • 정모/2003.8.26 . . . . 1 match
         || Linux || 1 ||
  • 정모/2004.9.14 . . . . 1 match
         || 해킹 || [Hacking] || 홍선, 세환||
  • 정모/2005.2.2 . . . . 1 match
          위키 설명회는 회원모집날에 같이 하기로 하였고, 프로그램 배틀과 Joint 엠티는 일단 보류되었으므로 나중에 정해지면
  • 정모/2005.5.23 . . . . 1 match
         제안사항 : OOP, C//C++의 차이, JAVA 맛보기, 네트워크, 자료구조, Linux, C(주입식교육), 알고리즘
  • 정모/2005.9.13 . . . . 1 match
          * [EmbeddedLinux] : 이승한, 이영호
  • 정모/2005.9.5 . . . . 1 match
          * MFC, [EmbeddedLinux]
  • 정모/2006.1.12 . . . . 1 match
          * Point
  • 정모/2006.2.2 . . . . 1 match
         각자 Point 1점씩 줌.
  • 정모/2007.3.27 . . . . 1 match
         zeropage.org 3/27 meeting
  • 정모/2007.3.6 . . . . 1 match
         ...........................오늘 교양학교 등등의 바쁜일들이 많으므로 이 문제점은 다음에 다시 논의 하기로 합니다....................................To Be Continue
  • 정모/2011.5.23 . . . . 1 match
         == SEMINAR ==
          * 휴면회원 [김홍기]의 [wiki:SibichiSeminar/TrustModel 이 사람이 휴면회원인 이유]
  • 정모/2011.7.11 . . . . 1 match
          * 주제 : Macintosh
  • 정모/2011.9.20 . . . . 1 match
          * [Spring/탐험스터디]
  • 정모/2012.1.20 . . . . 1 match
          * Spring - 이번주에 하지 못했음.
  • 정모/2012.5.7 . . . . 1 match
          * [Spring/탐험스터디]
  • 정모/2012.7.18 . . . . 1 match
          * 수요일 : callback 함수의 개념과 Javascript의 Event Handler 사용. 표준이 제정되지 않은 상황에서 Cross Browsing은 힘들다.
  • 정모/2012.9.17 . . . . 1 match
          * ACM - 대학생 경진대회 목표, 방학 때 1주에 2번씩 만나 공부, 저번 주 목표: Binary 문제 구현, 쉬운 문제 풀어서 자신감 회복... 이번 주 : 으아아아아아아
  • 정모/2013.7.8 . . . . 1 match
          * code formatting에 대한 내용을 공부. 프로젝트에 대한 것을 하나 정해서 그걸 리펙토링 하는 방향으로 진행 방향정함.
  • 정모/안건 . . . . 1 match
         --NeoCoin
  • 정우 . . . . 1 match
         DeleteMe ZeroPagers 에 들어간다면, [홈페이지Template] 를 참고해서 자신의 페이지를 꾸며주세요. --NeoCoin
  • 정의정 . . . . 1 match
          * 07' 정의정-koalacousin
  • 정진균 . . . . 1 match
         #redirect comein2
  • 중위수구하기/김태훈zyint . . . . 1 match
          a : <INPUT TYPE="text" NAME="a"><br>
          b : <INPUT TYPE="text" NAME="b"><br>
          c : <INPUT TYPE="text" NAME="c">
         <INPUT TYPE="hidden" name=mode value=action><INPUT TYPE="submit" name=submit value=전송>
          * 오랜만이군 PHP 고등학교 때 이거배워 PHP 사이트 Hacking 하고 다녔는데. 근데 C랑 비슷해. 쉬운 변수형의 C -_-ㅋㅋ --영호
  • 지금그때/도우미참고 . . . . 1 match
         Seminar:OpenSpaceTechnology
  • 지금그때2003/토론20030310 . . . . 1 match
          * Opening Questions - 대화를 할때 다른 사람들에게 의미를 줄 수 있는, 또는 다른 사람의 말문을 여는데 도움이 될 질문들. 또는, 주제에 가까운 질문들에 대해.
  • 지금그때2004/여섯색깔모자20040331 . . . . 1 match
         하양 : 작년 기준으로 볼때 홍보 횟수대비 신청자는 linear(비례)하게 증가하였다.
  • 지금그때2004/패널토의질문지 . . . . 1 match
         See Also [질문의힘],[지금그때/OpeningQuestion]
  • 지금그때2005 . . . . 1 match
          * [지금그때/OpeningQuestion]
  • 지금그때2005/회의20050318 . . . . 1 match
          처음 나누어 주는 메뉴판에는 어느정도 [지금그때/OpeningQuestion]이 적혀있는 상태
  • 질문레스토랑 . . . . 1 match
          * 처음 나누어 주는 메뉴판에는 어느정도 [지금그때/OpeningQuestion]이 적혀있는 상태
  • 창섭/BitmapMasking . . . . 1 match
         || SRCPAINT || OR 연산 ||
         || SRCINVERT || XOR 연산 ||
         || 원본과 상대할(?) 색 || SRCAND(AND)의 결과 || SRCPAINT(OR)의 결과 ||
         http://165.194.17.15/~wiz/data/zpwiki/originalbmp.bmp
          1. 그림을 '''SRCPAINT''' 연산 한다.
          1. 마스크를 '''SRCPAINT''' 연산 한다.
  • 창섭/삽질 . . . . 1 match
          * type casting 에 의한 data 손실이 일어나는 곳을 추측하자.
  • 컴퓨터고전스터디 . . . . 1 match
         요즘 전산학과 대학생들이 모여서 리눅스 해킹법이니, MFC API니 하는 걸 같이 스터디하는 것도 나름대로 의미가 있겠지만 컴퓨터계의 고전 하나를 제대로 스터디하는 것은 어떨까 합니다. ''군자무본 본립이도생. 군자는 근본에 힘을 쓰니, 근본이 서야 길이 생기기 때문이다.''라는 말이 논어에 나오죠. 나이가 아직 어리고, 시간적 여유가 있는 때에는 어떤 구체적인 "기술"보다 좀더 일반적이고 보편적이며 이론적인 사유를 훈련하는 것이 좋지 않을까요. 구체적 기술은 거기에 갖혀버리는(Lock-In) 경향이 있습니다. 2-3년 뒤에는 쓸모없어진다든가 하는 것이죠. 하지만 고전은 대부분 앞으로도 10년은 족히 유효한 것들입니다. 꾸준히 재해석될 가능성이 있는 것들이고, 무엇보다 문제의식과 함께 치밀한 사유를 배우는 겁니다. 생각하는 법 말이죠.
          * 2004년 여름방학 현재 TheArtOfComputerProgramming으로 진행
  • 코바용어정리 . . . . 1 match
         == 동적 호출 인터페이스(DII : Dynamic Invocation Interface) ==
         == 동적 스켈레톤 인터페이스(DSI : Dynamic Skeleton Interface) ==
         ORB 인터페이스는 애플리케이션에 중요한 지역 서비스에 대한 API들로 구성되어 있지 않다. 이것은 곧바로 ORB로 가는 인터페이스이고 모든 ORB들에 대해 동일하다.ORB 인터페이스는 객체 어댑터 또는 객체 인터페이스에 의존하지 않는다. 대부분의 ORB의 기능이 객체 어댑터, 스텁, 스켈레톤 또는 동적 호출 등을 통해서 제공되므로 몇몇 오퍼레이션만이 모든 객체들에 대해 공통이다. 공통 오퍼레이션에는 get_interface와 get_implementation 같은 함수가 포함되어 있는데, 이것들은 임의의 객체 레퍼런스에 작용하며 각각 인터페이스 저장소 객체와 구현 저장소 객체를 얻는 데 사용된다.
  • 타도코코아CppStudy . . . . 1 match
          * FileInputOutput
          * 저도 잘 안써서 모르지만 F9 키로 break point 를 잡은 뒤, F11 키를 누르면 debug 가 되는 걸로 알아요^^ - 대근([CherryBoy])
  • 타도코코아CppStudy/0804 . . . . 1 match
         || Seminar:SpiralArray || . || . || . ||
  • 토비의스프링3/밑줄긋기 . . . . 1 match
         [토비의스프링3], [Spring/탐험스터디]
  • 파스칼삼각형/변형진 . . . . 1 match
         모두가 알다시피 파스칼삼각형은 조합(Combination)에 관한 도형이다.
  • 페이지지우기 . . . . 1 match
         '''If you want to delete this page, YouNeedToLogin.''' 현재 ZeroWiki 에서 Delete''''''Page 권한은 계정 관리자가 갖고 있습니다. 로그인한 사용자도 그 권한을 사용할 수 있도록 한 단계 더 공개하는건 어떨까요? security.py 에서 {{{~cpp self.delete = self.delete and user.valid}}} 이 한 라인을 추가하면 됩니다. --["데기"]
  • 포커솔리테어평가 . . . . 1 match
         [컴공과프로그래밍경진대회] [4rdPCinCAUCSE]
  • 프로그래밍잔치/ErrorMessage . . . . 1 match
          ''내가 swing을 잘 몰라서, 상욱이한테 바꾸자구 그래써..^^ --은지''
  • 회원 . . . . 1 match
         == Link ==
Found 2329 matching pages out of 7555 total pages (3180 pages are searched)

You can also click here to search title.

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