Forum: C++ May 29th, 2008 |
| Replies: 7 Views: 1,794 These are identical. It is a pointer in both cases. So I guess it may be more clear to write it as a pointer. The second case might cause beginners to think that you are passing an entire array by... |
Forum: C++ May 2nd, 2008 |
| Replies: 7 Views: 593 wow.
what did you expect that code to do? |
Forum: C++ Apr 11th, 2008 |
| Replies: 11 Views: 1,951 if you want a dynamic array, which has a finite size that grows and shrinks as you add or remove elements, take a look at std::vector |