i thought read(), write(),close() are for reading binary file
if I still use fopen(), fread(), i still can read the binary file?
Type: Posts; User: Tozilla
i thought read(), write(),close() are for reading binary file
if I still use fopen(), fread(), i still can read the binary file?
then is my sytax wrong?
I have a binary file named bintest.dat
int readBinary(struct test *b)
{
FILE *inFile;
I just want to know if open() can read the binary file with UNIX C.
I'm trying to write a problem which can display a prompt,e.g My_shell$ and accept a command entered by the user by using fgets. Also, it needs to execute the command by invoking fork() and execvp()...
can anyone show me the example declaration in header file how to recor value from other class?
Thanks
i've aleady fixed that problem. But still have errors.
hm...I still can't make my program working properly. I fixed the prototypes. I still can see the same errors.
I have many errors when I compiled it. I think it's all from overloading operator. I have so many errors...this is one of them
binary '+' : no operator defined which takes a right-hand operand of...
hm....I have the same kind of problem on operator overloading.
I don't know why my professor gives us this kind of design.
I guess my professor wants us to know certain things in this design.:confused:
ok..these are the classes I need to write
Car class:...
sorry..I forgot to write that there're two more header files and source files. Those files are for calculating how much fuel has been purchased and how far the car has travel.
So, I have to use two...
thanks..but i still have sytnax errors with the operator overloading function
I'm currently writing a header file for a Car class. But The problem is I don't know how to initialized in the Car class and use the copy constructor in the header file. Also, this header file...