Search Results

Showing results 1 to 13 of 13
Search took 0.02 seconds.
Search: Posts Made By: dwks ; Forum: C++ and child forums
Forum: C++ Sep 3rd, 2009
Replies: 4
Views: 331
Posted By dwks
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
Posted By dwks
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
Posted By dwks
switch (choice)
{
case '1':
saveGame();
case '2':
switch (missionNumber)
{
case 1:
...
Forum: C++ Jul 16th, 2008
Replies: 8
Solved: Alignement
Views: 805
Posted By dwks
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
Posted By dwks
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
Posted By dwks
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
Posted By dwks
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
Posted By dwks
#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
Posted By dwks
From http://www.wcscnet.com/Products/CdrvPP/CdrvPPSupportQuestions%5B0001%5D.htm
Forum: C++ Sep 14th, 2006
Replies: 4
Views: 11,863
Posted By dwks
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
Posted By dwks
Your acceptInput() code doesn't have access to arraySize. :)
Forum: C++ Mar 11th, 2006
Replies: 47
Views: 67,962
Posted By dwks
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
Posted By dwks
Try this:
Node array[DEPTH][ROW][COL] = {{{NULL}}};
That should get rid of your error and your warning.
Showing results 1 to 13 of 13

 


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

©2003 - 2009 DaniWeb® LLC