The process of creating an array of triangles that represents a geometric object is called tesselation.
There are methods for triangulating parametric surfaces such as cylinders.
Another option is to draw a cylinder in a 3d modelling tool such as Blender, 3d studio max or Maya and then export a triangle mesh of your model and parse that file and thus load the model into your program.