DEV Community

Munin 🌝
Munin 🌝

Posted on

Day 1 / 100 (C++)

πŸ–₯️ What I Learned

  • Printing to the console: In C++, we use cout to send output to the screen.
  • Adding new lines: You can use endl or \n to move text to the next line.
  • Writing clean code: Adding comments makes the code easier to understand (and future-me will thank present-me).

πŸ’» Example Code

#include <iostream>  
using namespace std;  

int main() {  
    // This line prints a message to the screen  
    cout << "Hello world, I am the best programmer!" << endl;  

    // Another way to add a new line is using \n  
    cout << "Let's start coding!\n";  

    return 0;  
}
Enter fullscreen mode Exit fullscreen mode

πŸ”‘ Takeaway

Even small steps count. Writing your first program is more about building momentum than mastering everything at once. Clean code + comments = good habits from day one.


πŸ“Œ Tags

#100DaysOfCode #LearnInPublic #CodeNewbie #C++ #Programming


Top comments (0)