Search:

Type: Posts; User: svanski

Search: Search took 0.01 seconds.

  1. Thread: Bubblesort

    by svanski
    Replies
    7
    Views
    1,875

    I was wrong. The results that I was getting were...

    I was wrong. The results that I was getting were not right. If you print more than the size you are going off to forbidden land. C does not puts \0 automatically at the end...
  2. Replies
    2
    Views
    3,326

    adding on to what Adak said I would use switch...

    adding on to what Adak said I would use switch statement. Let your cases be a, e, i, o, u and rest. every time you encounter have some counter that will be incremented. at the end just calculate %es...
  3. Thread: Bubblesort

    by svanski
    Replies
    7
    Views
    1,875

    This is a good point; I am pretty noob to C...

    This is a good point; I am pretty noob to C programming so do not take my word for it. However, I tested this code with some modifications and I think, it knows that the array at the end has "\0"...
  4. Thread: Bubblesort

    by svanski
    Replies
    7
    Views
    1,875

    Bubble sort - Wikipedia, the free encyclopedia...

    Bubble sort - Wikipedia, the free encyclopedia On right side they have small animation where you can see how bubble sort works.

    You have done good job so far the only thing you have left is...
  5. Thanks, rags_to_riches. This is my second post...

    Thanks, rags_to_riches. This is my second post where I provided "solution". On my first post people warned/advised me not to do so. I will keep in mind for my future posts.
  6. Point is taken. I will keep your advice in mind,...

    Point is taken. I will keep your advice in mind, for my future posts.
  7. I modified and made some changes to your code. It...

    I modified and made some changes to your code. It almost does exactly what you need. I do not have time right now to finish it. However, if I can finish it later I will post that code too.

    I do...
  8. This would be my first C program. I am not very...

    This would be my first C program. I am not very familiar with syntax so... this is code is very far from elegant.
    I am sure there are many things you could change and make it more readable/better...
Results 1 to 8 of 8