MPU6050のサンプルプログラム2
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
Diff: Vector/Vector.cpp
- Revision:
- 3:5358a691a100
- Parent:
- 0:bc6f14fc60c7
- Child:
- 9:6d4578dcc1ed
--- a/Vector/Vector.cpp Sun May 24 17:44:11 2015 +0000 +++ b/Vector/Vector.cpp Sat May 30 18:08:34 2015 +0000 @@ -6,9 +6,7 @@ Vector::Vector(int dim) : dim(dim), components(0){ components = new float[dim]; if (!components) AbortWithMsg("Memory Allocation Error"); - for(int i=0; i<dim; i++) { - components[i] = 0.0f; - } + for(int i=0; i<dim; i++) components[i] = 0.0f; }