I'm having problems trying to initialize a vector of strings so my code looks like this:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char *str[3];
printf("DIGITE QUALQUER STRING: ");...
People when I run Object Keys it captures every Array of the Object and updates the data of component only not all, and the output only comes with the last Array value:
var obj = {
index: {
path: "/",
component...
I'm creating a system where you can add medicines by protocols.
Ex:
PROTOCOL NAME
[ARRAY]
NOME DO REMÉDIO
[ARRAY 2]
NOME DO ITEM QUANTIDADE TEMPO DE INFUSÃO [ARRAY]
NOME DO ITEM 2 QUANTIDADE 2...
I made an array [day] [time], but I get an error initializing it.
I get this error and I do not know how to fix it
error : attribute
The code looks like this:
struct horario{
char M[8][40] = {{"X 8 9 10 11 12 13 14 15 16 17...
Hello, I can not do the conversion, my string is coming like this.
{
"empresa1":
{
"category_id" : "Item 1",
"id" : 1,
"imagePath" : "imagem",
"name" : "empresa 1",
"short_desc" : "desc da empresa 1"
},
"empresa2":...
I have this class where I can do the query and return data from an external webservice:
$params = array(
'usuario' => $usuario,
'senha' => $senha,
'quantidade' => 2
);
$wsdl = 'http://xxxx.com?WSDL';
$options = array(...
I'm having trouble saving the read data from a text file and a vector from a structure I created.
My goal is to open a text file, grab the data that is saved in it, and save it to a vector of type INFO. My program compiles perfectly, but when...
#include <stdio.h>
#include <stdlib.h>
/**
2. Faça um programa que, a partir de um vetor de 12 posições, crie funções para:
A. Digitar valores no vetor;
B. Imprimir o valor somatório de seus itens;
C. Imprimir a média dos valore...
The intention is to replace all words toda with 0 , however after X characters it begins to return strange values as can be observed in the comments.
I think I'm handling the parameters wrong, but at what point? Why?
#include&l...
I bring some bank records with a specific order and play into a vector of type record ". Then I need to add more items to that vector by keeping the initial sort. Since the ordering is done in SQL the records that are added then en...