Posts by Murillo Henrique • 226 points
5 posts
- 
		1 votes1 answer241 viewsA: How to insert data using query in a for loop?The problem is in string concatenation. The $qu variable is being used to concatenate your sql command. What happens is the following: Value of $qu before loop: insert into ficha… 
- 
		0 votes2 answers2433 viewsA: How to make a local variable global in C (or C++)?The only way (as far as I know) for you to have a global variable in C is to declare it out of any function, like any other global variable. I imagine what you want is to declare a local variable… 
- 
		5 votes1 answer1322 viewsA: Removal of random numbers in AVL treeYour problem is in removal with two children. no_arvore *remover_2filhos(no_arvore *r) { no_arvore *aux; int x; aux = menor_no_arvore(r->dir); //auxiliar recebe o endereço do menor nó da árvore.… 
- 
		0 votes3 answers404 viewsA: How to store static information without using a database?There is a difference between Database and Database Management System. The Database is a collection of database, basically you store all your data in a database, the differential is how you insert,… 
- 
		1 votes2 answers71 viewsA: Matrix in dynamic allocation with execution failureI recommend that you use GDB to debug your program if you cannot solve the problem. According to the debugger, segmentation failure occurs on the following line: resultado = matriz[i][j]; Values of…