Posts by Aesthesys • 113 points
4 posts
-
4
votes1
answer870
viewsQ: What is Array.Getlength for?
To know the size of a vector, I can only use the nomedovetor.Length, right? I saw an example in a structure for, where they wore GetLength(0) or GetLength(1) to capture the dimensions of a array row…
-
3
votes2
answers129
viewsQ: Sorting Doubt - C Language
I am ordering a simple vector, increasingly. The code works. But the next line that got me confused: if (matriz[i] < matriz[j]) Why is the sign there smaller, not bigger? If I want to change…
-
3
votes1
answer18229
viewsQ: Fill a vector with random values (C language)
In another of my studies in the C language, I had the idea of trying to fill a dynamically allocated vector with random numbers. However, I came across the following problem: The Rand function was…
-
1
votes0
answers46
viewsQ: How to prevent the console from running twice?
I have had this same problem in other computers of mine, and even in other Ids as well. The following happens: When I finish writing my C code and executing it, first appears a prompt for about five…