Sonic and Sega Retro Message Board: .hack//zero - Viewing Profile - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help

Group:
Member: Members
Active Posts:
2999 (0.67 per day)
Most Active In:
Engineering & Reverse Engineering (1119 posts)
Joined:
23-April 03
Profile Views:
2762
Last Active:
User is offline Jan 19 2015 10:02 PM
Currently:
Offline

My Information

Age:
27 years old
Birthday:
July 4, 1988
Gender:
Male Male
Interests:
video games<br>anime<br>manga<br>girls

Previous Fields

Project:
Learning more C++, Requiem of the Twilight(On hold)
National Flag:
us

Latest Visitors

Posts I've Made

  1. In Topic: Need some C++ help.

    03 October 2008 - 05:40 PM

    Never mind it's working now. Apprently the problem had to do with me reopening the file too much.
  2. In Topic: Need some C++ help.

    02 October 2008 - 11:17 AM

    View PostUltima, on Oct 2 2008, 06:26 AM, said:

    Shouldn't the sizeof(rec) be the changed to give the size of a single record, rather than the size of the entire Records object? sizeof(Records) or sizeof(rec) will give the size of the entire Records set, instead of just one record.

    If this isn't the case, and the Records object really represents a single record, you're only ever writing one record with the AddRecord function, since you always write to position 0.


    Actually, it's just for debuggin purposes.


    Anyway, here's a updated version of it.
    void ReadRecord(Records rec, int recordcounter, fstream& outfile)
    {
    	int block;
    	cin >> block;
    	outfile.seekg(block*sizeof(rec));
    	outfile.read(reinterpret_cast<char*>(&rec), sizeof(rec));
    	rec.GiveData();
    }
    
    void AddRecord(Records rec,int recordcounter,fstream& outfile)
    {
    	rec.getData();
    	outfile.write(reinterpret_cast<char*>(&rec), sizeof(rec)); 
    	outfile.seekg(0);
    	outfile.read(reinterpret_cast<char*>(&rec), sizeof(rec));
    	rec.GiveData();
    
    }
    
  3. In Topic: Your Programming Language of Choice?

    23 July 2008 - 07:02 PM

    Definitely C++
  4. In Topic: BootMGR is missing...

    23 July 2008 - 06:59 PM

    Okay, my computer is working again. Either the power supply, or the thing that connects the harddrive to the mobo got loose. So it's working and everything is fine now.
  5. In Topic: BootMGR is missing...

    23 July 2008 - 06:32 PM

    Coulds someone with vista tell me where the path to the system restore files is? I would do it myself, but there isn't another running vista in the house.

    I'm gonna see if I can restore it from dos mode.

Friends