I have the following scenario:
I have a list of addresses that comes dynamically from the database, according to what is registered by the user.
I need to enable only one address, so when one button is activated all other ones are disabled...
Exercise proposed by the teacher.
C-) Create a function in PHP that feeds an array with notes from your sophomore year of college.
Use the following array sorting commands and tell what each of these commands does.
sort (), asort (), ksort ()...
I'm giving some maintenance on a perl system (language that I'm noob) and I needed to create a new report module where I need to solve the following situation:
I have 2 arrays with the following formats
@head = ("nomeinstituicao", "cnpjinst...
In the following function I want to compare the elements of an array of 1000, but I can not find a way to compare them successfully, even using strcmp() .
void verifica_conta(int *ptr) {
int i; //Posição
for(i = 0; i < 1000;...
I want to resize the vector to solve this problem "The Legend of Flavious Josephus":
link
If I have 5 people with a jump of 2 it will look like this:
12345 - > 2 and 4 died and in the next cycle, the 1 and 5 die.
135 - > I want...
A comparison is being made:
This is so
$result3 = array_diff($fetchForm, $items['form_id']);
print_r($result3);
Array
(
[0] => 1
[2] => 3
)
$result2 = array_diff($items['form_id'], $fetchForm);
print_r($r...
I'm trying to make a query though, although the query works fine in PHPMyAdmin in the browser it returns the message below:
Fatal error: Call to undefined method PDOStatement :: fetch_array () in
D: \ xampp \ htdocs \ final \ inc \ proje...
I've fed the array with the user input, but the algorithm does not output it in an orderly way, what did I do wrong?
int main()
{
// variáveis
int vetor[5] = {0};
int aux, i=0, j=0;
printf("Entre com numer...