<?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[Weiterverwendung von Daten]]></title><description><![CDATA[<p>Hallo zusammen<br />
ich habe mit den folgendem Script Daten gespeichert</p>
<p>...</p>
<p>void neuer()<br />
{<br />
struct compactstruct<br />
{<br />
char cname[10], cvname[20];<br />
}com[16];</p>
<p>int ix, i ;<br />
char ctaste,iy=0;<br />
char einstring[80],*endptr;</p>
<p>FILE*stream;<br />
stream=fopen(&quot;C:\\neu.dat&quot;,&quot;rb&quot;);<br />
fread(&amp;com,sizeof(com),1,stream);<br />
fclose(stream);</p>
<p>clrscr();</p>
<p>do{<br />
clrscr();</p>
<p>cout&lt;&lt;&quot; hallo, wollen Sie einen neuen Eintrag vornehmen? Y/N&quot;&lt;&lt;endl;<br />
cin&gt;&gt;ctaste;</p>
<p>if (ctaste=='Y'||ctaste=='y')<br />
{<br />
clrscr();<br />
cout&lt;&lt;&quot;index eingeben&quot;&lt;&lt;endl;<br />
cin&gt;&gt;einstring;</p>
<p>ix=strtod(einstring,&amp;endptr);</p>
<p>if (*endptr!=0)<br />
{ iy++;<br />
clrscr();<br />
cout&lt;&lt;&quot;nur ziffern eingeben-Enter fuer weiter&quot;&lt;&lt;endl;<br />
getch();<br />
//for(int I=0;i&lt;211111111;i=i+1);</p>
<p>if (iy&gt;3)<br />
{cout&lt;&lt;&quot;sie Verdammter Idiot, sie muessen schon eine Zahl eingeben&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;ansonsten sitzen wir hier morgen noch&quot;&lt;&lt;endl;<br />
getch();<br />
// for(int I=0;i&lt;111111111;i=i+1);<br />
}<br />
}</p>
<p>if (<em>endptr==0)<br />
{<br />
cout&lt;&lt;&quot;Eingabefeld&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Bitte Daten eingeben&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Nachname&quot;&lt;&lt;endl;<br />
cin&gt;&gt;com[ix].cname;<br />
cout&lt;&lt;&quot;Vorname&quot;&lt;&lt;endl;<br />
cin&gt;&gt;com[ix].cvname;<br />
FILE</em>stream;<br />
stream=fopen(&quot;C:\\neu.dat&quot;,&quot;wb&quot;);<br />
fwrite(&amp;com,sizeof(com),1,stream);<br />
fclose(stream);<br />
clrscr();<br />
continue;<br />
}<br />
}<br />
}while (ctaste=='Y'||ctaste=='y');<br />
...<br />
gibt es eine Möglichkeit diese daten in z.b Exeldatei einfließen zu lassen?<br />
Wenn ja muß ich einfach ein anderes Datenformat wählen (anstatt .dat)?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/144341/weiterverwendung-von-daten</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 14:50:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/144341.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Apr 2006 12:22:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Weiterverwendung von Daten on Mon, 17 Apr 2006 12:22:17 GMT]]></title><description><![CDATA[<p>Hallo zusammen<br />
ich habe mit den folgendem Script Daten gespeichert</p>
<p>...</p>
<p>void neuer()<br />
{<br />
struct compactstruct<br />
{<br />
char cname[10], cvname[20];<br />
}com[16];</p>
<p>int ix, i ;<br />
char ctaste,iy=0;<br />
char einstring[80],*endptr;</p>
<p>FILE*stream;<br />
stream=fopen(&quot;C:\\neu.dat&quot;,&quot;rb&quot;);<br />
fread(&amp;com,sizeof(com),1,stream);<br />
fclose(stream);</p>
<p>clrscr();</p>
<p>do{<br />
clrscr();</p>
<p>cout&lt;&lt;&quot; hallo, wollen Sie einen neuen Eintrag vornehmen? Y/N&quot;&lt;&lt;endl;<br />
cin&gt;&gt;ctaste;</p>
<p>if (ctaste=='Y'||ctaste=='y')<br />
{<br />
clrscr();<br />
cout&lt;&lt;&quot;index eingeben&quot;&lt;&lt;endl;<br />
cin&gt;&gt;einstring;</p>
<p>ix=strtod(einstring,&amp;endptr);</p>
<p>if (*endptr!=0)<br />
{ iy++;<br />
clrscr();<br />
cout&lt;&lt;&quot;nur ziffern eingeben-Enter fuer weiter&quot;&lt;&lt;endl;<br />
getch();<br />
//for(int I=0;i&lt;211111111;i=i+1);</p>
<p>if (iy&gt;3)<br />
{cout&lt;&lt;&quot;sie Verdammter Idiot, sie muessen schon eine Zahl eingeben&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;ansonsten sitzen wir hier morgen noch&quot;&lt;&lt;endl;<br />
getch();<br />
// for(int I=0;i&lt;111111111;i=i+1);<br />
}<br />
}</p>
<p>if (<em>endptr==0)<br />
{<br />
cout&lt;&lt;&quot;Eingabefeld&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Bitte Daten eingeben&quot;&lt;&lt;endl;<br />
cout&lt;&lt;&quot;Nachname&quot;&lt;&lt;endl;<br />
cin&gt;&gt;com[ix].cname;<br />
cout&lt;&lt;&quot;Vorname&quot;&lt;&lt;endl;<br />
cin&gt;&gt;com[ix].cvname;<br />
FILE</em>stream;<br />
stream=fopen(&quot;C:\\neu.dat&quot;,&quot;wb&quot;);<br />
fwrite(&amp;com,sizeof(com),1,stream);<br />
fclose(stream);<br />
clrscr();<br />
continue;<br />
}<br />
}<br />
}while (ctaste=='Y'||ctaste=='y');<br />
...<br />
gibt es eine Möglichkeit diese daten in z.b Exeldatei einfließen zu lassen?<br />
Wenn ja muß ich einfach ein anderes Datenformat wählen (anstatt .dat)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1039015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1039015</guid><dc:creator><![CDATA[FrankS]]></dc:creator><pubDate>Mon, 17 Apr 2006 12:22:17 GMT</pubDate></item><item><title><![CDATA[Reply to Weiterverwendung von Daten on Mon, 17 Apr 2006 12:35:43 GMT]]></title><description><![CDATA[<p>dei endung einr datei ist egal<br />
z.b. eine .exe kann auch .dat heisen... (nur windoof erkennt dann die exe nimma)<br />
eine .scr kann auch .exe heisen...<br />
eine .txt kan auch rtf heisen...</p>
<p>es kommt darauf an WIe man den inhalt intepreiert und NICHT auf die EXTENSION<br />
...<br />
bsp.:<br />
du hast ein spiel un speicherst die daten im ini format in einer datei mit der endunf .exe<br />
dann ist es imma noch ne ini und kein PE .exe!!!!<br />
und ne exe aus deine daten zu erstelen müsstest du dir ne compiler schreiben ode iene benutzen....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1039020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1039020</guid><dc:creator><![CDATA[branleb]]></dc:creator><pubDate>Mon, 17 Apr 2006 12:35:43 GMT</pubDate></item><item><title><![CDATA[Reply to Weiterverwendung von Daten on Tue, 18 Apr 2006 04:55:22 GMT]]></title><description><![CDATA[<p>Und was heißt das jetzt für mich? Muß ich das script soweit ändern das ich eine Endung z.b .xls nehme und somit lassen sich die Daten weiter verarbeiten? Wenn ja, Wie?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1039429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1039429</guid><dc:creator><![CDATA[FrankS]]></dc:creator><pubDate>Tue, 18 Apr 2006 04:55:22 GMT</pubDate></item><item><title><![CDATA[Reply to Weiterverwendung von Daten on Tue, 18 Apr 2006 05:46:29 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Schau dir hierzu die Formatspezifikation an, diese findest du unter: <a href="http://www.wotsit.org/" rel="nofollow">http://www.wotsit.org/</a></p>
<p>grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1039439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1039439</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Tue, 18 Apr 2006 05:46:29 GMT</pubDate></item></channel></rss>