I dont think there is a problem with sharing resources for learning instead of pointing to google.
Here is two websites i know of, both have no solutions though from what i know? The 2nd link i...
Type: Posts; User: wufflz
I dont think there is a problem with sharing resources for learning instead of pointing to google.
Here is two websites i know of, both have no solutions though from what i know? The 2nd link i...
I checked, its possible to change to warning lvl of the compiler (it was on 3) next step is 4 and then enable all warnings.
I tried both (with the missing %i) but it didnt show any warnings.
I think my compiler warnings are on, im using Visual Studio 2019 (havent changed any of the settings).
I also debugged but that didnt show anything either.
The problem was this: (my code without...
oh my god, your right. It didnt even cross my mind (nor my eyes) to look at that.
Now it works properly, thanks for point that out to me.
I do the input with scanf in another void function:
void einlesen(int* array, int länge){
for (int i = 0; i < länge; i++)
{
printf("Gib hier einen Wert ein");
...
by the way, i used this as a template(?) for my code, (its from the german wiki)
bubbleSort(ArrayA) for (n=A.size; n>1; --n){
for (i=0; i<n-1; ++i){
if (A > A+[/COLOR]1]){
...
I dont think its the code for the bubble sort algorithm thats wrong. I changed mine to match yours to check if that was the problem, but the output is still : 1 2 3 4 5
It doesnt sort my input but...
Hello,
i need some help understand what im doing wrong. Please point me in the right direction.
i will just post the relevant code:
main function with :
int main()
{