| |
| de:locomotive:aplicaciones:basic:input_sin_signo_de_interrogacion [2026/05/18 16:10] – creado jesus | de:locomotive:aplicaciones:basic:input_sin_signo_de_interrogacion [2026/05/18 16:13] (actual) – jesus |
|---|
| } | } |
| |
| /* Scanlines and flicker overlay */ | /* Scanlines und Flimmer-Effekt */ |
| .pcw-monitor-ultra::after { | .pcw-monitor-ultra::after { |
| content: " "; | content: " "; |
| @keyframes flickering { 0% { opacity: 0.98; } 100% { opacity: 1; } } | @keyframes flickering { 0% { opacity: 0.98; } 100% { opacity: 1; } } |
| |
| /* Retro Text Style (Green Glow) */ | /* Retro-Textstil (Grünes Leuchten) */ |
| .retro-text { | .retro-text { |
| color: #00ff00 !important; | color: #00ff00 !important; |
| @keyframes cursor-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } | @keyframes cursor-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } |
| |
| /* Internal section blocks */ | /* Interne Abschnittsblöcke */ |
| .pcw-section-box { | .pcw-section-box { |
| margin: 20px 0; | margin: 20px 0; |
| } | } |
| |
| /* Code block formatting */ | /* Quelltext-Formatierung */ |
| .pcw-code-box { | .pcw-code-box { |
| background-color: #000500; | background-color: #000500; |
| } | } |
| |
| /* Terminal style download list */ | /* Download-Liste im Terminal-Stil */ |
| .download-list { list-style-type: none; padding-left: 5px; margin: 0; display: inline-block; } | .download-list { list-style-type: none; padding-left: 5px; margin: 0; display: inline-block; } |
| .download-list li { margin: 10px 0; font-weight: bold; color: #00ff00; } | .download-list li { margin: 10px 0; font-weight: bold; color: #00ff00; } |
| | |
| /* --- RETRO LINK CONTROL RULES (ACTIVE / INACTIVE) --- */ | /* --- RETRO LINK CONTROL RULES (AKTIV / INAKTIV) --- */ |
| .dokuwiki .pcw-monitor-ultra .download-list a { | .dokuwiki .pcw-monitor-ultra .download-list a { |
| text-decoration: none !important; | text-decoration: none !important; |
| } | } |
| |
| /* 1. INACTIVE (Page not created): Forest / Matte Olive Green */ | /* 1. INAKTIV (Seite nicht erstellt): Mattes Waldgrün / Olivgrün */ |
| .dokuwiki .pcw-monitor-ultra .download-list a.wikilink2 { | .dokuwiki .pcw-monitor-ultra .download-list a.wikilink2 { |
| color: #88aa55 !important; | color: #88aa55 !important; |
| } | } |
| |
| /* 2. ACTIVE (Page created): Radioactive Neon Green */ | /* 2. AKTIV (Seite erstellt): Strahlendes Neongrün */ |
| .dokuwiki .pcw-monitor-ultra .download-list a.wikilink, | .dokuwiki .pcw-monitor-ultra .download-list a.wikilink, |
| .dokuwiki .pcw-monitor-ultra .download-list a:not(.wikilink2) { | .dokuwiki .pcw-monitor-ultra .download-list a:not(.wikilink2) { |
| |
| <div class="pcw-monitor-ultra"> | <div class="pcw-monitor-ultra"> |
| <div class="pcw-title-ultra retro-text"> A> INPUT WITHOUT QUESTION MARK </div> | <div class="pcw-title-ultra retro-text"> A> INPUT OHNE FRAGEZEICHEN </div> |
| |
| <!-- DESCRIPTION SECTION --> | <!-- BESCHREIBUNG ABSCHNITT --> |
| <div class="pcw-section-box"> | <div class="pcw-section-box"> |
| <div class="pcw-section-title">DESCRIPTION</div> | <div class="pcw-section-title">BESCHREIBUNG</div> |
| <div class="pcw-text-body"> | <div class="pcw-text-body"> |
| The BASIC <strong>INPUT</strong> statement is a useful way to ask questions and gather answers from the user while a program is running. For example, to ask someone for their name, you can use the program line: <strong>10 INPUT "Name ;";name$.</strong> When the program runs, <span style="color: #aaffaa;">Name?</span> is printed on the screen (notice that the question mark is automatically added), the system waits for the user to type their name and press [RETURN], and then stores the result in the <span style="color: #aaffaa;">name$</span> variable. However, there are some interesting variations you can apply to this method. | Die BASIC-Anweisung <strong>INPUT</strong> ist eine nützliche Methode, um Fragen zu stellen und Antworten vom Benutzer zu sammeln, während ein Programm ausgeführt wird. Um beispielsweise jemanden nach seinem Namen zu fragen, kann die folgende Programmzeile verwendet werden: <strong>10 INPUT "Name ;";name$.</strong> Wenn das Programm ausgeführt wird, erscheint <span style="color: #aaffaa;">Name?</span> auf dem Bildschirm (beachten Sie, dass das Fragezeichen automatisch hinzugefügt wird). Das System wartet, bis der Benutzer seinen Namen eingibt und [RETURN] drückt, und speichert das Ergebnis in der Variablen <span style="color: #aaffaa;">name$</span>. Es gibt jedoch einige interessante Variationen, die Sie bei dieser Methode anwenden können. |
| </div> | </div> |
| <div class="pcw-text-body"> | <div class="pcw-text-body"> |
| <strong>1.</strong> To prevent the question mark from automatically appearing at the end, use a <strong>comma</strong> instead of a semicolon right after the text enclosed in quotation marks. Thus, the instruction <strong>INPUT "Press <RETURN>",zzz</strong> displays 'Press <RETURN>' on the screen and waits for the user to do so. As a side effect, the variable zzz is assigned a value of zero, but you can simply ignore it. | <strong>1.</strong> Um zu verhindern, dass am Ende automatisch ein Fragezeichen erscheint, verwenden Sie ein <strong>Komma</strong> anstelle eines Semikolons direkt nach dem Text in Anführungszeichen. Die Anweisung <strong>INPUT "Bitte <RETURN> druecken",zzz</strong> zeigt somit 'Bitte <RETURN> druecken' auf dem Bildschirm an und wartet darauf, dass dies geschieht. Als Nebeneffekt erhält die Variable zzz den Wert Null, was jedoch einfach ignoriert werden kann. |
| </div> | </div> |
| <div class="pcw-text-body"> | <div class="pcw-text-body"> |
| <strong>2.</strong> To save the trouble of always having to press [RETURN], a different technique can be used. If you want to prompt the user to 'press any key to continue', you can use the lines provided in the source code listing. | <strong>2.</strong> Wenn Sie dem Benutzer die ständige Bestätigung mit [RETURN] ersparen möchten, kann eine andere Technik angewendet werden. Falls Sie dazu auffordern möchten, 'eine beliebige Taste zum Fortfahren zu druecken', können Sie die im Quelltext gezeigten Zeilen nutzen. |
| </div> | </div> |
| </div> | </div> |
| |
| <!-- SOURCE CODE SECTION --> | <!-- QUELLTEXT ABSCHNITT --> |
| <div class="pcw-section-box"> | <div class="pcw-section-box"> |
| <div class="pcw-section-title">SOURCE CODE</div> | <div class="pcw-section-title">QUELLTEXT</div> |
| <div class="pcw-code-box">10 zzz$="" | <div class="pcw-code-box">10 zzz$="" |
| 20 PRINT "Press any key to continue" | 20 PRINT "Bitte eine beliebige Taste druecken" |
| 30 WHILE zzz$ ="" | 30 WHILE zzz$ ="" |
| 40 zzz$ = INKEY$ | 40 zzz$ = INKEY$ |
| </div> | </div> |
| |
| <!-- DOWNLOAD SECTION --> | <!-- DOWNLOAD ABSCHNITT --> |
| <div class="pcw-section-box"> | <div class="pcw-section-box"> |
| <div class="pcw-section-title">DIGITAL FILE</div> | <div class="pcw-section-title">DIGITALE DATEI</div> |
| <ul class="download-list"> | <ul class="download-list"> |
| <li> | <li> |
| <span style="color: #008800; margin-right: 5px;">[#]</span></html>[[:locomotive:aplicaciones:descargas:insinint.zip|INPUT without question mark]]<html><span style="color: #008800; font-weight: normal; font-size: 0.9em;"> (.DSK format program compressed in ZIP)</span> | <span style="color: #008800; margin-right: 5px;">[#]</span></html>[[:locomotive:aplicaciones:descargas:insinint.zip|Eingabe ohne Fragezeichen (INPUT)]]<html><span style="color: #008800; font-weight: normal; font-size: 0.9em;"> (Programm im .DSK-Format, als ZIP komprimiert)</span> |
| </li> | </li> |
| </ul> | </ul> |