can you help me to fix this? where is the problem?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

can you help me to fix this?

where is the problem?

 

4
using namespace std;
6
void menu();
int binary(int);
bool tringle (int,int,int);
9
10 Qint main()
{
char choise;
int num, a,b,c;
11
12
13
14
do
{
menu();
15
16
17
18
char choise;
switch (choise)
{
19
20
21
case 'd':
22
cout<<"please enter a positive binary number (base 2 -- 1's and 0's only) of no more than 6 digits :"<<endl;
cin>>num;
cout<<"The equivalent decimal number is"<<binary(num)<<" for the input binary number"<<num<<endl;
23
24
25
case 't':
26
while(1==1)
Transcribed Image Text:4 using namespace std; 6 void menu(); int binary(int); bool tringle (int,int,int); 9 10 Qint main() { char choise; int num, a,b,c; 11 12 13 14 do { menu(); 15 16 17 18 char choise; switch (choise) { 19 20 21 case 'd': 22 cout<<"please enter a positive binary number (base 2 -- 1's and 0's only) of no more than 6 digits :"<<endl; cin>>num; cout<<"The equivalent decimal number is"<<binary(num)<<" for the input binary number"<<num<<endl; 23 24 25 case 't': 26 while(1==1)
|C:\Windows\system32\cmd.exe
- (D or d) to convert binary number (base 2 -- 1's and 0's only) of no more than 6 digits
- (T or t) to find out whether three numbers will form tringle sides
-(Q or q) to Quit
on E
plut
12
Microsoft Visual C++ Debug Library
Debug Error!
Program: C:\Users\Asus\Desktop\newone\2\Debug\2.exe
Module: C:\Users\Asus\Desktop\newone\2\Debug\2.exe
File:
Run-Time Check Failure #3 - The variable 'choise' is being
used without being initialized.
pre than 6 digits :"<<endl;
(Press Retry to debug the application)
er"<<num<<endl;
Abort
Retry
Ignore
28
cout<<"please enter three positive numbers in the range (1-10):
<endl;
100 %
Output
Show output from: Build
1>
Touching "Debug\2.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:02.04
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Transcribed Image Text:|C:\Windows\system32\cmd.exe - (D or d) to convert binary number (base 2 -- 1's and 0's only) of no more than 6 digits - (T or t) to find out whether three numbers will form tringle sides -(Q or q) to Quit on E plut 12 Microsoft Visual C++ Debug Library Debug Error! Program: C:\Users\Asus\Desktop\newone\2\Debug\2.exe Module: C:\Users\Asus\Desktop\newone\2\Debug\2.exe File: Run-Time Check Failure #3 - The variable 'choise' is being used without being initialized. pre than 6 digits :"<<endl; (Press Retry to debug the application) er"<<num<<endl; Abort Retry Ignore 28 cout<<"please enter three positive numbers in the range (1-10): <endl; 100 % Output Show output from: Build 1> Touching "Debug\2.lastbuildstate". 1> 1>Build succeeded. 1> 1>Time Elapsed 00:00:02.04 ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Troubleshooting
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education