SlideShare a Scribd company logo
change the type of byte from int to char
char byte;
while(infile.get(byte))
{
for (int i = 0; i < 8; i++)
{
if (byte % 2 == 1)
{
bit_counts[i]++;
}
byte = byte / 2;
}
}

More Related Content

More from akknit

Carmen Communications reported the following figures from its adjusted.pdf
Carmen Communications reported the following figures from its adjusted.pdfCarmen Communications reported the following figures from its adjusted.pdf
Carmen Communications reported the following figures from its adjusted.pdf
akknit
 
Carrboro has three equal-sized groups of people- (1) Type A people con.pdf
Carrboro has three equal-sized groups of people- (1) Type A people con.pdfCarrboro has three equal-sized groups of people- (1) Type A people con.pdf
Carrboro has three equal-sized groups of people- (1) Type A people con.pdf
akknit
 
Chemolithotrophs use the same chemical for their PED- energy source an.pdf
Chemolithotrophs use the same chemical for their PED- energy source an.pdfChemolithotrophs use the same chemical for their PED- energy source an.pdf
Chemolithotrophs use the same chemical for their PED- energy source an.pdf
akknit
 
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdfCheck Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
akknit
 
Check the countries whose economies are best described as -mixed-- com (1).pdf
Check the countries whose economies are best described as -mixed-- com (1).pdfCheck the countries whose economies are best described as -mixed-- com (1).pdf
Check the countries whose economies are best described as -mixed-- com (1).pdf
akknit
 
check both answers please During DNA synthesis- the lagging strand is.pdf
check both answers please During DNA synthesis- the lagging strand is.pdfcheck both answers please During DNA synthesis- the lagging strand is.pdf
check both answers please During DNA synthesis- the lagging strand is.pdf
akknit
 
