Hi,so let me introduce my prior knowledge before I get into my questions.
I "know" Java, know isn't a term I would use if you asked me if I know java in real life by any means. I can read Java, not really write any code. If you gave me a .java file and some time I could probably tell you what it does.
So the code I am learning about on the guide here is below.
Here are a few of my questions:
1.Is #include pretty much the same as import in java?
2.Do you ever add anything to int? In java you would see public static blah blah blah, is int like that?
3.Why the :: between std and cout? Is there ever more then one :: in a line?
I'm trying to find ways to explain this to myself in ways similar to what I understand, probably seems annoying sorry.
1 2 3 4 5 6 7
|
// my first program in C++
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
| |
Thanks for your help,
-Tanner