Search:

Type: Posts; User: kdt

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    11,807

    char...

    char *str[5]={"string","sorting","with","bubble","sort"};
    char *tmp;

    for(i=1;i<5;++i)
    for(j=4;j>=i;--j) if (strcmp(str[j-1],str[j])>0){
    tmp=str[j-1];
    str[j-1]=str[j];...
  2. Thread: question

    by kdt
    Replies
    3
    Views
    1,076

    you can use an array for the strings and for...

    you can use an array for the strings
    and for example bubble sort to sort them
    think them like an integer but use strcmp() to sort them
  3. Thread: question

    by kdt
    Replies
    3
    Views
    1,076

    #include #include void...

    #include<stdio.h>
    #include<string.h>
    void main()
    {
    char *m;
    char i,char1,char2;
    printf("your message:");
    scanf("%s",m);
    for(i=0;i<(strlen(m)/2);++i){char1=m[i];
    ...
  4. Thread: newbie main(void)

    by kdt
    Replies
    10
    Views
    2,337

    void main(void) { }

    void main(void)
    {
    }
  5. Replies
    11
    Views
    9,433

    puto amo, why do you think so?

    puto amo, why do you think so?
  6. Replies
    11
    Views
    9,433

    yes,i know there is no faster way and it's the...

    yes,i know there is no faster way
    and it's the basic way
    but we have a 'list' parameter and we don't know what is shown by it.
  7. Replies
    4
    Views
    1,967

    I'm sorry I forgot to say ftime() function(in...

    I'm sorry
    I forgot to say ftime() function(in <sys\timeb.h>) is not a function of ANSI C.
    for dos and unix
  8. Replies
    11
    Views
    9,433

    I hope that's what you needed struct node...

    I hope that's what you needed

    struct node *append(struct node *list, int data)
    {
    struct node *new;
    new =(struct node*) malloc(sizeof(struct node));
    if(new == NULL)
    ...
  9. Replies
    4
    Views
    1,967

    you can use time() function to learn the...

    you can use time() function to learn the calculation time
    ------------------------
    #include <time.h>
    #include <stdio.h>
    void main()
    {long first_time,second_time;
    time(&first_time);
    // your...
Results 1 to 9 of 9