Posts by lineOut • 183 points
7 posts
-
0
votes1
answer68
viewsQ: My struct type is not recognized within my class
Guys, I’m implementing a stack with C++ pointers and have the following code for now: template <class T> struct Node { T item; Node *prox; }; class Pilha { private: int tamanho; Node *topo;…
-
12
votes3
answers10029
viewsQ: innerHTML VS innerTEXT
What’s the difference between using the innerHTML and the innerText in Javascript? If I want to change the content of TEXT_NODE, Which one should I use? For example: <p id="p1">I also wrote a…
-
0
votes2
answers275
viewsA: Foreign key FK, is each identification number on a table?
The ones you quoted are the PK candidates from the respective tables... FK is the key that references the other table and, in its tables, are the ones that follow in bold: CLIENT(Num_client, Client…
-
1
votes7
answers1322
viewsA: Push element from one array to another array
I answer your question about which solution would be correct and without fiddling too much in your code, yours is almost correct, you just did not ask to display the result on the screen besides…
javascriptanswered lineOut 183 -
0
votes3
answers1106
views -
0
votes2
answers1433
viewsA: Invert "string"
It is more elegant and functional that you create a variable and assign to it the value of size of your input string, so it will work for any string size. Also, trying to modify your code minimally,…
-
0
votes4
answers224
viewsA: My program made in C++ is in infinite loop, how to fix?
As it is, its function will not enter the loop because the variable 'i' starts with 0 and will never meet its condition of being greater than or equal to 10. for(i=0;i>=10;++i) Therefore, in fact…