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!
6,565
questions
0
votes
0
answers
36
views
Server Client Program with FIFO and Struct using while loop
I’m able to pass a struct through my fifo, but how would I go about making my program keep on going back and forth from the client to the server until the client decides to exit the program.
I’ve ...
0
votes
0
answers
24
views
How can I divide single table into small Multiple structure of tables using MVC C#
enter image description here
hi:
Seat no
----
Marks
@foreach (var client in Model)
{
<tr>
<td style="border:solid 1px #CCC">@...
0
votes
2
answers
39
views
Python import from another folder
I made this structure as an example:
application
| main.py
├── folder
├── __init__.py
└── file.py
when I want to import something in main.py from file.py, I can simply do
from folder.file ...
0
votes
0
answers
8
views
Using @ag-grid-community/angular version <28 with Angular 16 in order to use the tree data feature in grid
Would like to know if anyone has found a way to use ag grid older versions with Angular 16.
We cannot update ag-grid to >28 since we need to use the tree data structure which is available only till ...
0
votes
1
answer
43
views
The fgets function is not being read during execution [duplicate]
I'm a beginner at C and I'm experiencing a problem during the execution of a program using structures.
This is a program to enter the details of 3 employees...
printf("\nWelcome employee"); ...
0
votes
2
answers
56
views
How to avoid This Segmenation Fault Error in Structure
This is my code:
#include <stdio.h>
struct book
{
char title[30];
char author[30];
char isbn[30];
float price;
}books[5];
int main()
{
int i=1,j=0;
while(i<6)
{
...
0
votes
0
answers
6
views
Method to see how a variable effect others variable
i've been working for some projects that involving spareparts life-time.
I have tabular data with numeric value.
I want to know if there any way to knowing that how if i changing 1 variable, i want to ...
0
votes
0
answers
10
views
Wildcard searching including a wildcard that indicates any word in the word list
I have a word list of around 250,000 English words or short phrases. I'm trying to write some code that will allow wildcard searching of them. Specifically, three wildcards should be permitted:
"....
0
votes
0
answers
24
views
C# Label maker application question from a novice
My retail company uses a comparatively simple label printer application that has some tables of selections to choose from and how many.
There are two classes in question. One PrintLabels class has a ...
-2
votes
2
answers
50
views
INSERT from one table to another but assign new PRIMARY KEYs
I have two MySQL tables.
One is a large list of entries which is basically the main table. The second is a table of pending entries. Pending entries will either be merged into the large list of ...
0
votes
1
answer
43
views
NgRx shared slices of data between feature modules
I'm new to NgRx and I have some questions about how to structure the state in a Store.
We're building an internal CRM in Angular to manage client information. Right now, we're handling the state using ...
0
votes
1
answer
81
views
I have created a vector of structs.How do I remove elements from a vector of structures?Using vector.erase() does not seem to work properly
#include <iostream>
#include <string>
#include <vector>
using std::cout; using std::endl;
using std::vector; using std::string;
struct Person{
string name;
string surname;
...
0
votes
2
answers
49
views
Can we assign value to a structure variable itself?( if it's a pointer variable too)?
I have limited knowledge of structure in c, and what I know is that you can assign value to members of structure not to structure itself. So my main question is that is it allowed to assign value to ...
0
votes
0
answers
6
views
how to get function name and structure details in gem5-21.2 when you run a program
when I run a program in gem5-21.2 on armv8 architecture, how can I get function name like A1_B1 and structure like A1_B1->C0 details through the debugflags.
I hope get a specific procedure through ...
0
votes
1
answer
42
views
Spring Security in a Multi module Maven project
I want to use spring security in my project but I don't know where I put my new classes, this is my dependency tree:
controller depends on service
service depends on infrastructure
and my Project ...
0
votes
0
answers
16
views
Angular brightness management
I am developing an Angular page in which a slider allows you to adjust the brightness of the page.
By gleaning different techniques, I was able to obtain an interesting first result, however certain ...
0
votes
0
answers
40
views
Change the array size of a structure's member for an array in VB.NET at one time
Here is my structure:
Public Structure Plant
Public Position() As Double
Dim Cost As Double
Dim Seed As Double
End Structure
I need to change the Position array's size after connecting it ...
-1
votes
2
answers
80
views
Signature mismatch with Set implementation
module type SET =
sig
type 'a set
val member : 'a -> 'a set -> bool
val subset : 'a set -> 'a set -> bool
end;;
module MySet : SET = struct
type 'a set = 'a -> bool
let ...
0
votes
2
answers
64
views
Why do I get this error: array type has incomplete element type, type of formal parameter is incomplete?
I am working on an assignment which involves creating a program in C to create a student database using array of structures.
Following is my code:
#include<stdio.h>
void accept(int no, struct ...
0
votes
2
answers
33
views
Ansible loop through list to build folder structure
i got the following lists:
vars:
- sftp_users:
- name: user1
authorized: [user1.pub]
append: True
home: /cdrstorage/sftp/user1
sftp_directories:
- folder1
...
0
votes
3
answers
63
views
saving matrix to a file in python
I would like to save a matrix to a file in python and retain the matrix structure in the output file.
For example:
#Program to test the output of an array to a file
import numpy as np
from mpmath ...
-2
votes
1
answer
33
views
Return Reference to Structure [closed]
I know much People asked that already and I looked into it and tried it, but I don#t get it, first here is my function:
func Config() *config {
configfile := viper.New()
configfile....
1
vote
1
answer
44
views
How to edit multiple variables inside a structure in C
typedef struct
{
string color;
int age;
}Dog;
int main(void)
{
Dog cookie = ("brown", 6);
cookie.color = "blue";
cookie.age = 12;
}
Hello, I'd like to know if ...
1
vote
1
answer
32
views
Django - Allow duplicate user's emails in the grand User model, but unique in its extended models?
Django - Allow duplicate user's emails in the grand User model, but unique in its extended models?
I'm working on a project in Django which have a User model extend from AbstractBaseUser; and 2 models ...
0
votes
0
answers
31
views
Shall we use react in our Microfrotnend having most of the modules in Angular?
I am changing my project to Microfrontend(having 15 modules). The older project is written in Angular.
I am thinking to create some modules in ReactJS. Will it create a better performance or not? ...
0
votes
1
answer
11
views
what does mean "string--" in "https://string--myhtml.netlify.com" which is domain of netlify?
I deployed some html files through netlify.
Then, clicked production to view some pages.
production in netlify
Netlify provided the URL in this form.
https://6f4b3cf0e9e201172cbc715a--myhtml.netlify....
0
votes
0
answers
33
views
How do I put together this Python project structure?
Say, I have this in mind:
myproject_root
|
|- myproject (*) [the project implementation]
|
|- myproject_plugins [extension modules for the project]
| |- myproject_plugin1 (*)
| |- myproject_plugin2 (...
0
votes
0
answers
30
views
Static behavioral of non static struct in class
Does anyone know why when I create several different objects with different timeFrames the CFirstPullBack class, if the condition of one of the objects is met with the Strategy() function, the ...
1
vote
0
answers
36
views
Jira/ALM Structure - Gantt dates not accessible in formulas
I am using ALM structure and I am trying to write a formula that uses the Gantt finish date that structure calculates. When I add it to the formula I cannot assign it to a variable since I cannot ...
0
votes
1
answer
36
views
Blazor-wasm application order of tabindex doesn't match given syntax
I'm building a blazor-wasm application for work related management and want / need to fix my issue with tabindex order for accessability. The goal is to be able to tab through the website to be able ...
0
votes
0
answers
36
views
How to manage thousands of Git repositories
I'm working for a company that develops a set of products, having each of them be composed by tens or even hundreds of components.
For the sake of good organization, security, maintainability and ...
0
votes
1
answer
22
views
Structure of Skeleton Pages
I'm wondering in production, what would the best practice be when implementing skeleton pages. It seems to me that there are (at least?) two major ways to render the skeleton view, one is to put a ...
1
vote
1
answer
46
views
Pull data from dynamic instances of views
I'm putting together a data entry form for vendors of an app. To save on time and make coding efficient, I put many of the more standard layouts in their own structures, of which I called instances. ...
0
votes
0
answers
47
views
Move QML function to another qml file
My main lang is Python, but now i need to work with qml a bit, so i have the first_file.qml file with
import QtQuick 2.15
import QtQuick3D 1.15
import QtQuick3D.Materials 1.15
import "../Elements&...
0
votes
0
answers
41
views
Marshal Structure with nested Structures
I have a Structure with a nested Structure. Now I need to pass this Structure to a C-Dll.
But if I call Marshal.SizeOf(Person) I get an Exception which says that no meaningful size or offset can be ...
-1
votes
3
answers
94
views
Javascript convert string into array
I have a string of the following format, how do I convert this string into an array of arrays so I can easily access the items?
data = '[[Bday Party , 2023-05-16], [Bday Party , 2023-05-16], [Bday ...
0
votes
2
answers
64
views
how to compare structure members in C
I have the following code snippet. I'm trying to create a function that compares that values of array and array2. The function com_read(); loads values array2 and I'm not allowed to modify this ...
0
votes
0
answers
69
views
Create a custom tree structure with checkbox in angular
I want to generate a custom tree structure using HTML and CSS in angular. I'm aware about similar feature available in angular material but I want to create my own. Features would be more/less similar ...
0
votes
0
answers
40
views
Elements from file to structure
Im trying to fscanf the content from a file to structure members an then printf them
Contents of the file is something like this:
d asd 12
OR
d asd 12 cash
The members of the structure are like this:
...
0
votes
0
answers
7
views
Troubleshooting 'member reference base type is not a structure or union' error when testing Libfuzzer with my En class
Error: Member reference base type is not a structure or union
I have a class which has public interfaces to be tested using Libfuzzer LLVM library. The class is
Class En {
public:
explicit En(...
-1
votes
1
answer
39
views
How to access a structure variable from within the same structure?
I have this structure:
package main
import "fmt"
func main() {
type X struct {
x int
}
test := []struct {
a int
b int
x X
}{
{
...
1
vote
1
answer
41
views
Can I overwrite operator_rules of infix_notation and keep pyparsing code dry when using forward-defined elements?
In shortened and simplified pseudocode I have something like this:
arg = Forward()
...
...
func_call = somestuff + arg
term = ... | ... | arg
expression = infix_notation(term, operator_rules)
...
......
0
votes
0
answers
36
views
What is the best way to convert and truncate decimals of a C++ structure variable to a string? === SOLVED
How do you use variables within structures in C++?
I'd like to move the data to a Winform textbox and to USB variables.
Tried several string conversion techniques, but I'm not referring to the ...
0
votes
0
answers
33
views
Reading from a file and storing it in a structure
How can I read these from a file and store it in a structure array?
struct bankInfo{
char name[50];
int pin;
float balance;
int loan[3];
int loan_Total;
int loan_count;
...
0
votes
0
answers
49
views
How can I perform ADMIXTURE analysis from a genlight object in R?
I have a sequencing dataset generated by Diversity Arrays that I’ve been analysing with the dartR package in R. My data is in a genlight object and after filtering has 1920 SNPs, 23 individuals and 4 ...
0
votes
1
answer
34
views
Linked list and data : my pointer to the structure field always point to the last pointer created
I am programming a doomlike 3d engine using raycasting. The linked list works. I tested it with an int field. The problem seems to come from the wall pointer generated by the calculate_wall_projection ...
1
vote
0
answers
38
views
using the stringparm and the powerobjectparm
I need help, I have problems with the open event of a window
the first dw just sample data from another dw and the second dw using a structure to display uploaded files
this is the code of event list &...
0
votes
0
answers
68
views
numpy.linalg.LinAlgError: Last 2 dimensions of the array must be square" error in Python code for solving structural-analysis
I am trying to modify the code from Oliver Natt's book "Physik mit Python" to calculate a more complex structure. However, when I add points to the code, I receive the error message "...
0
votes
1
answer
11
views
I passed a struct to a function and called the variables inside a function from struct but it still returns 0
I am trying to add up the numbers but it prints out 0.
#include <stdio.h>
#include <stdlib.h>
struct kmplx{
float real;
float im;
};
float zbroj(struct kmplx k){
k.real = 5;
...
-2
votes
1
answer
212
views
how to create swift model for API response if response have "key" which have nil Value initially but its get filled with data type after sometime
this is my API response from postman when "status" key value is open
{
"data": {
"id": 247,
"status": "open",
}
"code&...