# Search:

Type: Posts; User: Kernelpanic

Page 1 of 5 1

1. ## Thread: Multi-Array Problem: Random Walk of Alphabet on 10x10 Matrix (Beginner)

by Kernelpanic
Replies
9
Views
1,008

Which trick?
2. ## Thread: Multi-Array Problem: Random Walk of Alphabet on 10x10 Matrix (Beginner)

by Kernelpanic
Replies
9
Views
1,008

### 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. ## Thread: Multi-Array Problem: Random Walk of Alphabet on 10x10 Matrix (Beginner)

by Kernelpanic
Replies
9
Views
1,008

### 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

by Kernelpanic
Replies
2
Views
481

### 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:");

by Kernelpanic
Replies
14
Views
785

### @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!

by Kernelpanic
Replies
14
Views
785

### 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...

by Kernelpanic
Replies
14
Views
785

### 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>

by Kernelpanic
Replies
14
Views
785

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

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

by Kernelpanic
Replies
14
Views
785

### @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...

by Kernelpanic
Replies
14
Views
785

### @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. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### 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. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### 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. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### 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. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### @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. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

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

And this is my version:

15617

Also under Linux it works correct.
16. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### 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. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### Original code: #include ...

Original code:

#include <stdio.h>

#define IN 1
#define OUT 0
18. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### Small correction: do { c =...

Small correction:

do
{
c = getchar();
char_number++;
if (c == '\n')
{ new_line++; }
19. ## Thread: K&R symbolic constants, beginner example

by Kernelpanic
Replies
24
Views
1,227

### 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. ## Thread: wrote this program for Calculate the area of the circle but wants The answer will be

by Kernelpanic
Replies
7
Views
610

### 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...

by Kernelpanic
Replies
15
Views
936

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

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

15605

by Kernelpanic
Replies
15
Views
936

### 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)
{

by Kernelpanic
Replies
15
Views
936

### 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. ## Thread: Beginner: Is the code of the professor really wrong?

by Kernelpanic
Replies
14
Views
525

### Maybe the Prof wanted to test the knowledge and...

Maybe the Prof wanted to test the knowledge and the intelligence of his students . . . :rolleyes: