Forum: C++ May 25th, 2007 |
| Replies: 47 Views: 8,955 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 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 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 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 Views: 6,325 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 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 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... |