Problems off the line
- cleancodeai
- Jan 10, 2021
- 1 min read
Alright so, I didn't think about the compiler. Here I am on the first page of learning C++ and W3Schools area saying that starting with the basics of being able to compile your first programme... and I can't even do that!!
Put this in the code editor and build it.
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return0;
}
Ok then, easier said than done...
I started with VS Code and was bitterly disappointed with how I couldn't get the compiler working on it, even after doing lots of reading online. Articles written online show images of both MacOS and Windows in the same article so some things just didn't work. yay.
I then moved to Atom and experienced the same thing - couldn't get any kind of compiler to work. This is something I need to look into and understand how it works more - that's something to do once I'm into the swing of C++.
So, good news? I'm now using Xcode, Xcode is working like a dream so far. Finding and using this as a C++ Compiler so far has been a walk in the park.
As of the publishing of this post, I'm looking at C++ Variables. I've gone through the basic understanding of what C++ is and syntax, output and comments. Here's to looking into User Inputs and Data Types etc. 🍻
Comentários