Most voted "struct" questions
A struct or structure is a composite data type consisting of one or more variables grouped under a name.
Learn more…405 questions
Sort by count of
-
-3
votes1
answer38
viewsHow to duplicate a struct in "C"
I have an activity that is to create a struct with SIZE = 5 initially, but I would like it to double its value if it is necessary to insert a sixth value, created a return function for this but the…
-
-3
votes1
answer107
viewsI’m doing a C program, which consists of implementing the Lagrange interpolation method
I’m doing a C program, which consists of implementing the Lagrange interpolation method. Where the user enters the table data (values of x and fx, and I have to return the value of lx and px, only…
-
-3
votes1
answer56
viewsError in struct C language
Guys, I’m making a code that the first moment should store the register of patients of a clinic, for this I’m using struct and a variable of this struct to store data for 5 patients. The problem is…
-
-4
votes2
answers101
viewsI need an explanation for the error in this C++ script
#include <iostream> #include <string> struct Brinquedos{ enum Objetos {Bola, Carrinho, Caixa, Dinamite}; void func(int st_Bola, int st_Carrinho, int st_Caixa, int st_Dinamite){…
-
-5
votes1
answer835
viewsFunction that converts string to lowercase and compares
struct registro{ /*Estrutura para guardar os dados do usuário*/ char usuario[50]; }atual[1000], *ptr; main() { int v = 0; verific = 0; //posicao e variavel para comp. de string volta_usuario:…