codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  hi there, a do while loop needs work  ctfexe at 17:31 on Thursday, March 08, 2007
 

//i want to say ask for user input until he inputs, then carry on.
//code;

char direct='k';

do {
cin>>direct;
cout<<"enter direction\n";
} while
( direct=='k' );


THis is wrong, please help

  Re: hi there, a do while loop needs work  topuc++ at 18:16 on Tuesday, June 12, 2007
 

#include <iostream>

using namespace std;

int main()
{

char direct='k';

do {
cout<<"enter direction\n";
cin>>direct;
} while
( direct=='k' );

}

i was not clear what you trying to do.try this if you are not happy let me know.

thanks









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: calling javascript function in asp page
•  Passing parameters to a perl program from a HTML form
•  Calculation error in Javascript
•  help try to update parameters in sql server with Stored Procedure in ASP
•  help try to update parameters in sql server with Stored Procedure in ASP
•  help try to update parameters in sql server with Stored Procedure in ASP
•  Re: Can anyone please help me, html table to access.
•  Get strings between tags on web pages
•  Providing time parameters to user when searching


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007