the list files are mine, those i can edit.
I tried that in the meantime and it works, but it just doesn't feel right... I did a search here in the forum and I found a solution with extern but it...
Type: Posts; User: incognito54
the list files are mine, those i can edit.
I tried that in the meantime and it works, but it just doesn't feel right... I did a search here in the forum and I found a solution with extern but it...
Hi there!
So I'm doing this assignment where I have to make a simple thread library. I have a double linked list of tthreads but when accessing them I get a "dereferencing pointer to incomplete...
i don't because a DAG is an acyclic graph...
Hey there!
I'm using DFS to search how many paths do I have from vertex1 to vertex2 in a DAG graph... But I have a problem that I search the vertexes a "infinity" of times... I went here and I...
hmm that's interesting... gotta blame those teachers for teaching us right! ;)
i called the function like you said but it gives me warnings... what more do i have to change in my code? guess i'm...
Ahoy there mates!
I'm having a problem here... I asked a couple of my friends and they say there's nothing wrong with this code, so I can't figure out what's the problem...
I have declared four...
i know how it works... what i wanted to do was to make a different kind of define... the thing is, i am making a customized preprocessor just for the purpose of learning how to program in C cause i'm...
the best way to find segmentationf fault is to use gsb and then run the program till it dumps the core... you see where it crashed and then you add breakpoints to lines that can be sensitive and run...
is there any structure that can store a value (char, int, float...) and a string that is associated with that value and then whenever the string occurs in prog it is replaced with the value?
it...
thanks a lot hammer! part of my preprocessor is now done! :D
when things go right c programming is fuuun!! :p
moving to the next step, replacing the #define with something else... thanks to...
well i tried and i continue trying... but i will use that printf suggestion.. hope i can find where the error occurs it is driving me nuts!!!
i don't realise why this program gives segmentation fault when executed... here's the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (int argc, char* argv[]){
...
i beleive i have fixed some errors that my code had like
fprintf ( out, "%s", includefile ); where i was printing a file like a string!
but that darn segmentation fault won't go away!
here's how...
what a mistake... but it's fixed now!!
i don't get the warning when compiling 'cause i altered
fprintf ( out, "%s", includefile );
to
fprintf (out, "%s", includefilename);
but i still get...
i started already working in my very own preprocessor! :D
it is supposed to work somewhat like this:
it searchs for "#incluir" in a c file, and when it is found it tries to open the file with the...
thanks! now i have a idea where to start! but if i get many doubts i'm gonna use your help! ;)
i would want a very simple thing for starting
maybe substitute only th #include and the #define and then when that is done pass to the #if and #elif and so on.. you know one step at a time...
ok...
so where should i start in making my own?
i believe that the best way to learn is "doing stuff" and i thought that this was a good challenge for a beginner...
i have found the cpp files in the gcc source but they are a bit to complicated...
what i wanted was to change the names of the "macros" to something else
EX: instead of "#include" i want to use...
i'm trying to compile cpp but it's split in several files and i don't know how to compile several files in one program... :(
can someone help plz?
hmmm!!!
that seems just perfect for the current project i have in hands, a different kind of c pre-processor :D
thanks a lot you guys!!
hey there!
could anyone of you c gurus please explain me how a hash table is implemented? a friend of mine said that it would save two things, a char and the value of that char and when the char...
well i have two books, c programming language by rithchie and one in portuguese... guess i gotta read them better before i come here asking these type of questions... :o
but thanks for the help...
hey!
i'm starting to learn c programming language and i'm having a lot of trouble with analising a file and read its characters and then copy them to another file... also i have a lot of problems...