Questions tagged [initializing]
115 questions
1
vote
5 answers
String Initializing
I'm creating a TicTacToe game and I've come across an issue with my strings
Code:
import java.util.Scanner;
public class TicTacToe {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String…

Trevn Jones
- 341
- 2
- 4
- 11
1
vote
2 answers
how can i initialize a static pointer in c++?
I have following code snippet. I want to access my stack from another class. (This stack is filled with QWidgets which i need in some other classes). But i didn't even get as far as initializing my static variable in my mainwindow constructor. The…

Greenfish
- 358
- 2
- 5
- 19
1
vote
1 answer
Initializing a number and a char to a 2D array
I have to implement a deck of cards with a number and a letter. This is what I have done so far:
string deck [6][6] =
{
{1A, 1B, 1C, 1D},
{2A, 2B, 2C, 2D},
{3A, 3B, 3C, 3D},
{4A, 4B, 4C, 4D},
{ , , , };
};
int main…

Shay
- 19
- 6
1
vote
1 answer
JAX-WS context listener initializing failed in JBOSS
I'm getting below error when trying to deploy a JAX-WS web service in JBOSS 4.0.3. I'm using JAX-WS RI runtime libraries. I'm not using JBOSS-WS the JBOSS specific JAX-WS.
18:31:21,125 INFO [STDOUT] Feb 20, 2015 6:31:21 PM…
user3544081
1
vote
1 answer
Why does my variable initializes when I am inside my event listener?
Well hello,
here is my problem. I have this Javascript and my variable called " position " doesn't keep the assigned values when I enter the
under[i].addEventListener("click", function(){
alert(position.y + " " + position.x);
…

Igor Derval
- 31
- 1
- 3
1
vote
1 answer
Using a Vector of an Array of Vectors in C++
So I've tried searching here, but haven't quite found the same issue. I can't seem to figure out how to properly use this tracked vector. Ultimately, I want a vector of an array (length == 2) of vectors. It's not that I'm getting an index out of…

user1145707
- 99
- 2
- 5
0
votes
3 answers
jQuery DataTables as per their tutorial not loading javascript array
I am trying to use jQuery Datatables to paginate a query that i get from a database. The query used involves a lot of formating and joining many queries together, so I opted to build a finished array which I am now trying to format for…

ServerStorm
- 23
- 7
0
votes
2 answers
What is the purpose of initializing a dummy node in a ListSet intersect function?
@Override
public void intersect(Set set) {
Iterator iteratorSet = set.iterator();
Iterator thisIterator = this.iterator();
SetNode head = new SetNode<>(null,null);
SetNode curNode = head;
Optional…
0
votes
0 answers
How can I troubleshoot 'Timeout in initializing connection' error when running my Python script for simulating flight using dronekit API?
I got a APIException: Timeout in initializing connection error when running my Python script for simulating flight using dronekit API.
WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds
ERROR:dronekit.mavlink:Exception in MAVLink input…

电梯广告家
- 1
0
votes
0 answers
Python installer stucked on initializing
My Python installer stuck on initializing
I did 'run as admin' and 'Install Python 3.11 for all users'

수다Suda
- 1
0
votes
1 answer
Unity rewarded ads cant be load after reload scene
I have a finished game in unity and so I decided to add ads, only rewarded. I used basic scripts, exactly as they are written in unity. The first run of the ad works fine, even if I click on it several times. But the problem is that when I reload…

Daniel
- 21
- 2
0
votes
1 answer
Initializing property value in one class using the return value of a method in a different class
I have the following structure:
public class LogicStatement : ILogicStatement
{
public string TestLogic { get; set; }
public string CompareLogic { get; set; }
public string Operator { get; set; }
public string Expression();
…

waza
- 1
0
votes
1 answer
Flutter is initializing for a long time in VS Code
initializing is taking a long time so I cant run the Flutter default app.

Waleedh Nihal Ahmed
- 41
- 1
- 4
0
votes
1 answer
How to initialize C Union structure members (using C89 Standard XC32 compiler2.5)?
I have this union / structure
#define HOT_INI_DATA_SIZE 14
typedef union
{
struct
{
uint8_t OVER_LOAD_TEMP_BYTE_LOW;
uint8_t OVER_LOAD_TEMP_BYTE_HI;
uint8_t TEMP_CORRECTION_BYTE_LOW;
uint8_t…

berntd
- 53
- 6
0
votes
0 answers
Unrecognized function or variable in parfor in MATLAB
I am a beginner in MATLAB software and I use MATLAB online .The problem is in initializing a variable called 'estModel' in a parallel loop . I want to use parallel processing because the calculations take a long time to complete but this problem…

AEP
- 1
- 2