-
c++ 의 매력??아무거나적어~ 2022. 12. 21. 12:44
python 과는 다르게 assignment operator = 는 return 값이 있음 대입한 값 return
1234567891011#include <iostream>using namespace std;int main(){int x = 3;cout << (x += 6) << endl;return 0;}cs1234567891011121314#include <iostream>using namespace std;int main(){int x = 10;int y = 20;y += x += 10;cout << x << endl;cout << y << endl;return 0;}cs'아무거나적어~' 카테고리의 다른 글
수열 규칙 찾아주는 사이트 (0) 2022.12.23 [c++] 배열 초기화 (0) 2022.12.21 [c++] size vs sizeof (0) 2022.12.21 file을 이용해서 입출력 받고자 할 때 (0) 2022.12.14 gksrmfdl dkscuwudy (0) 2022.10.09