问题描述
请给我解决方案以获得_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"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!