Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 06-09-2007, 05:59 PM   #1 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


c++ loop help

my project is.. listed below.. keep in mind this is the beginning of my c++ class and we do have some knowledge of loops but as far as nesting the loops ending them within nestings and counters/accumulators.. i am stuck. any help would be appreciated


Include a welcome screen for the program below.

Write a menu driven program to calculate monthly member rates for a health spa with the following options:

1. AARP Rate //this is for person's 50 and older. $29.95 per month.
2. Student Rate // this is for persons less than 18 years old. $19.95 per month.
3. Regular Rate //for everyone else is $45.95 per month.
4. Exit //this end the program.

Ask the user to enter the number of months they want to join. (Don't allow negative numbers. Keep prompting the user to enter a positive value. Pre-test loop.)

Then ask the user for their age (Don't allow negative numbers and keep prompting until the user enters a positive number. Pre-test loop.)

Provide the user with the opportunity to run the program till they want to stop. (Do you want to run the program again?)

If the user says Y or y, run the program again. Otherwise, end the program. (Post test loop).

Before the program ends, tell the user how many times the program was run (add a count). Also tell the user how much money in fees what calculated (accumulator).
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 06-09-2007, 06:00 PM   #2 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

this is my code so far using bloodshed

#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;

int main(int argc, char *argv[])
{
int choice, months, age, count=0, sum=0;
double charges;

cout << fixed << showpoint << setprecision(2);

do
{
cout << "\n\t\tHealth Spa Rate Calculator Menu\n\n";
cout << " 1. AARP Rate\n";
cout << " 2. Student Rate\n";
cout << " 3. Regular Rate\n";
cout << " 4. Exit\n\n";
cout << "Enter Your Choice: ";
cin >> choice;
while (choice >= 1 && choice <= 3)
{
cout << "Enter Your Age: ";
cin >> age;
while (age <= 0)
{
cout << "\nInvalid\n";
cout << "Enter Age ";
cin >> age;
}
cout << "For how many months?: ";
cin >> months;
while (months <= 0)
{
cout << "\nInvalid\n";
cout << "Enter Months ";
cin >> months;
}
if (choice = 1)
{
charges = months * 29.95;
cout << "The total charge is $";
cout << charges << endl;
}
else if (choice = 2)
{
charges = months * 19.95;
cout << "The total charge is $";
cout << charges << endl;
}
else if (choice = 3)
{
charges = months * 19.95;
cout << "The total charge is $";
cout << charges << endl;
}
else
{
cout << "The valide choices are 1 through 4.\n";
cout << "Try again. \n";
}

} while (choice !=4);
return EXIT_SUCCESS;
}
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-10-2007, 02:18 PM   #3 (permalink)
Mentor, Analyst - Security Team
 
Deckard's Avatar
 
Join Date: May 2006
Location: Oregon
Posts: 2,503
OS: MacOS X, Debian, OpenBSD, Windows


Re: c++ loop help

Your else "valid choices are 1-4" will never be reached because you are only entering in that block of code if choice is between 1 and 3 (which are all valid).

Here is an alternate take on the logic:
  1. get choice from user.
  2. if choice <1 or >4 then print error and go to step 1.
  3. else if choice <4 (i.e., 1, 2, or 3)
    1. increment # of times run
    2. get number of months (can someone join for less than a month?)
    3. get age (is zero positive or negative? )
    4. calculate and output cost. add cost to total session amount.
    5. ask user if they want to continue [Y/N]. Loop until Y/y or N/n.
  4. if choice = 4 OR user chose to end (Y/y), print out # of times run, total session amount, and quit.
  5. otherwise, loop back to step 1.
__________________
The chance to begin again in a golden land of opportunity and adventure.

Need HijackThis help? Please read MicroBell's Five Step Process before posting.
Please donate and help keep this site free to all.


UNITE/ASAP: Proud member since 2006
Deckard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-10-2007, 10:30 PM   #4 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

since im still new to loops bear with me

i understand what your saying and can do most of the items on there own but integrating them together and getting them to function together is another issue..

i take it the items you suggested could all be done within the one do while menu group.. ? i tried doing another while loop after the pretest do while and the compiler would never go through them when i tried to run it
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-11-2007, 01:35 PM   #5 (permalink)
Registered User
 
Join Date: Jun 2007
Location: New Jersey, USA
Posts: 119
OS: Windows XP SP2

My System

Send a message via MSN to techsoul
Re: c++ loop help

when is your project due?
techsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-11-2007, 07:17 PM   #6 (permalink)
Mentor, Analyst - Security Team
 
Deckard's Avatar
 
Join Date: May 2006
Location: Oregon
Posts: 2,503
OS: MacOS X, Debian, OpenBSD, Windows


Re: c++ loop help

Sure, here's less of an outline and more code to give you an idea. There are a few ways to do this, but this should get you started.

Code:
#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;

int main(int argc, char *argv[])
{
	int choice, months, age, count=0, sum=0;
	double charges;

	cout << fixed << showpoint << setprecision(2);

	do
	{
		cout << "\n\t\tHealth Spa Rate Calculator Menu\n\n";
		cout << " 1. AARP Rate\n";
		cout << " 2. Student Rate\n";
		cout << " 3. Regular Rate\n";
		cout << " 4. Exit\n\n";
		cout << "Enter Your Choice: ";

		cin >> choice;
		
		if (choice > 1 || choice < 4)
		{
			// invalid choice
		}
		else // choice is 1..4
		{
			if (choice < 4) // choice is 1..3
			{
				// get age
			
				// get number of months

				// calculate charges
				if (choice == 1)	// note that it is == and not =
				{
					// calculate 29.95 rate
				}
				 
				else if (choice == 2)
				{
					// 19.95
				}
				
				else // can only be 3 at this point; but you can test "== 3" if you want
				{
					// 45.95
				}

				// show charges to user

				// ask if user wants to run again Y/N
				// if N, set choice = 4 so the loop will exit.
				// if Y, do nothing (we will loop again).

			} // choice is 1..3
			
		} // choice is 1..4
		
	} while (choice != 4);  // a 4 will exit.

	// print out number of times run and what the total fees are.
	
	return EXIT_SUCCESS;
}
__________________
The chance to begin again in a golden land of opportunity and adventure.

Need HijackThis help? Please read MicroBell's Five Step Process before posting.
Please donate and help keep this site free to all.


UNITE/ASAP: Proud member since 2006
Deckard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-11-2007, 10:14 PM   #7 (permalink)
Registered User
 
Join Date: Jun 2007
Location: New Jersey, USA
Posts: 119
OS: Windows XP SP2

My System

Send a message via MSN to techsoul
Re: c++ loop help

Quote:
Originally Posted by Deckard View Post

int main(int argc, char *argv[])
{
int choice, months, age, count=0, sum=0;
double charges;

cout << fixed << showpoint << setprecision(2);

do
{
cout << "\n\t\tHealth Spa Rate Calculator Menu\n\n";
cout << " 1. AARP Rate\n";
cout << " 2. Student Rate\n";
cout << " 3. Regular Rate\n";
cout << " 4. Exit\n\n";
cout << "Enter Your Choice: ";

cin >> choice;

if (choice > 1 || choice < 4)
{
// invalid choice
}
else // choice is 1..4
{
.
.
.
.

}[/code]


mate you got the above "if condition" wrong. It should be

if (choice < 1 || choice > 4)
{
// invalid choice
}
techsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-11-2007, 10:20 PM   #8 (permalink)
Mentor, Analyst - Security Team
 
Deckard's Avatar
 
Join Date: May 2006
Location: Oregon
Posts: 2,503
OS: MacOS X, Debian, OpenBSD, Windows


Re: c++ loop help

You're right. It was a test. You passed.
__________________
The chance to begin again in a golden land of opportunity and adventure.

Need HijackThis help? Please read MicroBell's Five Step Process before posting.
Please donate and help keep this site free to all.


UNITE/ASAP: Proud member since 2006
Deckard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 03:02 PM   #9 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

my mind was stuck in trying to validate the users selection in the do while list with the age input to make sure they were eligible for the selection they chose.. instead it worked out to this


#include <cstdlib>
#include <iostream>
#include <iomanip>

using namespace std;

const double AARP_RATE = 29.95;
const double STUDENT_RATE = 19.95;
const double REGULAR_RATE = 49.95;

int main(int argc, char *argv[])
{
char option;
int age, months, count = 0;
double rate, totalBill, totalSum = 0;
cout << fixed << setprecision(2);
//welcome
system("CLS");
cout << "\n\n\n\n\n\n"
<< "\n\t\t\t**************************************"
<< "\n\t\t\t* *"
<< "\n\t\t\t* Welcome to the C++ Health Club! *"
<< "\n\t\t\t* Our job is to help you work both *"
<< "\n\t\t\t* body and mind. *"
<< "\n\t\t\t* *"
<< "\n\t\t\t**************************************"
<< "\n\n\n\n\n\n\n\n\n\n\n";
system("PAUSE");

do
{
//display the menu
system("CLS");
cout << "\n\n\n\n\t\t\tAARP Rate (50 or more years)"
<< "\n\n\t\t\tStudent Rate (18 or less years)"
<< "\n\n\t\t\tRegular Rate (everyone else)"
<< "\n\n\n\n\t\t\tHow old are you? ";

//get the age
cin >> age;
//validate the input
while (age < 0)
{
cout << "\n\n\t\tInvalid! Enter a positive number.";
cout << "\n\n\t\tHow old are you? ";
cin >> age;
}
//process the age
if (age <= 18)
{
cout << "\n\n\t\tYou qualify for the student rate which is $19.95.";
rate = STUDENT_RATE;
}
else if (age < 50)
{
cout << "\n\n\t\tYou qualify for the regular rate at $45.95.";
rate = REGULAR_RATE;
}
else
{
cout << "\n\n\t\tYou qualify for the AARP rate at $29.95";
rate = AARP_RATE;
}
//get the months
cout << "\n\n\t\tHow many months do you want to join? ";
cin >> months;
//validate the input
while (months < 0)
{
cout << "\n\n\t\tInvalid! Enter a positive number.";
cout << "\n\n\t\tHow many months do you want to join? ";
cin >> months;
}
//calculate the bill
totalBill = months * rate;
//display the bill
system("CLS");
cout << "\n\n\n\n\n\n\t\tYour total bill is: $" << totalBill << endl << endl
<< endl << endl << endl << endl << endl;
//add to counter & accumulator
count += 1;
totalSum += totalBill;

cout << "\n\n\t\tRun the program again? (Y/N) ";
cin >> option;
} while (option == 'y' || option == 'Y');
//display farewell and summary
system("CLS");
cout << "\n\n\n\n\n\n"
<< "\n\t\t*********************************************"
<< "\n\t\t* "
<< "\n\t\t* Thank you for visitng C++ Health Club! "
<< "\n\t\t* We hope you enjoyed your stay. "
<< "\n\t\t* "
<< "\n\t\t* " << count << " people(s) used this program"
<< "\n\t\t* $" << totalSum << " was spent. "
<< "\n\t\t* "
<< "\n\t\t*********************************************"
<< "\n\n\n\n\n\n\n\n\n\n\n";
system("PAUSE");
return EXIT_SUCCESS;
}
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 03:09 PM   #10 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

this class is moving so fast its almost hard to keep up

now im having to go in and change this program to modular

welcome function
error function
function to calculate the total (use one and pass it values)
functions to collect input (age and numbers of months...getAge - don't allow negative ages. getMos - don't allow negative months).

this should be interesting.. not horribly hard.. but any issues i should note before jumping into functions?
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 03:12 PM   #11 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

the only issue i ended up with on the above completed program was entering letters and decimal numbers.. it caused unexpected results that i didnt know how to account for.. but it wasnt required so im on to functions
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 03:13 PM   #12 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

i appreciate the help so far.. very much so.. thanks
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 03:32 PM   #13 (permalink)
Registered User
 
Join Date: Jun 2007
Location: New Jersey, USA
Posts: 119
OS: Windows XP SP2

My System

Send a message via MSN to techsoul
Re: c++ loop help

good for you, happy coding :)
techsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 07:51 PM   #14 (permalink)
Mentor, Analyst - Security Team
 
Deckard's Avatar
 
Join Date: May 2006
Location: Oregon
Posts: 2,503
OS: MacOS X, Debian, OpenBSD, Windows


Re: c++ loop help

Validating input is not too complicated, I'm sure you'll be introduced to it in class. I can't think of anything that will surprise you in a function -- just remember to keep it simple and try not to repeat yourself in code.
__________________
The chance to begin again in a golden land of opportunity and adventure.

Need HijackThis help? Please read MicroBell's Five Step Process before posting.
Please donate and help keep this site free to all.


UNITE/ASAP: Proud member since 2006
Deckard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-13-2007, 09:59 AM   #15 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

ok this has changed to make the program modular.

i got bits and pieces to work but an unclear about how to get a function to work inside the do stream.. also noted that i cannot get the final screen to pop up after n is entered

it is stated

functions to collect input (age and numbers of months...getAge - don't allow negative ages. getMos - don't allow negative months).
function to calculate the total (use one and pass it values)

maybe that is where i am going wrong.. advice is appreciated
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-13-2007, 09:59 AM   #16 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

//Michael J. Nelson
#include <cstdlib>
#include <iostream>
#include <iomanip>

using namespace std;

const double AARP_RATE = 29.95;
const double STUDENT_RATE = 19.95;
const double REGULAR_RATE = 49.95;
void welcome();
void exit();
void month(int);
void ages(int);
//void months(int)
//void age(int)

int main(int argc, char *argv[])
{
char option;
int age, months, count = 0;
double rate, totalBill, totalSum = 0;
cout << fixed << setprecision(2);
//welcome
system("CLS");

welcome();


do
{
//display the menu
system("CLS");
ages;
//validate the input
while (age < 0)
{
cout << "\n\n\t\tInvalid! Enter a positive number.";
cout << "\n\n\t\tHow old are you? ";
cin >> age;
}
//process the age
if (age <= 18)
{
cout << "\n\n\t\tYou qualify for the student rate which is $19.95.";
rate = STUDENT_RATE;
}
else if (age < 50)
{
cout << "\n\n\t\tYou qualify for the regular rate at $45.95.";
rate = REGULAR_RATE;
}
else
{
cout << "\n\n\t\tYou qualify for the AARP rate at $29.95";
rate = AARP_RATE;
}
//get the months
cout << "\n\n\t\tHow many months do you want to join? ";
cin >> months;
//validate the input
while (months < 0)
{
void month(int);
}
//calculate the bill
totalBill = months * rate;
//display the bill
system("CLS");
cout << "\n\n\n\n\n\n\t\tYour total bill is: $" << totalBill << endl << endl
<< endl << endl << endl << endl << endl;
//add to counter & accumulator
count += 1;
totalSum += totalBill;

cout << "\n\n\t\tRun the program again? (Y/N) ";
cin >> option;
} while (option == 'y' || option == 'Y');
//display farewell and summary
system("CLS");
void exit();
return EXIT_SUCCESS;
}
void welcome()
{
cout << "\n\n\n\n\n\n"
<< "\n\t\t\t**************************************"
<< "\n\t\t\t* *"
<< "\n\t\t\t* Welcome to the C++ Health Club! *"
<< "\n\t\t\t* Our job is to help you work both *"
<< "\n\t\t\t* body and mind. *"
<< "\n\t\t\t* *"
<< "\n\t\t\t**************************************"
<< "\n\n\n\n\n\n\n\n\n\n\n";
system("PAUSE");
}
void exit(int count, double totalSum)
{
cout << "\n\n\n\n\n\n"
<< "\n\t\t*********************************************"
<< "\n\t\t* "
<< "\n\t\t* Thank you for visitng C++ Health Club! "
<< "\n\t\t* We hope you enjoyed your stay. "
<< "\n\t\t* "
<< "\n\t\t* " << count << " people(s) used this program"
<< "\n\t\t* $" << totalSum << " was spent. "
<< "\n\t\t* "
<< "\n\t\t*********************************************"
<< "\n\n\n\n\n\n\n\n\n\n\n";
system("PAUSE");
}
void month(int months)
{
cout << "\n\n\t\tInvalid! Enter a positive number.";
cout << "\n\n\t\tHow many months do you want to join? ";
cin >> months;
}
void ages(int age)
{
cout << "\n\n\n\n\t\t\tAARP Rate (50 or more years)"
<< "\n\n\t\t\tStudent Rate (18 or less years)"
<< "\n\n\t\t\tRegular Rate (everyone else)"
<< "\n\n\n\n\t\t\tHow old are you? ";

//get the age
cin >> age;
}
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-13-2007, 10:05 AM   #17 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

is it indeed possible to replace the whole if else if statements with one function?
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-13-2007, 03:29 PM   #18 (permalink)
Registered User
 
Join Date: Jun 2007
Location: New Jersey, USA
Posts: 119
OS: Windows XP SP2

My System

Send a message via MSN to techsoul
Re: c++ loop help

yes it is possible. You need to pass "age" as a const parameter and "rate" as a reference parameter to the function. And cut paste all the if>else if>else statements in that function. OR you can also make "rate" as a global parameter (declare it outside main) and pass only "age" to the function. The function will not return anything. Therefore, it will be a VOID function.

void findRate (const int age1, int& rate1)
{
// if>else if>else statements
// don't forget to rename rate to rate1 in the function defination.
}

OR
void findRate(const int age)
{
// if>else if>else statements
}


calling the function will look like this


findRate(age, rate);

OR

findRate(age);



good luck

Last edited by techsoul; 06-13-2007 at 03:32 PM.
techsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-13-2007, 09:13 PM   #19 (permalink)
Mentor, Analyst - Security Team
 
Deckard's Avatar
 
Join Date: May 2006
Location: Oregon
Posts: 2,503
OS: MacOS X, Debian, OpenBSD, Windows


Twisted Re: c++ loop help

Ugh. I would avoid changing global variables in a function. In fact, you don't even need global variables to do this.

A function takes input and produces output. Reading your summary, you could have something like this:
void welcome(void);
void printError(char *error);
unsigned int getAge(void);
unsigned int getMonths(void);
unsigned double calculateTotal(unsigned int age, unsigned int months);
Why not do the validation/verification in the functions themselves? That is to say, in the getAge() function,

Code:
unsigned int getAge(void)
{
  int age; // notice that this is not an unsigned int

  do {
    cout << "How old are you? ";

    // get the age
    cin >> age;

    // validate that age is not negative.
    if (age < 1)
    {
      printError("Your age must be a positive number.\n\n");
    }
  } while(age < 1);

  return age;  // 1..MAX_INT
}
calculateTotal() would be something like:
Code:
unsigned double calculateTotal(unsigned int age, unsigned int months)
{
  unsigned double rate;

  if (age < 18)
  {
    rate = 19.95;
  }
  else if (age < 50)
  {
   // .. and so on
  }

  return(rate * months);
}
Then your main() loop would be something like:

Code:
void main(void) {
  unsigned int age, months, count = 0;
  unsigned double rate = 0.0, total = 0.0;

  do {
    welcome();

    age = getAge();
    months = getMonths();
    rate = calculateTotal(age, months);
    total += rate;
    count++;

    // show results to user
    // and ask user if they want to go around again
  } while (choice = true); // however you want to do it.

  exit;
}
See how clear and concise it is?
__________________
The chance to begin again in a golden land of opportunity and adventure.

Need HijackThis help? Please read MicroBell's Five Step Process before posting.
Please donate and help keep this site free to all.


UNITE/ASAP: Proud member since 2006
Deckard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-14-2007, 06:56 PM   #20 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 21
OS: winxp


Re: c++ loop help

on to next question.. this is my final program for the class.. i have most of it down but.. there is a question

for options b&c call a function that displays " you selected option 'B'. or ......

this function should accept a parameter indication which character was selected
miken5678 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:05 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85