Search Results

Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: underjack
Forum: C++ May 25th, 2007
Replies: 47
Views: 8,955
Posted By underjack
That is a very naïve assumption. char output[MAX_SIZE]; doesn't directly compile to any instructions where it appears, but if it appears inside any function (including main), it declares an...
Forum: C++ May 20th, 2007
Replies: 47
Views: 8,955
Posted By underjack
Without static, each time the function is called, output will be allocated, then deallocated before the function returns. Making it static means that it is only allocated once, and you don't pay the...
Forum: C++ May 16th, 2007
Replies: 2
Views: 3,245
Posted By underjack
It worked find in Visual C++ 6, but I know that Vis C doesn't behave correctly with variables declared inside if statements.

Try moving the declaration of j and k outside the loops...this may fix...
Forum: C++ May 15th, 2007
Replies: 47
Views: 8,955
Posted By underjack
I kinda forgot what forum I was in (C++/C), but here is a C version of what someone has already done in C++:


#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
...
Forum: C++ May 15th, 2007
Replies: 17
Solved: void function
Views: 6,325
Posted By underjack
A circle has circumference, but a triangle has a perimeter. (Actually, any closed figure has a perimeter)
Forum: C May 15th, 2007
Replies: 9
Views: 1,778
Posted By underjack
I have a some questions, how is your input filters supposed to work, I see some lines like this:


while (( select != 'Q' ) && ( select != 'q' ) && ( select != '1' ) && ( select != '2' ));


If...
Forum: C Mar 8th, 2007
Replies: 6
Views: 1,216
Posted By underjack
Here's how I interperted your problem:
Given a list of Words and Numbers:
--Make a numbered list of the words.
--Replace numbers with words from the list.

Instead of a console program, I...
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC