This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| print "<pre>"; | |
| $pedidoTotal = 40; | |
| $pedidos = [ | |
| ['necessario' => 10, 'estoque' => 20], | |
| ['necessario' => 20, 'estoque' => 15], | |
| ['necessario' => 10, 'estoque' => 5] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Util::get3DMatrix(int pLinear, int* triDimensional, int X, int Y, int Z) { | |
| int x, y, z; | |
| int tamanho = ((X * Y) * Z); | |
| y = ((pLinear % tamanho) % Y);//bloco | |
| x = ((pLinear % tamanho) / Y) % X;//dia | |
| z = pLinear / tamanho;//camada | |
| triDimensional[0] = y; | |
| triDimensional[1] = x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() | |
| { | |
| int idade = 0; | |
| int idadeT = 0; | |
| int contador = 0; | |
| float media = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PHPXSL_xp extends XSLTProcessorClass { | |
| function run() { | |
| // xml document | |
| $oXML = new DomDocument(); | |
| $realXML = String::replace(File::openFile($this->_sXML), array('encoding="utf-8"', 'encoding="UTF-8"', 'encoding="ISO-8859-1"', 'encoding="iso-8859-1"'), ''); | |
| $encodedXML = Util::isUTF8($realXML) ? utf8_encode($realXML) : utf8_encode(utf8_encode($realXML)); | |
| $oXML->loadXml($encodedXML); | |
| $oXML->xinclude(); |
NewerOlder