Alrite thnx a lot problem fixed, worked fine when i changed
ios::in || ios::binary
to
ios::in | ios::binary
Type: Posts; User: DirX
Alrite thnx a lot problem fixed, worked fine when i changed
ios::in || ios::binary
to
ios::in | ios::binary
donnu if it helps but here is the code i used to insert:
DB_out.open("db.raw", ios::binary || ios::ate);
DB_out.seekp( ( ( Position * sizeof(Book) )), ios::beg );
DB_out.write( (char...
Writing goes fine, evrythin in the binary file is just the way it should be, only problem i am havin is with reading. At one point my code will just start to spurt strange BS.
...
I Speak dutch, english and can understand most and speak a little german. I am a novice c++ programmerand am not having to many troubles
Here is a working piece of code for your assignment. Fully done, i was bored so don't expect it to be done often....
#include <iostream>
using namespace std;
int main()
{
// Variables...
One problem i found was this:
#include <iostream.h>
using namespace std;
the old .h version doesn't use namespaces, atleast not in MSVC you might wanna try changing this to the new...
Ok all thanks for you help, guess i need to read up on pointers and reference's again been a while since i used em this intense. Elad thnx for putting it in plain english =]
ehhhh..... no try something like this:
StudentGrade::StudentGrade(const int id, const char lname[], const double score, const double possPoints)
{
possible=possPoints;
...
StudentGrade::StudentGrade(const int id, const char lname[], const int score, const int possPoints)
{
idNum=id;
findGrade();
}
Not quite sure but don;t you wanna do something with the...
hmm ok well first of all i might have explained this wrong but the way i want this is head->new element->old element or null....
second of all i think the problem is with the functions and the...
Hmm ok but i do wanna change the memory that head is pointing to, i wanna change it to the memory used by the new ListType that was initialized in InitializeList. Basically the problem is that when i...
I create a new element of a struct inside a function and then send a pointer to that new element into another function where it sets that equal to the head and links the previous link of the head to...
I looked in the forum and i found some code but i can;t get it to work =\. I am trying to write a program that will be able to shutdown a windows 98 computer, i tried using the ExitWindowsEx function...
Making the system use the ram improperly would mean you reprogrammed the BIOS. Windows does not directly access the ram, all Ram operations go through the bios. Would be somewhat funny if you could...
The official FSB of PC2100 DDR is 266 if i remember right therefor it has a FSB of 133 and a multiplier of 2 to it adding up to 266.
I doubt however that underclocking the RAM would remove any...
Yes i tried google but i am getting is short articles... Plus i can't BS this one =] it is for my IB Diploma, Extended essay if you are fimialiar with the IB program...
I am writing a school essay on future computer design and architecture as in enhancedments to the current design, the limitations of electrical design, possible replacements for the electrical...
The first cars that drive on hydrogen have already been released in the past few months and they do not need any gasoline. All they need is hydrogen and oxygen (air). I beleive that is a major...
I have both Visual C++ 6.0 and Visual C++ 7 (.net) but for the programming i do i prefer to use 6.0. Atm .net is not yet widely in use and it is quite a lot different from (read a lot more confusing...
You have a base of truth there. Sometimes goto statements are the only way to go (like there are those people who like to take the chewing gum from under chairs and stick it in ther mouths again...
The best way is to take a problem, then take a solution and start writing out all the different steps required to get to the solution. Then you divide those up again etc. You this until you can...
A Little example will probably help you best:
// This Code Comes Straight From:
// Sams Teach Yourself C++ in 21 Days 3rd Edition
// Jesse Liberty
#include <iostream.h>
darn...... thats not good :eek:
Should i consider myself sociaal outcast upon finding this discussion entertaining reading???
The linking error you got was because the prototype of the save function was different from it's initialization. You have to replace the initialization with:
void save(int areacode[50], int...