Hello,
I am trying to get the data in my binary tree to write to a file "officeEquipmen t.dat"
I am not certain how to go about this. I have done file I/O before with
[code=cpp]
file.write(rein terpret_cast<co nst char *>(&whatever), sizeof(WHATEVER ));
[/code]
but I am not exactly sure what somehting like that really does.
I am currently trying to get the following to write,...
User Profile
Collapse
Profile Sidebar
Collapse
bluechimera
Last Activity: Feb 3 '08, 10:53 PM
Joined: Jan 5 '08
Location: Tennessee
-
ah! ya I didnt really post the proper code. I wrote it quickly before leaving work
I tried this solution and it worked wonderfully! thank you !... -
A function that takes an int but returns a double
hi,
I am having a problem getting the integer I pass into a function to return as double. it is still truncating the value on the return. any suggestions?
watered down version of my code
[CODE=cpp]
int choice = 0;
{
cout << "Enter a number: ";
cin >> choice;
cout << "The new number is: " << endl;
return 0;... -
Thank you for the suggestion, I will take this into consideration; however, I believe the assignment requires the mHead and mTail to be private templatized members of the class the function is residing.
maybe I can look at what you have suggested here and implement it into my code.
thank you!
-Jason...Leave a comment:
-
I get this:
Unhandled exception at 0x001f4adf in Lab2-1.exe: 0xC0000005: Access violation reading location 0xdddddddd.
so, memory :)
I am off to bed, I work nightshift. thanks for the reply!
again, any help is appreciated
-Jason...Leave a comment:
-
Problem deleting values from my linked list (C++)
Of course this isn't the whole program....
but it is a rather large slice of code.
Yes I am in college, I am not asking for someone to do this for me.. I think that is rather stupid... you don't learn anything and if you get a job and cannot do it because someone else did the work for you.. that is your stupidity :)
I understand most of this.
This uses templates, that is what the <T> is...
This...Last edited by bluechimera; Jan 5 '08, 02:43 PM. Reason: Finaly figured out how the code tag worked :P -
there really isn't anything small anyone can post here.
I would reccomend:
www.gametutoria ls.com
or
www.gamedev.net
regards,
JasonLeave a comment:
No activity results to display
Show More
Leave a comment: