string

· C++
자료형 변환 함수 1. string을 int형으로: stoi(string 변수); 2. int를 string으로: to_string(int 변수); to_string(a).find("666") 3. string을 char*로: string변수.c_str(); 4. char*을 int형으로: atoi(char* 변수); 5. char*를 string으로: 바로 할당해주면 됨 참고자료 https://comyoung.tistory.com/269
· JAVASCRIPT
표준내장객체는 아래 서술한 것보다 더 많다. 자세한 건 mdn문서를 살펴보자. //표준내장객체(Standard Built-in Object) // 자바스크립트가 기본적으로 가지고 있는 객체들을 의미한다. const str = "Hello world!" //length, 문자열의 길이를 반환 console.log(str.length); //12 //includes(), 대상 문자에 주어진 문자가 포함되어 있는지 확인한다.(Boolean) console.log(str.includes('Hello')); //true //indexOf(), 대상 문자에서 주어진 문자와 일치하는 첫 번째 인덱스(숫자)를 반환. 일치하는 문자가 없으면 '-1'을 반환. console.log(str.indexOf('world'));..