Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

bubble sort mit namen !

Empfohlene Antworten

Veröffentlicht

hi mein code:

#include <vcl.h>

#include <conio.h>

#include <iostream.h>

#pragma hdrstop

//---------------------------------------------------------------------------

#pragma argsused

int main(int argc, char* argv[])

{

int a[10]={6,4,570,7,3,-12,9,33,2,1},i=0,s=0,flag,n=10,anz=0;

do {

flag=0;

anz++;

for (i=0;i<n-anz;++i)

if (a > a [i+1] )

s=a;

a=a[i+1];

a[i+1]=s;

flag=1;

}

while (flag==1);

for (i=0;i<n;++i)

{

cout << a << "\n";

}

getch();

return 0;

}

das was ihr seht ist bubble sort mit integer , nun es soll aber namen suchen ? was muss geändert werden

mfg munar

danke für jede antwort im voraus !

Schau doch bitte mal auf

http://www.pronix.de

Ich denke, dass Dir da geholfen werden kann.

Cya

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.