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
0 answers

ETABS OAPI : CreateObject method not found on Helper Class using C#

newbee here I am trying to work with ETABS OAPI (structural engineering software) using C# and start with the example on its documentation. //declare etabs object ETABSv17.cOAPI myETABSObject = null; //Use ret to check if functions return…
edbNewbie
  • 11
  • 2
1
vote
0 answers

How to extract a qcow2 virtual disc image?

How would I extract or convert a qcow2 virtual disk image to an external hard drive in raw format, to show all the folders and files structures?
1
vote
2 answers

Maven build multi-module project

I am recently learning more and more in the field of Maven projects and I want to use it for an idea I wanted to tackle for some time. This question is concerning, how to effectively build a Maven project, with the structure I will use. My take on…
thorald_
  • 35
  • 5
1
vote
4 answers

Why can't we use of hyphen while declaring structure variable name?

struct birthday{ int day:6; }b-day; While declaring b-day as a structure it shows the following error: error: expected ':', ',', ';', '}' or '__attribute__' before '-' token| but after removing the hyphen from the variable name it works, why?
1
vote
4 answers

Weak reference to a scoped_ptr?

Generally I follow the Google style guide, which I feel aligns nicely with the way I see things. I also, almost exclusively, use boost::scoped_ptr so that only a single manager has ownership of a particular object. I then pass around naked…
Shane
  • 3,051
  • 3
  • 40
  • 45
1
vote
4 answers

Create a Function which will tell us if an array is sorted or not in C programming

New to C programming ^^. I am working on an assignment, and I have to create a function that verifies if my array is sorted. I have to use a predefined template of code and solve it in a certain way. Description : Let's create a function which will…
Elvandil
  • 13
  • 5
1
vote
1 answer

Include external javascript file in header navbar file not found

I have the following folder structure: website.com/index.php website.com/page/asd.php website.com/header.php website.com/js/file.js header.php contains: index.php contains: include_once 'header.php'; asd.php…
John
  • 63
  • 1
  • 7
1
vote
1 answer

Is the name of structure represent its address?

Is the name of structure represent its address, is it true?? plzz explain struct s{ int a; char b; }; struct s s1; struct s *ptr; is writing 's1' represent the address of s1, means 's1' or '&s1' are same thing??? ptr=&s1; ptr=s1; // which is…
Abhi
  • 11
  • 1
1
vote
2 answers

Idiomatic ways to structure a function with 2 helpers in Ruby

I coded up a solution to the narcissistic numbers kata on codewars. After writing a single function, I extracted two helper functions in order to keep my line count at a maximum of 5 lines (Sandi Metz' Rules For Developers). This resulted in 3…
Peter Slotko
  • 327
  • 2
  • 10
1
vote
3 answers

Passing anonymous structures to functions as parameter using C++

So.. I'm working on a project using C++ and I have multiple structures and I have only one fuction that need to have one of that structures as a parameter. I already searched everywhere and I only found examples with one structure in…
ACasal
  • 11
  • 2
1
vote
2 answers

Generic Function with (Of T as What?) to accept String, Integer, DateTime?

I've got this Function: Public Class QueryStringUtil Public Shared Function GetQueryStringValue(Of T As Structure)(ByVal queryStringVariable As String) As T Dim queryStringObject As Nullable(Of T) = Nothing If queryStringVariable…
SventoryMang
  • 10,275
  • 15
  • 70
  • 113
1
vote
0 answers

null reference Exception in a PtrToStructure C#

the visual studio 2019 send this excepción i got this public struct DIJOYSTATE2ENGINES { public int lX; /* x-axis position */ public int lY; /* y-axis position */ public int lZ; …
1
vote
1 answer

How to structure project with SVN and different dependent build targets

I have a software project which has a global software base but many different build targets for specific hardware platforms. At the moment I address these targets by different makefiles, which access the hardwareplatform specific folders. But I…
chris LB
  • 451
  • 1
  • 4
  • 14
1
vote
1 answer

Organization and Structure of Web Application Testing Framework

So I'm looking to bring web application testing into our .Net environment with a framework such as Selenium. At first, it'll probably be the developers writing the tests, but later it may be just the QA team. I'm wondering where the tests should…
Darren
  • 43
  • 6
1
vote
1 answer

Variable undeclared even if it was in C program

There is an error that says that book is undeclared and a note that says "each undeclared identifier is reported only once for each function it appears in". But I don't understand why it only applies to book.title yet other members in the struct…
colorless
  • 13
  • 2
1 2 3
99
100