<?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[Editieren]]></title><description><![CDATA[<p>Hi Leute,<br />
ist es möglich bei der Eingabe schon etwas vorzugeben so wie hier in html:</p>
<pre><code class="language-html">&lt;input type=&quot;text&quot; name=&quot;&quot; size=&quot;10&quot; value=&quot;test&quot;/&gt;
</code></pre>
<p>Gruß Gary</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/224163/editieren</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 17:32:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/224163.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Oct 2008 14:23:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 14:31:43 GMT]]></title><description><![CDATA[<p>Hi Leute,<br />
ist es möglich bei der Eingabe schon etwas vorzugeben so wie hier in html:</p>
<pre><code class="language-html">&lt;input type=&quot;text&quot; name=&quot;&quot; size=&quot;10&quot; value=&quot;test&quot;/&gt;
</code></pre>
<p>Gruß Gary</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594246</guid><dc:creator><![CDATA[gary1195]]></dc:creator><pubDate>Mon, 06 Oct 2008 14:31:43 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 14:24:45 GMT]]></title><description><![CDATA[<p>Bei welcher Eingabe? Du musst konkreter werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594249</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 06 Oct 2008 14:24:45 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 14:34:11 GMT]]></title><description><![CDATA[<p>Ich möchte wissen ob das überhaupt geht und wenn wie.</p>
<p>hier noch einmal in html</p>
<pre><code class="language-html">Name:&lt;input type=&quot;text&quot; size=&quot;10&quot; value=&quot;Hans&quot;/&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1594255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594255</guid><dc:creator><![CDATA[gary1195]]></dc:creator><pubDate>Mon, 06 Oct 2008 14:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 14:32:38 GMT]]></title><description><![CDATA[<p>Ja. Ähnlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594257</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594257</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Mon, 06 Oct 2008 14:32:38 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 14:57:45 GMT]]></title><description><![CDATA[<p>Falls du eine Windows-Editbox meinst (hört sich für mich so an), kannst du natürlich problemlos Schriftgröße und einen vorgegebenen Inhalt zuweisen (dann wärst du aber im falschen Forum).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594284</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 06 Oct 2008 14:57:45 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 15:00:33 GMT]]></title><description><![CDATA[<p>Das Problem ist das es sich um eine Konsolen-Anwendung handelt.<br />
Deswegen kann ich keine Editbox gebrauchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594286</guid><dc:creator><![CDATA[gary1195]]></dc:creator><pubDate>Mon, 06 Oct 2008 15:00:33 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 15:52:54 GMT]]></title><description><![CDATA[<p>Du solltest vielleicht mal genauer werden, was dein Problem ist! Ich verstehe jedenfalls nur Bahnhof was du willst.<br />
Also, was ist das Problem, was möchtest du erreichen und wofür möchtest du das haben, in welcher Umgebung, mit welchen Mitteln?</p>
<p>Dein Beispiel ist eine Editbox in HTML, doch wie du es sagst, gibt es die nicht in der Konsole. Wieso zeigst du uns ein Beispiel von einer Editbox, wenn du keine verwendest? Bisschen verwirrend, nicht? <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>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594327</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594327</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Mon, 06 Oct 2008 15:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 16:01:43 GMT]]></title><description><![CDATA[<p>ich denke mal er will erreichen, dass man bei einer Eingabe in der Konsole maximal x Zeichen eingeben kann</p>
<p>Meine Antwort: selbst wenn es möglich wäre: lass es</p>
<p>Die Begrenzung auf 10 Zeichen kannst du im Code festlegen indem du einfach alles andere abschneidest. Auch die Vorbelegung mit einem Wert ist im Code selber besser aufgehoben</p>
<p>eine solche Funktion könnte so aussehen:</p>
<pre><code class="language-cpp">std::string getInputString( std::string default, int maxLength )
{
    std::string ret;
    std::cin &gt;&gt; ret;

    if ( ret.empty() )
        return default;

    return ret.substr( 0, maxLength );
}
</code></pre>
<p>und schon hast du deine Edit-Box</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594339</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594339</guid><dc:creator><![CDATA[zwutz]]></dc:creator><pubDate>Mon, 06 Oct 2008 16:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 17:08:10 GMT]]></title><description><![CDATA[<p>zwutz schrieb:</p>
<blockquote>
<p>eine solche Funktion könnte so aussehen:</p>
<pre><code class="language-cpp">std::string getInputString( std::string default, int maxLength )
</code></pre>
</blockquote>
<p>Wenn man noch die reservierten Schlüsselwörter ersetzt, könnte es hinkommen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594382</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Mon, 06 Oct 2008 17:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Mon, 06 Oct 2008 18:29:53 GMT]]></title><description><![CDATA[<p>In der ansonsten prozeduralen Sprache CA-Clipper gab es einige &quot;windows-ähnliche&quot; Eingabe-Klassen, unter anderem auch eine Editbox, und das für DOS. Dort konnte man alles einstellen, was dein Herz wahrscheinlich begehrt (maximale Länge, Formatmaske, Farbe, ...). Du könntest ja etwas Ähnliches in C++ nachbilden. Das war mal mein erstes C++-Projekt (Berufsschule), den Source habe ich aber nicht mehr. Oder mach's dir einfach und nimm einfach Clipper! Ist dann aber ein echtes 16-Bit-Programm... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1594420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1594420</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 06 Oct 2008 18:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to Editieren on Thu, 09 Oct 2008 07:37:43 GMT]]></title><description><![CDATA[<p>Bei FORTRAN-Compilern war es üblich, die Eingaben gleich mit einer Zuweisung auf Variable und mit Typ- und Formatierungsangaben zu versehen. So etwas scheinst Du zu suchen? Wenn ich Deine Aufgabe präziser wüsste, kann ich auch für C/C++ weiterhelfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1596021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1596021</guid><dc:creator><![CDATA[berniebutt]]></dc:creator><pubDate>Thu, 09 Oct 2008 07:37:43 GMT</pubDate></item></channel></rss>