Do you need help with printing or the loops?
The first loop is a simple for loop (i=1;i<=input;i ++)
{j=input-1;
print i;
if i=input
{ while(i>0)
if(j>0)
{print j;
--j;}
insert end of line;
}
You get the idea. Next one is just a simple variation.
Mitch...
User Profile
Collapse
-
SmartHeap detects Memory Leak
Hi,
We just managed to get SmartHeap up and running and it's returning the following as a memory leak. We're using ANSI C memory allocation and I'm still a newbie, so any help would be appreciated.
We're passing in text "sometext" to a function that accepts a string pointer.
The receiving function does a string duplicate to write the text to memory space and create a new pointer. SmartHeap is saying...
No activity results to display
Show More
Leave a comment: