User Profile

Collapse

Profile Sidebar

Collapse
mircead2014
mircead2014
Last Activity: Feb 27 '14, 05:06 PM
Joined: Feb 12 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mircead2014
    started a topic Linked List
    in C

    Linked List

    Hi.
    I am a beginner in linked list programming.
    I have made a program, but I am not sure if it is a good implementation.
    The code compile and the results are very good, like i expected.
    I want to give me some advices.
    Thank you.

    Code:
     Inserting a new node at the end of the list.
     The new node inserted is the last one in the list.
    
    #include<stdio.h>
    #include<stdlib.h>
    ...
    See more | Go to post

  • mircead2014
    started a topic Simple Linked List
    in C

    Simple Linked List

    Hi.
    I am beginner in a linked list programming and i need some advices.
    First of all, what is the diferences between :

    Code:
    typedef struct node
    {
        int data;
        struct node *next;
    };
    and

    Code:
    struct node
    {
        int data;
        struct node *next;
    }*head;
    Now, I have this problem to count the number of nodes from a linked list....
    See more | Go to post

  • Sorry, one mistake in line 19 : if(m > 20)
    See more | Go to post

    Leave a comment:


  • How can I print more strings (the strings may contain spaces) ?

    I have a problem who must print the sentences who have lenght more than 20 characters.
    I dont know why, but it prints just the first words.
    Look what i made.

    Code:
    #include<stdio.h>
    #include<conio.h>
    
    int main()
    {
    char tab[50][255];
    int i, n, m;
    printf("\n Give the number of sentences : ");
    scanf("%d",&n);
    for(i=0; i<n;
    ...
    See more | Go to post
No activity results to display
Show More
Working...