1
2
3
4
5
6
7
8
9
10
11
12
13
14
void UBullCowCartridge::OnInput(const Fstring& Input) // When the player hits enter
{
    int32 a = 1;
    int32 b = ++a;
    int32 c = ++ ++a;
    int32 d = a += 2;
    int32 e = a++;
 
    PrintLine(TEXT(%i, %i, %i, %i, %i), a, b, c, d, e); 
 
}
 
 
 
cs

 

 

 

 

Result
7, 2, 4, 6, 6

'⭐ Programming > C++' 카테고리의 다른 글

[C++] Boolean & Floating point 불리언과 부동소수점  (0) 2022.03.19
Pseudo code : Bull Cow Cartridge  (0) 2022.03.10
Visual Studio Code 단축키  (0) 2022.03.10
Ch 4.7 CircleRun  (0) 2022.03.09
Ch 3 Hangman  (0) 2022.03.09