Questions tagged as 'estructuras'

1
answer

How can I apply an "if or while" condition to a "struct" struct fix in C? [closed]

I have this problem and in the code that gives us example structures are handled but from what I understand a structure can not be compared, what I want to do is compare if register 1 is greater than 18 then increase a counter and so on for the...
asked by 18.09.2017 / 06:15
1
answer

Error: assignment makes integer from pointer without a cast,

I need your help with this small part of my program. I have to create a database of products in C language and one of the functions that we have to use is called "initializar.c", its purpose is to initialize the field "product" with '\ 0' (the n...
asked by 24.03.2018 / 21:09
0
answers

Nested control structures to review a set of two matrices

I am trying to mount a php script to review two sets of matrices and define the possible combinations of both. to give you an idea, the first matrix has the pairs 2-0,3-0,4-0,5-0,6-0 y 7-0 , and the second matrix the pairs: 1-2,1-3,1...
asked by 09.10.2017 / 14:54
3
answers

Layered Architecture and Class Management (no framework)

Updated I have a memory overflow problem in a layered architecture, the development has been going on for several years and they have tried to optimize some parts but the main problem lies in the Instances of the classes in the sub-layers...
asked by 20.10.2017 / 00:39
1
answer

Constants in a structure

I need to implement a circular queue in the following way in c ++, but the following code is Java. class ColaCircular{ private int frente; //frente cola int maximo; //capacidad cola int n; //número el...
asked by 14.10.2017 / 23:09
2
answers

Paint a frame in c #

I'm in class and our teacher is making us create a basic framework for what would be a snake game, I'm just going for the function that the frame should paint, but I have a certain problem, and that is that the right side, it is painted right ne...
asked by 30.03.2017 / 19:25
0
answers

What's wrong with this program?

I'm working on a program with trees, it's the first one I do and when I compile it I throw segmantation fault and I do not know what is wrong. struct Nodo { int Dato; struct nodo *izq, *der; }; typedef struct Nodo nodoArbol; typedef n...
asked by 26.10.2018 / 01:56
0
answers

template for LifeRay 7.1

Could someone explain to me how it is possible to create this template for a site in Liferay 7.1? is my first time using Liferay 7.1 (Liferay Community Edition Portal 7.1.0 CE GA1) and the truth is nothing about how to create a template or theme...
asked by 30.08.2018 / 22:26
1
answer

How to store several structures in another?

I have these three structures in c ++: struct Profesores{ char nombre[30]; double ci; }prof[100]; struct Asignaturas{ char nombre[30]; char id[30]; struct Profesores p_prof; }asig[100]; struct Alumno{ char nombre[30]...
asked by 07.07.2018 / 00:37
0
answers

How to separate the data entered in a txt file by commas in c language?

int main() { struct datos { char nombre[21]; int edad; char ciudad[21]; }persona[10]; // Array de struct con datos para 10 personas. FILE *fichero; int i, numero=0; fichero = fopen("gente.txt", "wt...
asked by 24.06.2018 / 14:49