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,562
questions
0
votes
3
answers
91
views
C++ | Class working on arbitrary struct member
I want to have a class that has a member of an arbitrary struct type. The class should have a method that can alter the value of an arbitrary field of the struct member and another method that does ...
0
votes
1
answer
35
views
RunTime Error for BFS to get distance to each node from a given start node
I am doing HackerRank problem BFS Shortest reach:
Consider an undirected graph where each edge weighs 6 units. Each of the nodes is labeled consecutively from 1 to n.
You will be given a number of ...
0
votes
0
answers
38
views
How to deliver a struct which contain an array to driverkit by call driverkit function from swift code?
I declare a structure type in swift, name as CmdStruct
struct CmdStruct {
var cmd:[UInt8]
init() {
cmd = [UInt8](repeating: 0, count:16)
}
}
In the case that the connection has ...
0
votes
0
answers
34
views
quiz structure swiftUI [closed]
I have a view viewmodel where there is a model, and a model from where I take data.
I need to take a quiz, that is, depending on how many questions I have, there should be as many steps, and after ...
1
vote
0
answers
31
views
What's the best way to move logic outside of a Vue project?
I have a few projects that all use similar services and stores.
I want to have a separate logic and connect all the projects to it.
Is it possible???
-3
votes
1
answer
64
views
Postgresql query to retrieve conversation, last message in conversation, last message and unread count [closed]
I have the following tables:
users Table
id (uuid)
someuuid
someuuid
ads Table
id
owner_id(fkey to users)
someuuid
someuuid
someuuid
someuuid
messages Table
id
ad
sender(fkey users)
receiver(...
0
votes
1
answer
34
views
How to structurally write different configurations of code for different number of variables
I am calibrating a bunch of parameters using any method (not important). But the number of parameters I choose to calibrate will be varied (anywhere from 1 to 4). If I wanted to calibrate 4 parameters,...
-1
votes
0
answers
38
views
Stack smashing detected in C++ Selection Sort implementation: Unexpected output and array corruption [duplicate]
I am new to C++ (Have learned Python before), I am a student and got an assignment to implement SELECTION SORT in C++. I tried it recursively and this is the Code:
#include <iostream>
using ...
-1
votes
0
answers
65
views
How can I structure this view in the right way using bindings and states in SwiftUI?
I'm developing an app in SwiftUI and I feel stuck because I'm not sure what is the right way to do this. Basically, I have an app that shows one week at a time using a calendar and below there are the ...
0
votes
0
answers
19
views
UiPath Structure
Good day
I would like to know if the following is considered good programming on UiPath. I am currently busy with test automations on UiPath. My test automation is testing if a web API is working ...
-2
votes
0
answers
28
views
Bug with Array of Structure - Writing to Structure from File [duplicate]
EDIT:
This question was closed due to being a duplicate. Previous to the original post I tried using cin.ignore(), but it seemed to create an infinite loop? The specific example I was linked involved ...
1
vote
1
answer
91
views
How should I extract complicated info from struct?
I have a complicated struct in C++. Now I need take the value by JNA. I have tried some ways, but all failed. I'm not sure where the problem is.
Here is my structure in Java, it is generated by ...
0
votes
1
answer
91
views
Marshal structure to pointer - Byte is OK, Byte() is Not OK
I am trying to get a pointer from a Structure, to pass it over to an unmanaged DLL.
The weird thing is the following, if I use this Structure:
Structure message
Public x As Byte
End Structure
And ...
0
votes
0
answers
11
views
Solve Code dependency for using a variable which defined at later stage
I have a scrit to help with ThinkOrSWim trading. In the script, there is a tradePL variable which is working, now I need to use its value earlier in the script for stopSignal, problem is that it is ...
-1
votes
1
answer
51
views
How can I ask the user to enter an integer or char with one question?
I am making a grocerys store interface for a school project. First there is a menu that asks the user if they want to S-shop or Q-quit, if they choose S a menu showing products pops up with the price ...
0
votes
0
answers
35
views
Script logic to unzip specific, nested archive(s) without unzipping unnecessary archives
Let me start by saying that I am happy to get pseudocode back, I just really need help defining the process.
I get a lot of large files in archives. Not all the suppliers send them to me in the same ...
0
votes
0
answers
42
views
Convert data format with scores in a single colun [duplicate]
Hello great community!
I have a table named Students having scores of students in multiple subjects stored in different columns. I want to convert it from having a single row for on student with ...
0
votes
1
answer
51
views
What is the reason to declare private type in a struct?
OCaml allows to mark type as private in the signature. And it makes sense. The object of type declared as private can be created only inside the module and be read outside.
module X : sig
type t = ...
0
votes
1
answer
51
views
How to make a Python dictionary that keys have all related values [closed]
When key(1) has value(1) and key(2) has value(2) (Both value(1), (2) are set)
I want to add all of value(2) elements into the value(1) if key(2) is in value(1).
Here are some examples below.
d1 = {1: {...
0
votes
0
answers
46
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
2
answers
46
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
41
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
2
answers
62
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
7
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
12
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
27
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
59
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
64
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
86
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
54
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
15
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
104
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
21
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
42
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
87
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
67
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
39
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
81
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
35
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
44
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
33
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
14
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
39
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 (...
1
vote
0
answers
57
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 ...
1
vote
1
answer
60
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
47
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
28
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
57
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&...