Posts by Carlos Ferreira • 39 points
8 posts
-
1
votes2
answers892
viewsQ: How to convert lowercase string to uppercase in Assembly?
I made this code that reads a sentence and determines whether the first letter is uppercase or not, now I have to sweep the entire sentence by changing where it’s lowercase to uppercase, but I’m…
-
0
votes0
answers60
viewsQ: Successive Assembly Loop using Gcc and IAS
I am studying Assembly however I am very difficult, I have to solve an exercise but I did not understand what to do. "Make a loop for successive subtractions up to negative." I’m using Gcc from…
assemblyasked Carlos Ferreira 39 -
0
votes1
answer232
viewsQ: Successive loops in Assembly
I am studying Assembly however I am very difficult, I have to solve an exercise but I did not understand what to do. "Loop successive subtractions to negative. load, sub." Can someone help me.…
assemblyasked Carlos Ferreira 39 -
-3
votes1
answer729
viewsQ: Bubble Sort improved
Although it has followed pseudocode correctly, the program is not ordering the array correctly. Why? #include <bits/stdc++.h> void bubbleSortM( int A[], int n ) { int i,j,aux; bool troca;…
casked Carlos Ferreira 39 -
0
votes2
answers2720
viewsQ: How can I measure the execution time of a program in c++?
I made a program that generates a vector randomly and then sorts it, using Bubble Sort, now I have to measure the time spent on sorting.
c++asked Carlos Ferreira 39 -
1
votes1
answer100
viewsQ: Application Bubble Sort with random vector
Guys someone can help me with this code, I have to use the Bubble Sort to sort a random vector of n positions, but I can’t solve the error. #include <bits/stdc++.h> using namespace std; const…
c++asked Carlos Ferreira 39 -
0
votes1
answer158
viewsQ: Function with template
Folks someone can help me. I have to do the following function below. Elaborate a function to return the highest value between two numbers, using template. The function should contain no more than…
c++asked Carlos Ferreira 39 -
0
votes1
answer899
viewsQ: Newton-Raphson algorithm
consider the Newton-Raphson algorithm for calculating the roots of the equation f(x)=0 with (0.5, 1 , 2 , 3.4556) for each initial x. f(X)=X 4-12X 3+47x 2-60X I made the same code as the algorithm,…