What part(s) are you having a problem with? #define INIT_PAG_NUM 200 typedef struct { /* add vars as required */ } pagent; void...
The basics for a static library would be to compile (no link) the source file containing your functions and then use the compiler's librarian to...
Hello, By compiler, I mean which company makes the one that you are using? Borland, Microsoft, etc. For example, Borland's older compilers...
There is no standard C/C++ library for that. What compiler are you using? What target are you developing for? console, gui?
In case someone is interested; here's a bit of code to move about a cursor within a viewport. Dunno how many bugs there are, but feel free to...
Have you tried something like #include <iostream> #include <fstream> typedef struct { char fname[20]; char lname[20]; char...
That might confuse someone new to either C/C++. That's not a string by definition; in fact, you couldn't use it with any standard library...
Is this the same program as part 2 or is it something different? If it's the same, then all you'd really need is something like int number,...
Glad to help if and where I can. :) printf("%d%s", c, c < k ? "_" : ""); The only stickler there is if n is greater than 9; if it is,...
the first one needs nested loops. the outer loop should start at N and run while it's greater than 0. The inner loops can be tricky: 1)...
I've never gotten that far, but you might check here to see if anything will help you out. Good luck.
to access the structs' members, use the . notation. stu.stnumber = some_value; struct student { char *stname; char *stsex;...
you haven't allocated any space to store "name". right now, *name is a pointer that points to nothing. void ReadName() { char *name =...
what you might try is creating a structure to hold the fields of each line - maybe typedef struct { std::string cat; // xxx part int...
Do you mean a flat file such as with calling fopen or an actual database program? I don't think I'd be much help beyond maybe a few tutorial...
Sure you can; you just need confidence, patience, determination, and most importantly, you need to create yourself a goal that is just beyond your...
Here's another project I've been playing around with. As with the other program, if anyone sees anything bad, please let me know. #include...
I've been playing around with the following code to produce a simulated 7 segment display in text based programs... perhaps games with a score...
to go along with what shabbir stated, unless you're in the habit of using global variables, you need some mechanism to access a variable's value...
Hello; have you tried using a linked list? maybe something like struct company { char status[20]; // not filled or name of applicant...
Separate names with a comma.