C++ and Line Follower Help

Code would be the same for VEX C++ and C++ Pro, somewhere an instance of a line sensor needs to be declared.


vex::line Line( Brain.ThreeWirePort.A );

or alternatively, just use a potentiometer device, they are both analog sensors returning the same values.