Forum: C++ Feb 20th, 2004 |
| Replies: 4 Views: 6,010 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: 6,010 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,706 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 12th, 2004 |
| Replies: 6 Views: 14,137 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,828 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: 39,042 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,503 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,693 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: C++ Jan 1st, 2004 |
| Replies: 4 Views: 142,893 Thanks for the feedback; glad you found it useful. |
Forum: C++ Jan 1st, 2004 |
| Replies: 30 Views: 913,966 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,904 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++ Nov 26th, 2003 |
| Replies: 1 Views: 5,918 > 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: 913,966 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,836 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: 142,893 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: C++ Nov 15th, 2003 |
| Replies: 4 Views: 3,437 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++ Oct 13th, 2003 |
| Replies: 4 Views: 5,010 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: 5,010 Surely the best person to ask would be your instructor? |
Forum: C++ Oct 4th, 2003 |
| Replies: 1 Views: 2,903 Are you still working on this or did you figure it out? |
Forum: C++ Oct 4th, 2003 |
| Replies: 10 Views: 5,826 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: 4 Views: 23,123 > hey does anyone what these errors mean:
>
> -----------------------------------------------------------------
> --------------------Configuration: a1 - Win32 Debug--------------------
>... |
Forum: C++ Oct 4th, 2003 |
| Replies: 9 Views: 9,183 Doesn't look like C++ to me, is it C#? |
Forum: C++ Jul 27th, 2003 |
| Replies: 2 Views: 3,644 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: C++ Jul 18th, 2003 |
| Replies: 5 Views: 26,327 Your C++ compiler comes with a random number generator, rand(). There's a tutorial on the site here:
1769
If you're producing a serious application you'll want something a little more... |
Forum: C++ Jul 6th, 2003 |
| Replies: 16 Views: 5,450 My previous post? To you. And once again, I don't see it as a major drop-off if you don't touch a GUI on your course.
Besides, if you can't even remember what year you're taking, what chance do... |
Forum: C++ Jul 6th, 2003 |
| Replies: 16 Views: 5,450 Do you know whether you will be taught a particular GUI later in the course? Not that I'd see it as a major drop off if you weren't. |
Forum: C++ Jul 6th, 2003 |
| Replies: 16 Views: 5,450 There's no reason why your teacher, or anyone else who understand C++, should know how to write Windows applications. The two are quite different things. C++ is a language defined by a standard and... |
Forum: C++ Jun 12th, 2003 |
| Replies: 13 Views: 39,042 You're welcome.
Now, please post again. That 666 (posts) is making me uneasy ;-)
http://www.robertjacobs.fsnet.co.uk/images/dani2.jpg |
Forum: C++ Jun 11th, 2003 |
| Replies: 13 Views: 39,042 To delete a file use the C++ remove() function. |
Forum: C++ May 31st, 2003 |
| Replies: 8 Views: 4,979 "cin" is standard C++. If you have a C++ compiler it will work.
system("pause");
is a platform specific call. It's generally preferable to use portable solutions rather than platform specific... |
Forum: C++ May 30th, 2003 |
| Replies: 8 Views: 4,979 Try adding the following line just before you return from main():
cin.get();
for example, a hello world program:
#include <iostream>
using namespace std;
int main() |
Forum: C++ May 7th, 2003 |
| Replies: 4 Views: 8,748 "C++ has GUI features"
Well, strictly speaking, C++ has no GUI features whatsoever. It knows nothing about such things, they're simply not part of the C++ language or standard library. If your... |
Forum: C++ Apr 27th, 2003 |
| Replies: 1 Views: 8,043 Remove your call to srand() from the loop and place it before the loop so that it's called just once.
If you're not sure why, take a look at the tutorial on random numbers. |
Forum: C++ Mar 22nd, 2003 |
| Replies: 8 Views: 3,580 Interestingly, this thread is almost a year old, so the OP should be almost a guru by now ;-) |
Forum: C++ Mar 18th, 2003 |
| Replies: 18 Views: 6,373 The answer is in the previous posts. Dev-c++ will close the console window as soon as the program terminates, so all you have to do is out in a command that stops it from terminating until you're... |
Forum: C++ Mar 15th, 2003 |
| Replies: 18 Views: 6,373 Just add the last path to your compiler options and it should compile OK. The dev-cpp directory will be the same as for the others. |
Forum: C++ Mar 15th, 2003 |
| Replies: 18 Views: 6,373 Have you checked the compiler options that I wrote about? |
Forum: C++ Mar 14th, 2003 |
| Replies: 18 Views: 6,373 |
Forum: C++ Mar 14th, 2003 |
| Replies: 18 Views: 6,373 One more thing, there was an installation problem with a recent version of dev-cpp - it missed a path from the compiler options (which leads to hundreds of error message when you try to compile... |
Forum: C++ Mar 14th, 2003 |
| Replies: 18 Views: 6,373 The latest version of dev-cpp doesn't recognise <iostream.h>, you need to use the standard version of the same header - <iostream>. When you do, you need to qualify any entities from namespace std.
... |