Hey everyone!
I have two questions really, I was wondering if you can help. They're a bit funny, I don't think you can really google them:
Firstly, I've just started to learn C++ and I've always thought that anyone with a average level of intelligence can learn anything they want to. I consider myself to have an average level of intelligence. As long as you put the right amount of effort in you'll get it. You just have to figure out how to relate it to yourself. Would you agree? An Elder was saying to me "I think it's one of those things you either have a natural edge for or you'll never get it". I'm determined to learn it. What do you think? Did you all find it hard at first or did it come quite naturally?
Secondly, I'm getting extremely confused by the grammar used - I can write a basic script for "Hello World" but I want to know more about how the inner bits work. I know that at the beginning of a script I should write:
1 2
|
#include <iostream>
using namespace std;
|
That is a habit I have been told to do from the book and so I do it. Because of this I can write shorts scripts where the computer outputs a message and I can input a message but when I try and find out why I have to do this habit, I get lost.
For example, when I wanted to know what the purpose of a "Namespace" is. This is a definition I found on page 10 of a book designed for "People with no programming experience at all":
"A namespace creates a declarative region in which various program elements can be placed. Elements declared in one name space are separate from elements in another."
Although that kind of make sense to me, it's written in such a way that the wording confuses me. It seems as though the writer has forgotten I have no programming experience at all!
I consider myself lucky because I know a little bit about programming but "Declarative regions", "elements", "syntax", "Constants", there's so many words I don't understand and it just expects me to know it from the start!
In short, is there somewhere I can find a really basic, informal definition for these words so I can relate it to myself?
In advance, I'd like to thank you for your responses! :)
Daryl