Questions tagged [structure]

Structure is a fundamental, tangible or intangible notion referring to the recognition, observation, nature, and permanence of patterns and relationships of entities. DO NOT USE this tag for C or C++ struct questions!

A structure can be a:

  • A structure in mathematical logic: in universal algebra and in model theory, a structure consists of a set along with a collection of finitary operations and relations which are defined on it.

  • The structure of a program

For the following topics, use different tags as indicated below:

  • A : a particular way of storing and organizing data in a computer so that it can be used efficiently.
  • A (short for "structure") is a keyword in the C and C++ languages, used to indicate a structures record.
6561 questions
1
vote
2 answers

Pointer to Two Dimensional Structure Array

I have a Structure say MyStruct:- #define SEC_DIMENSION 2 struct MyStruct { char cChar; float fFloat; int iInt; }; struct MyStruct StructArray[SEC_DIMENSION][20]; //Two Dimensional Array of Structures. Now I want to access this with…
Swanand
  • 4,027
  • 10
  • 41
  • 69
1
vote
1 answer

Setting value of BAPI structure?

it's my first time using a BAPI and API to get data from an ABAP system, my problem is that I don't know how to send a specific entry (ORDER_OBJECTS) see below : these are my BAPI entries : and this is the ORDER_OBJECTS : for now I can send the…
Charaf
  • 23
  • 4
1
vote
1 answer

Is there a way to fill BAPI X structure automatically?

I am trying to create an API allowing user to change certain fields of a notification. The changes will be written using a BAPI BAPI_ALM_NOTIF_DATA_MODIFY. I have ls_struc1 that contains all fields I am publishing in the API. Is there a way to set…
Fleich89
  • 11
  • 1
1
vote
1 answer

React Components: How To Structure React Live Search Form With Infinite Scrolling

I'm creating a React Movie app which enables user to search for movies and add to his favorite list. This app is going to have a live search functionality with infinite loading feature so when user enters a title name a Modal will display results…
MM2021
  • 150
  • 6
1
vote
2 answers

why pointer of an array of structure printing different addresses

struct Student{ int roll; char name[8]; float marks; }; void main(){ struct Student stu[5] = {{10,"xyz",30},{15,"abc",50},{20,"lmn",70}}; printf("%d \n", (*stu).roll); printf("%d \n", (*(stu+1)).roll); printf("%x…
yogesh
  • 19
  • 3
1
vote
0 answers

Easy way to read through/visualize a project?

Trying to read through a huge github repo can be pretty slow and difficult to manage. I find myself opening tons of tabs trying to follow import statements and hierarchies. Are there any tools that help make a project easier to understand? All I…
1
vote
4 answers

Linked List, Creation of struct

How are we able to create a pointer of type node inside the struct node when the struct is not fully defined. struct node { int data; node* next; }
1
vote
2 answers

Struct in obj c defined in one class interface is not available to other classes

I have defined a structure in one class interface. I have used it in that class properly. But I m not able to refer to this structure in other classes. I think I m missing some basics. Generally struct data type defined in one class should be…
sridevi
  • 617
  • 1
  • 6
  • 15
1
vote
1 answer

use of container_of macro, with struct

I came across piece of code that uses container_of. typedef struct api_1 api_2; typedef void (*api_set)(api_2 *api, int a); struct api_1{ api_set set; }; typedef struct{ api_2 api; int value; } api_p_t; void set(api_2 *api, int a){ …
1
vote
1 answer

Pass Structure by reference as argument in JNA

I have a dynamic link library (DLL) written in c++. In my DLL I have a function like this: void anpr_set_params(byte instance, SLPRParams* params); Where SLPRParams is a Structure containing byte, int, float and array of them. Now, I want to use my…
reza
  • 67
  • 5
1
vote
0 answers

Cross-class read/edit variables and pandas index question

I try to figure out how to structure my program which is a simple trading bot. class "Exchange" should store instances of the class "TradingPair" class "Symbol" stores all symbol related stuff class "Websocket" gets the ws stream and stores the…
noskule
  • 43
  • 3
1
vote
2 answers

How to check if the string is already in an array of structures?

How to check if the string is already in an array of structures? The array is inside a structure and I don't know how to compare arrays inside the structure in C. #include #include struct song { char title[30]; char…
1
vote
1 answer

Why does where you declare function matter?

So im just learning C but from my understand we can create Function Prototypes anywhere right? So then when i was experimenting with function and structure why is it that. If i put the function prototype before the structure declaration is does not…
Oh Oh
  • 35
  • 3
1
vote
1 answer

Python package organization/setup to shorten import

so I'm preparing a Python package which is completely new for me. The structure is as follow: package_name/ ├── package_name/ ├── datasets/ ├── __init__.py └── functions.py ├── tests/ ├── LICENSE ├── MANIFEST.in ├── pyproject.toml ├──…
Chris
  • 79
  • 5
1
vote
1 answer

How to read comma-separated csv file with `sscanf()`

I'm attempting to print an array of structures read from a CSV file in Excel. However, only the students' IDs are printed; other information was also printed but some confusing rare characters. Can you please tell me what could be wrong with this…
user13483869