프로그램언어 썸네일형 리스트형 [Python] Class Operator Overloading Why You Will Care: Operator Overloading Later, we'll see that objects we implement ourselves with classes can pick and choose from these categories arbitrarily. For instance, if you want to provide a new kind of specialized sequence object that is consistent with built-in sequences, code a class that overloads things like indexing, slicing, and concatenation: class MySequence: def __init__(self,.. 더보기 [Python] Why You Will Care: Dictionary Interfaces Why You Will Care: Dictionary Interfaces Besides being a convenient way to store information by key in your programs, some Python extensions also present interfaces that look and work the same as dictionaries. For instance, Python's interface to dbm access-by-key files looks much like a dictionary that must be opened; strings are stored and fetched using key indexes: import anydbm file = anydbm... 더보기 [Python] Built-in Objects Preview * table Builte-in Object Preview 더보기 [Python] Environment Variables Setting * Python을 사용하기 위해서 환경설정을 해야 한다. * 특히 기본적으로 제공하는 라이브러리 이외에 추가적인 라이브러리를 사용할 때 꼭 추가. * table 1.1 Important Enviroment variables. * The Python interpreter recognizes a handful of environment variable settings, but only a few are used often enough to warrant explanation here. These variables are straightforward to use, but here are a few pointers: * the PATH setting lists a set of directoriess that t.. 더보기 심심할떄 Perl 을 e-book으로 공부 시작. 대충 프로젝트만 구성 * 2010.05.01 #!/usr/bin/perl print ("Hello World Perl! : "); $nombrel = ; chop ($nombrel); print ("Un : "); $nombre2 = ; chop ($nombre2); if ( $nombrel == $nombre2 ) { print ("Is Same"); } else { print ("Is not Same"); } 더보기 Intel Threading builing block Document Documentation Blogs Code Samples Doxygen Open Source Documentation Getting Started Guide [PDF 120KB] Tutorial [PDF 539KB] Reference Manual [PDF 988KB] CHANGES file [TXT 35KB] Commercial Documentation Release Notes [TXT 6KB] Installation Guide [PDF 22KB] Getting Started Guide [PDF 120KB] Tutorial [PDF 528KB] Reference Manual [PDF 977KB] TBB's O'Reilly Book Intel® Threading Building Blocks: Outfit.. 더보기 유닉스 계열 정보 얻어 오기. 테스트를 위한 코드 입니다. 목적 : 어떠한 제품군이 존재합니다. 제품군에 따라서 그때 그때 프로그램 객체를 따로 생성하게 되면 어떠한 제품군을 선택하느냐에 따라서 설계 및 적정선의 코드를 선들여야 한다는데서 착안하여 미리 코딩을 해놓고 정보을 얻어서 자동으로 객체를 생성하도록 목표를 삼고 있습니다. ㅇ Abstractor Factory 패턴을 공부하다가 착안한 내용입니다. #include #include using namespace std; int main() { struct utsname sys_info; uname(&sys_info); cout 더보기 간단한 C++ 매크로 만들어보기. 이상하게 제 머리 속에 지우게가 있다는 결론을 내리네요. 간단하게 사용하면서도 손가락은 기억을 하는데 정신 넉놓고 있으면 손가락은 기억을 하는지 잘 써내려갑니다. 그런데 머리 굴리면 그때 부터 손가락은 가만히 정지하게 되는 결론을 내렸습니다. 즉 머리를 쓰게 되면 모든걸 지워버리는 초강력... 머리속 지우개..ㅠ_ㅠ 매크로 관련되서 사용하려고 보니깐 기억이 또 안나네요.. 미치겠습니다..ㅠ_ㅠ // variadic_macros.cpp #include #define EMPTY #define CHECK1(x, ...) if (!(x)) { printf(__VA_ARGS__); } #define CHECK2(x, ...) if ((x)) { printf(__VA_ARGS__); } #define CHECK3(.. 더보기 이전 1 ··· 7 8 9 10 11 12 13 ··· 20 다음