Forum: Computer Science Nov 15th, 2003 |
| Replies: 18 Views: 13,498 In something like the following, you'd want to write your code in such a way as to avoid buffer overflow. The user prompt itself won't be enough:
char* Input::name(){ // get the product name... |
Forum: Computer Science Nov 15th, 2003 |
| Replies: 8 Views: 11,874 All meant as constructive comment of course - I'm sure you know me well enough by now to know that ;) |
Forum: Computer Science Nov 15th, 2003 |
| Replies: 8 Views: 11,874 I would argue that your code suffers from excessive commenting, which is as bad as under-commenting. I also have a personal preference for avoiding end-of-line comments in all but the simplest of... |
Forum: Computer Science Jun 22nd, 2003 |
| Replies: 2 Views: 3,373 When you say, "help you", what do you mean exactly? Do you mean you need help to overcome a problem you have with your solution, or do you mean you want someone to post a whole solution so that you... |