일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- leadership
- QT
- Spain
- hbase
- comic agile
- ubuntu
- history
- psychology
- essay
- Book
- Malaysia
- Book review
- Italy
- Kuala Lumpur
- Software Engineering
- agile
- Java
- web
- program
- Linux
- hadoop
- management
- erlang
- France
- Programming
- Python
- RFID
- django
- programming_book
- MySQL
- Today
- Total
목록JH & HJ (839)
출처: http://yesarang.tistory.com/69 //thread.c #include #include #include //for sleep() #include //for free() void* start_routine(void* data) { inti=0; printf("starts to run\n"); while ( ++i < 20 ){ printf("%d\n", i); sleep(1); } if ( data != NULL ) free(data); returnNULL; } int main(void) { pthread_tthrd; intnr=0; void*data; //created thread executes start_routine nr=pthread_create(&thrd, NULL, ..
2011/05/24 - [Programming/C++] - include guard 2011/05/24 - [Programming/C++] - include guard 출처: http://yesarang.tistory.com/67 include guards: 이미 읽은 헤더 파일도 다시 읽음 #pragma once: 각 파일별로 프리프로세서가 include한 상태를 기억하므로 한 번 읽은 헤더 파일은 읽지 않음. 즉 컴파일 속도 유리 include guards: 각 헤더 파일에 대응하는 매크로 이름이 서로 충돌할 가능성이 있으므로 나름의 include guards 명명 규칙이 필요 #pragma once: 프리프로세서에서 #pragma once 처리에 버그가 있거나, 파일 시스템 상에서 파일의 동일성을 ..
2011/05/24 - [Programming/C++] - C/C++ mixed programming 2011/05/24 - [Programming/C++] - C/C++ mixed programming 출처: http://yesarang.tistory.com/66 이미 존재하는 C library를 C++에서 사용하는 경우 //max.h int max(int a, int b); //cppmain.cpp #include extern "C" { #include "max.h" } using namespace std; int main(void) { intim=max(100, 30); cout
2011/05/24 - [Programming/C++] - C/C++ mixed programming not to use name mangling C library 작성시 나중에 C++에서 활용될 가능성을 미리 염두해 두고, 헤더 파일 처음과 마지막에 extern "C" {}가 조건부 컴파일되게 한다 //externc.cpp #include using namespace std; extern "C" int max(int a, int b) { if ( a > b )returna; elsereturnb; } int main(void) { intim=max(100, 30); cout
출처: http://yesarang.tistory.com/65 naming mangling //mixed.cpp #include using namespace std; double max(double a, double b) { cout
2011/05/24 - [Programming/C++] - include guard //hdr1.h #ifndefHDR1_H #defineHDR1_H class DummyBase{ private: int_i; public: DummyBase(int i): _i(i){} int Get(){return_i;} void Set(int i){_i=i;} }; #endif //hdr2.h #ifndefHDR2_H #defineHDR2_H #include "hdr1.h" class Dummy: DummyBase{ public: Dummy(int i): DummyBase(i){} int operator() () {returnGet();} int operator() (int multi){returnGet() * mul..
출처: http://yesarang.tistory.com/64 //hdr1.h class DummyBase{ private: int_i; public: DummyBase(int i): _i(i){} int Get(){return_i;} void Set(int i){_i=i;} }; //hdr2.h #include "hdr1.h" class Dummy: DummyBase{ public: Dummy(int i): DummyBase(i){} int operator() () {returnGet();} int operator() (int multi){returnGet() * multi;} }; //tips1.cpp #include "hdr1.h" #include "hdr2.h" int main() { DummyB..
Flushing Meadows Corona Park 갑자기 쏟아진 비에 아무 것도 못하고 그냥 가자마자 나와야 했다 ㅜ.ㅜ 맨 인 블랙에 나왔던 지구 모양 조각 Nan Xiang Dumpling House
QI에서 먹은 치앙마이 누들, 옐로 커리. 좀 덜 짜기만 하면 정말 좋을텐데. Washington square park에 가는 길에 있던 NYU의 Graduate school of art & science. Washington square park의 개선문(?). 멀리서 보면 괜찮지만 가까이서 보면 조각 수준은 좀... Porto Rico. 1907년부터 영업했다는데... 오늘 Columbia supremo 1/2 lbs $4.5에 구입. 나중에 사와서 마셔보니 정말 신선하고 좋았다. Porto Rico 근처를 구경하던 중에 체스를 전문적으로 파는 곳에서 본 골룸 체스말. 다시 돌아온 Washington square park. 어거스트 러시에서 봤던 기억이 유난히 잘 난다. 반면에 나는 전설이다에도 나왔..
broadway tkts 앞 526 west 47st yelp.com에서 워낙 평이 좋아서 가본 멕시칸 델리. 나쁘진 않았지만 그렇다고 뭐 엄청 맛있지는 않았다. 아무래도 역시 양키들 입맛하곤 좀 안 맞는 듯. 부리토 + 화히타 + 커피 작은 것 = $11.75이니 값은 정말 싸다. 주인집 아기가 와서 모델도 해줘서 기분도 좋았고. Columbus circle 이제부턴 센트럴 파크 The Dairy라는 이름의 관광 안내소를 가장한 상품 판매점 Children's zoo 유명하다는 The pond. 결혼 사진 찍으러 온 무리들이 있었다.