Yeh its a mess i know...
Type: Posts; User: renvaar
Yeh its a mess i know...
I took this code from an old program i wrote. you're supposed to be able to input 1 members details each time u choose the option to add a member, then it takes you back to the menu... but it just...
Yeh thanks, I just realised my own stupid ass mistake after staring at the code for like 30 mins.
Hi all,
ok so I have some errors I just can't figure out, I don't see any problems with my code. I would really appreciate if someone could tell me what I've done wrong.
Error 1 error C2198:...
I called the function in the loop so when the details are added the menu is displayed again, so I guess it would make sense to write to the file after each time the user has entered a new client.......
Hey all, Can someone help me with writing to a file? No matter how much I try to understand and get it to work i just can't do it... My program gets the clients details when the 'add client' option...
What code have I chucked out? The only code posted is by me, and I haven't replaced anything... only added some validation in a totally seperate part (which I got working now). All I'm asking for is...
This is all great and very interesting, but nobody is helping me with my actual problems... My teacher sucks, I agree... but I still need to pass the course...
I have no idea what you are saying, and now I have another problem with my validation I added for this part...
printf("Enter memership expiry month (1-12) : ");
do
{...
Um... what?
And yeh, People keep telling me about the scanf and gets and what not.. but its what I'm taught on my course, why learn what isn't gonna get me marks...
but the loop problem?
In f_create() when it asks wether the user wants to enter a new record or not... wether you enter Y or N it just continues adding new records, can someone tell me whats wrong?
#include...
I took it all out and put it all back in and got this with 2 different errors but fixed the previous ones...
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
char id[5];
char...
I been playing around with passing the struct in the function calls, but nothing I do fixes the errors, just makes more...
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
char...
I did what you guys said and it didnt change anything, I get the same errors...
Hey all, this is probably something everyone will spot straight away but i've started writing my code and get some errors I can't get past...
error C2198: 'f_menu' : too few arguments for call ...
I wasn't whining, but you are telling me about something I know is wrong, and changed shortly after posting the code. And ignoring what I actually need help with, which is understanding whats going...
Well thats what my programming teacher tells me to do, and so I'd rather do what she says and pass the course than refuse to do it and fail.
And great guys, so far 2 posts nit picking at code...
Well done, you really helped me with the problem there. And since I am a total beginner and already explained I simply copied sections of code to try and make a working program (which it does work) I...
Hey all, I'm at the part of my course where I am being taught arrays, and passing them to functions. I have been asked to produce a program that has 2 arrays that the user enters 10 numbers in and...