Questions tagged as 'c'

1
answer

Chair point in a random number matrix

I did this program to find the saddle point in a 3 * 3 matrix, but it does not work and when the message appears that indicates where it is sometimes it is not #include <stdio.h> #include <stdlib.h> int LlenarMostrar (int Matriz[3...
asked by 08.10.2017 / 19:23
1
answer

I want a cycle to save a N number of clients and print the total that they have spent

I want this cycle to be able to store the number of clients and also give discounts according to the amount of money spent by the client to give a discount of 30 percent if I spend more than 500 pesos As I'm starting to program in C, I do not kn...
asked by 30.09.2017 / 06:21
0
answers

Netbeans does not recognize Cygwin

I had to install Netbeans on my laptop for C according to a guide. So, I installed the JDK and Cygwin with make, debugger, etc. When starting netbeans it says that the JDK does not exist, I give it to disable modules and continue and it works...
asked by 29.09.2017 / 13:27
0
answers

linked lists of characters in c

I'm practicing linked lists in c, what I want to do is save char elements in the nodes, I want to read those elements This is what I did, but I do not know how to read the elements while using a for cycle: #include <stdio.h> #include <...
asked by 24.09.2017 / 16:22
2
answers

While inside a do-while

My problem is that when trying to repeat a program with a while inside, the program did not show me anything. This is my code: main() { int i=1; do { printf("\nPrograma 'Serie 1-10'"); getch(); while(i<=10)...
asked by 03.10.2017 / 00:18
1
answer

Matrix with very large rows and columns in C

Good, I have a problem with a program where I have a matrix [N] [N] where N is 9000 but when I run the program I peta. The question is this: The values of M (square matrix of size NxN, being N = 9000) not null will be generated pseudo-randoml...
asked by 21.09.2017 / 19:57
0
answers

Read 100 characters of a text

I need to find a way to read the characters of a 100-in-100 text. I can read the first 100, but I can not find a way to start the second cycle. Apart from that, I still have to save the words that end with text ing. To identify the words with in...
asked by 17.09.2017 / 21:09
1
answer

Reading of data type NodeL

What type of variable identifier is used to read a node-type variable? Throw the following error    warning: format '% lu' expects argument of type 'long unsigned int *', but argument 2 has type 'nodeL * {aka struct node *} #include <...
asked by 14.09.2017 / 00:05
0
answers

2D function smooth

I have a 2D signal and I want to create some kind of envelope. It has to be symmetric between maxima, so an envelope filter does not fit what I want. The local maxima have to spread a bit, I'm trying to simulate a fabric and the behavior of a th...
asked by 12.09.2017 / 12:09
1
answer

Error adding item to the stack

I have a structure Pila that saves structures of type CD , but when adding a CD to the stack, the program crashes. From what I see it is at the moment of adding a CD to the stack, I do not know if my code is ok. I use pointers. T...
asked by 28.09.2017 / 17:47