Search:

Type: Posts; User: ronenk

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. fixed the things Quzah wrote & others. The new...

    fixed the things Quzah wrote & others. The new version:


    char *ConSort(PERSON arr[TOT])
    {
    int i=0, j;
    char *temp=NULL, **Lname[TOT];

    while( i<TOT )
    {
  2. convert from data structure to array of strings & sort

    I have data struct of Citizens I need to transfer them to array of string, then sort that array.
    This is what I wrote:


    ConSort(PERSON arr[TOT])
    {
    int i=0, j;
    char *temp=NULL, **Lname[TOT];...
  3. Replies
    4
    Views
    1,534

    only when I put >while (i

    only when I put
    >while (i<STN)
    in first loop, can function work.
    didn't manage to find any other solution to it.



    FindLines (LINE *L)
    {
    int i=0, orgn, dest;
  4. Replies
    4
    Views
    1,534

    This is my modified function, as I understood...

    This is my modified function, as I understood your offer:


    FindLines (LINE *L)
    {
    int i=0, orgn, dest;
    LINE *temp;
    temp=L;
    puts ("\nEnter origin station code first and destination station...
  5. Replies
    4
    Views
    1,534

    Data struct question

    I'm writing a program which organizes a buses network.
    these are the structs I use:


    typedef struct lns{
    int num;
    struct lns *nextline;
    }lns;

    typedef struct stns{
  6. Replies
    8
    Views
    37,861

    this form seem clearer to me. #include...

    this form seem clearer to me.


    #include <stdio.h>

    typedef struct
    {
    float x;
    float y;
    }point2D;
  7. Replies
    1
    Views
    1,672

    bi-linked list based on one-way linked list

    createbi, creates a bi-linked list out of the one-way linked list.
    I don't see how I do these assignments, without failing, when I have 2 types of struct.
    Please help.


    void createbi (FOO...
  8. Replies
    8
    Views
    2,473

    OK, thanx.

    OK, thanx.
  9. Replies
    8
    Views
    2,473

    this is the last version, which works fine, also...

    this is the last version, which works fine, also with large array!
    Thanx!


    #include<stdio.h>
    #include<malloc.h>
    #include<math.h>
    #include<stdlib.h>
  10. Replies
    8
    Views
    2,473

    I see. thanx.

    I see. thanx.
  11. Replies
    8
    Views
    2,473

    No reason... I accept this version. ...

    No reason... I accept this version.







    actually the intention was to do something like this:
  12. Replies
    8
    Views
    2,473

    values assignment to matrix pointer

    This code build dinemically allocated square matrix (designed for the dimenssion of the 1D array), and copy into it an array. The empty places in the matrix are filled with -1.
    The thing is I have...
  13. Replies
    17
    Views
    3,287

    Now it's Ok. Thank you!

    Now it's Ok.
    Thank you!
  14. Replies
    17
    Views
    3,287

    both solutions didn't do. I have an exam in 2...

    both solutions didn't do.
    I have an exam in 2 days, so I might leave it as is. Don't want to waste to much time on it.
    Thanx for your efforts!
    BTW: what numbers did you put before when you said...
  15. Replies
    17
    Views
    3,287

    this is a sample of input: enter number of items...

    this is a sample of input:
    enter number of items
    10
    enter number
    1
    enter number
    2
    enter number
    3
    enter number
  16. Replies
    17
    Views
    3,287

    this is the code i'm rubning without...

    this is the code i'm rubning without Prev->next=p; & i still get errors.


    void find (item **hp)
    {
    item *q=(*hp);
    item *p=(*hp)->next, *temp, *Prev;

    while (q->next)
    {
  17. Replies
    17
    Views
    3,287

    tried to run code & its still no good. ...

    tried to run code & its still no good.



    this comment is clear & I've fixed it.




    didn't understand this one , though. what is the buttom line here?
  18. Replies
    17
    Views
    3,287

    I had to modify this function a bit, & it still...

    I had to modify this function a bit, & it still doesn't fluently do the job. What i noticed was that on smaller lists: up to 5 five numbers, its OK. above it: list got lost...


    void find (item...
  19. Replies
    17
    Views
    3,287

    That's perfect! Let’s go one step further. If...

    That's perfect!
    Let’s go one step further. If want to check for duplication number accross the list.This is what I wrote & I get errors.



    void find (item **hp)
    {
    item *q=(*hp);
    ...
  20. Replies
    17
    Views
    3,287

    tried this one, but it didn't work for me. I...

    tried this one, but it didn't work for me.

    I have modified this program a little: FREE & delemiddle functions where removed. find function has a little addition of scanning all list with all...
  21. Replies
    17
    Views
    3,287

    delete multiple numbers from linked list

    This program has to scan linked list & find occurrence o more then one instance of a number, then delete it. Output I get sometimes shows deletion of only one instance of multiple numbers, and...
  22. Replies
    8
    Views
    18,678

    Ok, now I see your point. I did. this solved...

    Ok, now I see your point.


    I did. this solved the problem.
    Thanx!
  23. Replies
    8
    Views
    18,678

    Other then changing variables names I don't see...

    Other then changing variables names I don't see any significant change in the code above. The output is left the same; I still seem to lose the link to the list.



    Quzah, what are hidden...
  24. Replies
    8
    Views
    18,678

    This is my full code: #include ...

    This is my full code:


    #include <stdio.h>
    #include <malloc.h>

    typedef struct visit_node
    {
    char v_name;
    struct visit_node *next_ptr;
  25. Replies
    8
    Views
    18,678

    delete node in Linked List

    This function is deleting a node from linked list. It is OK with nodes which are not the first node. When I send anchor to function, I lose the link to the rest of the list. Why is it so?



    ...
Results 1 to 25 of 123
Page 1 of 5 1 2 3 4