E D R , A S I H C RSS

여사모

  • 는 모
  • 는 모
  • 람들

  • C++.

  • :
  • : , ,

, , , , 링, 리(-_-;)등 C부!

  • 는 문(String), (Stack) (Queue) . ?
  • - 6 4 7 7()

?? ~>__<; 예습할 건덕지를!! - :)

~cpp 
#include <iostream>
using namespace std;
#include <string.h>

int main()
{
	int b=4;
	cin>>b;
	char *a = new char[b];
	cout << strlen(a);

return 0;
}
1 면 7, 8 면 23 !!
- . strlen()는 char *( ) .
NULL
strlen(). 문 를 들 char * arr = "ABCDE"; 면 arr5
NULL . 런데 메모리 는 데
. cout << a; 라고 해보면 이상한 문자들이 출력되는게 보일꺼야. 7,8을 입력
23 a +23 NULL문 .
- , new는 charb 메모리를 a
는 명 .
DeleteMe , NoSmok: NoSmok: NoSmok: . Edit모 만, . --

2004/05/24 's 부내

~cpp 
#include <iostream>
using namespace std;
int main()

{
/* case 1.
	int front[5] = {1,2,3,4,5};
	cout << front[2] << endl;  //   
	cout << front << endl;  //   
	cout << *front << endl;  //   
	cout << (front+4) << endl;  //   
	cout << *(front+4) << endl; //    */
	
/* case 2.
	int b;
	cin >> b;
	int array[b]; // array 배      . */
	
/* case 3.
	int b;
	cin >> b;
	int * a = new int[b]; //      바르 . */
	return 0;
}
31 ~ ㅡㅡ
- * --;

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:24
Processing time 0.0527 sec