分析Excel代码

扫码查看
本文介绍了分析Excel代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在excel中有一个代码,需要将其转换为c ++.我不明白循环.如果有人可以帮忙,那将是很棒的事情!

Hello all,

I have a code in excel, which I need to convert into c++. I cant understand the looping. If anybody can help, that would b great!

=IF((C6-A6)>0, IF((D6-B6)>0,ATAN((C6-A6)/(D6-B6))*180/PI(),180+ATAN((C6-A6)/(D6-B6))*180/PI()),IF((D6-B6)>0,360+ATAN((C6-A6)/(D6-B6))*180/PI(),180+ATAN((C6-A6)/(D6-B6))*180/PI()))





for ease of understanding I have split these into lines :
=IF((C6-A6)>0,
IF((D6-B6)>0,
ATAN((C6-A6)/(D6-B6))*180/PI(),
180+ATAN((C6-A6)/(D6-B6))*180/PI()),
IF((D6-B6)>0,
360+ATAN((C6-A6)/(D6-B6))*180/PI(),
180+ATAN((C6-A6)/(D6-B6))*180/PI()))



我不明白为什么会有两个"If"语句...



I don''t understand why is there two "If" statements...

推荐答案

if( Cond1 ....)
  if( Cond2 ....)


这篇关于分析Excel代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 21:39
查看更多