well, luckily ive found my windows installer out of my "old treasure box" . :D
ive succesfully installed it in the vmware virtual disk, but now when i try to run an application(specifically...
Type: Posts; User: eyescythe
well, luckily ive found my windows installer out of my "old treasure box" . :D
ive succesfully installed it in the vmware virtual disk, but now when i try to run an application(specifically...
hello everyone,
do you know where to download a windows xp sp3 vmdk file?
im trying to run windows in my vmware player but i learned that you need to install
the os again, unfortunately i dont...
thanks a lot man!
ive completely installed spim!
now time for some programming action! :D
have a nice day!!
but now i have this error
/usr/bin/ld: cannot find -lXaw
collect2: ld returned 1 exit status
make: *** [xspim] Error 1
ive already installed a C compiler, flex and bison...
thanks man! ive fixed this error
..gosh there's many requirement to install spim
Hello Everyone!
Im installing spim on ubuntu which i got from SPIM MIPS Simulator.
Ive followed the steps but suddenly i got these following errors.
...
so is this correct?
current=head;
while(current!=NULL){
fwrite(current, sizeof(pokemon_t), 1, bfp);
current=current->next;
}
typedef struct pokemon{
char name[20];
char type[20];
struct pokemon *next;
}pokemon_t;
FILE *bfp;
pokemon_t pokemon;
my compiler did not showed any warning..
and i also included stdio and std lib..
so how should the code in reading the file be? whats the correct code?
but i have problems on writing the linked list on the binary file...
assuming that head is the head pointer of the linked list..
current=head;
while(current!=NULL){...
here is my code
bfp=fopen("TEMPORARY.bin", "ab+");
head=(pokemon_t *)malloc(sizeof (pokemon_t));
strcpy(head->name, "pikachu");
ok..now i get it...
how about in reading all the data in the file....
so i will use a ptr that will point to the head of the list...then the ptr walks..
i used fseek and fread (included in a...
thanks tabstop....:D
how about in fwriting the linked lists
will i do this?
head is the head pointer of the linked lists..
fwrite(&head, sizeof(pokemon_t), 1, bfp) or
fwrite(&pokemon,...
so what i will do now...is open the file...read the structures...link it...then close the file....add the new structure (in alphabetical)
open the file again...with "wb+"....then write the link...
so if i will rewrite the file.. how can i do that?
i am opening the file like this
bfp=fopen("myfile.bin", "ab+");
so if i will just write it in place..
how can i add a new structure in the file...alphabetically...so i nid to link it..
or noy needed?
if that so...i will write the newly alphabetically arranged structures to a new .bin file right?
then...what if i need to load it? my program opens the old file...but ive written the...
because i'm adding a structure into the .bin file alphabetically...
so do i need to link it? or there are other ways?
i have a problem on how can i write a linked list structure to a binary file
typedef struct pokemon{
charn name[20];
struct pokemon *next;
}pokemon_t;
this is my structure
typedef struct pokemon{
char name[20];
char type[20];
struct pokemon * next;
}pokemon_t;
lets assume that the file has already data in...