<?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[Benötige mal wieder n paar Tipps =)) ( UML )]]></title><description><![CDATA[<p>Morgen leudde...</p>
<p>wir haben jetzt eben von unserer Lehrerin den Auftrag bekommen den nachfolgenden Quellcode in UML umzuschreiben.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;
#include &lt;fstream.h&gt;
int satz_zahl = 0;
//***************************************************
// Basisklasse Adressen
struct adressen
   {
     	char name[50];
        char strasse[25];
      	char ort[25];
		char telefon[15];
		char telefax[15];
		char eMail[20];
    };
	 struct adressen adressdaten[10];
//***********************************************

//  Methoden zur Dateneingabe
//--------------------------------------------------
// Eingabe der Adressen
void adr_ein(int index)
 {
   printf( &quot;Achtung --&gt; Bitte keine Leerzeichen eingeben!\n&quot;); 

   printf(&quot;Name:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].name);
   printf( &quot;Strasse:\t&quot;);
    scanf(&quot;%s&quot;, &amp;adressdaten[index].strasse);
   printf( &quot;Ort:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].ort);
   printf( &quot;Telefon:\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].telefon);
   printf( &quot;Telefax:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].telefax);
   printf( &quot;eMail:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].eMail);
 }
//--------------------------------------------------
 // Adressdaten anzeigen lassen
void adr_zeig(int index)
 	{
	printf( &quot; Name:\t\t&quot;);
	printf(&quot;%s%s&quot;, adressdaten[index].name,&quot;\n&quot;) ;
   printf(  &quot;Strasse:\t&quot;);
   printf(&quot;%s%s&quot;, adressdaten[index].strasse ,&quot;\n&quot;);
   printf(  &quot;Ort:\t\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].ort ,&quot;\n&quot;);
   printf(  &quot;Telefon:\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].telefon ,&quot;\n&quot;);
   printf(  &quot;Telefax\t\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].telefax ,&quot;\n&quot;);
   printf(  &quot;eMail:\t\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].eMail ,&quot;\n&quot;);
 	}
//--------------------------------------------------
// Adressdaten lesen
   int adr_lesen()
   {
   fstream datei;
   datei.open(&quot;adress.dat&quot;, ios::in);
   datei &gt;&gt; satz_zahl;
printf(&quot;%s%i%s&quot;, &quot;In der Datei befinden sich &quot;, satz_zahl, &quot; Datens\x84tze\n&quot;);
   for (int i=0; i&lt;=satz_zahl; i++)
     {
     datei  &gt;&gt; adressdaten[i].name;
	datei  &gt;&gt; adressdaten[i].strasse;
   	datei  &gt;&gt; adressdaten[i].ort;
	datei  &gt;&gt; adressdaten[i].telefon;
	datei  &gt;&gt; adressdaten[i].telefax;
	datei  &gt;&gt; adressdaten[i].eMail;
     }
   datei.close();
   return satz_zahl;
   }
//--------------------------------------------------
// Adressdaten speichern
void adr_speicher()
 {
   fstream datei;
   datei.open(&quot;adress.dat&quot;, ios::out);
   datei &lt;&lt; satz_zahl &lt;&lt; endl;

   for (int i=0; i&lt;=satz_zahl; i++)
     {
     datei  &lt;&lt; adressdaten[i].name &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].strasse &lt;&lt; endl;
   	datei  &lt;&lt; adressdaten[i].ort &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].telefon &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].telefax &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].eMail &lt;&lt; endl;
     }
   datei.close();
   }
//**************************************************************
// Hauptfunktion
int main()
	{
	// Alle Daten aus der Datei in die Tabelle übernehmen
	adr_lesen();

	int wahl;
   do
   {
   	printf( &quot;Programm zur Adressverwaltung\n\n&quot;);
    printf( &quot; 1) Daten eingeben\n&quot;);
	printf( &quot; 2) Daten anzeigen\n&quot;);
	printf( &quot; 3) Programmende\n&quot;);
      cin &gt;&gt; wahl;

      switch(wahl)
      {
      case 1:
            {
            adr_ein(satz_zahl);
            satz_zahl++;
            break;
            }
      case 2:
       	   {
            int ind = 0;
            printf(&quot;%s%i%s&quot;, &quot;Welchen Datensatz zwischen 1 und &quot;,satz_zahl, &quot; m\x94&quot;);
		  printf(&quot;chten Sie sehen?  &quot;) ;
            scanf(&quot;%i&quot;, &amp;ind);
            adr_zeig(ind-1);
            break;
            }
       }

   }while (wahl != 3);
   adr_speicher();
   return 0;
	}
