ZogamNuam

Simple Algebaric Program.

with one comment

Visual C++ MFC (Microsoft Foundation Class)Radio Buttons

// m_wert1 und m_wert2 sind als CString definiert.
void CRadioButton_AlgebraicDlg::OnAddition()
{
// TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
UpdateData();
double Number1, Number2, Result;

// Evaluate the content of each operand edit box
if( m_Wert1.IsEmpty() )
Number1 = 0;
else
Number1 = atof(m_Wert1);

if( m_Wert2.IsEmpty() )
Number2 = 0;
else
Number2 = atof(m_Wert2);

Result = Number1 + Number2;
m_Ergebnis.Format("%.3f", Result);

UpdateData(FALSE);
}

Related posts:

  1. Simple Mysql Database Connection Class

Written by admin

April 22nd, 2006 at 7:21 pm

Posted in ICT

Tagged with ,

One Response to 'Simple Algebaric Program.'

Subscribe to comments with RSS or TrackBack to 'Simple Algebaric Program.'.

  1. Hmm, das ist viel zu einfach….

    Khaipi

    22 Apr 06 at 7:24 pm

Leave a Reply

Powered by Free CDN WordPress plugin

ZogamNuam is Digg proof thanks to caching by WP Super Cache