Search:

Type: Posts; User: andryjohn

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,385

    I'm not a big fan of pointers.... ;) they require...

    I'm not a big fan of pointers.... ;) they require my only neuron to work overtime!!! ;)
  2. Replies
    12
    Views
    1,385

    ok... I see... It may have occurred when pasting...

    ok... I see... It may have occurred when pasting the code :) any way thanks!! ;)
  3. Replies
    12
    Views
    1,385

    thanks laserlight but what do you mean with ?

    thanks laserlight but what do you mean with

    ?
  4. Replies
    12
    Views
    1,385

    oooo yes!! now I see... that's way cleaner!!! ...

    oooo yes!! now I see... that's way cleaner!!!

    this could be the code:


    for (p_corr1=*p_dati; p_corr1!=NULL; p_corr1=(*p_corr1).next)
    {
    for (p_corr2=(*p_corr1).next;...
  5. Replies
    12
    Views
    1,385

    ... the program this way crashes... because when...

    ... the program this way crashes... because when p_corr1 reaches NULL I try to assign to p_corr2 something pointed by NULL!!!!

    i would fix it this way...



    while(p_corr1!=NULL)
    {
    ...
  6. Replies
    12
    Views
    1,385

    .... mmm.... so I have to add ...

    .... mmm.... so I have to add


    p_corr2=(*p_corr1).next;

    at the end of the first while... this way:


    p_corr1=p_head;
    p_corr2=(*p_corr1).next;
  7. Replies
    12
    Views
    1,385

    problem sorting a dynamic list

    I have a list whose structure is the following:



    typedef struct dats_s
    {
    char email[MAX_STR];
    struct data_s *next;
    } data;
  8. Replies
    9
    Views
    1,901

    Yes, you're damn right BEN10! my mistake but I...

    Yes, you're damn right BEN10! my mistake but I was convinced when I wrote above... (still don't know why... :confused)

    any way the correct code is
    [CODE]
    if(strcmp(command,"yes")==0)
    ......
  9. Replies
    9
    Views
    1,901

    the code below is just a hint it's not complete...

    the code below is just a hint it's not complete just to give you the idea that I came up with


    #include <string.h>
    /*contains a lot of string manipulation functions; necessary in this case to...
  10. Replies
    1
    Views
    1,509

    HELP Homework correction!!!

    Hello everybody I need Your help:
    I've written the code below as homework but I can't get it to work!

    the aim of the program is to extract email addresses from a txt file (our professor wants to...
  11. Replies
    12
    Views
    2,790

    yes the big problems were the infinite loops and...

    yes the big problems were the infinite loops and the varible esci not initialized to zero.
    the other problems pointed out by dwks are not affecting the results... I wont correct them because I can't...
  12. Replies
    12
    Views
    2,790

    to bithub: its just 2 in dimansion becuse it...

    to bithub:
    its just 2 in dimansion becuse it just read i filename is being read in the case i by another scanf!
    it's not very clean but it should work.
  13. Replies
    12
    Views
    2,790

    thanks everybody!! I'll do the modification...

    thanks everybody!!
    I'll do the modification suggested in a minute and update..
  14. Replies
    12
    Views
    2,790

    what do you mean with: the switch has a lot of...

    what do you mean with:

    the switch has a lot of "cases" just below him and there's I lot of code too...

    any way the problem is that before entering the switch he ask for a command:
    ...
  15. Replies
    12
    Views
    2,790

    Sure: the program has to manage in and out in...

    Sure:

    the program has to manage in and out in bank accounts (sort of)
    it acquire file1 that contain the following information:
    <number of following lines>
    <account number> <name> <surname>...
  16. Replies
    12
    Views
    2,790

    Homework Correction !!Urgent!!

    I've written the C code below wich seem to be correct in the syntax BUT it does not what I want!!!
    this i what it sould do:

    ask a file name
    read filename and memorize data in a dynamic list
    ...
Results 1 to 16 of 16