Upload
arnab-chakrabarti
View
215
Download
0
Embed Size (px)
DESCRIPTION
FILE
Citation preview
Write a c++ program to read some characters from a file and display the no of bs used.
#include#include#includevoid main(){clrscr();int i,c=0;char a[30];ifstream fin("New.txt",ios::in);fin.getline(a,30,'\n');for(i=0;a[i]!=NULL;i++){if(a[i]=='b')c++;}cout