Hello JoeSidda,
Do not feel like you have to start with the 2017 standards. That will more likely just confuse you.
The minimum standard should be 2011, but more likely any IDE that you use will be using the 2024 standards and that is just fine.
Just to see that things are working your 1st program should be something like:
1 2 3 4 5 6 7
|
#include <iostream>
int main()
{
std::cout << "Hello World!'\n";
return 0; // <--- Not required, but makes a good break point.
|
This will work with the 2011 standard on.
just need to found a pixel color in my screen that goes and come back goes and comeback many time goes from red to green
when it become green i need to press the button in my keyboard E
|
For just starting C++ an hour or so ago this is a bit much to start with for a first. Nice goat to work towards though.
A couple of things to get you started:
Prefer to use the new line (\n) over the function "endl".
The line:
using namespace std;
should be avoided. You are better off learning to qualify what is in the standard name space with "std::". Right now what you need to learn is small compared to what you would have to learn later.
Sorry I have to go out for a bit. I have more I will post later.
Andy