Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 12
Member Avatar for TJW

Hello: (I am using Borland C++ Builder 6 Professional) Before you jump all over me I've already read the post Returing Arrays C/C++ and completely understand. For some reason I am still having difficulty implementing in my project. Very brief Project Explanation: I am collecting data from a laser sensor …

Member Avatar for espar
0
374
Member Avatar for TJW
Member Avatar for TJW

Why is the last element not 7 [Code] int array[3]; int *ary; ary=array; array[0]=0; array[1]=0; array[2]=0; array[3]=44; for (int i=0;i<4;i++) { cout<<array[i]; } cout<<endl; *(ary+0)=1; *(ary+1)=0; *(ary+2)=0; *(ary+3)=7; for (int i=0;i<4;i++) { cout<<array[i]; } cout<<endl; [/CODE] Output 00044 1003<-----------------Why 3 and not 7!!!!!!

Member Avatar for Dave Sinkula
0
188
Member Avatar for TJW

Can someone help in explaining the advantage/use of the C++ SAFEARRAY as I am not finding much useful material out there. This may be my answer to returning a large multidimensional array from a class memberfunction. That is some how converting such an array to a SAFEARRAY is probably what …

Member Avatar for FireNet
0
161
Member Avatar for TJW

Can similar code be written for 3 dimensions: [CODE] #include <exception> #include <iostream> using std::cin; using std::cout; using std::endl; void display(long double **); void de_allocate(long double **); int m = 3; // ROWS. int n = 5; // COLUMNS. int main(void) { long double **data; try { // EXCEPTIONS. data …

Member Avatar for TJW
0
314
Member Avatar for TJW

Hello: (I am using Borland C++ Builder 6 Professional) Before you jump all over me I've already read the post Returing Arrays C/C++ and completely understand. For some reason I am still having difficulty implementing in my project. Very brief Project Explanation: I am collecting data from a laser sensor …

Member Avatar for Natso
0
178