Posts by Henrique Tavares • 167 points
7 posts
-
7
votes1
answer2353
viewsQ: Analyze whether a number is even or odd
The program must do: Digite um Número: 12345 1 e ímpar 2 e par 3 e ímpar 4 e pra 5 e ímpar So far I’ve made the following code: void parImpar (int num) { int resto; while (num > 0) { resto =…
-
0
votes1
answer193
viewsQ: Error in Document.getElementById() in Brackets
You are giving this error in the image when I use "Document". Does anyone know how to fix it? I already searched right here in the stack and found nothing to help me. Detail, I’m using the Brackets.…
javascriptasked Henrique Tavares 167 -
0
votes3
answers5033
viewsQ: Find Strings in Text Files in PHP
I have a file called "test.txt" inside it has several words, I have an input where I get the word inserted and I would like to check if that word is contained within this ".txt file". Someone knows…
-
2
votes1
answer3814
viewsQ: How to debug PHP by Sublime Text 3?
What is the process for debug PHP for Sublime Text 3? I read in some places that the Xdebug, but most of the procedures I saw didn’t work. Note: My System is Ubuntu and I’m using PHP 7.…
-
2
votes2
answers787
viewsA: How do I check if there is a directory, if there is a request to report a new directory? I am using innosetup to create an installer
You can use Directoryexists and Forcedirectories from System.Sysutils to solve your problem. For example: if (DirectoryExists(C:\SISAUTO)) then ForceDirectories(C:\SISAUTO2); I hope it helps. Hugs!…
-
1
votes1
answer1410
viewsQ: Invalid Pointer Operation - Delphi
I added a Tclientdataset(cdsTemp) to my Form screen, well, and I implement the Fields of that Tclientdataset(cdsTemp) via code, that way: for i := 0 to (cdsAux.Fields.Count - 1) do…
-
1
votes1
answer1063
viewsQ: How to create a sub-matrix from an array in Python?
I managed to generate a matrix via Python and through this generated matrix I had to generate a 3x3 matrix. But I don’t know how to do this, I was researching and I know that Python himself has a…