¼òµ¥¼ÆËãÆ÷c++¿Î³ÌÉè¼Æ½²½â ÏÂÔØ±¾ÎÄ

37

}

}

}

if(rate==10.0) { } else { }

itemp=itemp+rate*(m_str.GetAt(i)-'0'); rate=rate/10;

if(i==m_str.GetLength()-1)

a=itemp;

itemp=itemp*rate+(m_str.GetAt(i)-'0'); if(i==m_str.GetLength()-1)

a=itemp;

else if(m_str.GetAt(i)=='.')

rate=0.1;

if(a==0)

MessageBox(\²»ÄÜÈ¡¶ÔÊý!\

else a=log10(a);

m_str.Format(\pass1=0;

UpdateData(FALSE);

10¡¢Ãݹ¦ÄܵÄʵÏÖ

void CLuxiaoyingDlg::OnMiButton22() {

// TODO: Add your control notification handler code here

37 1

38

double a,k,itemp=0,rate=10.0; int i;

UpdateData(TRUE);

for(i=0;i

for(i=0;i

m_str.Format(\

38 1

if(isdigit(m_str.GetAt(i))) { }

else if(m_str.GetAt(i)=='.')

rate=0.1; if(rate==10.0) { } else { }

itemp=itemp+rate*(m_str.GetAt(i)-'0'); rate=rate/10;

if(i==m_str.GetLength()-1)

a=itemp;

itemp=itemp*rate+(m_str.GetAt(i)-'0'); if(i==m_str.GetLength()-1)

a=itemp;

39

}

pass1=0;

UpdateData(FALSE);

11¡¢Õý¸º¹¦ÄܵÄʵÏÖ

void CLuxiaoyingDlg::OnOrButton11() {

// TODO: Add your control notification handler code here double itemp=0,rate=10.0,a; int i;

UpdateData(TRUE);

for(i=0;i

if(isdigit(m_str.GetAt(i))) { }

else if(m_str.GetAt(i)=='.')

39 1

if(rate==10.0) { } else { }

itemp=itemp+rate*(m_str.GetAt(i)-'0'); rate=rate/10;

if(i==m_str.GetLength()-1)

a=itemp;

itemp=itemp*rate+(m_str.GetAt(i)-'0'); if(i==m_str.GetLength()-1)

a=itemp;

40

}

}

rate=0.1;

a=-a;

m_str.Format(\ pass1=0;

UpdateData(FALSE);

12¡¢sin¹¦ÄܵÄʵÏÖ

void CLuxiaoyingDlg::OnSinButton24() {

// TODO: Add your control notification handler code here double a,itemp=0,rate=10.0; int i;

UpdateData(TRUE);

for(i=0;i

if(isdigit(m_str.GetAt(i))) {

if(rate==10.0) { } else {

itemp=itemp+rate*(m_str.GetAt(i)-'0'); rate=rate/10;

if(i==m_str.GetLength()-1)

40 1

itemp=itemp*rate+(m_str.GetAt(i)-'0'); if(i==m_str.GetLength()-1)

a=itemp;