Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~567 People Reached
Favorite Forums
Favorite Tags
c++ x 3
c x 3
Member Avatar for mike.bauer

How do I rewrite eq->pt_tree[0][0]=2; to user pointer subscript? [CODE]#include <stdio.h> #include <stdlib.h> /////////////////////////////// struct eq_values{ int * pt_tree[2]; }; //////////////////////////////// void main (){ struct eq_values input, *eq; int i =2; eq = &input; while(i--){ eq->pt_tree[i] = (int *) malloc(3 * sizeof (int)); if (!eq->pt_tree[i]){ printf("No\n"); exit(0); } } eq->pt_tree[0][0]=2; …

Member Avatar for deceptikon
0
107
Member Avatar for mike.bauer

I have the following struct deceleration and I would like to decrement eq->pt_tree[c][r], the row portion of pt_tree[c][r] using pointer subscript. How can I do this? [CODE]struct eq_values{ int * pt_tree[2]; }; eq->pt_tree[i] = (int *) malloc(12 * sizeof (int)); [/CODE] I think it will look like the following, but …

Member Avatar for deceptikon
0
142
Member Avatar for mike.bauer

I am trying to create an application that will create a lined box around multy-lined text that I have imputed at the keyboard, and i would like to be able to do the following with the boxed text. [LIST] [*]move the box around the screen. [*]The boxes should be able …

Member Avatar for Stefano Mtangoo
0
91
Member Avatar for mike.bauer

The code is evaluating a expression tree. My issue is on line 57 when I try to dynamically allocate an array to be used as the nodes in the expression tree, the compiler gives the following error: tree.cpp(58): error: no suitable constructor exists to convert from "ExprNode *" to "ExprNode" …

Member Avatar for mike.bauer
0
227