Categories > WeAreDevs > Hangout >
Welcoming myself on my long journey of learning C++
Posted
I'm excited honestly. Despite all the hardness I have ahead, this will be fun. Or at least I can make it fun for myself.
std::cout << "Hello World!";
edit: "endl errored. now dat's some progress right there."
kthxbye
https://cdn.discordapp.com/attachments/744131168018104320/749027674323812373/kekw.mp4Â
Â
Replied
std::cout << "Hello World!" endl;
is everyones first C++ line written change my mind
Cancel
Post
Replied
some people just start with
#include <iostream>
int main()
{
return 0;
}
but I can confirm we all did :)
Cancel
Post
https://cdn.discordapp.com/attachments/744131168018104320/749027674323812373/kekw.mp4Â
Â
Replied
im also learning cpp
i did the best calculator in the world (made this a few weeks ago)
#include <iostream>
using namespace std;
int main()
{
int num1;
int num2;
cout << "Helloo calculator here lets do math\n";
cout << "NOTE: This calculator is + only!\n";
cout << "pls enter the first number in the console.\n";
cin >> num1;
cout << "ok now what is ur second numbr\n";
cin >> num2;
cout << "Calculating the numbers...\n";
cout << "done your final number is:\n";
cout << num1 + num2 << "\n\n";
system("pause");
return 0;
}
dont bully me ok
Cancel
Post
https://cdn.discordapp.com/attachments/744131168018104320/749027674323812373/kekw.mp4Â
Â
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post