Learning C++ alone, A few questions
I'm self learning C++ at the moment with very little programming experience. A few questions came up while I was reading through a C++ tutorial and please do keep in mind I essentially just started with programming (Although my join date may indicate otherwise);
1. I was reading about the the 'new' and 'delete' operators and it seemed to be in the format of
Code:
pointer = new type [int]
I had just finished reading a sections on arrays and pointers before that and I was wondering why I cannot just use the 'new' operator on an array to add elements to it? If new only works on pointers then is there no way to add additional elements to a multi-dimensional variable?
The delete operator seems to delete all the new elements added with 'new', is there no way to specify an element to delete (Such as the last element)?
2. Throughout the tutorial I'm going through, I've been making a bunch of console programs. How exactly are other programs made using C++, like if I wanted to make a simple text editor such as notepad for example. I don't want a console window popping up =/ A link to an explanation of this subject is good enough if I am asking too much.
3. I'm using the Dev-C++ Bloodshed IDE Compiler because it was a quick 5-7mb DL. What's a better compiler to be using both for practicality and learning?
Also as an aside, if I have further questions while learning C++, should I continue posting in this topic or make a new topic each time?