I have following source-code: This Prolog program splits a list List into two lists L and [R1|RN]. R1 is the first element of List which satisfies ...
I have following source-code: This Prolog program splits a list List into two lists L and [R1|RN]. R1 is the first element of List which satisfies ...
I'm making a game that's top down and has enemies. They don't shoot just walk at you. Well there supposed too. I just can't seem to get to enemies to ...
I have the following structure: Note that the class Test has a member of type LogicStatement, and the class Literal has a member of type List. Not ...
I'm trying to instantiate a class within a function, then call a method within the class inside the same function, like this: But I am getting an e ...
I am very new to java and I was just trying to get acclimatised to the syntax and there is one thing that I have been confused about. What is the diff ...
So I want to instantiate a view controller from storyboard and change its static variables. This is "vc1" - the view controller to be instantiated: ...
I am trying to import MainMenuBar class from filemenu.py to my main class and instantiate it in my main class init method in wxPython but I am getting ...
I'm trying to instantiate my ballPrefab on click at the cursor's position. I know that Input.mousePosition only takes the x and y coordinates. However ...
I'm trying to have a more in-depth understanding of coding with the C# language. And so I am trying to dissect every suggestion from IDEs. The two sc ...
Im new to Unity and c#, I've been making a turn based game following one of Brackeys tutorial and i've added scriptable objects to it. Im looking to i ...
I just want to use the instantiated GameObject in another function but it always says The name 'newObject' does not exist in the current context I ...
I've been working on a project involving instantiating an orb which then teleports the player to its location when hitting any object I tag with "floo ...
I have a GameObject with a vertical layout component, and when I instantiate its children for content, the children overlap with each other which mean ...
I'm curious if there's a way to tell a class being constructed to reference an existing instance. For example: ...
If an object is declared in a header file like this: What would be the best way to instantiate it? A simple reassignment like this? Does this destr ...
I'm trying working in Ren'Py and I found something very weird. In very early stage I defined the class: but later I realized, I don't need a name a ...
I'm new to Pydantic and Pandera, and need some help with class instantiation and initialization. I have the following code in one file, sim.py: an ...
I use this simple c# code (ok, the result is a little bit silly but it's just to try to solve my problem) to fill a grid (a Syncfusion Blazor datagrid ...
A very confusing situation involving some constexpr and type traits led me to think the value of an expression is true, when in fact it was both true ...
docs.microsoft.com: "Because a generic type definition is only a template, you cannot create instances of a class, structure, or interface that is a g ...