Posts by Chichila • 485 points
10 posts
-
3
votes1
answer117
viewsQ: Why can’t I use || for pointer?
I have the following code: int i=0; variable a; a.type = CHAR; a.name = malloc(sizeof(char)+1); while(*l->str++ != ' '); while(*l->str != ';' || *l->str != '='){ a.name = realloc(a.name,…
-
1
votes4
answers3081
viewsA: Limit number of characters per line
I think creating an event textchanged and add an if gives account. int jumpline = 40; //A cada 40 caracteres. private void textChangedEventHandler(object sender, TextChangedEventArgs args) {…
-
2
votes2
answers9832
viewsA: Transform Rotation with Unity3d
You can use the transform.eulerAngles. this variable is of the type Vector3 and it can be modified, it represents the current rotation angulation X, Y and Z. Reference: Unity Script Reference…
-
1
votes4
answers574
viewsQ: Is it okay to store the password in a public class variable?
I am making a small login system in PHP using the new functions of password_hash and password_verify. Is it good practice to store the password in a public class variable? If not, it is recommended…
-
2
votes6
answers636
viewsA: How do you turn the average to red?
Just use the if. $aluno[0]["nome"] = "Ryan"; $aluno[0]["media"] = media(10,20,30); $aluno[1]["nome"] = "Mikhaela"; $aluno[1]["media"] = media(40,50,60); for($i=0;$i<count($aluno);$i++) { echo…
-
1
votes4
answers2060
viewsA: How to create a PDF stream in PHP?
Use the framework PDF.js is very simple and easy.
-
17
votes1
answer23130
viewsQ: How to pass a function as parameter in C?
I wanted to know how the function passed by parameter as it happens in pthread_create (thread,atributo,rotina,argumento);. On the field rotina a function is placed in void*.…
-
9
votes3
answers523
viewsA: Why does C array[6] equal 6[array]?
When you define an array in C the operator [] defines the following: reais[10] == *(reais + 10) Soon reais[10] will be *(reais + 10) and 10[reais] will be *(10 + reais) reais is a memory address,…
-
0
votes3
answers2183
viewsA: How to create a musical "player" in C#?
For programming a music player you will need to codecs, Dlls that decode or encode sound to be played. If you don’t know anything about programming in C#, I recommend that you look for handouts,…
-
1
votes3
answers731
viewsA: Problem with function call in Cakephp
I don’t know much about cakephp, but from what I read on the site, it says you should use the following: App::uses('AppModel', 'Model'); Before the class definition, this would be your Pass.php…