Search:

Type: Posts; User: incognito54

Search: Search took 0.01 seconds.

  1. the list files are mine, those i can edit. I...

    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...
  2. "dereferencing pointer to incomplete type"

    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...
  3. Replies
    2
    Views
    3,201

    i don't because a DAG is an acyclic graph...

    i don't because a DAG is an acyclic graph...
  4. Replies
    2
    Views
    3,201

    Problem using DFS with a DAG 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...
  5. Replies
    4
    Views
    1,082

    hmm that's interesting... gotta blame those...

    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...
  6. Replies
    4
    Views
    1,082

    Global Variable Pointers

    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...
  7. Replies
    6
    Views
    1,408

    i know how it works... what i wanted to do was to...

    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...
  8. Replies
    3
    Views
    3,652

    the best way to find segmentationf fault is to...

    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...
  9. Replies
    6
    Views
    1,408

    structure doubt...

    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...
  10. Replies
    4
    Views
    1,578

    thanks a lot hammer! part of my preprocessor is...

    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...
  11. Replies
    4
    Views
    1,578

    well i tried and i continue trying... but i will...

    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!!!
  12. Replies
    4
    Views
    1,578

    segmentation fault

    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[]){
    ...
  13. Replies
    12
    Views
    1,301

    i beleive i have fixed some errors that my code...

    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...
  14. Replies
    12
    Views
    1,301

    what a mistake... but it's fixed now!! i don't...

    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...
  15. Replies
    12
    Views
    1,301

    core dumped error

    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...
  16. Replies
    12
    Views
    1,301

    thanks! now i have a idea where to start! but if...

    thanks! now i have a idea where to start! but if i get many doubts i'm gonna use your help! ;)
  17. Replies
    12
    Views
    1,301

    i would want a very simple thing for starting...

    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...
  18. Replies
    12
    Views
    1,301

    ok... so where should i start in making my own?...

    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...
  19. Replies
    12
    Views
    1,301

    personalizing preprocessor

    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...
  20. compiling a program that is splitted in several files with gcc

    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?
  21. Replies
    3
    Views
    1,063

    hmmm!!! that seems just perfect for the current...

    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!!
  22. Replies
    3
    Views
    1,063

    hash tables

    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...
  23. well i have two books, c programming language by...

    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...
  24. problems with opening files and pointers...

    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...
Results 1 to 24 of 25