Replace use of deprecated C Standard library headers in C++ code.

Change-Id: I9fa6630c7e4bdb2897df34d417635d8c7d8253bc
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/y2014/actors/autonomous_actor.cc b/y2014/actors/autonomous_actor.cc
index 7d1eb3f..a78ab4b 100644
--- a/y2014/actors/autonomous_actor.cc
+++ b/y2014/actors/autonomous_actor.cc
@@ -1,8 +1,7 @@
 #include "y2014/actors/autonomous_actor.h"
 
-#include <stdio.h>
-
 #include <chrono>
+#include <cstdio>
 #include <memory>
 
 #include "aos/actions/actions.h"
@@ -272,7 +271,8 @@
     const double kSelectorStep = (kSelectorMax - kSelectorMin) / 3.0;
     if (auto_mode_fetcher_->voltage() < kSelectorStep + kSelectorMin) {
       auto_version = AutoVersion::kSingleHot;
-    } else if (auto_mode_fetcher_->voltage() < 2 * kSelectorStep + kSelectorMin) {
+    } else if (auto_mode_fetcher_->voltage() <
+               2 * kSelectorStep + kSelectorMin) {
       auto_version = AutoVersion::kStraight;
     } else {
       auto_version = AutoVersion::kDoubleHot;
@@ -331,7 +331,7 @@
   if (auto_version == AutoVersion::kDoubleHot) {
     if (ShouldCancel()) return true;
     StartDrive(0, first_shot_left ? kTurnAngle : -kTurnAngle,
-                 drive_with_ball_params, kFastTurn);
+               drive_with_ball_params, kFastTurn);
     WaitForDriveProfileDone();
     if (ShouldCancel()) return true;
   } else if (auto_version == AutoVersion::kSingleHot) {
diff --git a/y2014/actors/autonomous_actor_main.cc b/y2014/actors/autonomous_actor_main.cc
index 871933b..1a3b97e 100644
--- a/y2014/actors/autonomous_actor_main.cc
+++ b/y2014/actors/autonomous_actor_main.cc
@@ -1,4 +1,4 @@
-#include <stdio.h>
+#include <cstdio>
 
 #include "aos/events/shm_event_loop.h"
 #include "aos/init.h"
diff --git a/y2014/actors/shoot_actor_main.cc b/y2014/actors/shoot_actor_main.cc
index a28e9a2..ac34356 100644
--- a/y2014/actors/shoot_actor_main.cc
+++ b/y2014/actors/shoot_actor_main.cc
@@ -1,4 +1,4 @@
-#include <stdio.h>
+#include <cstdio>
 
 #include "aos/events/shm_event_loop.h"
 #include "aos/init.h"
diff --git a/y2014/constants.cc b/y2014/constants.cc
index 4c4c5cf..d6a8e5d 100644
--- a/y2014/constants.cc
+++ b/y2014/constants.cc
@@ -1,9 +1,8 @@
 #include "y2014/constants.h"
 
-#include <inttypes.h>
-#include <math.h>
-#include <stdint.h>
-
+#include <cinttypes>
+#include <cmath>
+#include <cstdint>
 #include <map>
 
 #if __has_feature(address_sanitizer)
@@ -14,7 +13,6 @@
 #include "aos/logging/logging.h"
 #include "aos/network/team_number.h"
 #include "aos/stl_mutex/stl_mutex.h"
-
 #include "y2014/control_loops/drivetrain/drivetrain_dog_motor_plant.h"
 #include "y2014/control_loops/drivetrain/polydrivetrain_dog_motor_plant.h"
 
diff --git a/y2014/constants.h b/y2014/constants.h
index 4ce3714..aa4ac26 100644
--- a/y2014/constants.h
+++ b/y2014/constants.h
@@ -1,7 +1,7 @@
 #ifndef Y2014_CONSTANTS_H_
 #define Y2014_CONSTANTS_H_
 
-#include <stdint.h>
+#include <cstdint>
 
 #include "frc971/control_loops/state_feedback_loop.h"
 #include "frc971/shifter_hall_effect.h"
diff --git a/y2014/control_loops/shooter/shooter.cc b/y2014/control_loops/shooter/shooter.cc
index 52f900a..230a048 100644
--- a/y2014/control_loops/shooter/shooter.cc
+++ b/y2014/control_loops/shooter/shooter.cc
@@ -1,9 +1,8 @@
 #include "y2014/control_loops/shooter/shooter.h"
 
-#include <stdio.h>
-
 #include <algorithm>
 #include <chrono>
+#include <cstdio>
 #include <limits>
 
 #include "aos/logging/logging.h"
diff --git a/y2014/hot_goal_reader.cc b/y2014/hot_goal_reader.cc
index 9f5dc87..5972a92 100644
--- a/y2014/hot_goal_reader.cc
+++ b/y2014/hot_goal_reader.cc
@@ -1,11 +1,12 @@
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <errno.h>
-#include <string.h>
-#include <netinet/in.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
+#include <sys/socket.h>
+#include <sys/types.h>
 #include <unistd.h>
 
+#include <cerrno>
+#include <cstring>
+
 #include "aos/events/shm_event_loop.h"
 #include "aos/init.h"
 #include "aos/logging/logging.h"
diff --git a/y2014/joystick_reader.cc b/y2014/joystick_reader.cc
index d2a7ed9..d1569d7 100644
--- a/y2014/joystick_reader.cc
+++ b/y2014/joystick_reader.cc
@@ -1,8 +1,9 @@
-#include <math.h>
-#include <stdio.h>
-#include <string.h>
 #include <unistd.h>
 
+#include <cmath>
+#include <cstdio>
+#include <cstring>
+
 #include "aos/actions/actions.h"
 #include "aos/init.h"
 #include "aos/logging/logging.h"
diff --git a/y2014/wpilib_interface.cc b/y2014/wpilib_interface.cc
index ea87a18..3e34064 100644
--- a/y2014/wpilib_interface.cc
+++ b/y2014/wpilib_interface.cc
@@ -1,13 +1,13 @@
-#include <inttypes.h>
-#include <stdio.h>
-#include <string.h>
 #include <unistd.h>
 
 #include <chrono>
+#include <cinttypes>
+#include <cstdio>
+#include <cstring>
 #include <functional>
+#include <memory>
 #include <mutex>
 #include <thread>
-#include <memory>
 
 #include "frc971/wpilib/ahal/AnalogInput.h"
 #include "frc971/wpilib/ahal/Compressor.h"