Characteristics of nonculture techniques include (Select all that appl.pdf
Characteristics of nonculture techniques include (Select all that appl.pdfCharacteristics of nonculture techniques include (Select all that appl.pdf
Characteristics of nonculture techniques include (Select all that appl.pdf
akknit
 
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdf
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdfChapter Review Questions 2- A person who is supine is motinucicated- a.pdf
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdf
akknit
 
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdfChapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
akknit
 
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdfCASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
akknit
 
Case Studies- Case 1- A sexually active college student went to her OB.pdf
Case Studies- Case 1- A sexually active college student went to her OB.pdfCase Studies- Case 1- A sexually active college student went to her OB.pdf
Case Studies- Case 1- A sexually active college student went to her OB.pdf
akknit
 
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdfCase History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
akknit
 
Chapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdf
Chapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdfChapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdf
Chapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdf
akknit
 
Chapter 19 ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdf
Chapter 19  ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdfChapter 19  ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdf
Chapter 19 ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdf
akknit
 
Chapter 14 discusses the impact of work-life balance on protessional e.pdf
Chapter 14 discusses the impact of work-life balance on protessional e.pdfChapter 14 discusses the impact of work-life balance on protessional e.pdf
Chapter 14 discusses the impact of work-life balance on protessional e.pdf
akknit
 
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdfChapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
akknit
 
Changing Levels of Hormones During the Menstrual Cycle According to th.pdf
Changing Levels of Hormones During the Menstrual Cycle According to th.pdfChanging Levels of Hormones During the Menstrual Cycle According to th.pdf
Changing Levels of Hormones During the Menstrual Cycle According to th.pdf
akknit
 
Carla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdf
Carla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdfCarla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdf
Carla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdf
akknit
 
Change of Basis for a Linear Transformation My Solut Write a function.pdf
Change of Basis for a Linear Transformation My Solut Write a function.pdfChange of Basis for a Linear Transformation My Solut Write a function.pdf
Change of Basis for a Linear Transformation My Solut Write a function.pdf
akknit
 
Ch- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdf
Ch- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdfCh- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdf
Ch- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdf
akknit
 

More from akknit (20)

Carmen Communications reported the following figures from its adjusted.pdf
Carmen Communications reported the following figures from its adjusted.pdfCarmen Communications reported the following figures from its adjusted.pdf
Carmen Communications reported the following figures from its adjusted.pdf
 
Carrboro has three equal-sized groups of people- (1) Type A people con.pdf
Carrboro has three equal-sized groups of people- (1) Type A people con.pdfCarrboro has three equal-sized groups of people- (1) Type A people con.pdf
Carrboro has three equal-sized groups of people- (1) Type A people con.pdf
 
Chemolithotrophs use the same chemical for their PED- energy source an.pdf
Chemolithotrophs use the same chemical for their PED- energy source an.pdfChemolithotrophs use the same chemical for their PED- energy source an.pdf
Chemolithotrophs use the same chemical for their PED- energy source an.pdf
 
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdfCheck Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
 
Check the countries whose economies are best described as -mixed-- com (1).pdf
Check the countries whose economies are best described as -mixed-- com (1).pdfCheck the countries whose economies are best described as -mixed-- com (1).pdf
Check the countries whose economies are best described as -mixed-- com (1).pdf
 
check both answers please During DNA synthesis- the lagging strand is.pdf
check both answers please During DNA synthesis- the lagging strand is.pdfcheck both answers please During DNA synthesis- the lagging strand is.pdf
check both answers please During DNA synthesis- the lagging strand is.pdf
 
Characteristics of nonculture techniques include (Select all that appl.pdf
Characteristics of nonculture techniques include (Select all that appl.pdfCharacteristics of nonculture techniques include (Select all that appl.pdf
Characteristics of nonculture techniques include (Select all that appl.pdf
 
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdf
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdfChapter Review Questions 2- A person who is supine is motinucicated- a.pdf
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdf
 
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdfChapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
 
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdfCASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
 
Case Studies- Case 1- A sexually active college student went to her OB.pdf
Case Studies- Case 1- A sexually active college student went to her OB.pdfCase Studies- Case 1- A sexually active college student went to her OB.pdf
Case Studies- Case 1- A sexually active college student went to her OB.pdf
 
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdfCase History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
 
Chapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdf
Chapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdfChapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdf
Chapter 6 - Fill in the Blank -#18- 25- Short Answer -#28- 30- Critica.pdf
 
Chapter 19 ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdf
Chapter 19  ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdfChapter 19  ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdf
Chapter 19 ChlamydiaGonorrheaSyphilisGenital HerpesGenital WartsTrich.pdf
 
Chapter 14 discusses the impact of work-life balance on protessional e.pdf
Chapter 14 discusses the impact of work-life balance on protessional e.pdfChapter 14 discusses the impact of work-life balance on protessional e.pdf
Chapter 14 discusses the impact of work-life balance on protessional e.pdf
 
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdfChapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf
 
Changing Levels of Hormones During the Menstrual Cycle According to th.pdf
Changing Levels of Hormones During the Menstrual Cycle According to th.pdfChanging Levels of Hormones During the Menstrual Cycle According to th.pdf
Changing Levels of Hormones During the Menstrual Cycle According to th.pdf
 
Carla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdf
Carla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdfCarla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdf
Carla Vista inch had saies of $2-390-000 for the first quarter of 2020.pdf
 
Change of Basis for a Linear Transformation My Solut Write a function.pdf
Change of Basis for a Linear Transformation My Solut Write a function.pdfChange of Basis for a Linear Transformation My Solut Write a function.pdf
Change of Basis for a Linear Transformation My Solut Write a function.pdf
 
Ch- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdf
Ch- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdfCh- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdf
Ch- 5- Microbial Geneties CORE Assignment This assignment is best comp.pdf
 

Recently uploaded

Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

change the type of byte from int to char char byte- while(infile-get(b.pdf

  • 1. change the type of byte from int to char char byte; while(infile.get(byte)) { for (int i = 0; i < 8; i++) { if (byte % 2 == 1) { bit_counts[i]++; } byte = byte / 2; } }