Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OOP in C++ (Für Anfänger)

Empfohlene Antworten

Veröffentlicht

Hallo


//---------------------------------------------------------------------------


#include <vcl.h>

#pragma hdrstop


#include "Unit1.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)

#pragma resource "*.dfm"

TForm1 *Form1;

//---------------------------------------------------------------------------

__fastcall TForm1::TForm1(TComponent* Owner)

        : TForm(Owner)

{

}

//---------------------------------------------------------------------------


void __fastcall TForm1::FormCreate(TObject *Sender)

{


}

//---------------------------------------------------------------------------


void __fastcall TForm1::EingabeChange(TObject *Sender)

{

cin>>a

}

//---------------------------------------------------------------------------

void __fastcall TForm1::AusgabeChange(TObject *Sender)

{

cout<<a

}

//---------------------------------------------------------------------------


Nun möchte ich z.B. das "a" in einem anderem Fenster ausgeben lassen wie muss ich das tuhen ?

Es ist ein "Edit" Feld.
Auf derselben Form oder auf einer anderen?

Ich bin kein VCL-Fachmann, aber das sieht dann vermutlich ungefähr so aus:

NameDerForm->NameDesTextfelds->Text = a;

Das sollte funktionieren, falls a direkt in einen String umwandelbar ist. Falls nicht, musst du das auch noch machen. Was a genau ist, hast du ja leider nicht erklärt.

  • Autor
Auf derselben Form oder auf einer anderen?

Ich bin kein VCL-Fachmann, aber das sieht dann vermutlich ungefähr so aus:

NameDerForm->NameDesTextfelds->Text = a;

Das sollte funktionieren, falls a direkt in einen String umwandelbar ist. Falls nicht, musst du das auch noch machen. Was a genau ist, hast du ja leider nicht erklärt.

Er soll die selbe Form haben, eines der Editfelder soll die Eingabe habe und das Andere die Ausgaben (fehlt noch ein Auslöser)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.