#define INFINITY (MAX_INT - 1)
typedef struct {
int weight; /* inútil até agora */
int dest; /* indica o destino da ligação (ex. 4 -> 6, dest = 6) */
}...
Type: Posts; User: Slaught
#define INFINITY (MAX_INT - 1)
typedef struct {
int weight; /* inútil até agora */
int dest; /* indica o destino da ligação (ex. 4 -> 6, dest = 6) */
}...
Yeah, but the problem is: I can't find any good book or site that explains those functions properly. My books' codes give errors after errors, and don't explain them much... I tried some sites...
Thanks Salem, but still i have one doubt.
As the database is a text file, not separated individually, that code you wrote would read all the database?
I want to separate parts of it, like as i...
yeah, but:
>Can you put an example of the source code here? of the program to read and edit/read the file.
My C books aren't very good at example functions, so i don't really know how to call...
It's just needed to tell them thay cant edit it, as they won't know about the real existance of the file. they will only access the file through the program, so if the program won't let them it is...
Hmm lets say, for example, that i have a txt file in C:\windows called system.db . It was created as .txt but is masked as .db.
So it would be as well C:\Windows\system.txt or.db .
Lets say that...
Yeah, something alike. A text file could be an example of that.
>No, the smily didn't display. It was somewhat of a joke. All programs start like that
Yeah, know the smiley was a joke, and all programs start like that, but i never used that "char *dbname...."...
>Design your database using the tables you need .
You mean, create the database and the program to read/edit it?
I just need a starting, the rest i will learn with time.
that code you put...
>Will this database be a single table, or multiple tables with relationships between them?
I think it would be multiple tables, because it is lots of info that i want to put there.
>What sort of...
Hi ppl. A challenge appeared to me, and i'm not really sure how to to complete it. It goes like this:
I need to do a database, more or less like the ones made with Microsoft access, but i need...
huh, like, i never worked with that kind of function, so i dont really know how to input users and passes in there for "making the loop"....can u put an example of that, with at least 3 different...
As easy as this, if I understood well:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int FVal;
printf("Input a number: ");
What's the point in doing that to declare them? i didnt get it...
BTW, is it possible to, like, put a "kind of password" in the beginning of the program to multi users, giving each user a different...
Got it already. Thanks man i really appreciated your help, despite my questions being a bit noobish you helped me :) .
Really thanks, now i can finish this goddamn program hehe.
forget the last thread, i did some logical experimenting and found the way to do it.
thanks a lot MrWizard :D . You were really a great help. BTW, do you know the command to clear screen?
so i should put it in the beginning, like this? :
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
hi ppl i have a simple question, i'm starting to learn C and i spotted this problem . my program after any command that i input just exits, and it's very annoying to just restart the whole program....