Forum: C++ Sep 3rd, 2009 |
| Replies: 4 Views: 331 Yes, new members register at an astonishing rate here . . . when I logged in there were six less members than there are now. :)
[Sorry if this is a bit advanced. I assume you're a pretty good... |
Forum: C++ Jun 8th, 2009 |
| Replies: 5 Views: 281 I've really told you all you need to know. I'll give you some more details, but you'll have to do some searching . . . .
Three steps.
Open the file. You use ifstream to do this, it's not hard.... |
Forum: C++ Jul 24th, 2008 |
| Replies: 10 Views: 1,036 switch (choice)
{
case '1':
saveGame();
case '2':
switch (missionNumber)
{
case 1:
... |
Forum: C++ Jul 16th, 2008 |
| Replies: 8 Views: 805 So your question is, why does structure alignment apply to the last member of a structure?
I think the answer is the same as for why structure alignment exists in the first place. Structure... |
Forum: C++ Jul 2nd, 2008 |
| Replies: 4 Views: 602 In order to use the ifstream fin variable that you declare inside the switch statement, you need to declare it outside the switch statement. For example:
ifstream fin;
switch(choose) {
case 1:
... |
Forum: C++ Feb 14th, 2007 |
| Replies: 3 Views: 2,917 Really? . . . http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx
Either way works, and some would recommend the OP's way over yours (myself included).
If you want it to generate numbers... |
Forum: C++ Sep 17th, 2006 |
| Replies: 4 Views: 1,576 basetsd.h isn't a standard header file, as you can find out by googling it. Therefore dropping the .h wouldn't help much; only the standard C++ header files have no extension. Of course, you're free... |
Forum: C++ Sep 17th, 2006 |
| Replies: 5 Views: 1,556 #include < IOSTREAM >
Header files are case-sensitive, and those spaces are part of the name, too. Use this instead:
#include <iostream>
Then change
cout<<**weekdays;
to
std::cout<<**weekdays;... |
Forum: C++ Sep 14th, 2006 |
| Replies: 4 Views: 1,705 From http://www.wcscnet.com/Products/CdrvPP/CdrvPPSupportQuestions%5B0001%5D.htm |
Forum: C++ Sep 14th, 2006 |
| Replies: 4 Views: 11,863 I imagine the overhead would not be great (unless your program is written in C++); TC fits on four floppy disks and it runs on an XT computer. But switching to an old compiler just so you can use its... |
Forum: C++ Sep 2nd, 2006 |
| Replies: 4 Views: 3,857 Your acceptInput() code doesn't have access to arraySize. :) |
Forum: C++ Mar 11th, 2006 |
| Replies: 47 Views: 67,962 for( int i = 0; i < 32; ++i )
That's not very portable. Use something in <climits> or the C++ equivalent. |
Forum: C++ Feb 9th, 2006 |
| Replies: 3 Views: 908 Try this:
Node array[DEPTH][ROW][COL] = {{{NULL}}};
That should get rid of your error and your warning. |