Posts by Ricardo Ribeiro • 43 points
4 posts
-
0
votes1
answer149
viewsA: How to insert elements into a Binary Search Tree?
Try it! I put a create function to make the code cleaner! void log_registrar(Log **l, int conta, int classe, int timer, int caixa){ if(*l == NULL){ *l = cria_log( conta, classe, timer, caixa); }…
canswered Ricardo Ribeiro 43 -
1
votes1
answer205
viewsQ: Error when adding FK
I found just about this type of error in "Select", I followed all the restrictions but it didn’t work! Error from line : 86 on command - alter table tb_consulta add constraint…
-
3
votes3
answers1436
viewsA: What is the fastest way to calculate the sequence of Fibonacci
I do not know if it is the fastest, but I believe that this, if adapted to the problem, will be accepted!! #include <stdio.h> int main() { double n, x, y, ans; scanf("%lf", &n); x = (1 +…
-
0
votes2
answers720
viewsQ: Recover struct data in C
How do I save a Struct to a C file and recover that data in another run of the program?
casked Ricardo Ribeiro 43