Forum: C May 23rd, 2006 |
| Replies: 2 Views: 871 yeah, but that is neither here nor there...
file.open(fileName, ios_base::in | ios_base::binary);
this is not opening the correct file for whatever reason... i just tossed that check in right... |
Forum: C May 23rd, 2006 |
| Replies: 2 Views: 871 I've never seen this before and am perplexed beyond belief... by the way I'm using Visual Studio
I have a rather large program/game i'm working on right now, and it reads in via ifstream file i/o... |
Forum: C Jan 20th, 2006 |
| Replies: 1 Views: 1,585 just a simple question that has been driving me bonkers for a few hours, but I'm new to MFC and haven't encountered this until today
I've implemented serialization in my current project and set... |
Forum: C++ Oct 11th, 2005 |
| Replies: 16 Views: 4,613 i just altered it again... try that
i didn't use a temp variable and it should print a tree... i didn't test it but it should do the trick |
Forum: C++ Oct 11th, 2005 |
| Replies: 16 Views: 4,613 i made a couple of changes to the code... try that and let me know if it works
if you don't put a temp variable that starts equal to lines and decrements after every go around you will always move... |
Forum: C++ Oct 10th, 2005 |
| Replies: 8 Views: 2,557 i would just have the settimezone function take in an int then and assign it to the timezone variable
if you are testing this class in a program using menus and ussr input just have them enter 0... |
Forum: C++ Oct 10th, 2005 |
| Replies: 8 Views: 2,557 how do you want the time zone to be determined?
just have the function bring in an int and set it to timezone... that is unless the time zone is dependant upon something in clocktype
not sure... |
Forum: C++ Oct 9th, 2005 |
| Replies: 16 Views: 4,613 [QUOTE=smallville]
for(j=1; j<=lines; j++)
{
for(i=1; i<=lines; i++)
{
cout << " ";
} |
Forum: C Oct 8th, 2005 |
| Replies: 6 Views: 2,034 actually you do dereference the null pointer...
PT* ptr = 0;
ptr->whatever();
is the same as
PT* ptr = 0;
(*ptr).whatever(); |
Forum: C++ Sep 21st, 2005 |
| Replies: 10 Views: 2,410 at first i thought that maybe the new line created by the return might make the second cin just read that, but then i threw it in vs.net 2003 and it worked fine, so i retracted that
not sure what... |
Forum: C++ Sep 21st, 2005 |
| Replies: 10 Views: 2,410 actually it worked ok for me |
Forum: C++ Sep 17th, 2005 |
| Replies: 3 Views: 1,547 #include <iostream>
using namespace std;
int main()
{
int first;
int last;
int num1;
int num2;
int num3; |
Forum: C++ Sep 17th, 2005 |
| Replies: 5 Views: 3,403 since you are passing the string in by pointer and not by value, you can directly alter the string in the function... however you can not simply do string = whatever... you need to do a... |
Forum: C++ Sep 13th, 2005 |
| Replies: 7 Views: 1,599 you need to either declare a fixed size char array... i.e. str[100] or use dynamic memory and a deep copy using strcpy or stricpy. If you use the fixed size array you can cin >> str and all will be... |
Forum: C++ Jun 15th, 2005 |
| Replies: 3 Views: 2,387 amt_muk, thanks a ton... it makes a boat load of sense now, but in the wee hours of the night I just couldn't see it
prog-bman, you're right also... i was putting too much thought into what i was... |
Forum: C++ Jun 15th, 2005 |
| Replies: 3 Views: 2,387 I'm new to the forum as I've been surfing around for some previously posted help, but I just can't find it. So if anyone can help it would be greatly appreciated.
I'm new to C++ and programming in... |