Questions tagged as 'array'

1
answer

system () function does not accept string variable in c ++

In order to automate some backups that need to be done routinely, then I thought of using an app in dos to do, however I'm having problems compiling the executable because it seems to me that the function system() only accepts cha...
asked by 10.05.2017 / 20:34
1
answer

How do I edit an element of this array?

I have an array like this: List<dynamic> business_list = new List<dynamic>(); business_list.Add(new { business_Name = reader.GetString("name"), business_OwnerID = reader.GetInt32("owner_id") }); List business_list = new...
asked by 07.06.2017 / 04:22
1
answer

C ++: Vector in a function

I'm doing a project where I use many vector-type vectors. But working with array vectors is easier, so I did the following function: // add.cpp vector <string> sAdd (string In[]) { vector <string> Out; Out.resize (sizeof(In))...
asked by 24.04.2017 / 03:47
1
answer

Malloc does not work in C code

When trying to compile the code I get the following error messages: #include<stdio.h>#include<stdlib.h>#defineOK0voidpreencherVetor(int*vetor[],inttamanho){intindice;for(indice=0;indice<tamanho;indice++){printf("Entre com o va...
asked by 16.05.2017 / 22:07
1
answer

Problem using lists of vowels and even numbers

The exercise is as follows:    Make a program where the user types a letter and a number   all. If the letter is a vowel and the number is even, or the letter is   consonant and the odd number, show "BAZINGA!". Otherwise, show   "SHAZAM!"....
asked by 14.05.2017 / 05:25
1
answer

Error: "error: array type 'int [oversize]' is not assignable"

When trying to compile the program I get the following message:    error: array type 'int [oversize]' is not assignable       majorVetor = vectorII;       ~~~~~~~~ ^       error: array type 'int [oversize]' is not assignable       majorVe...
asked by 15.05.2017 / 21:46
1
answer

How to create property for an Array? VB.NET

I have a question in Arrays, I do not know if I wrote right if what I'm referring to is really a property, I'll explain in detail what I want to do. For example: I want to create an array with multiple names = dim nomes() as string Af...
asked by 11.06.2017 / 20:05
1
answer

How to treat each value in an array without knowing the index name?

This is the following, I am creating a function that receives an array and transforms the writing into uppercase, the code is as follows: function uppercase($post_array) //ok { $post_array['clienteNomeCompleto'] = mb_strtoupper($post_array...
asked by 25.04.2017 / 04:40
1
answer

How do I sort string in the Insertion sort method?

I'm using the following method, however in the WHILE line it's error. Netbeans says    "bad operand types for binary operator" & & ", first type: boolean, second type: int". public boolean insertionSort(String a []) { if (a...
asked by 05.03.2017 / 02:46
1
answer

Join two objects in one with conditional attributes in JavaScript

I have the following dilemma, I need to mount an object to send to a API rest . But I have data that starts from a variable. I thought of several ways to do this but I do not know which one is right, or if none of them is right. if (true...
asked by 06.02.2017 / 20:45