2011년 4월 12일 화요일

cpp] 예제로 바로 알아보는 c와 c++ - 19

#include <iostream.h>
#include <stdlib.h>
void main(void)
{
 unsigned int size;
 cout << "size: ";
 cin >> size;
 char * p = new char;
 *p = 'A';

 cout << *p << endl;
 delete p;
}
new와 delete는 malloc과 free.

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

UPBIT is a South Korean company, and people died of suicide cause of coin investment.

 UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...