Search:

Type: Posts; User: Spedge

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,248

    that's a different thing :) thank you!

    that's a different thing :)
    thank you!
  2. Replies
    3
    Views
    1,248

    skipping \n when reading from file

    How can I skip new lines when reading from file?
    Here is the source code...




    int view_all_fields()
    {

    FILE *fp = fopen ( "db.txt", "r" );
  3. Replies
    2
    Views
    939

    search / repalce

    i'm trying to make a function, which is searching a string in file. If the string exist it must be replaced with another one.
    what is my idea...
    I'm inserting string for searching
    with fgets I'm...
  4. Replies
    1
    Views
    1,856

    Replacing string in file

    I'm trying to make a function for replacing a string with another one in file. What I mean... I'm inserting some string ( ex. "asd") then a function get this string and search for it in a file; if...
  5. Replies
    2
    Views
    1,376

    I'm really appreciate your help! I've examed your...

    I'm really appreciate your help! I've examed your code and I've got the idea! Now, I'll make my own code and I use it in my first C program :)
  6. Replies
    2
    Views
    1,376

    Searching in file

    Can u give me an example of function which search for a string in a file?
    I want to make a phone book. Phone book must have options for add, delete and find numbers. I've already done the add...
  7. Replies
    12
    Views
    1,349

    I've alredy correct my code. Now all is OK....

    I've alredy correct my code. Now all is OK. Thanks for your help.
  8. Replies
    12
    Views
    1,349

    I'be correct the source code... #include...

    I'be correct the source code...



    #include "stdio.h"

    void add_field();
    char name[20];
    int phone;
  9. Replies
    12
    Views
    1,349

    so will u tell me how to correct this? what I...

    so will u tell me how to correct this? what I must do?
  10. Replies
    12
    Views
    1,349

    full code #include "stdio.h" char name;...

    full code



    #include "stdio.h"

    char name;
    char phone;

    int main()
  11. Replies
    12
    Views
    1,349

    Calling to function

    Example:



    1 printf ("Enter name: \n");
    2 scanf ("%s", &name);
    3 printf ("Enter phone: \n");
    4 scanf ("%d", &phone);
    5 add_field(name,phone);
    6 ....
Results 1 to 11 of 11