[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua post Array to C/C++.
- From: lin_style <0xtiger2009@...>
- Date: Tue, 22 Mar 2011 15:49:10 +0800
function SpilteArray(Array)
--nCount = Array[0];
return 1,2,3,4 //is ok
/*
how auto do it?
for example, Array has 4 element.
return Array[1], Array[2], Array[3], Array[4]
*/
end
TestArray={3,2,3,4}
sum = Average(SpilteArray(TestArray)) //Average is C++ function.