Forum: C++ May 29th, 2008 |
| Replies: 7 Views: 1,810 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: 594 wow.
what did you expect that code to do? |
Forum: C++ Apr 11th, 2008 |
| Replies: 11 Views: 1,982 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 |
Forum: Java Mar 15th, 2008 |
| Replies: 8 Views: 935 yes. (except that in Java the first object is garbage-collected and in C++ it isn't) |
Forum: Java Jan 30th, 2008 |
| Replies: 6 Views: 3,159 attribute[] attr=new attribute[no_of_attribute];
attr has no_of_attribute arguments
for(int i=0;i<no_of_entity;i++){
i goes from 0 to no_of_entity
for(int j=0;j<no_of_attribute;j++){
j goes... |