Here "\ n" [Boolean value] and "\ n" Boolean value [] the second a space, effect, on the other hand, this effect: what is the logic and principle of
Is there who can teach me what is this principle, I'm new
CodePudding user response:
Oh I went to, I understand,,CodePudding user response:
Understand what "\ n" is a type, you knowCodePudding user response:
Equivalent to print characters from the following characters, Boolean is true is to print the first character, are false, print the second characterChar [] s={' \ n ', '\ 0'}//a newline, the string end (equivalent to an empty string)
CodePudding user response:
# include
#include
using namespace std;
Int main ()
{
Cout & lt; <"Hello," [true]Cout & lt; <"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --" & lt; Cout & lt; <"Hello," [true] Cout & lt; <"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --" & lt; Cout & lt; <"Hello" (false);
return 0;
}
CodePudding user response: