See
How to use ArcGIS samples
for help on compiling, setting up the debugger, and running the sample.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Start ArcMap and add an editable point layer.
Start editing and select a point layer in the Feature Templates dialog box.
Select the Points along line construction tool from the construction tools pane.
Sketch a line on the map using the shape constructors.
Finish the sketch, and enter how the points will be created in the dialog box.