Search Results

Showing results 1 to 40 of 128
Search took 0.01 seconds.
Search: Posts Made By: Bob
Forum: C++ Feb 20th, 2004
Replies: 4
Views: 5,877
Posted By Bob
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,877
Posted By Bob
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,650
Posted By Bob
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: 16,118
Posted By Bob
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,865
Posted By Bob
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: 17,235
Posted By Bob
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: 38,248
Posted By Bob
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,264
Posted By Bob
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,605
Posted By Bob
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,410
Posted By Bob
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: 141,131
Posted By Bob
Thanks for the feedback; glad you found it useful.
Forum: C++ Jan 1st, 2004
Replies: 30
Views: 885,661
Posted By Bob
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,777
Posted By Bob
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,300
Posted By Bob
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,848
Posted By Bob
> 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: 885,661
Posted By Bob
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,353
Posted By Bob
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: 141,131
Posted By Bob
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,301
Posted By Bob
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,828
Posted By Bob
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,828
Posted By Bob
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,403
Posted By Bob
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: 4,031
Posted By Bob
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,971
Posted By Bob
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,971
Posted By Bob
Surely the best person to ask would be your instructor?
Forum: C Oct 11th, 2003
Replies: 2
Views: 10,173
Posted By Bob
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,279
Posted By Bob
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,865
Posted By Bob
Are you still working on this or did you figure it out?
Forum: C Oct 4th, 2003
Replies: 3
Views: 11,907
Posted By Bob
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,729
Posted By Bob
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,994
Posted By Bob
> 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,710
Posted By Bob
> hey does anyone what these errors mean:
>
> -----------------------------------------------------------------
> --------------------Configuration: a1 - Win32 Debug--------------------
>...
Forum: C Oct 4th, 2003
Replies: 3
Views: 11,907
Posted By Bob
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,959
Posted By Bob
Doesn't look like C++ to me, is it C#?
Forum: C Aug 9th, 2003
Replies: 13
Views: 7,316
Posted By Bob
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,346
Posted By Bob
Thanks Dani, that's great.
Forum: DaniWeb Community Feedback Aug 8th, 2003
Replies: 17
Views: 5,346
Posted By Bob
Have the tutorials gone? Couldn't find them.
Forum: C Jul 28th, 2003
Replies: 2
Views: 2,824
Posted By Bob
That's just plain silly. You only need 1 programmer to write an operating system.
Forum: C++ Jul 27th, 2003
Replies: 2
Views: 3,588
Posted By Bob
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,410
Posted By Bob
Physical attraction??? Yuck! That is so ... Neanderthal!!
Showing results 1 to 40 of 128

 


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

©2003 - 2009 DaniWeb® LLC