Search:

Type: Posts; User: Kernelpanic

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Which trick?

    Which trick?
  2. Now is the arrangement of the alphabet really...

    Now is the arrangement of the alphabet really random. "srand" sets a random starting point for "rand" at every start.



    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include...
  3. That's another version. But it is always the same...

    That's another version. But it is always the same arrangement of the alphabet.



    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    #define MAT 10
  4. Thread: Fibonacci

    by Kernelpanic
    Replies
    2
    Views
    457

    The program run almost correct; "j" is redundant....

    The program run almost correct; "j" is redundant.



    int main(void)
    {
    int n; //i -> NO!

    printf("--- Fibonacci series program ---\n");
    printf("Enter a number:");
  5. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    763

    @laserlight - elegant solution! Clear and...

    @laserlight - elegant solution! Clear and straight. Unfortunately not from me. :frown:
    The search for an iterative solution was nonsense.

    Thank you!
  6. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    763

    I don't know whether the recursion ist part of...

    I don't know whether the recursion ist part of the exerice but whether the solution is recursiv or iterativ the solution have to start from the last calculation.

    15626

    I dont no whether this...
  7. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    763

    Look that: 15625 He have to start from the...

    Look that:
    15625


    He have to start from the end.
    That's a first try:



    #include <stdio.h>
  8. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    763

    See my correction - he have to start from the end.

    See my correction - he have to start from the end.
  9. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    763

    @laserlight - He have to start from the end. - I...

    @laserlight - He have to start from the end. - I will try it tomorrow.

    Have I say tomorrow? Today!



    1,2121...
  10. Thread: Recursion

    by Kernelpanic
    Replies
    14
    Views
    763

    @Igor, I know that is not the right solution, and...

    @Igor, I know that is not the right solution, and it is iterativ, but maybe a way there . . .
    It is an interesting task. - At until the solution: Take it easy!



    #include <stdio.h>
    #include...
  11. Replies
    24
    Views
    1,123

    I know the Linux(Unix)-philosophy since 1996; a...

    I know the Linux(Unix)-philosophy since 1996; a little bit. Windows was always my first system but Linux, SuSE-Linux, was a hobby from 1996 to 2010/2011. And more, I was a sponsor of Linux - I have...
  12. Replies
    24
    Views
    1,123

    You do exactly what I can not stand, you turn a...

    You do exactly what I can not stand, you turn a job into an ideology.

    Programming is also nothing more than building a scaffolding clean without it collapsing, or a mechanician who repairing a...
  13. Replies
    24
    Views
    1,123

    No, he is a human, not a new The Lord. He is only...

    No, he is a human, not a new The Lord. He is only a human and no one is without mistakes.
  14. Replies
    24
    Views
    1,123

    @Christop - No, No, No, the program from K&R is...

    @Christop - No, No, No, the program from K&R is not correct.

    A program has to terminated with a simple commando. Not with "String-D" or "String-C" or what ever. That's no correct!

    And this...
  15. Replies
    24
    Views
    1,123

    And this is my version: 15617 Also under...

    And this is my version:

    15617

    Also under Linux it works correct.
  16. Replies
    24
    Views
    1,123

    That's the same file in the Linux-World (Console...

    That's the same file in the Linux-World (Console Linux openSuSE 15 Leap):

    15616
  17. Replies
    24
    Views
    1,123

    Original code: #include ...

    Original code:



    #include <stdio.h>


    #define IN 1
    #define OUT 0
  18. Replies
    24
    Views
    1,123

    Small correction: do { c =...

    Small correction:



    do
    {
    c = getchar();
    char_number++;
    if (c == '\n')
    { new_line++; }
  19. Replies
    24
    Views
    1,123

    The K&R program run correct, almost . . . no...

    The K&R program run correct, almost . . . no termination condition. The gentlemen K&R don't like this. :rolleyes:


    Your code: For what "y"? In line 12: int c = 0; And "return(0);" is missing.
    ...
  20. Of course, there was only one screen under...

    Of course, there was only one screen under MS-DOS, but for example one could programming windows with the graphics library that came with QuickC 2.5 a little bit a la Windows. One could create a kind...
  21. Replies
    15
    Views
    910

    int main(void) . . . return(0); 15605

    int main(void)
    . . .
    return(0);


    15605
  22. Replies
    15
    Views
    910

    God damn, I'm getting another crisis! This little...

    God damn, I'm getting another crisis! This little program is full of pitfalls ... :tongue: Last version! The Lord is with me! ;)



    #include <stdio.h>
    #include <stdlib.h>


    void main(void)
    {
  23. Replies
    15
    Views
    910

    There was a (little) mistake when the input is...

    There was a (little) mistake when the input is over forty.



    #include <stdio.h>
    #include <stdlib.h>


    void main(void)
    {
  24. Maybe the Prof wanted to test the knowledge and...

    Maybe the Prof wanted to test the knowledge and the intelligence of his students . . . :rolleyes:
  25. Replies
    15
    Views
    910

    I don't believe that You have a knowledge...

    I don't believe that You have a knowledge professionally . . . if You want to understand "recursive programming" then start simple, and not with "Quicksort".
    This program calculate the...
Results 1 to 25 of 103
Page 1 of 5 1 2 3 4