I'm justing having trouble with the syntax and making the darn thing run. I tried to make a program work but unlike BASIC and Python I can't recognise and correct the syntax quick on C++ it proves difficult, when I have mistakes in the rest of the commands I think if there is something wrong with the syntax or the language I change ONE thing and the whole things crumbles. So today I tried to actually write the program on paper and copy it and I STILL get it wrong!]
Take for example this from Wikipedia:
I usually have trouble with the syntax, I keep on practicing to no avail.
Quote:
template <class Derived>
struct base
{
void interface()
{
// ...
static_cast<Derived*>(this)->implementation();
// ...
}
};
struct derived : base<derived>
{
void implementation();
};
(my program is way too long so thats why I used the example)
Isn't there and easy way to split the stuff into componants? And by using an external program to just bundle the whole program together?