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.

Empfohlene Antworten

Veröffentlicht

Guten Morgen an alle :)

ich muss den DIR Befehl nachprogrammieren und hab jetzt nur noch ein kleines Problem...

Hier ist erst mal der Code um den es geht.

if(fd.nFileSizeLow==0)

			{

				_tprintf(_T("\t "));

				i++;

			}

			else 

			{

				_tprintf(_T("%d "), fd.nFileSizeLow);

				r++;

			}

es geht um den 2. Teil nach dem else ;)

Die Frage ist jetzt wie bekomm ich als ausgabe statt z.B. 14384 die Zahl 14.384??

Bin noch neu hier... Kann mir jemand helfen!?

Vielen Dank schon im vorraus :)

Schönen Tag wünsch ich euch allen...

lg

_Faby_

  • Autor

Tut mir Leid wenn ich mich recht doof anstelle aber ich verstehs nicht warum ich jetzt sprintf statt printf verwenden soll... bzw wie ich des Format richig ändern kann... :( ich steh heute echt aufm Schlauch...

  • Autor

Jup ich wollte Tausenderzeichen haben :) hab ich jetzt auch :D habs selber geschafft...

if(fd.nFileSizeLow==0)

{

	_tprintf(_T("\t "));

}

else 

{

	int f = fd.nFileSizeLow/1000;

	m++;

	if(f > 1000)

		{

			m++;

			f = f/1000;

			printf("%d", f);

			f = fd.nFileSizeLow/1000-1000*f;

			printf(".%3d", f);

		}

	else printf("%5d", f);

	int k=0;

	if(k<=m && m>0)

	{

		k++;

		int i = fd.nFileSizeLow%1000;

		printf(".%03d   ", i);

	}

}

:uli bin grad sehr stolz auf mich selbst^^

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.