Unit 4: C++ Programming
C++ Programming - Basics
// A small C++ Program (Comments)
# include <iostream> (Header File)
int main(Parameter + Executes Functions)
{ (Beginning of Function)
(Statement) Std::cout <<"Hello,World!"<<std:: end1;(include in end of function)
} (End of Function)
<< - Output Operator
// A small C++ Program (Comments)
# include <iostream> (Header File)
int main(Parameter + Executes Functions)
{ (Beginning of Function)
(Statement) Std::cout <<"Hello,World!"<<std:: end1;(include in end of function)
} (End of Function)
<< - Output Operator
- Operation types: int represents Integers
- /n = new line
- /b = backspcae
- Is a set of software classes that interfaces with the hardware and software in your FRC robot’s control system
- There are classes to handle sensors, motor speed controllers, the driver station, and a number of other utility functions such as timing and field management
- WPILib supports many commonly used sensors that are not in the kit, such as ultrasonic rangefinders