Posts by Gustavo Medeiros • 65 points
9 posts
-
0
votes0
answers19
viewsQ: How to define a Deployment Server for Netbeans?
Good evening! I am studying MVC for Netbeans with the use of Maven. However, I can’t load a xhtml page, because when I click Run Project up there, it builds normally. However, the following message…
-
2
votes1
answer50
viewsQ: Fileinputstream class read() method not finding end of file
This program aims to copy the contents of the text file origin.txt and paste it into the file destiny.txt, each space read in the source file, a hyphen must be pasted in the target file. The noose…
-
-1
votes1
answer109
viewsQ: Vector of large size in C
I’m studying the data types of the C language. And today I decided to create a vector of very large size, in this case, 10 8. So, I made a small code in which I declare this large vector (being that…
-
1
votes1
answer750
viewsQ: Recursive function to calculate the mean
I did that job media() that averages the elements present in a vector of 5 elements. However, the function is returning 2 instead of the correct average. #include <stdio.h> int media(int…
-
-1
votes1
answer30
viewsQ: String is not being saved to a text file
I made this code whose purpose is to read any string (Maximum size 30), and to write this string in a text file. After reading the string, the program is terminated normally (No errors), but when…
-
-1
votes2
answers92
viewsQ: Passing a vector to a function in C
In my C practices, I decided to practice using a vector through a function, using the method of passing by parameter. The goal of the program is to receive the 5 elements of a vector, then show the…
-
0
votes1
answer506
viewsQ: C string array
I know that to define a word (string) in C, it is necessary to use a vector of characters, with a defined number of characters that will be used. However, how can I use a multi-word vector, that is,…
-
1
votes1
answer97
viewsQ: Function that is not running in C
This is a code whose goal is to add all the integers between a and b. Being "a" less than "b". The expected output was a number representing this sum, however, after reading a and b, nothing…
-
1
votes3
answers98
viewsQ: Conditional structure and repetition For simple in C
This is a conditional structure code and repetition For simple in C. However, the output is being the sequence: 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20. The expected…
casked Gustavo Medeiros 65