부모를 상속받은 자식 class의 객체 크기는 [ 부모의 맴버 변수 크기 + 자식의 맴버 변수 크기 ] 이다. - 이때 static 맴버 변수는 제외한다. - 맴버 함수 또한 객체 용량을 차지하지 않으므로 계산에 포함하지 않는다. class Parent { private: static int iData; int m_iPrivate; protected: int m_iProtected; public: int m_iPublic; Parent() {} }; class Child_private: private Parent { // 아무것도 없는 경우 }; class Child_protected: protected Parent { public: double m_dData; }; class Child_public: ..
[ static 키워드 붙는 경우 ] - 전역 static 변수 - 로컬 static 변수 - static 함수 - class내의 static 변수 (다음 포스팅에: https://o0oheamao0o.tistory.com/129) - class내의 static 함수 (다음 포스팅에: https://o0oheamao0o.tistory.com/129) Static 특징 우선 static에 대해 잠시 정리하면 - static 변수는 정의된 시점에서 메모리가 할당된다. - 변수가 정의된 스코프(범위, { })가 종료되어도 static 변수는 메모리가 반환되지 않는다. (일반 지역변수는 자신이 선언된 스코프가 끝나면 메모리도 반환된다.) - static 변수는 프로그램 내내 지속되고, 프로그램이 종료되면 메모리..

문자열에 관련된 이야기는 요롷게 나눠서 포스팅하겠습니다. 0. 문자열(NULL문자) (문자열 1장 포스팅: https://o0oheamao0o.tistory.com/107) 1. 문자열 상수 vs 문자 배열 (문자열 1장 포스팅: https://o0oheamao0o.tistory.com/107) 2. 문자열 관련 함수들 2-1. strcpy_s() 문자열 복사 함수 (문자열 2-1장 포스팅: https://o0oheamao0o.tistory.com/108) 2-2. strlen() 문자열 길이 구하는 함수 2-3. strcmp() 문자열 비교 함수 (문자열 2-3장 포스팅: https://o0oheamao0o.tistory.com/110) 2-4. strcat_s() 문자열 결합 함수 (문자열 2-4장 ..
T_Item 테이블을 다 가져오고 싶은 경우 List items = context.T_Item.ToList; gridControl.DataSource = items; T_Item 테이블에서 한 Column 만 가져오고 싶은 경우 List items = context.T_Item.ToList; gridControl.DataSource = items.Select(i => i.Name); T_Item 테이블에서 특정 몇개의 Column 만 가져오고 싶은 경우 List items = context.T_Item.ToList; gridControl.DataSource = items.Select(i => new {i.Id, i.Name, i.Prise});
문제상황 MySQL 8.0 이하 버전(5.7이상 ~ 8.0이하)에서는 UPDATE를 사용해서 변경했지만 8.0에서는 안됨! UPDATE mysql.user SET authentication_string=password(“변경할비밀번호”) WHERE user=’root’ 해결방법 MySQL 8.0부터는 ALTER를 사용한다. ALTER user 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '변경 비밀번호'; 당연히 이전이나 지금이나 비밀번호 변경 후에는 변경사항을 FLUSH를 사용하여 저장해야한다. FLUSH PRIVILEGES;
환경: Visual studio, c# , winform, .net5.0 방법1 int screenWidth = Screen.AllScreens.Sum(s => s.Bounds.Width); int screenHeight = Screen.AllScreens.Sum(s => s.Bounds.Height); 방법2 int screenWidth = Screen.PrimaryScreen.Bounds.Size.Width; int screenHeight = Screen.PrimaryScreen.Bounds.Size.Height;
- Total
- Today
- Yesterday
- flutterdoctor
- GIT
- 해마코딩
- DataSource
- select
- androidstudio
- mac unity vscode autocomplete
- QO
- VirtualBox
- Flutter
- 우분투
- Unity vs code
- ubuntu
- VS Code
- mac Unity vscode 자동완성
- Tree
- Unity
- 트리
- gridContorl
- apt-get
- 컨셉때문에킹받으셨나요..죄송합니다..제가 봐도 킹받네요
- ()
- Winform
- 버추얼박스
- multiple Column
- apt
- Query
- DevExpress
- =
- Mac
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |