Posts by Imeguras • 21 points
3 posts
-
0
votes2
answers59
viewsA: error: expected Expression before struct
struct ListaDupla{ Rota *info; int tam[ListaSimples->tamanho]; }; The error is in int tam[Simple list->size]; in structs or put a certain value or use a pointer unless you use something more…
-
1
votes1
answer77
viewsA: What is the best way to make an if-lse?
Well in the case you described If(num){ puts("num eh diferente de 0"); }else{ puts("num eh igual a 0"); } The code is read from above down so you should put the instruction lighter and discard as…
-
1
votes2
answers268
viewsA: How do I limit the rotation of prefabs on 2 axes in Unity?
uses the function Mathf.Clamp(); Example: Vector3 move; float valormin = 0; float valormax = 90; move.x = Mathf.Clamp(move.x, valormin, valormax); This example would cause a vector3 at a value of x…