Search:

Type: Posts; User: jetfreggel

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,675

    look at this ...

    look at this

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048384537&id=1043284392
  2. Replies
    15
    Views
    2,986

    include #include at the top of the...

    include #include<stdlib.h> at the top of the program
  3. thx again for your advice

    thx again for your advice
  4. thx again for your reply but i don't get sopy...

    thx again for your reply
    but i don't get
    sopy like strcpy
    or returning from the function but when i try to assign
    it to a new string my compiler says
    incompatible types in assignment
    i don't...
  5. i think i got thank you for your advice void...

    i think i got thank you for your advice


    void strip_string(char *strip_buf)
    {
    char tmp_buf[12];
    int i = 0;
    int ii = 0;
    char ch;
    printf("%s", strip_buf);
  6. problem printf after inserting single list from file

    hi everyone
    i am writing a book datzabase(my first)

    the trouble is when i want to check if the funcition finds the same isbn number it wrecks my linked list
    an example

    org isbn 1-234-56789-0...
  7. Replies
    4
    Views
    1,603

    forgot cur_rec=cur_rec->next_rec was caught in...

    forgot cur_rec=cur_rec->next_rec
    was caught in an infinite loop and know the
    first problem is gone
    thx for your help
  8. Replies
    4
    Views
    1,603

    ah well i willi give it a try find it all very...

    ah well i willi give it a try find it all very confusing
    thx again for the quick info

    another question is there a possiblity of having an infinte loop
    at
    while ( cur_rec != NULL )
  9. Replies
    4
    Views
    1,603

    but i want to copy my data to a tmp node and i...

    but i want to copy my data to a tmp node and i want to
    return the first node of my data to print
    thx for your quick reply
  10. Replies
    4
    Views
    1,603

    i don;t get it what you mean with repairing this...

    i don;t get it what you mean with repairing this is my first program with single linked list
    i want to make a temporay node that has as only purpose printing it for search result or deleting
  11. Replies
    4
    Views
    1,603

    putting search result into a linked list

    i want to put my search result(from a linked list) into a linked list from a file
    here is my code the problem i think is the loop
    in the search fuction
    but i don't see the problem

    ...
  12. allready got it with a kot of fgets() && and...

    allready got it
    with a kot of fgets() &&
    and it worked
  13. trouble reading sentences into a single linked list from a file

    i am trying to write a database for my books
    burt when i want to read from a file into my linked list
    it breaks everything up in words
    the file looks like this
    stevens
    network programming...
  14. Replies
    4
    Views
    2,743

    alreagy got it replaced [code] puts("Enter...

    alreagy got it
    replaced
    [code]
    puts("Enter string to replace");
    fgets(str_replace, sizeof(str_replace), stdin);
    p = strchr( str_replace, '\n' );
    if ( p != NULL )
    *p = '\0';...
  15. Replies
    4
    Views
    2,743

    thx again for the quick reply ok i am getting...

    thx again for the quick reply
    ok i am getting nearer

    file to search
    we
    came
    here
    we
    came
    here
  16. Replies
    4
    Views
    2,743

    thx again for your quick reply the first one i...

    thx again for your quick reply

    the first one i understand now
    but when i follow the second piece of code
    i got this


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  17. Replies
    4
    Views
    2,743

    thx for your reply i tried it out and i am...

    thx for your reply
    i tried it out
    and i am puzzled about two things
    fgets( buff, sizeof(buff), stdin ); //this is clear
    but this searches through the whole string
    for a new string if found...
  18. Replies
    4
    Views
    2,743

    replacing string in file except the first

    hi everyone
    it my first post here
    my problem is i want ot replace a string of text
    in a file the files are one a one word/one line
    bases
    i have come this far but i don't seem to get
    strstr()...
Results 1 to 18 of 18