월별 글 목록: 2013년 12월월

SMSC 설정

SMSC = SMS Center : 통신사에서 문자발송을 위해 지정해 둔 특수번호

http://www.blogfromamerica.com/wp/?p=10307

http://yolife.tistory.com/6

기타등등에서 발췌

SKT +8210009910xxxx / PDU 089128010099012925 (?)
(xxxx에는 자기 전화번호의 국번=가운데4자리 들어감)

KT +821029190900 / PDU 07912801929190

ドコモ +81903101652 / PUD 07911809131056f2

ソフトバンク +819066519300 / PDU 0791180966153900

std::nothrow

Reference : http://www.cprogramming.com/tips/tip/cincrement-new-does-not-return-0-on-failure

C++ new는 할당실패시 bad_alloc exception을 던진다.
매번 try-catch 하기 귀찮으니까, malloc()처럼 오류상황에서 0을 리턴하게 만들고 싶은 경우, 다음과 같이 고친다.

#include <new>
...
type_t *ptr = new (std::nothrow) type_t[size];
...