• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

What is better \n or endl?

cout
24th Sep 2021, 5:50 AM
Rodriguez Kyle D.
3 Antworten
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
The use of these certificates on LinkedIn
1 Votes
GitHub account connecting issue
3 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
photo upload issue in html code
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes
Hardware of computer
3 Votes