Oh.. Dumb Me..
Thanks, it compiles now and all, had to use some strcmp's to get it working.
Now to define the algorithm for factorial numbers. (n!)
Type: Posts; User: Chinfrim
Oh.. Dumb Me..
Thanks, it compiles now and all, had to use some strcmp's to get it working.
Now to define the algorithm for factorial numbers. (n!)
SOLVED!!
Hello, I cannot seem to find a way to get my program to read a WHOLE word and then so something according to that word.
Basically, my program needs to ask the user about 3 options,...
printf("Please enter a single digit number:");
scanf("%f",&num1);
That's one error that popped right up, You must save the scanf to the adress, not the variable itself.
Also, you're much...
I can't get it to work, I simply can't,
It's starting to annoy me, I don't know how to read only the client database, I don't know how to write new info only inside the client database, I know...
Very well, the only thing I'm having trouble at, is the following, to be 100% sure of what to do:
I wanted to know if I can, find the starting tag of <clients>, copy all the data to a list, up to...
Actually, I need to do that, it's using the struct, and the pointer to the next struct, the problem seems to be writing with the tags. Which I seem to have some troubles at.
Okay, you told me to malloc() a Buffer, I'd guess tomorrow morning, I'll do some research on that.
Supposedly, I would want to malloc() something bigger than the original file, that's why I would...
I had Ubuntu 7.10 ( It's a Linux Thingie) Installed here, pureply for programming, and I use the text editor that comes with it, it's Gedit.
It's really good, gives you neat stuff like, quick...
Okay, so I can just.. scanf("%d", *save it to a vector here?*)
And for the other doubt, it's the following,
They want the customers to have a Company ID Number.
So, imagine there's two...
Yep, mostly it's whats happening, I think that what I have written makes sense, but, I don't know if it will go well.
And can I save the numbers to a vector string like that?
And that cycle...
Can I just use:
struct client {
int id_client;
char name_client;
int cont_client;
struct client *next;
};
Very well, I shall use your idea then, I will come back after lunch and some more frustrated tries!!
Well, thing is, I don't know how to pick it up,
I have a xml file, I'll write part of it:
<pos>
<company>Company X</company>
<tax>1.21</tax>
−
<suppliers>
Well, considering, I don't know how to exactly read from a file, and write in it, how to make dynamic structs, and this project is all about that, I have a long way to go.
Meh, it's too much to learn in one week, while studying for another subjects, I guess I'll fail.. sigh.
Okay, but still I need to create the "interface.h" file and write the:
#include "interface.h"
Where interface.c would have, for example, function A, which would create the menu, B which would...
Okay, thanks a lot, MacGyver, guess I'll have to study a bit more of file reading/writing,
Specially the part where the function finds a line and write in a specific spot.
Okay, I never heard of this in College, so.. I can just make a file, say "read_xml.c" and make a read_xml.h file?
Well, considering I have, numbers, and characters to write/replace/read, if I just...
So, I have this college project, and I need to make a POS application.
My POS (Point of Sale) has two working modes, as the supervisor, and as an employee.
To make it simpler, me and my...