<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Einlesemechanismus]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hab schon wieder ein Problem. Ich habe einen Einlesemechanismus bekommen und den soll ich jetzt auch für mein Programm benutzen, nur leider verstehe ich die Hälfte nicht.</p>
<pre><code class="language-cpp">counter=0;
	fscanf(dat_ein,&quot;%s&quot;,dummy);
	while ( (strcmp((const char*)(dummy),(const char*)&quot;.&quot;) != 0))
		{
 			fscanf(dat_ein,&quot;%s&quot;,Time[counter].Timechar);	
			fscanf(dat_ein,&quot;%s&quot;,dummy);
			counter++;
		}

////////////////////////////////////////////////////////
/* converts Time datatype to double */

	for (i=0;i&lt;30;i++)
	{
		Time[i].Timeidb= atof(Time[i].Timechar);
	}		
	////////////////////////////////////////////////////////

	/* Determine size of 'Merkmal'array  */ 

	 while (!feof(dat_ein))
	{
       fscanf(dat_ein,&quot;%s&quot;,dummy); 
	   maxLinesMerkmal++;
	}
    fclose(dat_ein);
    maxLinesMerkmal = maxLinesMerkmal/14 -1 ;	   //divides the read words by the words in a line  

    ////////////////////////////////////////////////////////
</code></pre>
<p>Meine Fragen:</p>
<p>Was bedeutet Zeile 24? Ich verstehe schon das irgendwas gesucht wird, aber was bedeutet diese ganze Klammer?</p>
<p>Was genau macht die erste While Schleife?</p>
<p>Was macht die While Schleife in Z. 59?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161993/einlesemechanismus</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 03:02:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161993.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Oct 2006 08:37:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Einlesemechanismus on Sat, 14 Oct 2006 13:43:43 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hab schon wieder ein Problem. Ich habe einen Einlesemechanismus bekommen und den soll ich jetzt auch für mein Programm benutzen, nur leider verstehe ich die Hälfte nicht.</p>
<pre><code class="language-cpp">counter=0;
	fscanf(dat_ein,&quot;%s&quot;,dummy);
	while ( (strcmp((const char*)(dummy),(const char*)&quot;.&quot;) != 0))
		{
 			fscanf(dat_ein,&quot;%s&quot;,Time[counter].Timechar);	
			fscanf(dat_ein,&quot;%s&quot;,dummy);
			counter++;
		}

////////////////////////////////////////////////////////
/* converts Time datatype to double */

	for (i=0;i&lt;30;i++)
	{
		Time[i].Timeidb= atof(Time[i].Timechar);
	}		
	////////////////////////////////////////////////////////

	/* Determine size of 'Merkmal'array  */ 

	 while (!feof(dat_ein))
	{
       fscanf(dat_ein,&quot;%s&quot;,dummy); 
	   maxLinesMerkmal++;
	}
    fclose(dat_ein);
    maxLinesMerkmal = maxLinesMerkmal/14 -1 ;	   //divides the read words by the words in a line  

    ////////////////////////////////////////////////////////
</code></pre>
<p>Meine Fragen:</p>
<p>Was bedeutet Zeile 24? Ich verstehe schon das irgendwas gesucht wird, aber was bedeutet diese ganze Klammer?</p>
<p>Was genau macht die erste While Schleife?</p>
<p>Was macht die While Schleife in Z. 59?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154065</guid><dc:creator><![CDATA[becks21]]></dc:creator><pubDate>Sat, 14 Oct 2006 13:43:43 GMT</pubDate></item><item><title><![CDATA[Reply to Einlesemechanismus on Fri, 13 Oct 2006 13:11:23 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Erstmal bist du hier im falschen Forum. Deine Frage gehört eigentlich in das AnsiC-Forum.<br />
1. fscanf in Zeile 24 liest aus der Datei &quot;input.txt&quot; die in der Parameterliste angegebenen Daten ein<br />
2. Die erste while Schleife liest solange ein bis in dummy ein . steht.<br />
BTW wo ist dummy eigentlich deklariert?<br />
3. Die liest solange ein bis in dummy &quot;Name&quot; steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154089</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 13 Oct 2006 13:11:23 GMT</pubDate></item><item><title><![CDATA[Reply to Einlesemechanismus on Sat, 14 Oct 2006 11:01:06 GMT]]></title><description><![CDATA[<p>zu 1. Was bedeuten denn immer diese %s oder %i?</p>
<p>zu 2. irgendwo vorher ist dummy deklariert in einer klasse, die hatte ich jetzt nicht mit reinkopiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154532</guid><dc:creator><![CDATA[becks21]]></dc:creator><pubDate>Sat, 14 Oct 2006 11:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to Einlesemechanismus on Sat, 14 Oct 2006 13:19:15 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>zu 1. Was bedeuten denn immer diese %s oder %i?</p>
</blockquote>
<p>Siehe zum Beispiel <a href="http://www.cppreference.com/stdio/printf.html" rel="nofollow">hier</a>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154620</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 14 Oct 2006 13:19:15 GMT</pubDate></item><item><title><![CDATA[Reply to Einlesemechanismus on Sat, 14 Oct 2006 13:42:34 GMT]]></title><description><![CDATA[<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154633</guid><dc:creator><![CDATA[becks21]]></dc:creator><pubDate>Sat, 14 Oct 2006 13:42:34 GMT</pubDate></item></channel></rss>