Posts by PrismaticSun • 49 points
7 posts
-
-2
votes1
answer42
viewsQ: Why does the code return error dumped core?
I came across the following errors: floating point Exception and dumped core for the same code. I did not understand very well why this error occurred. I put the code in a Bugger and from what I saw…
-
-1
votes1
answer243
viewsQ: Nameerror: name is not defined for initialized vector, how to tidy?
I’m making a program to calculate a certain time, with a probability of something happening and going wrong, but I’m getting Nameerror: name 'tempo_ida' is not defined variable h is defined as 0.…
-
1
votes1
answer248
viewsQ: Why do I get this error on locale. h? [Error] expected declaration specifiers or '...' before Numeric Constant
The error ( [Error] expected declaration specifiers or '...' before Numeric Constant ) is pointed out in the setlocale(LC_ALL, "English"); However, the locale. h library and comma are present and…
-
-1
votes2
answers161
viewsQ: Terminate program with enter/ EOF
I need the code to end after an empty enter, with no input or the 'EOF', but I don’t know how to apply it and I didn’t understand very well the examples I saw. The program is almost complete, it…
-
1
votes1
answer398
viewsQ: Calculation of cubic root in vectors
Hello! I am doing an exercise where it is necessary to calculate the cubic root of 10 numbers stored in a vector and transfer them from vector A (where the numbers were read) to vector B ( where…
-
0
votes1
answer184
viewsQ: How to get the program out of the loop
In the exercise I am doing, it is asked that when the number of repetitions is 0, finish the execution, but when I type 0 it does nothing and continues to read numbers. It reads a number K of…
-
0
votes1
answer214
viewsQ: Print Matrix (C)
I’m trying to print a matrix over the months, but I’m not getting it. It’s a test for another code I’m doing. The goal is to stay: Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro…