Forum: C++ Sep 10th, 2004 |
| Replies: 8 Views: 3,096 Hi,
The problem is that we need to clear the input buffer before using gets() because gets() read anything in the input buffer until it encounters a new line or return character. Although it works... |
Forum: C++ Aug 24th, 2004 |
| Replies: 19 Views: 8,694 It cannot compare between C++ and Calculus because they are different subject. Learning C++ takes years to understand and to master the subject. One might think that learning C++ is boring. In my... |
Forum: C++ May 11th, 2004 |
| Replies: 16 Views: 176,559 Hi Dave,
The error is caused because of square bracket[] (I just wrote code in Java, so I used wrong () ). After changing to [], the program runs correctly.
Thanks for everything, Dave.
... |
Forum: C++ May 11th, 2004 |
| Replies: 16 Views: 176,559 Thanks Dave. However, would you mind if I have another question regarding to the same problem? While I was waiting for your solution, I developed one in below.
I know your code is much superior than... |
Forum: C++ May 11th, 2004 |
| Replies: 16 Views: 176,559 Hi Dave,
I appreciate for your help, but it does not work correctly in the following case. We declare static local variable, so this variable will stay until the program is terminated. Hence,... |
Forum: C++ May 11th, 2004 |
| Replies: 16 Views: 176,559 Hi all,
We can see that the result is not what we are expected. Can anyone tell me what need to fix in order to get the correct result using same function? Thanks in advance.
#include... |
Forum: C++ May 11th, 2004 |
| Replies: 16 Views: 176,559 I am sorry. I did not make my point clear. Is there any way to return the array from the function, this array is created within that function? For instance, I want to have one function to return an... |
Forum: C++ May 11th, 2004 |
| Replies: 16 Views: 176,559 Hi all,
Could anyone help me about returning the array from a function? I believe that it is a syntax error (compile time error) to return an array from a function, but one book mentions briefly... |