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
~2K People Reached
Favorite Forums
Favorite Tags
c x 10
unix x 10
c++ x 2

4 Posted Topics

Member Avatar for kreyd

Divide 'changeValue' by 'coinValue' and store it in a variable like 'numOfCoins' - this is the value to be returned by the function. Before returning 'numOfCoins', update 'changeValue' by subtracting the product of 'numOfCoins' and 'coinValue' from it. Although I think the function should just take the 'changeValue' arguement and …

Member Avatar for 3bodd
0
282
Member Avatar for evinkeating

I have a program that works fine under windows, but when i run it on Unix I get a very slightly diffent set of results, followed by a 'segmentation fault' message. I'm at a loss to explain why. Any ideas?

Member Avatar for evinkeating
0
889
Member Avatar for evinkeating

I've a 2-d array declared as such [CODE]lower_tri = (float **)malloc(sizeof(float *)*(dimention)); for(i =0; i < dimention; ++i) lower_tri[i] = (float *)malloc(sizeof(float)*(i+1));[/CODE] So that it looks like... [] [][] [][][] [][][][] ... However, it causes a segmentation fault when I try to de-allocate the array with [CODE]free(lower_tri);[/CODE] (only in unix, …

Member Avatar for Ancient Dragon
0
209
Member Avatar for evinkeating

I'm working on a C program that needs a lot of dynamic memory allocation of 1-D and 2-D arrays. The program works fine when I compile and run it using windows and Visual C++, but when I compile and run it in a Unix environment, I get slightly different results, …

Member Avatar for Ancient Dragon
0
185

The End.