</code></pre>
<p>könnt ihr mir da vllt n bissel helfen, weiß gar nicht was sie meint...</p>
<p>wäre echt cool!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>mfg sunny</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147360/benötige-mal-wieder-n-paar-tipps-uml</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 08:56:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147360.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 May 2006 09:48:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 09:48:26 GMT]]></title><description><![CDATA[<p>Morgen leudde...</p>
<p>wir haben jetzt eben von unserer Lehrerin den Auftrag bekommen den nachfolgenden Quellcode in UML umzuschreiben.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;
#include &lt;fstream.h&gt;
int satz_zahl = 0;
//***************************************************
// Basisklasse Adressen
struct adressen
   {
     	char name[50];
        char strasse[25];
      	char ort[25];
		char telefon[15];
		char telefax[15];
		char eMail[20];
    };
	 struct adressen adressdaten[10];
//***********************************************

//  Methoden zur Dateneingabe
//--------------------------------------------------
// Eingabe der Adressen
void adr_ein(int index)
 {
   printf( &quot;Achtung --&gt; Bitte keine Leerzeichen eingeben!\n&quot;); 

   printf(&quot;Name:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].name);
   printf( &quot;Strasse:\t&quot;);
    scanf(&quot;%s&quot;, &amp;adressdaten[index].strasse);
   printf( &quot;Ort:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].ort);
   printf( &quot;Telefon:\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].telefon);
   printf( &quot;Telefax:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].telefax);
   printf( &quot;eMail:\t\t&quot;);
   scanf(&quot;%s&quot;, &amp;adressdaten[index].eMail);
 }
//--------------------------------------------------
 // Adressdaten anzeigen lassen
void adr_zeig(int index)
 	{
	printf( &quot; Name:\t\t&quot;);
	printf(&quot;%s%s&quot;, adressdaten[index].name,&quot;\n&quot;) ;
   printf(  &quot;Strasse:\t&quot;);
   printf(&quot;%s%s&quot;, adressdaten[index].strasse ,&quot;\n&quot;);
   printf(  &quot;Ort:\t\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].ort ,&quot;\n&quot;);
   printf(  &quot;Telefon:\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].telefon ,&quot;\n&quot;);
   printf(  &quot;Telefax\t\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].telefax ,&quot;\n&quot;);
   printf(  &quot;eMail:\t\t&quot;);
   printf(&quot;%s%s&quot;,adressdaten[index].eMail ,&quot;\n&quot;);
 	}
//--------------------------------------------------
// Adressdaten lesen
   int adr_lesen()
   {
   fstream datei;
   datei.open(&quot;adress.dat&quot;, ios::in);
   datei &gt;&gt; satz_zahl;
printf(&quot;%s%i%s&quot;, &quot;In der Datei befinden sich &quot;, satz_zahl, &quot; Datens\x84tze\n&quot;);
   for (int i=0; i&lt;=satz_zahl; i++)
     {
     datei  &gt;&gt; adressdaten[i].name;
	datei  &gt;&gt; adressdaten[i].strasse;
   	datei  &gt;&gt; adressdaten[i].ort;
	datei  &gt;&gt; adressdaten[i].telefon;
	datei  &gt;&gt; adressdaten[i].telefax;
	datei  &gt;&gt; adressdaten[i].eMail;
     }
   datei.close();
   return satz_zahl;
   }
//--------------------------------------------------
// Adressdaten speichern
void adr_speicher()
 {
   fstream datei;
   datei.open(&quot;adress.dat&quot;, ios::out);
   datei &lt;&lt; satz_zahl &lt;&lt; endl;

   for (int i=0; i&lt;=satz_zahl; i++)
     {
     datei  &lt;&lt; adressdaten[i].name &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].strasse &lt;&lt; endl;
   	datei  &lt;&lt; adressdaten[i].ort &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].telefon &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].telefax &lt;&lt; endl;
	datei  &lt;&lt; adressdaten[i].eMail &lt;&lt; endl;
     }
   datei.close();
   }
