本文介绍了请给我解决方案以获得“和” _price"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我解决方案以获得_price





for(int i = 0; i< countrows; i ++)

{

BluetoothPrintDriver.LF();

BluetoothPrintDriver.Excute();

BluetoothPrintDriver.ImportData(_price [i]);

BluetoothPrintDriver.LF();

BluetoothPrintDriver.Excute();

BluetoothPrintDriver.ClearData();

}



我尝试过:



for(int i = 0; i< countrows; i ++)

{

BluetoothPrintDriver.LF();

BluetoothPrintDriver.Excute() ;

BluetoothPrintDriver.ImportData(_price [i]);

BluetoothPrintDriver.LF();

BluetoothPrintDr iver.Excute();

BluetoothPrintDriver.ClearData();

}

PLEASE GIVE ME SOLUTION TO GET SUM OF _price


for (int i = 0; i < countrows; i++)
{
BluetoothPrintDriver.LF();
BluetoothPrintDriver.Excute();
BluetoothPrintDriver.ImportData(_price[i]);
BluetoothPrintDriver.LF();
BluetoothPrintDriver.Excute();
BluetoothPrintDriver.ClearData();
}

What I have tried:

for (int i = 0; i < countrows; i++)
{
BluetoothPrintDriver.LF();
BluetoothPrintDriver.Excute();
BluetoothPrintDriver.ImportData(_price[i]);
BluetoothPrintDriver.LF();
BluetoothPrintDriver.Excute();
BluetoothPrintDriver.ClearData();
}

推荐答案

var sum = _price.Sum();

[]


这篇关于请给我解决方案以获得“和” _price&quot;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 22:48