-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction-call.cpp
More file actions
46 lines (40 loc) · 1.12 KB
/
function-call.cpp
File metadata and controls
46 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include<iostream>
using namespace std;
// Function to check spelling
void check_spelling() {
cout << "Checking spelling..." << endl;
// Add your actual spell-checking logic here
}
// Function to correct spelling errors
void correct_errors() {
cout << "Correcting spelling errors..." << endl;
// Add your actual spell correction logic here
}
// Function to display spelling errors
void display_errors() {
cout << "Displaying spelling errors..." << endl;
// Add your actual display error logic here
}
int main(){
char ch;
cout << "1. Check Spelling" << endl;
cout << "2. Correct Spelling Errors" << endl;
cout << "3. Display Spelling Errors" << endl;
cout << "Strike any other key to skip "<< endl;
cout << "Enter Your Choice : ";
ch = getchar();
switch(ch){
case '1':
check_spelling();
break;
case '2':
correct_errors();
break;
case '3':
display_errors();
break;
default :
cout << "No Option Selected";
}
return 0;
}