//**************************************************************
// Hauptfunktion
int main()
	{
	// Alle Daten aus der Datei in die Tabelle übernehmen
	adr_lesen();

	int wahl;
   do
   {
   	printf( &quot;Programm zur Adressverwaltung\n\n&quot;);
    printf( &quot; 1) Daten eingeben\n&quot;);
	printf( &quot; 2) Daten anzeigen\n&quot;);
	printf( &quot; 3) Programmende\n&quot;);
      cin &gt;&gt; wahl;

      switch(wahl)
      {
      case 1:
            {
            adr_ein(satz_zahl);
            satz_zahl++;
            break;
            }
      case 2:
       	   {
            int ind = 0;
            printf(&quot;%s%i%s&quot;, &quot;Welchen Datensatz zwischen 1 und &quot;,satz_zahl, &quot; m\x94&quot;);
		  printf(&quot;chten Sie sehen?  &quot;) ;
            scanf(&quot;%i&quot;, &amp;ind);
            adr_zeig(ind-1);
            break;
            }
       }

   }while (wahl != 3);
   adr_speicher();
   return 0;
	}
</code></pre>
<p>könnt ihr mir da vllt n bissel helfen, weiß gar nicht was sie meint...</p>
<p>wäre echt cool!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>mfg sunny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058698</guid><dc:creator><![CDATA[Sunnyboy2004]]></dc:creator><pubDate>Tue, 16 May 2006 09:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:01:11 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p><a href="http://de.wikipedia.org/wiki/UML" rel="nofollow">http://de.wikipedia.org/wiki/UML</a><br />
<a href="http://www.google.de" rel="nofollow">http://www.google.de</a></p>
<p>grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058709</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Tue, 16 May 2006 10:01:11 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:04:25 GMT]]></title><description><![CDATA[<p>hmmz... ja ist cool, hab ich mir schon durchgelesen, aber vllt. n beispiel wie ich das programmieren kann, wäre schon nett =))</p>
<p>mfg sunny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058712</guid><dc:creator><![CDATA[Sunnyboy2004]]></dc:creator><pubDate>Tue, 16 May 2006 10:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:16:15 GMT]]></title><description><![CDATA[<p>UML wird nicht programmiert. Mit UML kannst du z.B. die Klassen deines Programmes darstellen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058722</guid><dc:creator><![CDATA[EEK]]></dc:creator><pubDate>Tue, 16 May 2006 10:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:21:47 GMT]]></title><description><![CDATA[<p>UML ist eine grafische Sprache, also besteht aus Symbolen. Deshalb gibts das nichts zu &quot;programmieren&quot;. Im einfachsten Fall nimmste Bleistift und Linial und ein Blatt Papier. Wenns elektronisch sein soll, gibts UML-Programme... z.b. ArgoUML.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058730</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Tue, 16 May 2006 10:21:47 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:23:43 GMT]]></title><description><![CDATA[<p>heyy ja ich habe es versucht, war zwar schwer aber es funktioniert, trotzdem danke!!</p>
<p>mfg sunny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058731</guid><dc:creator><![CDATA[Sunnyboy2004]]></dc:creator><pubDate>Tue, 16 May 2006 10:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:26:18 GMT]]></title><description><![CDATA[<p>das lustige is ja noch das sie das selber nicht versteht also die lehrerin, sie nimmt bücher und zettel tzzzz...</p>
<p>naja falls noch mal was ist, meld ich mich nochmal =))</p>
<p>auf euch ist verlass!!!</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058735</guid><dc:creator><![CDATA[Sunnyboy2004]]></dc:creator><pubDate>Tue, 16 May 2006 10:26:18 GMT</pubDate></item><item><title><![CDATA[Reply to Benötige mal wieder n paar Tipps =)) ( UML ) on Tue, 16 May 2006 10:52:45 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058760</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 16 May 2006 10:52:45 GMT</pubDate></item></channel></rss>