No older revisions available
No older revisions available
데블스캠프2006/화요일/pointer/문제3/이송희 ¶
~cpp #include <iostream> using namespace std; void main() { int *a=new int[4]; int *b=new int[4]; int *c=new int[4]; int i; for(i=0; i<4; i++) { a[i]=i; b[i]=i; c[i]=a[i]+b[i]; cout << c[i]; } cout << endl; delete [] a; delete [] b; delete [] c; }