i downloaded bloodshed c/c++ and now it all works except it crashes when i display the inventory with nothing in it.
Type: Posts; User: mattyans
i downloaded bloodshed c/c++ and now it all works except it crashes when i display the inventory with nothing in it.
its in windows and i am using microsoft visual c++
That was a real good explanation Quzah!!!
here is the latest attempt
still same problem
thanx!!!!
but i got to get it to work on mine cause i its a project for school!!!!!
i tried r+ and w+, and it still crashes but thanx for trying to help, maybe it is just my comp and it might work on another, but thanx for all the help guys
It has no ERRORS!!!!!!!
when i run it without the file created already it works perfect!!!!! it just crashes when the file is there!!!!
and i loked at the debugger and it showed that it was...
THis program is an inventory program, the first time u run it it creats a file to store the inventory, but after you exit the program and run it again as soon as you enter a code for anything it...
i know what i want to do but i dont know how to do it!!!!
i wantr to display the record and then update the record as i am looking at in on the screen
I was wondering if it is possible to display a record in a linked list, or any other structure and be able to update the record rather than delete the record an re-enter it
any help would be...
can anyone show me the code to display the contents of a linked list??????
im not sure how to do this.
even the pseudocide would be a help!!!
on these lines
void exch(int a[], int nb);
void ins_sort(int nb, int ar[]);
void shell_sort(int nb, int ar[]);
void bubbles(int a[], int nb);
void key_wait(void);
void swap (int *a, int * b);...
here are the errors and the code
C:\matty\Microsoft Visual Studio\sorts.c(145) : error C2143: syntax error : missing ')' before ';'
C:\matty\Microsoft Visual Studio\sorts.c(145) : error C2059:...
greast thanx
i dont know how to pass an array to a function so it can be sorted and passed back to be displayed!!!!!
i know how to do the sort just not how to pass the array
i need to display the contents of i file (library.dat) into a sturctured linked list and display it
i need to enter 4 values in a linked list in a structure, and i was wondering how can i enter the multiple values. i know how to enter 1 but not 4
here is my code
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct book
{
what is the code to impliment a liked list?????
i think i got it but i dont know how to check to see if the list is actually being created.
i keep getting this error
next' : is not a member of 'book'
here is the code any help would be great!!!!
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
i keep getting an error saying
unexpected end of file found, how do i fix that!!!!!!!!
the eror says
'fread' : pointer mismatch for actual parameter 1
this is the line of code
fread ( sRec, sizeof ( struct book ), (size_t)1, library );