Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-08-2005, 09:49 PM   #1 (permalink)
bradleyc
Registered User
 
Join Date: Aug 2005
Posts: 17
bradleyc is on a distinguished road
What am i missing?

... sorry, i just cant see it ...

Error:ass1.cpp(220,2)eclaration syntax error
Error:ass1.cpp(250,6)eclaration missing ;


Code:
void doDelete()
{
	clrscr();
   char inputv, input;
   cout << "                      " << endl;
   cout << "  --- DELETE VIDEO MENU ----                 " << endl;
   cout << "  Would you like to delete a video (y/n)?: ";
   cin >> inputv;
   if (inputv == 'y' || inputv == 'Y')
   	(
       	int item, location;
      	clrscr();
      	cout << "                      " << endl;
      	cout << "  What is the video's name ? ";
       	cin >> item;
       	location = searchName(videoLib, numElements, item);
       	if (location == -1)
       		(
         	clrscr();
         	cout << "                      " << endl;
         	cout << "  Invaild Input" <<endl;
         	cout << "  Press any key to exit ....";
				input = getch();
        		}
       	else
         {
       		{
       		for(int i = location; i < numElements - 1; i++)
       		}
         	videoLib[i] = videoLib[i++];
      	}
   	}
}

Last edited by bradleyc; 09-09-2005 at 12:12 AM.
bradleyc is offline   Reply With Quote
Old 09-09-2005, 01:37 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
First error:
Code:
 if (inputv == 'y' || inputv == 'Y')
   	(
should be
Code:
 if (inputv == 'y' || inputv == 'Y')
   	{
Second error:
Code:
	if (location == -1)
       		(
should be
Code:
	if (location == -1)
       		{
third error
Code:
      else
	{
	  {
	    for(int i = location; i < numElements - 1; i++)
	      }
	  videoLib[i] = videoLib[i++];
      	}
What is this code supposed to do ??
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 09-09-2005, 02:00 AM   #3 (permalink)
bradleyc
Registered User
 
Join Date: Aug 2005
Posts: 17
bradleyc is on a distinguished road
Definately need my eyes checked...

Error:asstester.cpp(300,1)eclaration missing ;
Error:asstester.cpp(300,1):Compound statement missing }

Code:
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);
			}
		}
}
bradleyc is offline   Reply With Quote
Old 09-09-2005, 02:15 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
You need an ending } to end the function.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Glx Ilya020 Linux / BSD / OS X 3 10-24-2003 04:39 PM
attn: Missing! sde Lounge 17 12-01-2002 09:25 PM
Another Missing post rdove Feedback 2 08-16-2002 11:46 AM


All times are GMT -8. The time now is 07:43 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting