# Search:

Type: Posts; User: letthem

Page 1 of 2 1

1. ## Thread: Given a matrix, create a list which..

by letthem
Replies
4
Views
416

### Amazing Laserlight! That's great. I already...

Amazing Laserlight! That's great.

I will have in the next days a conference with a teacher, nothing too important, but the information you gave me will be precious....
2. ## Thread: Given a matrix, create a list which..

by letthem
Replies
4
Views
416

### They're exercises taken by exams of the previous...

They're exercises taken by exams of the previous years.
The university course is "Fundamentals of C language".
It regards just the fundamentals of this language, so it isn't about the best...
3. ## Thread: Given a matrix, create a list which..

by letthem
Replies
4
Views
416

### Given a matrix, create a list which..

Hi everyone!

I'm trying to create this function:

Given a matrix, create a list which has in his nodes the values of the matrix that are greater than zero. The function has to return the double...
4. ## Thread: List exercise: Given two lists, write a function which delete common elements.....

by letthem
Replies
9
Views
642

### It's not correct dear Laserlight. I hope that...

It's not correct dear Laserlight.
I hope that I'm not bothering you.
Actually it isn't correct.
The function deletes the float element given in input, but it doesn't link correctly the list after...
5. ## Thread: List exercise: Given two lists, write a function which delete common elements.....

by letthem
Replies
9
Views
642

### My opinion is that: In the function I wrote, the...

My opinion is that:
In the function I wrote, the input always changeds(because of the function nexta), so, theorically, it should be able to remove nodes "in the middle".
This is just my opinion,...
6. ## Thread: Given two binary search trees, write a function which.....

by letthem
Replies
5
Views
362

### Hello Laserlight! Here there is the function...

Hello Laserlight!

Here there is the function which search a specific value in a Binary Search Tree:

Booleansearch(structbtree* ptr, floattarget) {
if(ptr != NULL) { //It's not a...
7. ## Thread: Given a matrix, write a function which... (transposition)

by letthem
Replies
6
Views
478

### ALL FINE GReaper, I solved that! Thank you for...

ALL FINE GReaper, I solved that!

8. ## Thread: Given a matrix, write a function which... (transposition)

by letthem
Replies
6
Views
478

Unluckly, the code is still not working.
Here there is the function:

void traspo (float *A, int m, int n){
9. ## Thread: Given a matrix, write a function which... (transposition)

by letthem
Replies
6
Views
478

### After I created the transposed of A (C), I assign...

After I created the transposed of A (C), I assign C to A.
Doing this, the matrix given as input will be actually transformed into its transposed.
After doing that, I delete C, which becomes useless.
10. ## Thread: Given a matrix, write a function which... (transposition)

by letthem
Replies
6
Views
478

### Given a matrix, write a function which... (transposition)

Hi everyone!
I should resolve this exercise, but I think I have some problems.
"Given a matrix written as a monodimensional array, write a function which change this matrix into his transposed".
...
11. ## Thread: List exercise: Given two lists, insert in a third list the pair values of...

by letthem
Replies
5
Views
512

### P.s. I actually needed that clarification. Thanks...

P.s. I actually needed that clarification. Thanks a lot!!!
12. ## Thread: Given two binary search trees, write a function which.....

by letthem
Replies
5
Views
362

### Hello Laserlight! Unfortunately, I'm not able...

Hello Laserlight!

Unfortunately, I'm not able to do that.
I know how to do visit a binary search tree (in many ways).
I know how to search a value in a binary search tree.
But I'm not able (at...
13. ## Thread: List exercise: Given two lists, write a function which delete common elements.....

by letthem
Replies
9
Views
642

### I'm sorry for the name of structured data. ...

I'm sorry for the name of structured data.

This is the one:

struct node {
float value;
struct node *next;
};
14. ## Thread: Given two binary search trees, write a function which.....

by letthem
Replies
5
Views
362

### Given two binary search trees, write a function which.....

Hi everyone!

I'm having some troubles with the definition of a function.
Here there is the exercise:

"Given two Binary Search Trees, T1 and T2, which contain float values, write a function...
15. ## Thread: List exercise: Given two lists, write a function which delete common elements.....

by letthem
Replies
9
Views
642

### Hello Laserlight! Thanks again for your...

Hello Laserlight!

Here there is what I changed:

void delete_commons (struct list **B, struct list **A){
while ((*A)!=NULL && (*B)!=NULL){
16. ## Thread: List exercise: Given two lists, insert in a third list the pair values of...

by letthem
Replies
5
Views
512

### Hi again laserlight. I didn't understand this. ...

Hi again laserlight.
I didn't understand this.
Are you telling me that, when I use a list, I need a doublepointer only when I have to modify nodes?
17. ## Thread: List exercise: Given two lists, write a function which delete common elements.....

by letthem
Replies
9
Views
642

### List exercise: Given two lists, write a function which delete common elements.....

Hi everyone! I have a little problem with the solution of this exercise:

List exercise: Given two lists, A and B, write a function which delete common elements in the list named "B".

Here there...
18. ## Thread: List exercise: Given two lists, insert in a third list the pair values of...

by letthem
Replies
5
Views
512

### Thanks a lot Laserlight. I try immediatly to...

Thanks a lot Laserlight.
I try immediatly to verify what you wrote.
P.S. I agree with you, struct node is better.
19. ## Thread: List exercise: Given two lists, insert in a third list the pair values of...

by letthem
Replies
5
Views
512

### List exercise: Given two lists, insert in a third list the pair values of...

Hi everybody!
I have a little problem with the solution of this problem:
"Given two lists, insert in a third list the pair values of the first one and the odd values of the other one."

My...
20. ## Thread: Function which makes a simmetric visit in a Binary Search Tree

by letthem
Replies
6
Views
681

### sorry but I know just a little bit of C. I never...

sorry but I know just a little bit of C.
I never saw

"std::cout << "Entering at: " << n << std::endl;
if ( n < 5 ) foo( n + 1 );

std::cout << "Leaving at: " << n << std::endl;"

what...
21. ## Thread: Code Blocks Debugger not working

by letthem
Replies
7
Views
2,461

### Code Blocks Debugger not working

Hi everyone,

I have a serious problem.
Code.Blocks' Debugger is not working at all, and I need it before saturday.
The version of Code Blocks is 17.12
The version of Windows is Windows10.

It...
22. ## Thread: Function which makes a simmetric visit in a Binary Search Tree

by letthem
Replies
1
Views
582

### Function which makes a simmetric visit in a Binary Search Tree

Hi everyone.

In this post I'm gonna show you just the definition of a function that I can't understand.

Here we have the exercise.....
Given a binary search tree:
define a recursive...
23. ## Thread: Function which makes a simmetric visit in a Binary Search Tree

by letthem
Replies
6
Views
681

### Ok, so when it reaches line n°10 it starts again...

Ok, so when it reaches line n°10 it starts again from line n°1 with a different input.
But I still don't understand how it can work,
because it will do this until 'ptr->left_ptr' will be' ==...
24. ## Thread: Function which makes a simmetric visit in a Binary Search Tree

by letthem
Replies
6
Views
681

### Function which makes a simmetric visit in a Binary Search Tree

Hi everyone.

In this post I'm gonna show you just the definition of a function that I can't understand.

Here we have the exercise.....
Given a binary search tree:
define a recursive function...
25. ## Thread: Other function, Node at the end of a List

by letthem
Replies
4
Views
661

### Super, thanks a lot!!!

Super, thanks a lot!!!
Results 1 to 25 of 33
Page 1 of 2 1