the below code is to allow user to enter many strings of characters until he enters a fullstop (.)
Please tell me how can i calculate the total number of strings the user has entered.
#include <iostream>
void main()
{
char a[80];
int i,c=0;
for(i=0;;i++)
{
cin>>a;
if(a=='.')
break;
}
}