Forum: C++ Feb 20th, 2004 |
| Replies: 4 Views: 5,833 No, there's no reason why you can't post to multiple sites. It's not a problem. |
Forum: C++ Feb 18th, 2004 |
| Replies: 4 Views: 5,833 Hi Fishman, I believe I've seen you post this on another forum and had a response there already. Are you sorted now or still having a problem? |
Forum: C++ Feb 18th, 2004 |
| Replies: 3 Views: 4,624 Hi, don't worry, it's not laughable, we've all been equally as stumped with problems equally as simple once upon a time.
Having calculated which position the median is at, you then reopen the... |
Forum: C Feb 18th, 2004 |
| Replies: 1 Views: 15,865 Using #define in this way, CELSIUS is a symbolic constant. Everywhere that CELSIUS appears in this source file it is replaced with 20, simple text substitution.
So the following line:
for... |
Forum: C++ Feb 12th, 2004 |
| Replies: 6 Views: 13,722 Hi Naresh,
You appear to have quoted the original post without adding anything. Did you have something to add? A question, or additional response? Care to try again?
Bob |
Forum: C++ Feb 12th, 2004 |
| Replies: 3 Views: 16,949 Hi Joe,
Fishman has given you some useful code their to get you going. Note that your own code has several basic syntax errors, which indicate that you're probably still at the "hello world"... |
Forum: C++ Jan 31st, 2004 |
| Replies: 13 Views: 37,808 In header <cstdio>:
int remove(const char* filename)
Probably too late for you by now, as you needed an answer urgently. I hope you had the sense to look up remove() in your C++ book, or do a... |
Forum: C++ Jan 31st, 2004 |
| Replies: 4 Views: 14,137 Just pass the array of objects to the function by passing the array name as a paramater. Just like passing any other array. You can then access the objects in the array in the same way you would any... |
Forum: C++ Jan 14th, 2004 |
| Replies: 4 Views: 4,572 I agree with Inscissor, few people these days believe it's worthwhile learning C as a path to learning C++ if what you want to do is C++. (Of course, C is worth learning in its own right if you want... |
Forum: Geeks' Lounge Jan 1st, 2004 |
| Replies: 52 Views: 14,330 What's your definition of power? You talk about wielding power - I don't see any of that going on in your example about the t-shirts. It's just knowledge.
As for the Neanderthals, who knows what... |
Forum: C++ Jan 1st, 2004 |
| Replies: 4 Views: 140,194 Thanks for the feedback; glad you found it useful. |
Forum: C++ Jan 1st, 2004 |
| Replies: 30 Views: 869,704 Thanks for the feedback about the font size on my web site. I wasn't aware that anyone had a problem with it till now. I'll look into it. Perhaps you could let me know what your screen resolution is... |
Forum: C++ Jan 1st, 2004 |
| Replies: 37 Views: 12,716 This is a very old thread now, and I notice that the original poster - Thamior - hasn't been active on the site for over six months. Would be interesting to know if he ever got off the ground with... |
Forum: C Jan 1st, 2004 |
| Replies: 2 Views: 5,260 I haven't looked through your code - maybe you could post your latest version as you've obviously updated it with some fixes since you first posted it. The assertion failure you're seeing, this is... |
Forum: C++ Nov 26th, 2003 |
| Replies: 1 Views: 5,817 > cout << " Frisky is << Frisky->GetAge() << " years old\n";
This should be:
cout << " Frisky is" << Frisky->GetAge() << " years old\n";
Note the " after the word is. |
Forum: C++ Nov 16th, 2003 |
| Replies: 30 Views: 869,704 Intro
This tutorial provides a brief introduction to the random number functions that come as part of the C++ standard library, namely rand() and srand().
rand() and RAND_MAX
The C++... |
Forum: C++ Nov 16th, 2003 |
| Replies: 2 Views: 20,104 In C++ we provide names for the entities we create, the variables, functions and types in our programs. These names, or identifiers, are required to conform to some simple rules.
Valid Characters... |
Forum: C++ Nov 16th, 2003 |
| Replies: 4 Views: 140,194 Intro
This tutorial provides a brief introduction to C++ data types.
What is a data type?
When we wish to store data in a C++ program, such as a whole number or a character, we have to tell... |
Forum: Computer Science Nov 15th, 2003 |
| Replies: 18 Views: 13,213 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,801 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,801 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: C++ Nov 15th, 2003 |
| Replies: 4 Views: 3,385 There are simply too many problems with your code as it is at the moment for someone to come along and fix it for you. You're a long way off having working code. I do wonder how you've come to have... |
Forum: C Nov 15th, 2003 |
| Replies: 4 Views: 3,975 There's no simple answer to that question. You will find examples of CMM level 3-5 companies that are large and cover the whole spectrum. |
Forum: C++ Oct 13th, 2003 |
| Replies: 4 Views: 4,954 The only person who knows what your instructor wants you to do with average() is your instructor. You need to work through your communications difficulties ;-) |
Forum: C++ Oct 12th, 2003 |
| Replies: 4 Views: 4,954 Surely the best person to ask would be your instructor? |
Forum: C Oct 11th, 2003 |
| Replies: 2 Views: 10,149 This used to be true, but since the C standard was revised in 1999 you can now declare a variable in a for loop, just like you can in C++. Consider upgrading your C compiler to something more recent.... |
Forum: C Oct 4th, 2003 |
| Replies: 7 Views: 8,202 Valmian, I really don't wish to be unkind, but it has to be said, the code you posted is horrible. I can't begin to imagine how someone trying to seek advice here would manage with such code, but the... |
Forum: C++ Oct 4th, 2003 |
| Replies: 1 Views: 2,848 Are you still working on this or did you figure it out? |
Forum: C Oct 4th, 2003 |
| Replies: 3 Views: 11,789 I came across the following code that you posted in a different thread. Here wsaData is declared in the line I've highlighted:
#include <winsock.h>
#include <wsipx.h>
#include <wsnwlink.h>... |
Forum: C++ Oct 4th, 2003 |
| Replies: 10 Views: 5,704 Try the following, but note that I'm using a compiler that doesn't have <iostream.h> so I'm using the standard header <iostream> in its place and using namespace std.
#include <iostream>
... |
Forum: C Oct 4th, 2003 |
| Replies: 2 Views: 4,960 > error C2065: 'wsaData' : undeclared identifier
Looks like a duplicate post. Where is wsaData declared? Your compiler is trying to tell you that you're using an identifier that hasn't been... |
Forum: C++ Oct 4th, 2003 |
| Replies: 4 Views: 22,469 > hey does anyone what these errors mean:
>
> -----------------------------------------------------------------
> --------------------Configuration: a1 - Win32 Debug--------------------
>... |
Forum: C Oct 4th, 2003 |
| Replies: 3 Views: 11,789 Hard to say exactly, as you don't appear to have posted the complete compileable code that exhibits your problem.
> void main()
>{
>// Initialize WinSock
> int... |
Forum: C++ Oct 4th, 2003 |
| Replies: 9 Views: 8,853 Doesn't look like C++ to me, is it C#? |
Forum: C Aug 9th, 2003 |
| Replies: 13 Views: 7,227 What format is the original data in, that you want written to the file? Your hex editor happens to display the stored value in hex format when it reads it. You might equally display it in decimal, or... |
Forum: DaniWeb Community Feedback Aug 8th, 2003 |
| Replies: 17 Views: 5,326 Thanks Dani, that's great. |
Forum: DaniWeb Community Feedback Aug 8th, 2003 |
| Replies: 17 Views: 5,326 Have the tutorials gone? Couldn't find them. |
Forum: C Jul 28th, 2003 |
| Replies: 2 Views: 2,817 That's just plain silly. You only need 1 programmer to write an operating system. |
Forum: C++ Jul 27th, 2003 |
| Replies: 2 Views: 3,558 You'll find that a lot of colleges and universities post their course assignments on their web sites, so check some out and see what you come up with. I'm sure you'll find some ideas.
A quick... |
Forum: Geeks' Lounge Jul 21st, 2003 |
| Replies: 52 Views: 14,330 Physical attraction??? Yuck! That is so ... Neanderthal!! |