• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
0

What is better \n or endl?

cout
24th Sep 2021, 5:50 AM
Rodriguez Kyle D.
3 Respostas
+ 2
https://www.sololearn.com/discuss/1956685/?ref=app https://www.sololearn.com/discuss/265796/?ref=app https://www.sololearn.com/discuss/78193/?ref=app https://www.sololearn.com/discuss/1392532/?ref=app https://www.sololearn.com/discuss/2410326/?ref=app https://www.sololearn.com/discuss/650395/?ref=app https://www.sololearn.com/discuss/127013/?ref=app https://www.sololearn.com/discuss/2328711/?ref=app https://www.sololearn.com/discuss/242949/?ref=app https://www.sololearn.com/discuss/115622/?ref=app https://www.sololearn.com/discuss/992807/?ref=app https://www.sololearn.com/discuss/36076/?ref=app
24th Sep 2021, 6:10 AM
加油 我先下了
加油 我先下了 - avatar
0
Although both can be used. I believe \n is preferable as it's easier to use plus endl performs worse in comparison
24th Sep 2021, 5:56 AM
CHANDAN ROY
CHANDAN ROY - avatar

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Need suggestions
0 Votes
Hello can anyone help me to learn gdscript
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
Best code for creating games?
0 Votes
Need suggestions to learn AI and ML
1 Votes
progaming
1 Votes
Java full stack
0 Votes
Anyone Learning Godot?
1 Votes
Duration of heart refilling
0 Votes
Which is more important CSS vs HTML vs JS?
1 Votes