Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
yesno
- Page 1
Problems reading reading Struct from Random Access File
Programming
Software Development
13 Years Ago
by grebote
… rating (Y/N)? "; cin >>
yesNo
; if (
yesNo
== 'Y') { cout << "Enter… W rating (Y/N)? "; cin >>
yesNo
; if (
yesNo
== 'Y') { player.pW = true; player.pZ …have a HB0 rating (Y/N)? "; cin >>
yesNo
; if (
yesNo
== 'Y') { player.pHB = true; } else { player.…
Need help. I am not able to get a radio button to go to the URL
Programming
Web Development
19 Years Ago
by msei
….php"> <input name="
yesno
" type="radio" value="yes…</td> <input name="
yesno
" type="radio" value="… result(); $create->AddDBParam('
yesno
',$_POST[
yesno
]); $createResult=$create->FMView(); $
yesno
=$_POST['
yesno
']; ?> <?php if($
yesno
== "yes") …
Re: Need help. I am not able to get a radio button to go to the URL
Programming
Web Development
19 Years Ago
by Decency
…;evaluate.php"> <input name="
yesno
" type="radio" value="yes"…;No</td> <input name="
yesno
" type="radio" value="other&…; </form> <?php if (isset($_POST['
yesno
'])) { $
yesno
=$_POST['
yesno
']; if($
yesno
== "yes") { header("Location: test01.…
Trouble with Hangman
Programming
Software Development
11 Years Ago
by Summer995
…PlayHangman(); Word PickedWord = pickedWord; ConsoleKeyInfo
yesNo
= new ConsoleKeyInfo(); for (int …/N");
yesNo
= Console.ReadKey(); return
yesNo
.KeyChar.ToString();…
Re: Trouble with Hangman
Programming
Software Development
11 Years Ago
by Summer995
…you want to play again ? Y/N");
yesNo
= Console.ReadKey(); return
yesNo
.KeyChar.ToString(); } else { Console.WriteLine("You won…
Guessing Game Project Help
Programming
Software Development
11 Years Ago
by vicky30312
…include <iostream> using namespace std; int UsersNum,
YesNo
, HighLow, High, Low, Yes, No; int main ()…Yes or No? \n"; cin >>
YesNo
; if (HighLow = Low) // Guess a lower …or No? \n"; cin >>
YesNo
; if (
YesNo
= Yes) cout << "I …
Help with reading and writing from file
Programming
Software Development
16 Years Ago
by Phan
…;\nData Saved...\n"; wait (1000); outfile.close(); } else if (
yesno
!= 'Y' ||
yesno
!= 'y') { cout<< "\nReturning to Main Menu…..."; wait (2000); return; } waste[49]=
yesno
; return; } void display_product() { fstream infile; product prod; int count; …
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by dgr231
… cin >> player[players].avg; } totalPlayers++; } while(
yesNo
== "y" ||
yesNo
== "Y") { char endBatter[30]; cout <&… valid player's name. \n" << endl; } char
yesNo
[4]; bool validData = false; while(!validData) { cout << …
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by dgr231
…; player[numPlayer].avg; } totalPlayers++; } string endBatter; string
yesNo
= "y"; while(
yesNo
== "y" ||
yesNo
== "Y") { cout <<….getline(
yesNo
,4); if(strcmp(
yesNo
,"y") == 0 || strcmp(
yesNo
,"Y") == 0 || strcmp(
yesNo
,"n") == 0 || strcmp(
yesNo
,"…
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by VernonDozier
…; player[numPlayer].avg; } totalPlayers++; } string endBatter; string
yesNo
= "y"; while(
yesNo
== "y" ||
yesNo
== "Y") { cout <<…; getline(cin,
yesNo
); if(
yesNo
.compare ("Y") == 0 ||
yesNo
.compare ("y") == 0 ||
yesNo
.compare ("N") == 0 ||
yesNo
.compare ("…
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by dgr231
…; ignore_line(cin); } totalPlayers++; } string endBatter; string
yesNo
= "y"; while(
yesNo
== "y" ||
yesNo
== "Y") { cout << &… getline(cin,
yesNo
); if(
yesNo
.compare("y") == 0 ||
yesNo
.compare("Y") == 0 ||
yesNo
.compare("n") == 0 ||
yesNo
.compare("…
function (loop problem)
Programming
Software Development
12 Years Ago
by Aghtar
… <iostream> using namespace std; int
yesno
(); double factorial(double num); //factorial prototype int… return 0; system ("pause"); } //
yesno
int
yesno
() { do{ int number; char choice; cout …== 'y' || choice == 'Y') { char choice =
yesno
(); return 1; } else { cout << "Pay…
Lots of Problems
Programming
Software Development
11 Years Ago
by Nethran
…thisMovie; } bool setInfo() { isCorrect = true;
yesno
= 'Y'; cin.get(); cout <<…cin >>
yesno
; while (toupper(
yesno
) != 'Y' && toupper(
yesno
) != 'N') … "; cin >>
yesno
; } switch (toupper(
yesno
)) { case 'Y': cout …
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by VernonDozier
…to [ICODE]#include <cctype>[/ICODE] [code] string
yesNo
= "Y"; bool validData = false; while (!…n for no : "; cin >>
yesNo
; if (toupper (
yesNo
[0] == 'Y') // note single quotes, not ….\n"; validData = true; } else if (toupper (
yesNo
[0]) == 'N') // note single quotes, not double quotes…
Re: Repeating printf
Programming
Software Development
11 Years Ago
by somjit{}
…: %c\n\n",
yesno
); } if ((
yesno
=='Y') || (
yesno
=='y')) { totalsales=TotalSales(totalsales…} while(getchar()!='\n'){} } else if ((
yesno
=='N') || (
yesno
=='n')) { break; } printf("Add…
Variable inside of a while loop
Programming
Software Development
15 Years Ago
by olgratefuldead
…n(You must pick Y or N): ");
yesno
= false; } } while (!
yesno
); do { if (answer.equalsIgnoreCase("N"));…then we begin the loop over again. else
yesno
= false; } while (!
yesno
); } while(decision) { System.out.print("…
Re: Variable inside of a while loop
Programming
Software Development
15 Years Ago
by peter_budo
…quot;\n(You must pick Y or N): ");
yesno
= false; } }while (!
yesno
); do { if (answer.equalsIgnoreCase("N")); // …recorded, then we begin the loop over again. else
yesno
= false; }while (!
yesno
); } while(decision) { System.out.print("\nIs…
Re: Variable inside of a while loop
Programming
Software Development
15 Years Ago
by olgratefuldead
…;\n(You must pick Y or N): ");
yesno
= false; } }while (!
yesno
); do { if (answer.equalsIgnoreCase("N")); …, then we begin the loop over again. else
yesno
= false; }while (!
yesno
); } while(decision) { System.out.print("\…
Re: Variable inside of a while loop
Programming
Software Development
15 Years Ago
by olgratefuldead
…;\n(You must pick Y or N): ");
yesno
= false; } }while (!
yesno
); do { if (answer.equalsIgnoreCase("N")); …, then we begin the loop over again. else
yesno
= false; }while (!
yesno
); } while(decision) { System.out.print("\…
number limit
Programming
Software Development
15 Years Ago
by olgratefuldead
…;\n(You must pick Y or N): ");
yesno
= false; } }while (!
yesno
); do { if (answer.equalsIgnoreCase("N")); …, then we begin the loop over again. else
yesno
= false; }while (!
yesno
); } while(decision) { System.out.print("\…
New programmer needs help with second program
Programming
Software Development
14 Years Ago
by dgr231
…/N" << endl; char
yesNo
[4]; cin.getline(
yesNo
,4); if(
yesNo
== "y" ||
yesNo
== "Y") { goto enterName; } …else if(
yesNo
== "n" ||
yesNo
== "N&…
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by dgr231
…" << endl; char
yesNo
[4]; cin.getline(
yesNo
,4); if(strcmp(
yesNo
,"y") == 0 || strcmp(
yesNo
,"Y") == 0…) { goto enterName; } else if(strcmp(
yesNo
,"n") == 0 || strcmp(
yesNo
,"N") == 0) { break; } else { cout…
Re: New programmer needs help with second program
Programming
Software Development
14 Years Ago
by dgr231
… << endl; char
yesNo
[4]; cin.getline(
yesNo
,4); if(strcmp(
yesNo
,"y") == 0 || strcmp(
yesNo
,"Y") == 0…) { goto enterName; } else if(strcmp(
yesNo
,"n") == 0 || strcmp(
yesNo
,"N") == 0) { break; } else { …
Vector problems
Programming
Software Development
13 Years Ago
by drt_t1gg3r
…>* GetLikeDislikeList(); void SetHasHeadache(bool
yesno
); void SetHasCut(bool
yesno
); void SetEyeColor(string color); void …likedislikelist; } void GIRLFRIEND::SetHasHeadache(bool
yesno
){ hasheadache =
yesno
; } void GIRLFRIEND::SetHasCut(bool
yesno
){ hascut =
yesno
; } void GIRLFRIEND::SetEyeColor(string color…
Logic Error?
Programming
Software Development
13 Years Ago
by iRemember
….println("1 for yes, 2 for no.");
YesNo
= input.nextInt(); if (
YesNo
== 1){ System.out.println("If you get…;); System.out.println("We will now begin."); } while (
YesNo
== 2){ System.out.println("It will hopefully crash now…
Re: Guessing Game Project Help
Programming
Software Development
11 Years Ago
by Gonbe
…the '==' operator, not with the '=' (assignment) operator. if (
YesNo
= Yes) // if user answers yes This will assign the value… of 'Yes' to '
YesNo
' and this expression will return the value of 'Yes'.…as follows (look it up): enum
YesNo
{ Yes, No }; You would then use
YesNo
as a type. In this specific…
Repeating printf
Programming
Software Development
11 Years Ago
by kieranrea
…("%c", &
yesno
); if ((
yesno
=='Y') || (
yesno
=='y')) { totalsales=TotalSales(totalsales… break; } } else if ((
yesno
=='N') || (
yesno
=='n')) { printf("\nTotal Sales…
Re: Lots of Problems
Programming
Software Development
11 Years Ago
by Nethran
… or (N)o: "; cin >>
yesno
; while (toupper(
yesno
) != 'Y' && toupper(
yesno
) != 'N') { cout << "\n\n…;[?] (Y)es or (N)o: "; cin >>
yesno
; } switch (toupper(
yesno
)) { case 'Y': //cout << "Saving the new…
Pointers & Ubuntu
Programming
1 Year Ago
by Kate_12
…playerName; int choice = 0; int* highScore = 0; char
yesno
= ' '; }; int D6(Game &game1); int … "; cin >> game1.
yesno
; if ((game1.
yesno
== 'y') || (game1.
yesno
== 'Y')) { game1.
yesno
== 'Y'; game1.gameOver = false;…
Re: function (loop problem)
Programming
Software Development
12 Years Ago
by raptr_dflo
Since your main() and your
yesno
() function appear to do almost exactly …that you did), I'd say a function called
yesno
should [b]only[/b] ask the user if… be much smaller and more manageable. That said,
yesno
() currenty returns an int (0 or 1), but… the one in the outside scope). Then inside
yesno
(), you have that function call itself twice. Once…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC