Search:

Type: Posts; User: Killroy

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,045

    Ok.. I fooled around and found the error. Nobody...

    Ok.. I fooled around and found the error. Nobody has to test it, unless you like debugging.
  2. Replies
    1
    Views
    1,045

    Core-dumps and I do not know why.

    Last year I had to make this nice program that makes XML out of a text-file. I succeeded. This year I got a new sourcefile which enables me to make much better XML files. I rewrote the code from...
  3. Replies
    3
    Views
    2,405

    btw... fixed the problem, and I understand your...

    btw... fixed the problem, and I understand your code (which is more important to me)
  4. Replies
    3
    Views
    2,405

    Quzah wrote You're trying to replace the text...

    Quzah wrote

    You're trying to replace the text incorrectly. First off, do you mean to have an array of character pointers? Or is that just supposed to be a buffer?

    That is indeed my fault.. I...
  5. Replies
    3
    Views
    2,405

    Scan some text and replace words

    I am having some problems on this one.

    I want to read a text and everytime that it reads the word "test four", I want to replace it with the word "view five".


    I came up with this code, using...
  6. Replies
    20
    Views
    3,663

    K.. Thnx for the tip. Might wanna pass that URL...

    K.. Thnx for the tip. Might wanna pass that URL over to my boss.. His programs are full of it ;)
  7. Replies
    20
    Views
    3,663

    @ Salem.. Thank you for taking a look at it....

    @ Salem..
    Thank you for taking a look at it. Your code was inspiring and helpes me to solve this problem and write the program.

    @ Quzah
    Maybe you were right and I was overcomplicating, but...
  8. Replies
    20
    Views
    3,663

    Hmm... obvious.. I am like complaining about...

    Hmm... obvious.. I am like complaining about massive core dumps, you have to be nuts to even compile this program and run it. :D
  9. Replies
    20
    Views
    3,663

    K.. fixed the problem.. no more errors, just some...

    K.. fixed the problem.. no more errors, just some massive core dumps. I mean really massive, the systemadministrator already passed by.
    Ayone an idea what I do wrong? I also placed a testfile.. You...
  10. Replies
    20
    Views
    3,663

    Nope.. i do not really think that is what I want...

    Nope.. i do not really think that is what I want to do.

    Good to share some light on this matter, now lets dig in it one more time, perhaps it has opened my eyes.
  11. Replies
    20
    Views
    3,663

    This better? I first wrote this program on...

    This better?

    I first wrote this program on this problem, but i get stuck on one error, which I simply can't solve..
    An error in the line:

    ** if (strcmp (Name, nameDefinitions[idx].Name) == 0)...
  12. Replies
    20
    Views
    3,663

    Thank you for the tip.. it will sure and help me...

    Thank you for the tip.. it will sure and help me to get to a higher level programming this. Maybe I am not doing it the right way, but i am learning and eventually i will get there.
  13. Replies
    20
    Views
    3,663

    Thought it could be a bit simpler than this code...

    Thought it could be a bit simpler than this code on which I get stuck for some weeks, with lots of effort..
  14. Replies
    20
    Views
    3,663

    I first wrote this program on this problem, but i...

    I first wrote this program on this problem, but i get stuck on one error, which I simply can't solve..
    An error in the line:

    ** if (strcmp (Name, nameDefinitions[idx].Name) == 0) **
    Saying...
  15. Replies
    20
    Views
    3,663

    K.. but how do I tell C that if it finds "xx" it...

    K.. but how do I tell C that if it finds "xx" it should read form the buffer??

    How can I say: If you find "xx. " then fscanf everything (including spaces and/or tabs) untill you reach a ":" and...
  16. Replies
    20
    Views
    3,663

    Ok.. thanx for the info. I now see your point on...

    Ok.. thanx for the info. I now see your point on why I should use fgets and not fscanf. I did some practise on it. Can scan a text for a single char and replace with another..

    However, How do I...
  17. Replies
    20
    Views
    3,663

    Reading text file and structuring it..

    Ok pretty much a newby in programming in C. Can read some data and put it in structures. Just the basic stuff that I had to do and learn at University. However, I now have to write XML in C. I am...
Results 1 to 17 of 17