Recent content by RicardoMarques
-
R
Counting Lines in a File: A Homework Statement
Homework Statement #include <stdio.h> #include <stdbool.h> #define MAX_STRING 256 #define MAX_LINHA 1024 typedef struct{ int dia, mes, ano; }Data; int contar_linhas(char fname[]) { FILE *f; Data int soma=0; // Inicializa o contador f =...- RicardoMarques
- Thread
- Counting File Homework Lines
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
Long night waiting, going for the 20 :) Thank you guys !- RicardoMarques
- Post #23
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
I wrote this and it worked, what can I change to make the code better ? void escreve_linha(int i, int n) { for( n ; n > i ; n-- ) { printf("*"); ; } printf("\n"); } }- RicardoMarques
- Post #21
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
If use both parameters in escreve_linha like escreve_linha(int i, int n) is that ok ? If it is , I am thinking in something like for( n; n>i; n--)- RicardoMarques
- Post #19
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
What would be the hint, if i wanted to put it this way: **** *** ** *- RicardoMarques
- Post #17
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
I got it thank you ! Edit: void escreve_linha(int i) { int j ; for( j = 0 ; j <= i ; j++ ) { printf("*"); } printf("\n"); } }- RicardoMarques
- Post #16
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
I tried to change the function escreve_linha , but i need to keep the parameters i and n..- RicardoMarques
- Post #15
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
Yes I do. You misunderstood me. I want to get the answer, but by myself... But I clearly need a little bit of help now, since I'm stuck. I haven't understand clearly the hints you are giving me.- RicardoMarques
- Post #10
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
I cannot understand what are the changes that I need to do to make a triangle, i tried a lot of things and nothing seems to work- RicardoMarques
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
I am studying for a frequency, getting the answer would be ok... I have no time to ask my professor, and I'm really confused- RicardoMarques
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
Can you show me how please ? I'm really confused about this- RicardoMarques
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
R
Create a Triangle with Asterisks in C: Step-by-Step Guide
< Mentor Note -- code tags have been added for better readability. In the future, please use code tags. Thank you. >[/color] 1. Homework Statement #include <stdio.h> void escreve_linha(int n) { int i; for( i = 0 ; i < n ; i++ ) { printf("*"); } printf("\n"); } void...- RicardoMarques
- Thread
- Triangle
- Replies: 22
- Forum: Engineering and Comp Sci Homework Help
-
R
Rotation Velocity on a boomerang
I want to know this "a" assuming that the period is like 0.5... In the paper i read about it they call that velocity "a" rotation velocity... but is given i m/s and angular velocity is in rad/s, so I am kinda confused about this- RicardoMarques
- Post #5
- Forum: Introductory Physics Homework Help
-
R
Rotation Velocity on a boomerang
Is exactly that my question- RicardoMarques
- Post #3
- Forum: Introductory Physics Homework Help