E D R , A S I H C RSS

Full text search for "const modifier"

const modifier


Search BackLinks only
Display context of search results
Case-sensitive searching
  • 경시대회준비반/BigInteger . . . . 143 matches
          const char *BigIntErrDes[] = { "Allocation Failed", "Overflow","Underflow", "Invalid Integer", "Divide by Zero" ,"Domain Error"};
          const char BigIntPROGRAMNAME[] = { "BigInteger" };
          const int BigIntMajorVersion = 6;
          const int BigIntMinorVersion = 7;
          const int BigIntRevision = 25;
          void Dump(const char *,enum BigMathERROR);
          string& DumpString (char const*,enum BigMathERROR);
          const DATATYPE BASE = 10000;
          const DATATYPE INVALIDDATA = 65535U;
          const SizeT LOG10BASE = 4;
          // Constructor with specified bytes
          void datacopy(BigInteger const&,SizeT);
          SizeT datalen(DATATYPE const*) const;
          // Default Constructor
          // Long integer constructor
          // Character array constructor
          BigInteger(char const*);
          // Copy Constructor
          BigInteger(BigInteger const&);
          int UnsignedCompareTo(BigInteger const&)const;
  • EffectiveC++ . . . . 102 matches
         === Item1: Prefer const and inline to #define ===
         DeleteMe #define(preprocessor)문에 대해 const와 inline을(compile)의 이용을 추천한다. --상민
         [#define -> const][[BR]]
          const double ASPECT_RATIO = 1.653
         1. 상수 포인터(constant pointer)를 정의하기가 다소 까다로워 진다는 것.
          const char * const authorName = "Scott Meyers";
          static const int NUM_TURNS = 5; // 상수 선언! (선언만 한것임)
          const int GamePlayer::NUM_TURNS; // 정의를 꼭해주어야 한다.
          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]]
          * ''생성자(constructor)와 소멸자(destructor)의 존재를 모른다.''
          * ''Initialization of the pointer in each of the constructors. If no memory is to be allocated to the pointer in a particular constructor, the pointer should be initialized to 0 (i.e., the null pointer). - 생성자 각각에서 포인터 초기화''
         == Constructors, Destructors, and Assignment Operators (클래스에 관한것들.) ==
         === Item 11: Declare a copy constructor and an assignment operator for classes with dynamically allocated memory ===
          String(const char *value);
         String::String(const char *value)
         === Item 12: Prefer initialization to assignment in constructors ===
          NamedPtr(const string& initName, T *initPtr);
  • AcceleratedC++/Chapter11 . . . . 83 matches
         vector<Student_info>::const_iterator b, e;
          === 11.2.2 생성자(Constructor) ===
         Vec<Student_info> vs; // default constructor
          explicit Vec(size_type n, const T& val = T()) { create(n, val); }
          '''const_iterator, iterator'''를 정의해야함.
          typedef const T* const_iterator;
          explicit Vect(size_type n, const T& val = T()) { create(n, val); }
          typedef const T* const_iterator;
          explicit Vect(size_type n, const T& val = T()) { create(n, val); }
          size_type size() const { return limit - data; }
          const T& operator[](size_type i) const { return data[i]; }; // 이경우에도 레퍼런스를 쓰는 이유는 성능상의 이유때문이다.
          모든 멤버함수는 암묵적으로 한가지의 인자를 더 받는다. 그것은 그 함수를 호출한 객체인데, 이경우 그 객체가 const이거나 const 가 아닌 버전 2가지가 존재하는 것이 가능하기 때문에 parameter specification 이 동일하지만 오버로딩이 가능하다.
          typedef const T* const_iterator;
          explicit Vect(size_type n, const T& val = T()) { create(n, val); }
          size_type size() const { return limit - data; }
          const T& operator[](size_type i) const { return data[i]; }; // 이경우에도 레퍼런스를 쓰는 이유는 성능상의 이유때문이다.
          const_iterator begin() const { return data; }
          const_iterator end() const { return limit; }
          '''implicit copy constructor'''
         d = median (vi); // copy constructor work
  • [Lovely]boy^_^/3DLibrary . . . . 58 matches
         const float PI = (float)(atan(1.0) * 4.0);
          Matrix(const Matrix& m);
          Matrix operator + (const Matrix& m) const;
          Matrix operator - (const Matrix& m) const;
          Matrix operator - () const;
          Matrix operator * (const Matrix& m) const;
          Vector operator * (const Vector& v) const;
          Matrix operator * (float n) const;
          friend ostream& operator << (ostream& os, const Matrix& m);
          friend Matrix operator * (float n, const Matrix& m);
          Vector(const Vector& v);
          float operator * (const Vector& v) const;
          Vector operator * (float n) const;
          Vector operator ^ (const Vector& v) const;
          Vector operator - () const;
          Vector operator + (const Vector& v) const;
          Vector operator - (const Vector& v) const;
          Vector Normalize() const;
          float GetMag() const;
          friend ostream& operator << (ostream& os, const Vector& v);
  • MoreEffectiveC++/Exception . . . . 57 matches
         일단 여러분은 파일에서 부터 puppy와 kitten와 키튼의 정보를 이렇게 읽고 만든다. 사실 Item 25에 언급할 ''virtual constructor''가 제격이지만, 일단 우리에 목적에 맞는 함수로 대체한다.
          void displayIntoInfo(const Information& info)
          WindowHandle(const WindowHandle&);
          WindowHandle& operator=(const WindowHandle);
          void displayIntoInfo(const Information& info)
         == Item 10: Prevent resource leaks in constructors. ==
          Image(const string& imageDataFileName);
          AudioClip(const string& audioDataFileName);
          BookEntry(const string& name,
          const string& address = "",
          const string& imageFileName = "",
          const string& audioClipFileName = "");
          void addPhoneNumber(const PhoneNumber& number);
          BookEntry::BookEntry(const string& name,
          const string& address,
          const string& imageFileName,
          const string& audioClipFileName)
          BookEntry::BookEntry(const string& name,
          const string& address,
          const string& imageFileName,
  • AcceleratedC++/Chapter9 . . . . 39 matches
          double grade() const; //내부 멤버변수를 활용하여 점수를 계산하고 double 형으로 리턴한다.
          //함수 명의 뒤에 const를 붙이면 멤버 변수의 변형을 할 수 없는 함수가 된다. (구조적으로 좋다)
         double Student_info::grade() const {
          객체에서는 const 객체 내부의 데이터들을 const형으로 다룰 수는 없지만, 멤버함수를 const 멤버함수로 만듦으로써 변형에 제한을 줄 수 있다.
          * const 객체에 대해서는 const 멤버함수가 아닌 함수는 호출 할 수 없다.
          double grade() const;
          double grade() const;
          dobule grade() const;
          double grade() const;
          dobule grade() const;
          double grade() const;
          std::string name() const {return n;}
          name 멤버 변수에 직접적으로 접근하는 대신에 name()함수를 만들어서 접근하도록 만들었다. const 함수이므로 멤버변수의 변경을 불허한다. 리턴값이 복사된 것이기 때문에 변경을 하더라도 멤버변수에 영향을 주지는 않는다.
         bool compare(const Student_info& x, const Student_info& y) {
          double grade() const;
          std::string name() const {return n;}
          bool valid() const { return !homework.empty(); } // 사용자에게 그 객체가 유효한 데이터를 가졌는지를 알려준다.
          double grade() const;
          std::string name() const {return n;}
          bool valid() const { return !homework.empty(); } // 사용자에게 그 객체가 유효한 데이터를 가졌는지를 알려준다.
  • OurMajorLangIsCAndCPlusPlus/stdio.h . . . . 39 matches
         || FILE * fdopen(int, const char *) || 파일 지정자 필드로 부터 스트림을 얻습니다. ||
         || FILE * fopen(const char *, const char *) || 파일을 연다. ||
         || int fprintf(FILE *, const char *, ...) || 해당 스트림에 문자열을 기록한다. ||
         || int fputs(const char *, FILE *) || 해당 스트림에 문자열을 기록한다. ||
         || FILE * freopen(const char *, const char *, FILE *) || 세번째 인자의 스트림을 닫고 그 포인터를 첫번째 인자의 파일으로 대체한다. ||
         || int fscanf(FILE *, const char *, ...) || 해당 파일에서 문자열을 지정한 형식으로 읽어들인다. ||
         || int fsetpos(FILE *, const fpos_t *) || 해당 스트림의 포인터를 지정한 위치로 옮긴다. ||
         || size_t fwrite(const void *, size_t, size_t, FILE *) || 해당 내용을 두번째 인자의 크기만큼, 세번째 인자의 횟수로 스트림에 기록한다. ||
         || void perror(const char *) || 마지막 에러에 대한 오류메시지를 출력한다. ||
         || int printf(const char *, ...) || 해당 형식의 문자열을 출력한다. ||
         || int puts(const char *) || 표준 입출력으로 한줄을 출력한다. ||
         || int remove(const char *) || 해당 파일을 삭제한다. 성공시 0, 실패시 -1을 리턴한다. ||
         || int rename(const char *, const char *) || 첫번째 인자의 파일을 두번째 인자의 이름으로 바꾸어준다. ||
         || int scanf(const char *, ...) || 표준 입출력에서 해당 형식으로 입력 받는다. ||
         || int sprintf(char *, const char *, ...) || 해당 버퍼에 지정한 형식대로 출력한다. ||
         || int sscanf(const char *, const char *, ...) || 해당 문자열에서 지정된 형식대로 입력받는다. ||
         || int vfprintf(FILE *, const char *, va_list) || 해당 스트림에 인수리스트를 이용해서 지정된 형식의 문자열을 삽입한다. ||
         || int vprintf(const char *, va_list) || 표준 입출력에 인수리스트를 이용해서 지정된 형식의 문자열을 출력한다. ||
         || int vsprintf(char *, const char *, va_list) || 해당 문자열에 인수리스트를 이용해서 지정된 형식의 문자열을 기록한다. ||
         || int fputws(const wchar_t *, FILE *) || 해당 스트림으로 유티코드 문자열을 기록한다. ||
  • OurMajorLangIsCAndCPlusPlus/string.h . . . . 38 matches
         || void * memcpy(void * dest, const void * scr, size_t count) || Copies characters between buffers. ||
         || void * memccpy(void * dest, const void * scr, int c, unsigned int count) || Copies characters from a buffer. ||
         || void * memmove(void * dest, const void * scr, size_t count) || Moves one buffer to another. ||
         || 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 * 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. ||
         || 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. ||
         || char * strrchr(const char *string, int c) || Scan a string for the last occurrence of a character. ||
         || size_t strcspn(const char *string, const char *strCharSet) || Find a substring in a string. ||
  • MoreEffectiveC++/Miscellany . . . . 37 matches
          Animal& operator=(const Animal& rhs);
          Lizard& operator=(const Lizard& rhs);
          Chicken& operator=(const Chicken& rhs);
          virtual Animal& operator=(const Animal& rhs);
          virtual Lizard& operator=(const Animal& rhs);
          virtual Chicken& operator= (const Animal& rhs);
         Lizard& Lizard::operator=(const Animal& rhs)
          const Lizard& rhs_liz = dynamic_cast<const Lizard&>(rhs);
          virtual Lizard& operator=(const Animal& rhs);
          Lizard& operator=(const Lizard& rhs); // 더한 부분
         liz1 = liz2; // const Lizard&를 인자로 하는 operator= 호출
         *pAnimal1 = *pAnimal2; // const Ainmal&인자로 가지는 operator= 연산자 호출
         const Animal&을 인자로 하는 연산자의 구현은 구현은 간단한다.
         Lizard& Lizard::operator=(const Animal& rhs)
          return operator=(dynamic_cast<const Lizard&>(rhs));
          Animal& operator=(const Animal& rhs); // 사역(private)이다.
          Lizard& operator=(const Lizard& rhs);
          Chicken& operator=(const Chicken& rhs);
         Lizard& Lizard::operator=(const Lizard& rhs)
          AbstractAnimal& operator=(const AbstractAnimal& rhs);
  • 현종이 . . . . 29 matches
          SungJuk(const char *name,int nNumber, int nKorean, int nEnglish, int nMath);
          const SungJuk & Top_Avg(const SungJuk &s) const;
          const SungJuk & Top_Total(const SungJuk & s) const;
          const SungJuk & Top_Korean(const SungJuk & s) const;
          const SungJuk & Top_English(const SungJuk & s) const;
          const SungJuk & Top_Math(const SungJuk & s) const;
         const SungJuk & SungJuk::Top_Avg(const SungJuk &s) const
         const SungJuk & SungJuk::Top_Korean(const SungJuk &s) const
         const SungJuk & SungJuk::Top_English(const SungJuk &s) const
         const SungJuk & SungJuk::Top_Math(const SungJuk &s) const
         const int caucse = 10;
  • AcceleratedC++/Chapter12 . . . . 26 matches
          Str(const char* cp) {
         클래스는 기본적으로 복사 생성자, 대입 연산자의 기본형을 제공한다. 위의 클래스는 이런 연산에 대한 기본적인 요건을 만족하기 때문에 const char* 가 const Str& 로 변환되어서 정상적으로 동작한다.
         상기의 클래스에는 Str(const char*) 타입의 생성자가 존재하기 때문에 이 생성자가 Str 임시 객체를 생성해서 마치 '''사용자 정의 변환(user-define conversion)'''처럼 동작한다.
          const char& operator[](size_type i) const { return data[i]; }
         이 구현의 세부적인 작동방식은 모두 Vec 클래스로 위임하였다. 대신에 const 클래스와 const 가 아닌 클래스에 대한 버전을 제공하였고, 표준 string 함수와의 일관성 유지를 위해서 string 대신에 char& 형을 리턴하도록 하였음.
         std::ostream& operator<<(std::ostream&, const Str&);
         ostream& operator<<(ostream& os, const Str& s) {
          size_type size() const { return data.size(); }
          Str operator+(const Str&, const Str&);
          Str& operator+=(const Str& s) {
          Str(const char* cp) {
          const char& operator[](size_type i) const { return data[i]; }
          size_type size() const { return data.size(); }
         std::ostream& operator<<(std::ostream&, const Str&);
         Str operator+(const Str&, const Str&);
         Str operator+(const Str& s, const Str& t) {
         char*, const char* 형으로의 변환
          operator const char* () const;
  • MoreEffectiveC++/Operator . . . . 23 matches
          * C++에서는 크게 두가지 방식의 함수로 형변환을 컴파일러에게 수행 시키킨다:[[BR]] '''''single-argument constructors''''' 와 '''''implicit type conversion operators''''' 이 그것이다.
          * '''''single-argument constructors''''' 은 인자를 하나의 인자만으로 세팅될수 있는 생성자이다. 여기 두가지의 예를 보자
          Name( const string& s);
          operator double() const;
          double asDouble() const;
          * '''''single-argument constructor''''' 는 더 어려운 문제를 제공한다. 게다가 이문제들은 암시적 형변환 보다 더 많은 부분을 차지하는 암시적 형변환에서 문제가 발생된다.
         bool operator==( const Array< int >& lhs, const Array<int>& rhs);
         7줄 ''if ( a == b[i] )'' 부분의 코드에서 프로그래머는 자신의 의도와는 다른 코드를 작성했다. 이런 문법 잘못은 당연히! 컴파일러가 알려줘야 개발자의 시간을 아낄수 있으리, 하지만 이런 예제가 꼭 그렇지만은 않다. 이 코드는 컴파일러 입장에서 보면 옳은 코드가 될수 있는 것이다. 바로 Array class에서 정의 하고 있는 '''''single-argument constructor''''' 에 의하여 컴파일시 이런 코드로의 변환의 가능성이 있다.
          int size() const { return theSize; }
         컴파일러 단에서 a생성자인 Array( ArraySize size) 에서 ArraySize 로의 single-argument constructor를 호출하기 때문에 선언이 가능하지만
         bool operator==( const Array< int >& lhs, const Array<int>& rhs);
         이런 경우에 operator==의 오른쪽에 있는 인자는 int가 single-argument constructor에 거칠수 없기 때문에 에러를 밷어 낸다.
          const UPInt operator++(int); // postfix++
          const UPInt operator--(int); // postfix--
         const UPInt& UPInt::operator++(int)
          static_cast dynamic_cast const_cast reinterpret_cast
         당신은 생성자를 직접 호출하기를 원할때가 있을 것이다. 하지만 생성자는 객체(object)를 초기화 시키고, 객제(object)는 오직 처음 주어지는 단 한번의 값으로 초기화 되어 질수있기 때문에 (예-const 인수들 초기화에 초기화 리스트를 쓰는 경우) 생성자를 이미 존재하고 있는 객체에 호출한다는건 생각의 여지가 없을 것이다.
          Widget* constructWidgetInBuffer(void * buffer, int widgetSize)
         해당 함수(construcWidgetInBuffer())는 버퍼에 만들어진 Widget 객체의 포인터를 반환하여 준다. 이렇게 호출할 경우 객체를 임의 위치에 할당할수 있는 능력 때문에 shared memory나 memory-mapped I/O 구현에 용이하다 constructorWidget에 보이는건 바로
          Widget *pw = constructWidgetInBuffer(shareMemory, 10); // placement new이닷!
  • OurMajorLangIsCAndCPlusPlus/stdlib.h . . . . 17 matches
         || double atof(const char *str); || 문자열을 실수(double precision)로 변환 ||
         || int atoi(const char *str); || 문자열을 정수(integer)로 변환 ||
         || double strtod(const char *str, char **endptr); || 문자열을 실수(double precision)로 변환 ||
         || 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)로 변환 ||
         || char *getenv(const char *name); || 환경 변수를 얻는다 ||
         || int system(const char *string); || 전달인자로 받은 명령 실행 ||
         || 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 mblen(const char *str, size_t n); || 다중 바이트 문자의 길이 리턴 ||
         || size_t mbstowcs(schar_t *pwcs, const char *str, size_t n); || 다중 바이트 문자 스트링을 wide 문자 스트링으로 변환 ||
         || int mbtowc(whcar_t *pwc, const char *str, size_t n); || 다중 바이트 문자를 wide 문자로 변환 ||
         || size_t wcstombs(char *str, const wchar_t *pwcs, size_t n); || wide 문자 스트링을 다중 바이트 스트링으로 변환 ||
  • MoreEffectiveC++/Basic . . . . 16 matches
          void printDouble(const double& rd)
          void printDouble (const double* pd)
         사견: Call by Value 보다 Call by Reference와 Const의 조합을 선호하자. 저자의 Effective C++에 전반적으로 언급되어 있고, 프로그래밍을 해보니 괜찮은 편이었다. 단 return에서 말썽이 생기는데, 현재 내 생각은 return에 대해서 회의적이다. 그래서 나는 COM식 표현인 in, out 접두어를 사용해서 아예 인자를 넘겨서 관리한다. C++의 경우 return에 의해 객체를 Call by Reference하면 {} 를 벗어나는 셈이 되는데 어디서 파괴되는 것인가. 다 공부가 부족해서야 쩝 --;
         const_cast<type>(expression)
         다른 cast 문법은 const와 class가 고려된 C++ style cast연산자 이다.
          * ''const_cast<type>(expression)예제''
         const SpecialWidget& csw = sw;
         update(&csw); // 당연히 안됨 const인자이므로 변환(풀어주는 일) 시켜 주어야 한다.
         update(const_cast<SpecialWidget*>(&csw)); // 옳타쿠나
         update(const_cast<SpecialWidget*>(pw)); // error!
          // const_cast<type>(expression) 는
          // 오직 상수(constness)나 변수(volatileness)에 영향을 미친다.
          // const_cast 가 down cast가 불가능 한 대신에 dynamic_cast 는 말그대로
         #define const_cast(TYPE, TEXPR) ((TYPE) (EXPR))
          update(const_cast(SpecialWidget*, &sw));
         void printBSTArray( ostream& s, const BST array[], int numElements)
         == Item 4: Avoid gratuitous default constructors. ==
  • 데블스캠프2013/셋째날/머신러닝 . . . . 16 matches
          const int SIZEBIG = 8165;
          const int SIZESMALL = 20;
         std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
         std::vector<std::string> split(const std::string &s, char delim) {
          const int Label_Num=20;
          const int Word_Num=8165;
          const int News_Num=11293;
         void readFile(int ** target, const char * filename, int row, int col);
         void readFile(int ** target, const char * filename, int row, int col){
          const int SIZE = 11293;
          const int rowSize();
          const int colSize();
         const int DoubleArray::rowSize(){
         const int DoubleArray::colSize(){
         void readFile(DoubleArray & target, const char * filename);
         void readFile(DoubleArray & target, const char * filename){
  • VonNeumannAirport/Leonardong . . . . 14 matches
          def construct( self, origins, destinations ):
          def construct( self, origin, traffics ):
          self.distMatrix.construct( origins = range(1,MAX+1),
          self.distMatrix.construct( origins = range(1,MAX+1),
          self.traffic.construct( origin = 1,
          self.traffic.construct( origin = 1,
          self.traffic.construct( origin = 2,
          self.distMatrix.construct( origins = [1,2],
          self.distMatrix.construct( origins = [1,2],
          self.traffic.construct( origin = 1,
          self.traffic.construct( origin = 2,
          self.traffic.construct( origin = 3,
          self.distMatrix.construct( origins = [1,2,3],
          self.distMatrix.construct( origins = [2,3,1],
  • OurMajorLangIsCAndCPlusPlus/XML/조현태 . . . . 13 matches
          * C...C++이랑 많이 다르구나~ @.@ const, bool형이 없고 형체크가 정확하지 않아서 조마조마 했다는..ㅎㅎ
         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* CreateNewBlock(const char* name, const char* contents)
         const char* CreateTree(SReadBlock* headBlock, const char* readData)
          const char* nameEndPoint = strchr(readData, '>');
          const char* contentsEndPoint = strchr(readData, '<');
         void SuchAllSameNamePoint(const char* name, SReadBlock* suchBlock, SReadBlock*** suchedBlocks)
         void printSuchPoints(const char* query, SReadBlock* suchBlock)
          const char* suchEndPoint = NULL;
          const char* readData = DEBUG_TEXT;
          const char query[INPUT_BUFFUR];
  • ACM_ICPC/PrepareAsiaRegionalContest . . . . 12 matches
          const int MAX = 1001;
          const int SQUARE_SIZE = 11;
          bool equals(const Coin & coin){ return this->face == coin.face; }
          void set(const char face ){ this->face = face; }
         const int MAX = 4;
         const int SIZE = 3;
         const int INT_MAX = 20000000;
          void constructCoins( const char input[SIZE][SIZE] );
         void Gamer::constructCoins( const char input[SIZE][SIZE] )
          gamer.constructCoins( input );
  • MoreEffectiveC++/Appendix . . . . 12 matches
         I generally refer to this as "the LSD book," because it's purple and it will expand your mind. Coplien covers some straightforward material, but his focus is really on showing you how to do things in C++ you're not supposed to be able to do. You want to construct objects on top of one another? He shows you how. You want to bypass strong typing? He gives you a way. You want to add data and functions to classes as your programs are running? He explains how to do it. Most of the time, you'll want to steer clear of the techniques he describes, but sometimes they provide just the solution you need for a tricky problem you're facing. Furthermore, it's illuminating just to see what kinds of things can be done with C++. This book may frighten you, it may dazzle you, but when you've read it, you'll never look at C++ the same way again. ¤ MEC++ Rec Reading, P27
          template<class U> // copy constructor member
          T& operator*() const; // see Item 28
          T* operator->() const; // see Item 28
          T* get() const; // return value of current
         inline T& auto_ptr<T>::operator*() const
         inline T* auto_ptr<T>::operator->() const
         inline T* auto_ptr<T>::get() const
          T& operator*() const { return *pointee; }
          T* operator->() const { return pointee; }
          T* get() const { return pointee; }
         If your compilers lack support for member templates, you can use the non-template auto_ptr copy constructor and assignment operator described in Item 28. This will make your auto_ptrs less convenient to use, but there is, alas, no way to approximate the behavior of member templates. If member templates (or other language features, for that matter) are important to you, let your compiler vendors know. The more customers ask for new language features, the sooner vendors will implement them. ¤ MEC++ auto_ptr, P8
  • OurMajorLangIsCAndCPlusPlus/2006.2.06/김상섭 . . . . 12 matches
          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)
         ostream & operator<<(ostream & os, const newstring& ns)
          const newstring s = "123";
  • OurMajorLangIsCAndCPlusPlus/Class . . . . 12 matches
          const int i;
          X(int ii, const string& n, Date d, Club& c) : i(ii), c(n, d), pc(c) {}
         === const 멤버 함수 ===
          int year() const;
          int month() const;
          int day() const;
         int Date::year() const
         int Date::month() const
         int Date::day() const
          void compute_cache_value() const;
          string string_rep() const;
         string Date::string_rep() const
  • Slurpys/강인수 . . . . 12 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;
         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;
  • CPPStudy_2005_1/STL성적처리_2 . . . . 10 matches
         vector<string> tokenize(const string& line);
         double total(const vector<int>&);
          const map< string, vector<int> >,
          double accu(const vector<int>&) = total);
         vector<string> tokenize(const string& line) {
         double total(const vector<int>& grades) {
          const map< string, vector<int> > record,
          double accu(const vector<int>&)) {
          for(map< string, vector<int> >::const_iterator iter = record.begin();
          for(vector<int>::const_iterator grades = (iter->second).begin();
  • 레밍즈프로젝트/박진하 . . . . 10 matches
         // Construction
          int GetSize() const;
          int GetUpperBound() const;
          TYPE GetAt(int nIndex) const;
          const TYPE* GetData() const;
          int Append(const CArray& src);
          void Copy(const CArray& src);
          TYPE operator[](int nIndex) const;
          void Dump(CDumpContext&) const;
          void AssertValid() const;
  • AcceleratedC++/Chapter8 . . . . 9 matches
         T max(const T& left, const T& right)
          {{{~cpp template <class In, class X> In find(In begin, In end, const X& x) {
         template <class In, class X> In find(In begin, In end, const X& x) {
         template <class For, class X> void replace(For begin, For end, const X& x, const X& y) {
         template <class Ran, class X> bool binary_search(Ran begin, Ran end, const X& x) {
         void split(const string& str, Out os) { // changed
          typedef string::const_iterator iter;
  • SpiralArray/영동 . . . . 9 matches
         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;
  • TheTrip/문보창 . . . . 9 matches
         const int MAX = 100;
         int exchangeMoney(const int * cost, const int n);
         void showExchange(const int * ex, const int count);
         int exchangeMoney(const int * cost, const int n)
         void showExchange(const int * ex, const int count)
  • VendingMachine/세연/1002 . . . . 9 matches
          2. 소위 magic number (ex : 배열의 범위를 설정하는 숫자들) 라 불리는 것들에 대해 - const 변수 선언[[BR]]
         const int DRINKNAME_MAXLENGTH = 255;
         const int TOTAL_DRINK_TYPE = 5;
         const int DRINKNAME_MAXLENGTH = 255;
         const int TOTAL_DRINK_TYPE = 5;
         const int validMoney[5] = {10, 50, 100, 500, 1000};
         const int DRINKNAME_MAXLENGTH = 255;
         const int TOTAL_DRINK_TYPE = 5;
         const int validMoney[5] = {10, 50, 100, 500, 1000};
  • 기본데이터베이스/조현태 . . . . 9 matches
         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;
  • 진법바꾸기/문보창 . . . . 9 matches
         const int LEN = 50;
         void parse_base(const int num, const int base);
         void show_num(const int * parse_num, const int length);
         void parse_base(const int num, const int base)
         void show_num(const int * parse_num, const int length)
  • AustralianVoting/Leonardong . . . . 8 matches
         bool isWin( const Candidator & candidator, int n )
         int current( const VoteSheet & sheet )
         void collectVoting( CandidatorVector & candidators, const VoteSheetVector & sheets )
         void markFall( CandidatorVector & candidators, const int limit )
         int minVotedNum( const CandidatorVector & candidators )
         bool isUnionWin( const CandidatorVector & candidators )
         int countRemainCandidators( const CandidatorVector & candidators )
         bool isSomeoneWin( const CandidatorVector & candidators )
  • CPPStudy_2005_1/STL성적처리_1 . . . . 8 matches
         bool totalCompare(const Student_info &s1, const Student_info &s2);
         ostream& displayScores(ostream &out, const vector<Student_info> &students);
         bool totalCompare(const Student_info &s1, const Student_info &s2)
         ostream& displayScores(ostream &out, const vector<Student_info> &students)
          for(vector<Student_info>::const_iterator it = students.begin() ; it!=students.end();++it)
          for(vector<string>::const_iterator it = subject.begin() ;
  • IsBiggerSmarter?/문보창 . . . . 8 matches
         const int MAX_ELEPHANT = 1100;
          bool operator () (const Elephant & a, const Elephant & b)
         const int MAX_ELEPHANT = 1010;
         const int WEIGHT = 1;
         const int IQ = 2;
          bool operator () (const Elephant & a, const Elephant & b)
  • StringOfCPlusPlus/상협 . . . . 8 matches
          String(const char *in_st);
          int nval() const {return n;}//문자열 길이를 알려줌.
          String operator+(const String &s) const;
         String::String(const char *in_st)
         /*String::strlen() const
         String String::operator +(const String &s) const
  • AntOnAChessboard/문보창 . . . . 7 matches
         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)
  • Boost/SmartPointer . . . . 7 matches
          bool operator()( const FooPtr & a, const FooPtr & b )
          void operator()( const FooPtr & a )
          example( const example & );
          example & operator=( const example & );
         example::example( const example & s ) : _imp( s._imp ) {}
         example & example::operator=( const example & s )
  • BoostLibrary/SmartPointer . . . . 7 matches
          bool operator()( const FooPtr & a, const FooPtr & b )
          void operator()( const FooPtr & a )
          example( const example & );
          example & operator=( const example & );
         example::example( const example & s ) : _imp( s._imp ) {}
         example & example::operator=( const example & s )
  • CppStudy_2002_1/과제1/Yggdrasil . . . . 7 matches
         void say(const char *);
         void say(const char *str)
         const int Len=40;
         void setgolf(golf &g, const char *name, int hc);
         void showgolf(const golf &g);
         void setgolf(golf &g, const char *name, int hc)
         void showgolf(const golf & g)
  • FromDuskTillDawn/조현태 . . . . 7 matches
         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;
          STown(const char* inputName)
         STown* SuchOrAddTown(const char* townName)
         const char* Parser(const char* readData)
          const char* readData = DEBUG_READ;
  • OurMajorLangIsCAndCPlusPlus/Variable . . . . 7 matches
         === const 키워드 ===
         const int a;
         int const b;
         const int *c;
         int * const d;
         const int * const e;
  • OurMajorLangIsCAndCPlusPlus/locale.h . . . . 7 matches
         #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()
         || char* setlocale(int category, const char* locale); || category에 대해 로케일 locale을 설정하고 (물론, 사용 가능한 로케일인 경우), 설정된 로케일값을 리턴. ||
  • Slurpys/문보창 . . . . 7 matches
         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);
         bool isSlurpy(const char * str, int & index)
         bool isSlimp(const char * str, int & index)
         bool isSlump(const char * str, int & index)
  • Star/조현태 . . . . 7 matches
          bool operator == (const SavePoint& target) const
          bool operator < (const SavePoint& target) const
         const int START_POINT_Y[4] = {0, 1, 2, 2};
         const int END_POINT_Y[4] = {6, 6, 7, 8};
         const int START_POINT_Z[4] = {1, 1, 1, 0};
  • 데블스캠프2012/다섯째날/C로배우는C++원리 . . . . 7 matches
         void setName(void* this,const char* name) {
         void setAge(void* this, const int age) {
         void createPerson(void* this, const char* name, const int age){
         void createStudent(void* this, const char* name, const int age, const char* studentID){
  • Gof/Composite . . . . 6 matches
          const char* Name () { return _name; }
          Equipment (const char*);
          const char* _name;
          FloppyDisk (const char*);
          CompositeEquipment (const char*);
          Chassis (const char*);
  • Gof/Facade . . . . 6 matches
          const char* variableName
          ) const;
          ) const;
          ) const;
          ) const;
         이 구현에서는 사용하려는 code-generator의 형태에 대해서 hard-codes (직접 특정형태 부분을 추상화시키지 않고 바로 입력)를 했다. 그렇게 함으로서 프로그래머는 목적이 되는 아키텍처로 구체화시키도록 요구받지 않는다. 만일 목적이 되는 아키텍처가 단 하나라면 그것은 아마 이성적인 판단일 것이다. 만일 그러한 경우가 아니라면 우리는 Compiler 의 constructor 에 CodeGenerator 를 인자로 추가하기 원할 것이다. 그러면 프로그래머는 Compiler를 instance화 할때 사용할 generator를 구체화할 수 있다. Compiler facade는 또한 Scanner나 ProgramNodeBuilder 등의 다른 협동하는 서브시스템클래스를 인자화할 수 있다. 그것은 유연성을 증가시키지만, 또한 일반적인 사용형태에 대해 인터페이스의 단순함을 제공하는 Facade pattern의 의의를 떨어뜨린다.
  • OurMajorLangIsCAndCPlusPlus/2006.2.06/허준수 . . . . 6 matches
          myString(const char* ch) {
          myString(const myString& s) {
          int length() const {
          void operator = (const myString& s) {
         ostream& operator << (ostream& o, const myString& s) {
          /*const myString s = "123";
  • PowerOfCryptography/조현태 . . . . 6 matches
         const int TRUE=1;
         const int FALSE=0;
         const int TRUE=1;
         const int FALSE=0;
         const int ENTER=13;
         const unsigned __int64 MAX_LONG=1000000000000000000;
  • 데블스캠프2011/셋째날/String만들기/김준석 . . . . 6 matches
          String(const char *original){
          String(const String& str, const int offset,const int count){
          char charAt(const int at){
          int compareTo(const char * compare){
  • 숫자를한글로바꾸기/조현태 . . . . 6 matches
         const bool TRUE=1;
         const bool FALSE=0;
         const int MAX_LONG=5;//최대가 5자리 숫자이기때문.
         const int MAX_NUMBER=10000;//최대가 10000이기때문.
          const char NUMBER_TO_HAN[10][3]={"영","일","이","삼","사","오","육","칠","팔","구"};
          const char NUMBER_TO_JARI[5][3]={"","십","백","천","만"};
  • 오목/곽세환,조재화 . . . . 6 matches
          virtual void AssertValid() const;
          virtual void Dump(CDumpContext& dc) const;
         // COhbokView construction/destruction
          // TODO: add construction code here
         void COhbokView::AssertValid() const
         void COhbokView::Dump(CDumpContext& dc) const
  • 오목/재선,동일 . . . . 6 matches
          virtual void AssertValid() const;
          virtual void Dump(CDumpContext& dc) const;
         // CSingleView construction/destruction
          // TODO: add construction code here
         void CSingleView::AssertValid() const
         void CSingleView::Dump(CDumpContext& dc) const
  • 오목/진훈,원명 . . . . 6 matches
          virtual void AssertValid() const;
          virtual void Dump(CDumpContext& dc) const;
         // COmokView construction/destruction
          // TODO: add construction code here
         void COmokView::AssertValid() const
         void COmokView::Dump(CDumpContext& dc) const
  • AcceleratedC++/Chapter1 . . . . 5 matches
          const std::string greeting = "Hello, " + name + "!";
          const std::string spaces(greeting.size(), ' ');
          const std::string second = "* " + spaces + " *";
          const std::string first(second.size(), '*');
         초기화, end-of-file, buffer, flush, overload, const, associativity(결합방식), 멤버함수, 기본 내장 타입, 기본타입(built-in type)
  • C++/SmartPointer . . . . 5 matches
          SmartPtr(const SmartPtr<_Ty>& _Y) throw ()
          SmartPtr<_Ty>& operator=(const SmartPtr<_Ty>& _Y) throw ()
          _Ty& operator*() const throw ()
          _Ty *operator->() const throw ()
          _Ty *get() const throw ()
  • CppStudy_2002_1/과제1/CherryBoy . . . . 5 matches
         const int Len=40;
         void setgolf(golf & g, const char * name, int hc);
         void showgolf(const golf & g);
         void setgolf(golf & g, const char * name, int hc)
         void showgolf(const golf & g)
  • OptimizeCompile . . . . 5 matches
         '''Constant propagation'''
         변수가 값을 할당 받아서, 다시 새로운 값으로 할당 받기 전까지, 그 변수는 일종의 constant 라고 볼 수 있다. 컴파일러는 이를 감지해서 최적화를 수행하게 된다.
         ''' Constant folding'''
         연산에서 두개 이상의 constant 들은, 미리 계산되어 하나의 constant 값으로 바꿀 수 있다. 위의 예에 적용하자면
         컴파일러는 constant propagation 과 constant folding 을 반복하여 수행한다. 각각 서로의 가능성을 만들어 줄 수 있으므로, 더이상 진행 할 수 없을 때까지 진행한다.
  • 몸짱프로젝트/BinarySearch . . . . 5 matches
         const int SIZE = 10;
         int search(const int aArr[], const int aNum, int front, int rear);
         int search(const int aArr[], const int aNum, int front, int rear)
  • 오목/재니형준원 . . . . 5 matches
          virtual void AssertValid() const;
          virtual void Dump(CDumpContext& dc) const;
         // COmokView construction/destruction
         void COmokView::AssertValid() const
         void COmokView::Dump(CDumpContext& dc) const
  • BusSimulation/조현태 . . . . 4 matches
         const int MOVE=1;
         const int STOP=0;
         const int MOVE=1;
         const int STOP=0;
  • C++스터디_2005여름/학점계산프로그램/문보창 . . . . 4 matches
          static const int NUM_STUDENT; // 학생 수(상수 멤버)
         const int CalculateGrade::NUM_STUDENT = 121;
          static const int NUM_GRADE; // 과목 수 (상수 멤버)
         const int Student::NUM_GRADE = 4;
  • C++스터디_2005여름/학점계산프로그램/허아영 . . . . 4 matches
         #include "const.h"
         #include "const.h"
         ==== const.h ====
         #include "const.h"
  • Gof/Command . . . . 4 matches
         OpenCommand는 유저로부터 제공된 이름의 문서를 연다. OpenCommand는 반드시 Constructor에 Application 객체를 넘겨받아야 한다. AskUser 는 유저에게 열어야 할 문서의 이름을 묻는 루틴을 구현한다.
          virtual const char* AskUser ();
          const char* name = AskUser ();
         PasteCommand 는 receiver로서 Document객체를 넘겨받아야 한다. receiver는 PasteCommand의 constructor의 parameter로서 받는다.
         constructor는 receiver와 instance 변수에 대응되는 action을 저장한다. Execute는 단순히 action을 receiver에 적용한다.
  • Gof/Mediator . . . . 4 matches
          virtual const char* GetSelection();
          virtual void SetText(const char* text);
          virtual const char* GetText();
          virtual void SetText(const char* text);
  • Gof/Singleton . . . . 4 matches
          static void Register (const char* name, Singleton*);
          static Singleton* Lookup (const char* name);
          const char* singletonName = getenv("SINGLETON");
          const char* mazeStyle = getenv ("MAZESTYLE");
         // Construction/Destruction
         // Construction/Destruction
  • MineSweeper/신재동 . . . . 4 matches
         const int MINE = -1;
         const int MOVE[3] = {-1, 0, 1};
         bool isInBoard(int row, int col, int moveRow, int moveCol, const vector< vector<int> >& board)
         void showBoard(const vector< vector<int> >& board)
  • STL/vector/CookBook . . . . 4 matches
         Func(const Obj& obj)
          Obj(int n, const string& str) : a(n), c(str) {}
          * 노파심에서 말하는 건데.. 함수로 객체를 넘길때는 꼭 참조! 참조! 입니다. 값이 안 바뀌면 꼭 const 써주시구여. 참조 안 쓰고 값 쓰면 어떻게 되는지 이펙티브 C++에 잘 나와 있습니다.(책 선전 절대 아님) 복사 생성자를 10번 넘게 호출한다는 걸로 기억함.
          * 구조체에서 함수역시 가능하고, constructor, destructor역시 가능합니다. 다만 class와 차이점은 상속이 안되고, 내부 필드들이 public으로 되어 있습니다. 상속이 안되서 파생하는 분제들에 관해서는 학교 C++교제 상속 부분과 virtual 함수 관련 부분의 동적 바인딩 부분을 참고 하시기 바람니다.--["상민"]
  • TugOfWar/문보창 . . . . 4 matches
         const int MAX_CASE = 100;
         const int MAX = 100;
         inline int comp(const void *i,const void *j) { return *(int *)i-*(int *)j; };
  • [Lovely]boy^_^/USACO/BrokenNecklace . . . . 4 matches
         const string CutAndPasteBack(const string& str, int pos);
         const string CutAndPasteBack(const string& str, int pos)
  • [Lovely]boy^_^/USACO/WhatTimeIsIt? . . . . 4 matches
         int StringConvertToInt(const string& str);
         string Upcase(const string& str);
         string Upcase(const string& str)
         int StringConvertToInt(const string& str)
  • [Lovely]boy^_^/[Lovely]boy^_^/USACO/Barn . . . . 4 matches
         vector<int> getDistance(const vector<int>& ar)
         vector<int> getPivot(int numPivot, const vector<int>& distance)
         int getTotal(int numPivot, const vector<int>& ar, const vector<int>& pivots)
  • 문자반대출력/문보창 . . . . 4 matches
         void write_file(const string & str);
         void write_file(const string & str)
         void write_file(const string & str);
         void write_file(const string & str)
  • 보드카페 관리 프로그램/강석우 . . . . 4 matches
         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 price(vector<board>& vec, int hour, int minute, const int& i)
  • 이차함수그리기/조현태 . . . . 4 matches
         const int MIN_X=-5;
         const int MAX_X=5;
         const float TAB_X=1;
         const float TAB_Y=0.5;
  • C 스터디_2005여름/학점계산프로그램/김태훈김상섭 . . . . 3 matches
         const int MAX_SUB = 4;
         void getdata(vector<Score>& ban,const char* filename);
         void getdata(vector<Score>& ban,const char* filename){
  • CheckTheCheck/곽세환 . . . . 3 matches
         const int EMPTY = 0;
         const int BLACK = 1;
         const int WHITE = 2;
  • ContestScoreBoard/문보창 . . . . 3 matches
         const int NUMBER_TEAM = 101;
         const int NUMBER_PROBLEM = 10;
         const int TIME_PENALTY = 20;
  • Fmt/문보창 . . . . 3 matches
         const int STATE_A = 1;
         const int STATE_B = 2;
         const int STATE_C = 3;
  • HardcoreCppStudy/첫숙제/Overloading/임민수 . . . . 3 matches
         int const arsize = 11;
         const int max=20;
         const int max=100;
  • LearningToDrive . . . . 3 matches
         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.
         소프트웨어 개발을 운전을 배우는 것에 비유한 설명이 재미있네요. 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.' 부분도.. 아.. 부지런해야 할 프로그래머. --;
  • OurMajorLangIsCAndCPlusPlus/2006.2.06/하기웅 . . . . 3 matches
          int length() const
         ostream& operator << (ostream& o, const newstring& ns)
          const newstring s="123";
  • STLErrorDecryptor . . . . 3 matches
         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>]'(으)로 변환할 수 없습니다.; 소스 형식을 가져올 수 있는 생성자가 없거나 생성자 오버로드 확인이 모호합니다.
  • WeightsAndMeasures/김상섭 . . . . 3 matches
         const int maxweight = 10000000;
         bool compare(const turtle & a, const turtle & b)
  • Yggdrasil/가속된씨플플/2장 . . . . 3 matches
          const string greeting="Hello, "+name+"!";
          const int rows=pad_rows*2+3;
          const string::size_type cols=greeting.size()+pad_cols*2+2;
  • Yggdrasil/가속된씨플플/4장 . . . . 3 matches
          * 참조에 의한 전달은 그 전달인자의 별명(?)을 넘겨준다. 즉 그 변수 자체를 넘겨주는 것이나 다름없다. 즉, 함수 내에서 그 전달인자로 전달된 변수가 바뀌면 원래의 값에도 변화가 온다. 그래서 적절히 const로 값이 바뀌지 않도록 제한해주는 것도 좋다. 복사를 안 하므로 오버헤드를 줄일 수 있음.
         bool compare(const Student_info& x, const Student_info& y)
  • randomwalk/홍선 . . . . 3 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 좌표 증감
  • 논문번역/2012년스터디/이민석 . . . . 3 matches
          * 「Experiments in Unconstrained Offline Handwritten Text Recognition」 번역
         == Experiments in Unconstrained Offline Handwritten Text Recognition(제약 없는 오프라인 필기 글자 인식에 관한 실험) ==
         필기 글자 인식은 패턴 인식의 도전적인 분야다. 지금까지의 오프라인 필기 인식 시스템들은 대부분 우편 주소 읽기나 은행 수표 같은 형식을 처리하는 데 적용되었다. [14] 이들 시스템이 개별 글자나 단어 인식에 한정된 반면 제약 없는(unconstrained) 필기 글자 인식을 위한 시스템은 거의 없다. 그 이유는 이러한 작업이 크게 복잡하기 때문인데 글자 또는 단어의 경계에 대한 정보가 없는 데다 헤아릴 수 없을 정도로 어휘가 방대한 것이 특징이다. 그럼에도 필기 글자 인식 기법을 더 조사하는 것이 가치 있는 이유는, 계산 능력이 향삼함에 따라 더욱 복잡한 처리를 할 수 있기 때문이다.
  • 니젤프림/BuilderPattern . . . . 3 matches
         쉽게 말해서, 아주 복잡한 오브젝트를 생성해야하는데, 그 일을 오브젝트를 원하는 클래스가 하는게 아니라, Builder 에게 시키는 것이다. 그런데 자꾸 나오는 생성/표현 의 의미는, 바로 director 의 존재를 설명해 준다고 할 수 있다. director 는 Building step(construction process) 을 정의하고 concrete builder 는 product 의 구체적인 표현(representation) 을 정의하기에.. 그리고, builder 가 추상적인 인터페이스를 제공하므로 director 는 그것을 이용하는 것이다.
          public void constructPizza() {
          waiter.constructPizza();
  • 몸짱프로젝트/DisplayPumutation . . . . 3 matches
         void perm(char * list, int i , const int n);
         const int SIZE = 4;
         void perm(char * list, int i , const int n)
  • 새싹교실/2011/Noname . . . . 3 matches
          case constant-expression :
          case constant-expression :
          case constant-expression :
  • 새싹교실/2012/AClass . . . . 3 matches
          * cmd창, main parameter사용법, static, const
          * static, const 이란??
          * [황혜림] - 상속배웠습니다. protected가 무엇인지 배웠고 오버로딩, 오버라이딩이 무엇인지도 배웠습니다. static과 const도 배웠습니다.
  • 식인종과선교사문제/조현태 . . . . 3 matches
         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};
  • 토이/숫자뒤집기/김남훈 . . . . 3 matches
         const int MAX_BUF = 10;
         void inverseNumber(const char * input);
         void inverseNumber(const char * input) {
  • 3N 1/김상섭 . . . . 2 matches
         const int Min = 1;
         const int Max = 1000000;
  • 3N+1/김상섭 . . . . 2 matches
         const int Min = 1;
         const int Max = 1000000;
  • ACE/CallbackExample . . . . 2 matches
          const ACE_TCHAR *prio_name = ACE_Log_Record::priority_name(prio);
          const time_t epoch = log_record.time_stamp().sec();
  • AcceleratedC++/Chapter3 . . . . 2 matches
          const string greeting = "Hello, " + name + "!";
          const string greeting = "Hello, " + name + "!";
  • CarmichaelNumbers/문보창 . . . . 2 matches
         const int NORMAL = 1;
         const int CARMICHAEL = 2;
  • CodeRace/20060105/아영보창 . . . . 2 matches
          bool operator() (const Word* a, const Word* b)
  • DesignPatternsAsAPathToConceptualIntegrity . . . . 2 matches
         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?”
         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?
  • EightQueenProblem/da_answer . . . . 2 matches
         const
         const
  • ErdosNumbers/문보창 . . . . 2 matches
         const int MAX_STR = 20;
         const int MAX_ERNUM = 100;
  • Graphical Editor/Celfin . . . . 2 matches
          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};
  • Hartals/조현태 . . . . 2 matches
         const int NUMBER_NOMAL_DAY=2;
         const int NOMAL_DAYS[NUMBER_NOMAL_DAY]={6,7};
  • LoveCalculator/zyint . . . . 2 matches
         size_t strlen(const string str);
         size_t strlen(const string str)
  • Marbles/문보창 . . . . 2 matches
         const int TYPE1 = 1;
         const int TYPE2 = 2;
  • OurMajorLangIsCAndCPlusPlus/print/이상규 . . . . 2 matches
         void print(const char *format, ...)
          const char *c = format;
  • Robbery/조현태 . . . . 2 matches
          const int ADD_POINT_X[5] = {0, +1, -1, 0, 0};
          const int ADD_POINT_Y[5] = {0, 0, 0, +1, -1};
  • SmithNumbers/신재동 . . . . 2 matches
         const int MAX_TEST = 100;
         const int MAX_PRIME_NUMBER = 100000;
  • UnixSocketProgrammingAndWindowsImplementation . . . . 2 matches
         ssize_t send(int fildes, const void * buf, size_t nbytes, unsigned int flags);
         ssize_t write(int fildes, const void * buf, size_t nbytes);
  • WeightsAndMeasures/문보창 . . . . 2 matches
         bool turtleGreater(const Turtle& A, const Turtle& B)
  • neocoin/CodeScrap . . . . 2 matches
         static const int INIT_START;
         const int Board::INIT_START = 0;
  • 개인키,공개키/김회영,권정욱 . . . . 2 matches
         const int key = 50;
         const int askii = 256;
  • 몸짱프로젝트/InfixToPostfix . . . . 2 matches
         const int LEN = 4;
         const int MAX = 10;
  • 문자반대출력/조현태 . . . . 2 matches
         const bool TRUE=1;
         const bool FALSE=0;
  • 미로찾기/곽세환 . . . . 2 matches
         const int Max_x = 30;
         const int Max_y = 20;
  • 미로찾기/정수민 . . . . 2 matches
         const int miro[13][17]={
         const int miro[13][17]={
  • 반복문자열/허아영 . . . . 2 matches
         void printMessages(const char* message, int messageLength);
         void printMessages(const char* message, int messageLength)
  • 변준원 . . . . 2 matches
          const int max=5;
          const int max=5;
  • 빵페이지/도형그리기 . . . . 2 matches
         const char star = '*';
         const char space = ' ';
  • 새싹교실/2012/주먹밥/이소라때리기게임 . . . . 2 matches
         const SELECT menu[SKILLSIZE] ={
         const CLASS classList[CLASSSIZE]= {
  • 손동일 . . . . 2 matches
         const int Max = 11 ;
         const int MAX = 11;
  • 이영호/My라이브러리 . . . . 2 matches
         int send_msg(int sockfd, const *msg);
         int send_msg(int sockfd, const *msg)
  • 큐와 스택/문원명 . . . . 2 matches
         const int ASIZE = 5;
         const int ASIZE = 5;
  • 큰수찾아저장하기/조현태 . . . . 2 matches
         const int MAX_GARO=4;
         const int MAX_SAERO=4;
  • 헝가리안표기법 . . . . 2 matches
         || k || constant formal parameter || ... || void vFunc(const long klGalaxies) ||
  • 5인용C++스터디/에디트박스와콤보박스 . . . . 1 match
         BOOL Create(DWORD dwstyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
  • 8queen/곽세환 . . . . 1 match
         const int Max = 8;
  • AutomatedJudgeScript/문보창 . . . . 1 match
         const int MAX = 100;
  • ComputerNetworkClass/Report2006/PacketAnalyzer . . . . 1 match
         const char* szIpAddr to DWORD ipvalue
  • CuttingSticks/문보창 . . . . 1 match
         void show(const int result)
  • EightQueenProblem/강인수 . . . . 1 match
         const int N = 8;
  • FromDuskTillDawn/변형진 . . . . 1 match
          function __construct()
  • Functor . . . . 1 match
         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.
  • Garbage collector for C and C++ . . . . 1 match
         # is normally more than one byte due to alignment constraints.)
  • HardcoreCppStudy/첫숙제/Overloading/김아영 . . . . 1 match
         const int MAX = 20;
  • HowToStudyDataStructureAndAlgorithms . . . . 1 match
         교육은 물고기를 잡는 방법을 가르쳐주어야 한다. 어떤 알고리즘을 배운다면, 그 알고리즘을 고안해 낸 사람이 어떤 사고의 과정을 거쳐서 그 해법에 도달했는지를 구경할 수 있어야 하고, 학생은 각자 스스로만의 해법을 차근 차근 "구성"(construct)할 수 있어야 한다(이를 교육철학에서 구성주의라고 하는데, 레고의 아버지이고 마빈 민스키와 함께 MIT 미디어랩의 선구자인 세이머 페퍼트 박사가 주창했다). 전문가가 하는 것을 배우지 말고, 그들이 어떻게 전문가가 되었는가를 배우고 흉내내라.
  • ImmediateDecodability/문보창 . . . . 1 match
         const int MAX = 10;
  • JumpJump/김태진 . . . . 1 match
         int main(int argc, const char * argv[])
  • Marbles/신재동 . . . . 1 match
         const int MAX_NUMBER = 1000;
  • MineFinder . . . . 1 match
          326.552 0.1 326.552 0.1 221 CWnd::SetWindowTextA(char const *) (mfc42d.dll)
  • MineSweeper/문보창 . . . . 1 match
         const int MAX = 100;
  • OurMajorLangIsCAndCPlusPlus/XML/김상섭허준수 . . . . 1 match
         tree_pointer tree_make(const char * file)
  • OurMajorLangIsCAndCPlusPlus/math.h . . . . 1 match
         ||double atof ( const char * string ) || 문자열을 실수형으로 변형시킨다||
  • POLY/김태진 . . . . 1 match
         int main(int argc, const char * argv[])
  • PyIde . . . . 1 match
          * BoaConstructor - http://boa-constructor.sourceforge.net/
          * BoaConstructor - Scintilla 가 사용된 예를 볼 수 있다.
  • RandomWalk/김아영 . . . . 1 match
         const int max = 12;
  • SmithNumbers/김태진 . . . . 1 match
         int main(int argc, const char * argv[])
  • StacksOfFlapjacks/조현태 . . . . 1 match
         const int SIZE_BUFFER=100;
  • TermProject/재니 . . . . 1 match
         const int students = 20;
  • TugOfWar/이승한 . . . . 1 match
         const int MAX= 100;
  • XOR삼각형/임다찬 . . . . 1 match
          const int MAX=50;
  • [Lovely]boy^_^/Arcanoid . . . . 1 match
          * I don't want pointers in container, so I had to make a copy constructor, substitute operator.--;
  • 데블스캠프2006/목요일/winapi . . . . 1 match
          static const int BUTTON_ID = 1000;
  • 데블스캠프2011/다섯째날/HowToWriteCodeWell/김준석,서영주 . . . . 1 match
          // TODO Auto-generated constructor stub
  • 마방진/임민수 . . . . 1 match
         int const arsize = 11;
  • 몸짱프로젝트/CrossReference . . . . 1 match
         const int MAX_LEN = 20;
  • 새싹C스터디2005/선생님페이지 . . . . 1 match
          교육은 물고기를 잡는 방법을 가르쳐야 합니다. 어떤 알고리즘을 배운다면 그 알고리즘을 고안해낸 사람이 어떤 사고 과정을 거쳐 그 해법에 도달했는지를 구경할 수 있어야 하고, 학생은 각자 스스로만의 해법을 차근차근 '구성'(construct)할 수 있어야 합니다 (이를 교육철학에서 구성주의라고 합니다. 교육철학자 삐아제(Jean Piaget)의 제자이자, 마빈 민스키와 함께 MIT 미디어랩의 선구자인 세이머 페퍼트 박사가 주창했습니다). 전문가가 하는 것을 배우지 말고, 그들이 어떻게 전문가가 되었는지를 배우고 흉내 내야 합니다. 결국은 소크라테스적인 대화법입니다. 해답을 가르쳐 주지 않으면서도 초등학교 학생이 자신이 가진 지식만으로 스스로 퀵소트를 유도할 수 있도록 옆에서 도와줄 수 있습니까? 이것이 우리 스스로와 교사들에게 물어야 할 질문입니다.
  • 새싹교실/2011 . . . . 1 match
          constant/variable->variable: 논리회로와 연관시키면 은근히 편함
  • 새싹교실/2011/데미안반 . . . . 1 match
          * [이준영] - 오늘 심볼릭 상수를 배웠습니다. const랑 define을 배웠어요. 먼지는 모르겠지만 나중에 암기하도록 하겠습니다.
  • 새싹교실/2012/앞부분만본반 . . . . 1 match
         variable,coefficient,constant에 대해서 설명.
  • 서지혜 . . . . 1 match
          * '''의도적 수련'''에서 영감을 받아 시작하기로 한 reconstitution project
  • 시간맞추기/조현태 . . . . 1 match
         const int ANSWER_TIME=8;
  • 식인종과선교사문제/변형진 . . . . 1 match
          function __construct()
  • 정렬/방선희 . . . . 1 match
         const int Max = 10000;
  • 정모/2011.4.4/CodeRace . . . . 1 match
         int main(int argc, const char **argv) {
  • 큐/Leonardong . . . . 1 match
         const int Asize = 3;
  • 파스칼삼각형/임다찬 . . . . 1 match
          const int MAX = 100;
  • 피보나치/방선희 . . . . 1 match
         const int Max = 5000;
Found 169 matching pages out of 7555 total pages (2430 pages are searched)

You can also click here to search title.

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