I have a while(true) that accepts multiple connections ( Socket and ServerSocket ). Each connection is passed to a Handling object that handles its read / write data. This Handling is passed to a Thread so you can accept connections and...
I have this:
$categoria_1[0] = array(
'code' => 'ALI000001',
'name' => 'Alimento > Arroz
);
$categoria_2[0] = array(
'code' => 'ALI000002',
'name' => 'Alimento > Massas
);
You have to leave it like this:...
I have a problem with the following statement:
Given a vector A with n real numbers, get another vector B, also with n real numbers, as follows:
B [1] = 2 * A [1]
B [2] = 3 * A [1] + 2 * A [2]
B [3] = 4 * A [1] + 3 * A [2] + 2 * A [3...
I'm using a context where I have a variable of type array with reference to another class.
When trying to declare the object-instantiated class and declare its size this error is returned and I would like to understand why:
non-static vari...
Hello, I have a question regarding classes in C ++, I hope someone can help me. Thanks in advance!
I'm developing a college assignment where I need to enroll students, subjects, and grades, and in the end display some reports, all using the c...
I have a big problem, I already researched in several places and I did not find the solution I hope you can help me ...
My goal is to create a function in JS that will get an array as a base, which I will call here as " A " its structure is this...
I have the following array:
var usuarios = [
{nome: "João", id: 1},
{nome: "Maria", id: 2},
{nome: "José", id: 3},
{nome: "Ana", id: 4},
];
I need to return the user index José.
I tried using indexOf as follows:
var...
I'm having to remember programming in c ++ to teach a beginner class in programming logic. Subject this I have not seen for years.
A struct was declared however when entering a string, the stream jumps to the next line. I looked for re...
How do I place a vector in descending order?
public static void vetor() {
int[] vet = {
7,
4,
10,
8,
2,
5
};
Arrays.sort(vet);
//Comando para colocar em or...