向量
不带STL的嵌入式系统(如arduino)的最小矢量实现
用法
# include < Arduino>
# include < Utils>
# include < Vector>
void setup ()
{
// put your setup code here, to run once:
Vector< int> v;
Utils::DBG ( " v size: " + String (v. Size ()));
v. Push ( 2 );
Utils::DBG ( " v size: " + String (v. Size ()));
v. Push ( 4 );
Utils::DBG ( " v size: " + String (v. Size ()));
for ( int i
2023-03-15 11:16:54
5KB
C++
1