C, C++, C#

#include using namespace std; void Swap(int& a, int& b) { int temp = a; a = b; b = temp; } void Sort(int numbers[], int count) { for (int i = 0; i = numbers[j + 1]) { Swap(numbers[j], numbers[j + 1]); } } } } void ChooseLotto(int numbers[]) { srand((unsigned)time(0)); int count = 0; while (count != 6) { int randValue = 1 + (..
#include using namespace std; int hp = 100; char a; //1바이트 -128 ~ 127 short b; //2바이트 -32768 ~ 32767 int c; //4바이트 -21.4억 ~ 21.4억 __int64 d; //8바이트 : 어마어마하게큼 //bool : 1바이트 언어 //float 부호 1비트, 지수 8, 유효숫자 23 = 32비트 = 4바이트 //double 부호 1, 지수 11, 유효숫자 52 = 64비트 = 8바이트 //ex -3.375라는 값을 저장 // 1) 2진수 변환 = 3 + 0.375 = 0b11 + 0b0.011 = 0b11.011 //0.375 = 0.5*0 + 0.25*1 + 0.125*1 = 0b0.011 // 2) 정규화 0b1.101..
SB_J00N
'C, C++, C#' 카테고리의 글 목록