struct tag

27 questions


1 answers
323 views
0
Problem of implementing the addition of polynomials using structures

#include <stdio.h>#define MAX(a,b) ((a>b) ? a : b)#define MAX_DEGREE 101typedef struct { int degree; int coef[MAX_DEGREE];} } polynomial;polynomial poly_add(polynomial A, polynomial B) { poly...

1 years ago

1 answers
124 views
0
The difference between "structure" and "typedef structure"

What's the difference between these two in C++?Most of them use the second methodWhy is that?

2 years ago

1 answers
97 views
0
Which is better, class or structure in C++?

When do you write structure and when do you write class?

2 years ago

1 answers
186 views
0
To declare and initialize ANSI Structure separately?

How can I declare and initialize the structure in a different place?For example, in this code,typedef struct MY_TYPE { boolean flag; short int value; double stuff;} } MY_TYPE;void function(void) { MY_...

2 years ago

1 answers
146 views
0
Can I turn the array over with a function factor without a pointer?

int a[5][5];int* a[5];int** a;When you get an array as a factor, you have to choose one of those three and unify itIs there any way I can turn it over without using a pointer?

2 years ago

2 answers
79 views
0
Inquiries about structure pointer arrangement

Hello. strcpy(lp[1]->Korea, o); What is the cause of the error in this part?#include <stdio.h>#include <string.h>#include <stdlib.h>typedef struct{ char korea[20];} } test;int mai...

2 years ago

1 answers
86 views
0
This is a question related to the C language structure.

I'm posting a question because I don't understand the results of the execution during C language coding.The contents of the txt file in the directory are as follows:410:00 12:00 Lectures12:00 13:00 Lu...

2 years ago

1 answers
101 views
0
C++ structure coding questions.

#include <stdio.h>#include <conio.h> //#include <string.h> typedef struct U_Information{ //Create structure char Name [10];char RRN [15];char ID [16];char Password [16];char Phone [1...

2 years ago

1 answers
92 views
0
Using structure module in Python What does ">ll" mean?!

in the Python book lbl_f = open(./mnist/ + name+ -labels-idx1-ubyte,rb)mag, lbl_count = struct.unpack(>ll, lbl_f.read(8))I saw this phrase.But what does >ll mean?On the contrary, can we use <...

2 years ago

1 answers
110 views
0
c Questions regarding initialization of language structure

typedef struct PersonArray { Person people[NUM_USER]; int total_waiting_time; int total_waiting_people; }PersonArray;PersonArray *PeopleArray;PeopleArray->total_waiting_time = 0;PeopleArray->...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.