Skip to content
Discussion options

You must be logged in to vote

事实上,printf依然存在在很多的C++项目中,Is it a bad practice to use printf in C++? 也许是你想问的,据我所知,JVM中存在大量的printf,还是一样的道理,C++会向下兼容很多的东西,虽然不能说C++是C的超集,但是确实很多东西C++都会保持兼容,如果你认为一些风格混乱,我认为这样的情况存在一定的风格混乱,比如你用了C++的using关键字,然后你还用在C语言中经常出现的typedef

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by liusy58
Comment options

You must be logged in to vote
2 replies
@cqjjjzr
Comment options

@RicoloveFeng
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants