\documentclass{article}

\usepackage{lgrind}
\setlength{\topmargin}          {-60pt}
\setlength{\textheight}         {9in}
%% \setlength{\topmargin}          {-120pt}
%% \setlength{\textheight}         {10in}
%% \setlength{\textwidth}          {7.5in}

\begin{document}

\vspace{-2in}
\begin{center}
{\bf Programming in C++ \hspace{5in} Lecture 2 Examples}
\end{center}

% example 1

\pagebreak

% example 2

\pagebreak

% example 3

\pagebreak

% example 4

\pagebreak

% example 5


\pagebreak


\end{document}






\end{document}

