Posts by HiHello • 786 points
19 posts
-
2
votes1
answer269
viewsQ: Eliminate cycles in graph by removing fewer vertices
I wonder if anyone knows if it is possible to eliminate all cycles of an undirected graph (n vertices) weightless, removing the smallest number of vertices, in time O(n²)? Note: The graph can be…
-
0
votes2
answers1246
viewsA: How to add elements at the "x" position of an Std::vector
There is the Insert method exactly for this. It inserts the element in a given position and drags the rest of the vector forward. You can do this: Its vector.Insert(Its vector.Begin()+position, Its…
-
7
votes3
answers14141
viewsQ: Fix first row table
I need to fix the first line of my table always at the top of the page. I have read several questions about this same problem, but I could not solve... My code: <table border="2px"> <tr…
-
1
votes2
answers1381
viewsA: Capture Variable Image Content
Well, as for opening in the same window, just replace the _blank for _self, note; if you leave the parameter blank, the default is _blank. As for saving the content in a php variable, you can save…
-
6
votes1
answer1855
viewsQ: Equation solving
I created a Cartesian plan and I get an equation from the user. My goal is to draw this equation in the plane. I’m doing this using canvas. Only here comes a problem, I can only do this if I…
-
1
votes1
answer1460
viewsQ: Change table cell background color
I’m trying to change the background color of cells whose values are equal to the day the user accesses the site. The variable $dataa keeps the dates of each name... Table formatting (inside a php…
javascriptasked HiHello 786 -
1
votes1
answer3146
viewsQ: Popular table with HTML table data
I have a table with 4 columns (name, prova1, prova2, simulated). Suppose you are a teacher, and you wish to post student grades. I return to you the following: // $l representará o número de linhas…
-
1
votes0
answers1238
viewsQ: Electronic distribution algorithm
I’m trying to think of a different way to do electronic distribution. The way I did it was this: display the amount of electrons in each layer. However, in the distribution I want (1s² 2s² 2p6...)…
-
6
votes3
answers183
viewsQ: Echo returning wrong value
I don’t understand one thing in this case: $arr_4[] = "$arr_3[$i]<sup>$arr_22[$i]-$contador+$eletrons</sup>"; Come on, the $arr_3[$i] stores a string of value "3d", the $arr_22[$i] = int…
-
6
votes1
answer95
viewsQ: Operation of file handling functions
I know the syntax, the logic of the function. I would like to know how it works in the background. Example, I gave the function fopen(), fclose(), fwrite(), What am I actually doing? Would it be…
-
5
votes3
answers59486
viewsA: How to compare dates in PHP?
In addition to what Otto has already said, you can do this in a less specific way (which is what I thought you wanted, since you wrote that it did not fit the American standard). If you save the…
-
2
votes2
answers1218
viewsQ: Increase Size Field Balls for Password
i want to increase the size of the "balls" of a password input, I thought input { font-size:140% /*exemplo*/ } for example. However, only the bar that keeps blinking at the time of typing that…
-
1
votes1
answer366
viewsQ: Error with Foreach arguments
I created a structure with some loops however php is returning me that the foreach arguments are invalid... I’m not sure if this structure is correct, so I’d like someone to let me know if this is…
-
2
votes1
answer405
viewsQ: Box in the middle of the page according to the resolution
I’m trying to position a box in the middle of the screen and regardless of the resolution the text inside it does not leave the box... Well, I can do two things: position it in the middle, but when…
-
2
votes3
answers237
viewsQ: Different outputs on different compilers
I have this code: #include <iostream> int main(int x=1) { while (x <= 1000 && std::cout << x++ << std::endl) {} } I wrote it on Gedit, using Debian, and compiled it with…
-
7
votes3
answers1538
viewsQ: Display from 1 to 1000 in C++ without using a semicolon
Make a program in C++ that displays on the screen the numbers from 1 until 1000, counting with these two, but without using the semicolon. I already made a sketch here but I have to choose between…
-
4
votes1
answer127
viewsA: Probation
I figured out what the problem is! What I did; I gave one var_dump on top of the if, and I noticed that the variable $w contains empty spaces before it. I used the function trim() PHP, I removed the…
-
5
votes1
answer127
viewsQ: Probation
I have a if that is never being satisfied. I think I’m using some loop wrong way. I’ve already checked the value of all variables, and they’re all correct. So I’m going to pass here values of…
-
1
votes2
answers1655
viewsA: Close Download Dialog Box
From what I know only closes popup window with js, in case you have opened it with js. In the case if you used window.open, the window should work.close.