# Search:

Type: Posts; User: Kernelpanic

Page 1 of 5 1

1. ## Thread: How to connect C with MySql

by Kernelpanic
Replies
23
Views
4,047

### No, "Lf" is for long double and I don't use long....

No, "Lf" is for long double and I don't use long. For double is "lf" correct.

#include <stdio.h>

int main(void)
{
long double c = 42.0;
2. ## Thread: How to connect C with MySql

by Kernelpanic
Replies
23
Views
4,047

### Of course, because your variable declaration...

Of course, because your variable declaration doesn't make sense.

circumference = diameter * pie; - is what?

//Konfuse Deklaration - 5. Sept. 2020
//Program to find area, circumference...
3. ## Thread: Multi-Array Problem: Random Walk of Alphabet on 10x10 Matrix (Beginner)

by Kernelpanic
Replies
9
Views
3,898

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

by Kernelpanic
Replies
9
Views
3,898

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

by Kernelpanic
Replies
9
Views
3,898

### 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
6. ## Thread: Fibonacci

by Kernelpanic
Replies
2
Views
1,228

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

by Kernelpanic
Replies
14
Views
2,278

### @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!
8. ## Thread: Recursion

by Kernelpanic
Replies
14
Views
2,278

### 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...
9. ## Thread: Recursion

by Kernelpanic
Replies
14
Views
2,278

### 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>
10. ## Thread: Recursion

by Kernelpanic
Replies
14
Views
2,278

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

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

by Kernelpanic
Replies
14
Views
2,278

### @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...
12. ## Thread: Recursion

by Kernelpanic
Replies
14
Views
2,278

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

by Kernelpanic
Replies
24
Views
2,765

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

by Kernelpanic
Replies
24
Views
2,765

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

by Kernelpanic
Replies
24
Views
2,765

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

by Kernelpanic
Replies
24
Views
2,765

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

by Kernelpanic
Replies
24
Views
2,765

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

And this is my version:

15617

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

by Kernelpanic
Replies
24
Views
2,765

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

by Kernelpanic
Replies
24
Views
2,765

### Original code: #include ...

Original code:

#include <stdio.h>

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

by Kernelpanic
Replies
24
Views
2,765

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

Small correction:

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

by Kernelpanic
Replies
24
Views
2,765

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

by Kernelpanic
Replies
7
Views
1,589

### 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...
23. ## Thread: Recursive concept

by Kernelpanic
Replies
15
Views
2,241

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

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

15605
24. ## Thread: Recursive concept

by Kernelpanic
Replies
15
Views
2,241

### 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)
{
25. ## Thread: Recursive concept

by Kernelpanic
Replies
15
Views
2,241

### 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)
{
Results 1 to 25 of 105
Page 1 of 5 1