6,561 questions
0
votes
0
answers
44
views
Create custom Pivot table with tree structure
I created a pivot table like the one in the image.
The data part was done this way
The pivot representation works for me because for each product, line, or family (iPad->iPad Air->iPad Model), ...
2
votes
4
answers
162
views
Why does including header with a structure definition not lead to a redefinition error?
I have simple program to make a point with x and y coords and function to move it.
There are three files:
main.c
structs.h
structs.c
structs.h Has the definition of structure
typedef struct point{
...
0
votes
2
answers
62
views
Can I transition a toggle (with onclick) between two different grid structures?
I can't seem to find a way to achieve the transition between two different grid structures. The toggle is working fine; I'm simply toggling the class of the divs within the outlining grid-div where ...
3
votes
1
answer
146
views
How does the restrict keyword in C behave differently with pointers to structures compared to pointers to primitive types? [closed]
I’m trying to understand the nuances of the restrict keyword in C, particularly how its behavior might differ when applied to a pointer to a structure versus a pointer to a primitive type like int.
...
1
vote
1
answer
80
views
What are the drawbacks of implementing dequeue using procedure int? [closed]
I'm trying to implement a queue and for dequeue I've purposely done with an int procedure. What would be possible drawbacks for using an int?
int dequeue(queue *q) {
int res = 0; // list not empty
...
0
votes
0
answers
41
views
How to structure a form with reusable components while maintaining proper validation management?
Description:
I'm working on a Vue/Nuxt project where we typically create a single component that handles all inputs, their state, validation, and submission to the API.
While this approach works, it ...
0
votes
1
answer
130
views
How to compare table structure between two different environments without using db links and not having central repository in an automated manner
How to compare table/columns/index/constraints structure across two different environments in oracle without using db link and not having central repository where data files can be stored.
We cannot ...
-1
votes
1
answer
80
views
Jar File throws FileNotFoundException but eclipse does not
I use eclipse to do my java programming, last day i created a java program and i placed the /res folder to the root directory of the project, When i tested the program on eclipse it worked perfectly, ...
0
votes
2
answers
257
views
Real world project structure with .C and .H
So when we make a C program we just need one .C file right? We can include additional C files and H files to our main .C file but I'm not sure what the difference between them is.
Why would one ...
4
votes
1
answer
306
views
Why should/shoudn't I use lib.rs in binary crates? [closed]
When I search the internet for design examples how to structure my code, I frequently find setups with main.rs only containing the main function and usages of lib, while lib.rs contains all the actual ...
-2
votes
1
answer
104
views
What is the best way to implement named colors in Rust? [closed]
(I'm a Rust newbie coming from a strong C/C++/Java background.)
In Rust, I would like to create "enum" like variables that are constant, ideally initialized at compile time.
For example, to ...
-4
votes
3
answers
177
views
What is an efficient way to create the list [0, 2, 3, ..., 234] in python?
I want to create the list [0, 2, 3, ..., 234] in python, possibly within a row and without listing all numbers explicitly
I know that following code works:
list1 = [0]
for i in range(2,235):
list1....
-3
votes
1
answer
28
views
Having trouble accessing the elements of an array, in a structure, in an array [duplicate]
public struct player
{
public int[] PlayerHistory;
public Boolean Absent;
public player(Boolean b)
{
PlayerHistory = new int[20]...
-6
votes
2
answers
103
views
malloc(): corrupted top size on deleting an entry from binary file [closed]
I AM CREATING A SCHOOL MANAGEMENT SYSTEM . WHEN I TRY TO DELETE A STUDENT AFTER ADDING ONE I AM GETTING "malloc(): corrupted top size" ERROR .CANT FIND THE REASON.I AM A BEGINNER , HELP ...
0
votes
1
answer
150
views
how to append struct(record/repeared) column to a bigquery table
I have a table called sports as below
I need to append another day's details into the table for red team like below
Note: Without unnesting the existing record, just a simple append.
Is there any ...
1
vote
2
answers
497
views
How to visualize CNN architecture using draw_convet?
I need to visualize the CNN model. The example is in the comments.
I've tried to use draw_convet (https://github.com/gwding/draw_convnet) but it keeps throwing a list of errors. Could you please help? ...
5
votes
1
answer
301
views
Alternative to EXPANDING NESTED TABLES on old version of ABAP?
As one probably knows we have such handy clause of MOVE-CORRESPONDING as EXPANDING NESTED TABLES:
MOVE-CORRESPONDING: <m_source> TO <m_target> EXPANDING NESTED TABLES.
What it basically ...
0
votes
1
answer
80
views
Add one to linked list representation of an integer's digits
I am trying to solve this challenge:
Given a non-negative integer represented as a non-empty singly linked list of digits, add one to the integer.
You may assume the integer does not contain any ...
0
votes
1
answer
81
views
Create a folder with sub-folder structure with specific names and dates
Hi I'm looking for a little help here to create a folder structure using PowerShell.
Pointing at a root folder [Yearly Structure Folder], im looking for the following structure within this folder.
The ...
1
vote
0
answers
27
views
Windows Property Set Data Structures : FileTime
I hope you guys are well!
I am currently working with the MS OLEPS as stated in the title.
Here the documentation I'm using : https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-oleps/...
0
votes
1
answer
78
views
C++ structure value displaying in wrong field
I am trying to print the values within a structure as a table. However, one of the names gets printed out into the wrong 'field'.
Here is what I have:
#include <iostream>
#include <string>
...
-2
votes
4
answers
92
views
How to make variables same for all structures in array of structures
I am trying to make 2 variables of structure same across whole array of structures. I am wondering how would you do that as I cant find any clue about what I want to do. I am using C language
Here is ...
-1
votes
1
answer
59
views
Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
Sorry for my bad english)
I created a dynamic array of structures. This structures contains dynamic array of doubles.
When I add the structure, I fill it this way
The number of sides and the length of ...
2
votes
2
answers
101
views
Matlab array of structure
I created an array of structures
data(1).field = 5;
data(2).field = 3;
data(3).field = -4;
...
I would like to plot one of the fields by accessing something like:
data(:).field
I get the following ...
2
votes
1
answer
97
views
Why does not it overwrite data while inputting data in for Loop (Structure)?
I'm a beginner in c I've been working on a program in C where using structure which represents students, and variable of structure contains the student's marks. My goal is to input marks for 2 ...