cout tag

5 questions


1 answers
67 views
0
Questions about c++ cout

Hello, everyone I am a student studying c++.I am inquiring because there is something strange while studying c++.==================char c = 'a';char *d = &c;cout << d << endl;printf(%p...

1 years ago

1 answers
82 views
0
C++에서 printf랑 cout은 무슨 차이가 있나요?

What is the difference between printf and cout in C++?Well, printf has to use a separate format designator, so it's annoying...What's the difference other than this?

1 years ago

1 answers
70 views
0
I want to print out the entire 'double' when I print out the cout

If I run the source code below,It says 3.14159265358979 instead of 3.14159Instead of rounding off the decimal point,What should I do to get the full price?int main(){ double d = 3.14159265358979; cout...


1 answers
72 views
0
[C++] I have a simple question

Hello, everyone 1char test = 1;std::cout << test << std::endl;Only the new line comes out Char is 8 bits and int is 32 bits, so I think data corruption occurs.I think it's worth the garbag...

1 years ago

1 answers
73 views
0
CPP cout question.

I'd like to ask you a very basic question I was not used to using the cout command, so I was curious about it after trying many things.If you look at the code below, for convenience of explanation, we...

1 years ago

© 2024 OneMinuteCode. All rights reserved.