배열

배열

#include using namespace std; int a[10] = { 1,2,3,4,5,6,7,8,9,0 }; int main() { for (int i = 0;i < 10;i++) { cout << i << " "; } return 0; }

배열 a[10] index: 0~9

https://www.acmicpc.net/step/6

https://www.acmicpc.net/step/5

https://www.acmicpc.net/step/7

string a= "abcdef"

a[0]='a'

a[1]='b'

a[5]='f'

from http://fooool.tistory.com/33 by ccl(A) rewrite - 2021-10-30 01:28:03