Why printline?

Hi! I have done the old version of bulls and cows with visual studio 2017, but now with the new version of the course, I am facing some problems.
My first question is why are we using PrintLine() instead of using general cout?
And for my second question, why are we using ClearScreen() instead of clrscr()?

1 Like

std::cout is mapped directly to the standard output which is not connected to the signpost in any way.
Same goes for ClearScreen.

1 Like

Oh Thank You!
But can you tell me like what is used, I mean which type of code or language we use for that signpost?
As i have never learned about PrintLine() code ever.

Its code specific to the project, it’s in the Console directory.

https://github.com/UnrealCourse2019/BullCowGame/blob/master/BullCowGame-starter-kit/Source/BullCowGame/Console/Cartridge.cpp#L15

https://github.com/UnrealCourse2019/BullCowGame/blob/master/BullCowGame-starter-kit/Source/BullCowGame/Console/Terminal.cpp#L43

1 Like

Thank You, i will look forward onto it

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms