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.

datei aus Matrix einlesen in c++

Empfohlene Antworten

hab alles mal so "verschönert". Hilft aber leider bei meinem eigentlichen Problem net weiter. Aber hast scho recht ist ein Kuddelmuddel.

iConstByteData ist 252 und size ist unterschiedlich groß. z.B. 86400.

hi zusammen,

musste mein File einlesen auf fread umstellen, leider funktioniert die If Abfrage net. Wenn er das File nicht findet springt er in keine der beiden If Abfragen. Jemand eine Idee.

Danke

fp = fopen( ss.str().c_str(), "r+b" );


	if(fp != NULL)

	{

		fread(sData, sizeof(char), 34000, fp);

			for(int a = 0; a < iNumberRecord; a++)

			{

				for(int b = 0; b < iNumberElevation; b++)

				{	

					iPos = iConstStartData + (b * 2) + (a * iConstByteData);  

					value = *( (short*)&sData[iPos] );	

					value = ((value & 0xff) << 8) | ((value & 0xff00) >> 8);

					yourArray[c] = value;			

					++c;

				}


			}

	}


	//if((fp = fopen( ss.str().c_str(), "r+b" )) == NULL) 

	if(fp == NULL)

	{

		for(c; c < iValue; c++)		

		{

			yourArray[c] = 0;

		}

	}

ah ich hab was gefunden erschließt mir das fp net deswegen steht immer etwas drin und er geht net in die untere if.

if(fp != NULL)

{

     fclose(fp);

}

wie könnte man das machen

sorry hat sich erledigt hab´s selbst hingekriegt

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.