How do I make program ignore first instance of 0. I want it to display output 60 lines at a time but the first line is just the first letter. then program works fine.
#include <iostream>
#include <string>
using namespace std;
int chars;
int main()
{
string input;
string line="------------------------------------------------------------";
cout<<"Programmed by "<<endl<<endl;
cout<<"Enter some text and I will encrypt it. Do not press the enter "<<endl;
cout<<"until you are done."<<endl<<endl;
getline(cin, input);
for(chars=0;chars<=input.length(); chars++)
{
cout<<input[chars]<<"";
if(chars%60==0)
cout<<endl;}
cout<<endl;