<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
		<id>http://old.ethersex.de/index.php?action=history&amp;feed=atom&amp;title=Dateneingabe</id>
		<title>Dateneingabe - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="http://old.ethersex.de/index.php?action=history&amp;feed=atom&amp;title=Dateneingabe"/>
		<link rel="alternate" type="text/html" href="http://old.ethersex.de/index.php?title=Dateneingabe&amp;action=history"/>
		<updated>2026-04-05T23:13:05Z</updated>
		<subtitle>Versionsgeschichte dieser Seite in Ethersex_Wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://old.ethersex.de/index.php?title=Dateneingabe&amp;diff=61&amp;oldid=prev</id>
		<title>Stesie: Kategorie zugewiesen</title>
		<link rel="alternate" type="text/html" href="http://old.ethersex.de/index.php?title=Dateneingabe&amp;diff=61&amp;oldid=prev"/>
				<updated>2009-03-27T18:20:49Z</updated>
		
		<summary type="html">&lt;p&gt;Kategorie zugewiesen&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 27. März 2009, 18:20 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot; &gt;Zeile 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;danach (zum Beispiel mit ''fgets'') eine Zeile lesen willst, liest diese&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;danach (zum Beispiel mit ''fgets'') eine Zeile lesen willst, liest diese&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;erstmal das return von vorher. Dann gilt nur: ''happy debugging'' :-)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;erstmal das return von vorher. Dann gilt nur: ''happy debugging'' :-)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Zerties/C-Kurs]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Stesie</name></author>	</entry>

	<entry>
		<id>http://old.ethersex.de/index.php?title=Dateneingabe&amp;diff=60&amp;oldid=prev</id>
		<title>Stesie: Seite importiert.</title>
		<link rel="alternate" type="text/html" href="http://old.ethersex.de/index.php?title=Dateneingabe&amp;diff=60&amp;oldid=prev"/>
				<updated>2009-03-27T18:19:59Z</updated>
		
		<summary type="html">&lt;p&gt;Seite importiert.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Dieser Text ist auf Grund Anfrage (per E-Mail) von Andy entstanden, ich habe ihn hierher kopiert, nachdem er vermutlich auch für andere interessant ist ...&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
'''Wie kann ich über Eingaben im Zahlenbereich Int./float eingeben, bzw. die Strings umwandeln ??'''&lt;br /&gt;
&lt;br /&gt;
Strings einlesen hast du schon?&lt;br /&gt;
&lt;br /&gt;
Am sinnvollsten ist es meines Erachtens, die als Textzeilen&lt;br /&gt;
eingelesenen Strings dann in Zahlen umzuwandeln. Dazu seien&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;| NAME&lt;br /&gt;
|        atoi, atol, atoll, atoq - convert a string to an integer&lt;br /&gt;
|&lt;br /&gt;
| SYNOPSIS&lt;br /&gt;
|        #include &amp;amp;lt;stdlib.h&amp;amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|        int atoi(const char *nptr);&lt;br /&gt;
|        long atol(const char *nptr);&lt;br /&gt;
|        long long atoll(const char *nptr);&lt;br /&gt;
|        long long atoq(const char *nptr);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
empfohlen. &lt;br /&gt;
&lt;br /&gt;
Um einen float zu erhalten, solltest du ''strtod'' (siehe manpage)&lt;br /&gt;
verwenden. Alternativ auch ''strtof'' (erzeugt einen float), letzteres&lt;br /&gt;
ist allerdings nur eine Erweiterung der GNU C-Standardbibliothek.&lt;br /&gt;
&lt;br /&gt;
Wenn du direkt Zahlen vom Benutzer (bzw. aus Dateien) lesen willst,&lt;br /&gt;
kannst du zum Beispiel ''scanf'' (bzw. ''fscanf'') verwenden:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;=== SCHNIPP ===&lt;br /&gt;
int &lt;br /&gt;
main(void) {&lt;br /&gt;
        int wert;&lt;br /&gt;
        scanf(&amp;amp;quot;%d&amp;amp;quot;, &amp;amp;amp;wert);&lt;br /&gt;
        printf(&amp;amp;quot;Sie haben %d eingegeben.&amp;amp;quot;, wert);&lt;br /&gt;
        return 0;&lt;br /&gt;
}&lt;br /&gt;
=== SCHNAPP ===&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
... ''scanf'' hat in dieser Form allerdings den Nachteil, dass es nur&lt;br /&gt;
die eigenen Zeichen tatsächlich liest und &amp;amp;quot;verbraucht&amp;amp;quot;. Das heißt,&lt;br /&gt;
dass das eingegebene Zeichen zum Abschluss der Zahleneingabe&lt;br /&gt;
(regelmäßig also ein ENTER), noch in der Eingabe stehen. Wenn du&lt;br /&gt;
danach (zum Beispiel mit ''fgets'') eine Zeile lesen willst, liest diese&lt;br /&gt;
erstmal das return von vorher. Dann gilt nur: ''happy debugging'' :-)&lt;/div&gt;</summary>
		<author><name>Stesie</name></author>	</entry>

	</feed>