π₯οΈ 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;
}
π 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)