473,382 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

the following Code give me the ('fdollar unrecognazed')

plz sir, solve me the following problum.

Expand|Select|Wrap|Line Numbers
  1. #include <iostream.h>
  2. #include <windows.h>
  3.  
  4. char customer_name[255];
  5. char description;
  6.  
  7. void output(char customer_name, char movie_name, char nights, char output);
  8. int main()
  9. {
  10.    char movie_name[255];
  11.    const int regular = 40;
  12.    const int children = 30;
  13.    const int english = 50;
  14.    const int new = 100;
  15.    int nights;
  16.    int total;
  17.    cout << "Please enter the customer name: ";
  18.    cin >> customer_name;
  19.    cout << "\n Type of Movie: ";
  20.    cout << "Enter ‘R’ for Regular Movie Enter ‘C’ for children Movie Enter ‘N’ foNew Released Movie.Enter ‘E’ forEnglish Movie. ";
  21.    cin >> description; 
  22.    switch(description)
  23.    {
  24.  
  25.       case 'r': case 'R': system("cls");
  26.                                cout << "Please enter the movie name: ";
  27.                                cin >> movie_name;
  28.                                cout << "\nPlease enter the number of nights: ";
  29.                                cin >> nights;
  30.                                total = regular*nights;
  31.                                output(customer_name, movie_name, nights, total);
  32.        break;
  33.  
  34.        // few more cases
  35.        // few more cases
  36.  
  37.       default: cout << "Your option was unknown";
  38.       break;
  39.    }
  40.  
  41.   return EXIT_SUCSESS;
  42. }
  43.  
  44. void output(char customer_name, char movie_name, int nights, int total)
  45. {
  46.  
  47.    cout << "Customer Name: " << customer_name << endl;
  48.    cout << "Movie Title: " << movie_name << endl;
  49.    cout << "Nights: " << nights << endl;
  50.    cout << "Total: " << output << endl;
Oct 28 '09 #1
5 1535
plz sir, solve me this problum bcz i have very immidetly need for its solution, solve me as soon as possible, at last solve up to 29/oct/2009 time: 9:00 pm according the paksitan time.
thnaks
Oct 28 '09 #2
plz sir help me, for this question, as soon as possible.
thanks
Oct 28 '09 #3
newb16
687 512MB
I see no problem, and no question - I see only the code that doesn't even compile.
Oct 28 '09 #4
Banfa
9,065 Expert Mod 8TB
naeemzi you are not going to get instant answers here, you should wait at least 24 hours before bumping your post as this is an international forum and the forum experts may well be asleep at the time you post. There is no point posting the time you need an answer by we are not in the same time zone as you.

Finally if you are going to post non-functional code then you need to ask a proper question and/or post your compile errors exactly as they appear to you and indicate which ones you do not understand.

Finally what compiler/IDE are you using?
Oct 28 '09 #5
donbock
2,426 Expert 2GB
@Banfa
Perhaps not quite the exact compile error text ... it is not unusual for the line numbers in the code in your post to differ from the line numbers in your actual source file. Please take the time to translate the line number portion of your compile error text so it corresponds to the posted source code.
Oct 28 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Peter Rohleder | last post by:
Hi, I'm using a style-sheet where I make use of the XPATH-"following-sibling"-expression. The part which makes problems looks similar to the following code: --------------------------- ...
0
by: johkar | last post by:
In the below example I am using the following to try to match only the unique MechanismText nodes within each Subscription node: select="DeliveryPreferences/DeliveryPreference" Right now, the...
1
by: Marlon | last post by:
<! -- Web.config--> <authentication mode="Windows" /> <identity impersonate="true" /> <! -- Web.config--> where Configurations.ADsUsersPath is...
5
by: Vikas Kumar | last post by:
Hi, I'm not able to convert the following dll import statement in C# to VB.NET. Can any one please help me in this respect?
15
by: kenneth | last post by:
I was trying to use multiple thread to optimize my following code, but met some problems, anyone can help me? k are initialized. int computePot() { int i, j; for( i=0; i<500; i++ ) { for(...
12
by: Neroku | last post by:
I don't know if the following expression is UB: i=2; x = (i=3) * i; Since in C, evaluation order is unspecified, this expression is 'at least' unspecified, since we don't know which operand...
9
by: reachmsn | last post by:
Hi, At the url http://www.python.org/doc/essays/graphs.html there is some code by Guido Van Rossum for computing paths through a graph - I have pasted it below for reference - Let's write a...
7
by: eduzea | last post by:
I have some code that compiles with gcc but fails with MS VC 8. I would like to know which one is following the C++ standard. istream& istr = false ? cin : ( * new ifstream("test.txt")) ; ...
1
by: footie011 | last post by:
Question 1: Assume a bookshop has database with the following schema of six relations: Authors (au_id, au_lname, au_fname, phone, address) Publishers (pub_id, pub_name, city, state,...
0
isladogs
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.