i'm actually trying to do another code
void saveinfo(ptrcourse *pFirst, ptrstudent *pHead, int ctr[])
{
FILE *pFile;
char filename;
ptrcourse current;
current = *pFirst;...
Type: Posts; User: jjexpress
i'm actually trying to do another code
void saveinfo(ptrcourse *pFirst, ptrstudent *pHead, int ctr[])
{
FILE *pFile;
char filename;
ptrcourse current;
current = *pFirst;...
should I allocate memory for pTemp?
my code is suppose to write all the contents of the nodes in text file in the given format above.
What the code is doing is it doesn't output anything.
I'm a newbie when it comes to files that's...
ah while it is not the end of file
i'm not sure about what while(!EOF) is doing
typedef char string30[31];
struct getTime
{
int shr;
int smin;
int ehr;
int emin;
};
the values here are not being scanned so It doesn't write anything:(
I'm not sure how to fix the algorithm.
void files(ptrcourse *pFirst, ptrstudent *pHead, int ctr[])
{
FILE *pFile;
ptrcourse pCurrent,pTemp,pNew;
ptrstudent sCurrent,sTemp;
string30 temp;
...
thanks for helping me
can someone help me with this code?
void files(ptrcourse *pFirst, ptrstudent *pHead, int ctr[])
{
FILE *pFile;
ptrcourse pCurrent,pTemp,pNew;
...
struct course
{
string30 coursecode;
int section;
int units;
char schedule[3];
string30 lecturer;
int slots;
struct getTime *ptrtime;
...
@dwks
It works. thanks a lot
I have another question.
How can I enable the user to be able to exit the game whenever he wishes?thanks
how can I make the switch part a function??
thanks.
i'll check it out.
I just finished my mastermind yesterday and it was perfectly working.
i tried it again earlier and I found out that the no. of black and white chips does not match the random generated numbers....