Posts by Adryan Alencar • 1 point
4 posts
-
0
votes3
answers83
viewsA: I need to do a function that passes an n * m matrix, is transformed into a unidimesional tam n *m vector
by which I intend in your questVoce wants to take this vector[1][1] and pass to that vector[1*1], so: int n = 0; int vet[3][3]; int vetB[9]; for(int x=0;x<3;x++){ for(int y=0;y<3;y++){…
-
0
votes0
answers22
viewsQ: UPDATE Sqlite and PHP error
<?php $ip = $_REQUEST['ip']; $port = $_REQUEST['port']; class MyDB extends SQLite3 { function __construct() { $this->open('Tracker.db'); } } $db = new MyDB(); if(!$db) { echo…
-
0
votes2
answers217
viewsA: Default list replacement in regex
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> lei = ["lei n32 .....", "lei n43 ....."]…
-
0
votes0
answers99
viewsQ: Browse array in php
<?php $command = system('python usb.py'); echo "<br>"; $arr1 = str_split($command); $c = 0; $i = 0; while ($c == 0) { if (strcmp($str1[$i], " ")) { $c = 1; } echo $arr1[$i]; $i++; } ?>…
phpasked Adryan Alencar 1