Definately need my eyes checked...
Error:asstester.cpp(300,1):Declaration missing ;
Error:asstester.cpp(300,1):Compound statement missing } -
void doModify()
-
{
-
clrscr();
-
char inputv, input1, input2;
-
cout << " " << endl;
-
cout << " --- MODIFY VIDEO MENU ---- " << endl;
-
cout << " Would you like to modify a video (y/n)?: ";
-
cin >> inputv;
-
if (inputv == 'y' || inputv == 'Y')
-
{
-
clrscr();
-
int item1, location1, location2;
-
char item2[20];
-
cout << " " << endl;
-
cout << " -- Current Record -- " << endl;
-
cout << " What is the Video Number?: ";
-
cin >> item1;
-
location1 = searchNum(videoLib, numElements, item1);
-
if (location1 == -1)
-
{
-
clrscr();
-
cout << " " << endl;
-
cout << " Invaild Input" <<endl;
-
cout << " Press any key to exit ....";
-
input1 = getch();
-
}
-
else
-
{
-
cout << " What is the Video Name?: ";
-
cin >> item2;
-
location2 = searchName(videoLib, numElements, item2);
-
if (location2 == -1)
-
{
-
clrscr();
-
cout << " " << endl;
-
cout << " Invaild Input" <<endl;
-
cout << " Press any key to exit ....";
-
input2 = getch();
-
}
-
else
-
{
-
cout << " " << endl;
-
cout << " -- New Record -- " << endl;
-
cout << " What is the Video Number?: ";
-
cin >> videoLib[location1].videoNum;
-
cout << " What is the Video Name?: ";
-
cin.getline(videoLib[location2].videoName, 30);
-
}
-
}
-
}
-
1 1631
I have missed one closing braces. I think it may be at line No:30
void doModify()
{
clrscr();
char inputv, input1, input2;
cout << " " << endl;
cout << " --- MODIFY VIDEO MENU ---- " << endl;
cout << " Would you like to modify a video (y/n)?: ";
cin >> inputv;
if (inputv == 'y' || inputv == 'Y')
{
clrscr();
int item1, location1, location2;
char item2[20];
cout << " " << endl;
cout << " -- Current Record -- " << endl;
cout << " What is the Video Number?: ";
cin >> item1;
location1 = searchNum(videoLib, numElements, item1);
if (location1 == -1)
{
clrscr();
cout << " " << endl;
cout << " Invaild Input" <<endl;
cout << " Press any key to exit ....";
input1 = getch();
}
else
{
cout << " What is the Video Name?: ";
cin >> item2;
}
location2 = searchName(videoLib, numElements, item2);
if (location2 == -1)
{
clrscr();
cout << " " << endl;
cout << " Invaild Input" <<endl;
cout << " Press any key to exit ....";
input2 = getch();
}
else
{
cout << " " << endl;
cout << " -- New Record -- " << endl;
cout << " What is the Video Number?: ";
cin >> videoLib[location1].videoNum;
cout << " What is the Video Name?: ";
cin.getline(videoLib[location2].videoName, 30);
}
}
}
Sign in to post your reply or Sign up for a free account.
Similar topics
by: David MacQuigg |
last post by:
I'm concerned that with all the focus on obj$func binding, &closures,
and other not-so-pretty details of Prothon, that we are missing what
is really good - the simplification of classes. There are...
|
by: SimpSity |
last post by:
I am a complete noob, what book would be the best for complete begginers, u
know the ones that could teach a a retarted neborn monkey to program C++ thats
the kind of thing im looking for alotr of...
|
by: Andy |
last post by:
Hi All!
We are doing new development for SQL Server 2000 and also moving from
SQL 7.0 to SQL Server 2000.
What are cons and pros for using IDENTITY property as PK in SQL SERVER
2000?
Please,...
|
by: Sarah |
last post by:
Hello.
I am using Microsoft.Office.Interop.Excel in a C# .NET project. I want to
open an Excel application with a specific file name.
I am currently opening it with this code:
...
|
by: kris |
last post by:
hi can any one help me out,
i have written a code for Word Indexing using Dll's
i think this is an incomplete code for WORD INDEX.
I had encountered this error
"Error! No index entries found"...
|
by: Justin Emlay |
last post by:
I'm hopping someone can help me out on a payroll project I need to
implement.
To start we are dealing with payroll periods. So we are dealing with an
exact 10 days (Monday - Friday, 2 weeks).
...
|
by: Protoman |
last post by:
Could you tell me what's wrong with this program, it doesn't compile:
#include <iostream>
#include <cstdlib>
using namespace std;
class Everything
{
public:
static Everything* Instance()
|
by: le0 |
last post by:
Hello guys,
Im really having a hard time doing this, I have a record set with the ItemNo
field with the data type as Text. In the record that I have, I want to find
the missing number in the...
|
by: mc |
last post by:
I may be opening a can of worms and don't want to start a religious war,
but...
What features of Java do Java programmers miss when working in C#?
Other than, of course, great portability. C#...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |