A possible edit of my code? Programming Software Development by jmcorpse … feet,inches,meters,cm;//Variables for the program. char rerun; do//Beginning of the do-while loop. { printMenu… 'y') { printMenu();//If user chooses y then the program will rerun. } else { cout << "\nGoodbye!";//If… Not picking up the if-else loop Programming Software Development by jmcorpse …from the user so the program will either rerun of terminate.. { using namespace std;//Used…function no longer used globally. char response,rerun;//Local variables to this function. do//…the printTime function in to the body of main. rerun = getResponse(hour, minute, waitH, waitM, days, … While error: NameError: name 'n' is not defined Programming Software Development by KatseasSAvvas …My problem is that both [CODE] import sys rerun = "y" while rerun == "n": sys.exit() else…: print("do some stuff") rerun = str(input("Would you like to start again… ")) [/CODE] and [CODE] import sys rerun = "y" while rerun == "y": print("do some … Help figure out why this is not returning. Programming Software Development by jmcorpse …waitM); printTime(cHours,cMinutes,hWait,mWait,waitH,waitM,nDays); rerun = getResponse(); }while(rerun == 'y'); return 0; } void getTime(int…,hWait,mWait,colon); timeCalc(cHours,cMinutes,hWait,mWait,waitH,waitM); rerun = getResponse(); } else { cout << "… Help With Rerunning Program Programming Software Development by xenhancd …main() { do //The do-while for a program rerun option { // Declare variables: counter, items, sales…0; float percent; float g_t; float tax; char rerun; while (count < items) { // Input information…again? (y/n)"; cin>>rerun; } } while (rerun == 'y' || rerun == 'Y'); } //End Main Function … Re: Help With Rerunning Program Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); } //End Main Function[/code… Re: Help With Rerunning Program Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); } //End Main Function[/code… Re: Dynamic Arrays Memory Programming Software Development by xenhancd …declaration of 'count' sales.cpp(83) : error C2065: 'rerun' : undeclared identifier[/quote] I was able to figure and …program again? (y/n)"; cin>>rerun; delete[] price; //delete price array because it … names array because it is no longer needed. } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; }… Help with a function error. Programming Software Development by jmcorpse … for the fourth function. int main() { using namespace std; char rerun; do { //This is the section where the variables will be… 'y' if you would like to rerun this program."; cin >> rerun; } while (rerun == 'Y' || rerun == 'y'); return 0; } //This is the… Dynamic Arrays Memory Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; } //End Main… Re: Dynamic Arrays Memory Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; } //End Main… Re: Dynamic Arrays Memory Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; } //End Main… Re: Dynamic Arrays Memory Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; } //End Main… Re: Dynamic Arrays Memory Programming Software Development by xenhancd …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Declare variables: counter, items, sales… this program again? (y/n)"; cin>>rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; } //End Main… Re: Dynamic Arrays Memory Programming Software Development by mike_2000_17 …main() { do //The do-while for a program rerun option { // Input information int items = 0; cout…again? (y/n)"; cin >> rerun; delete[] price; //delete price array because it …names array because it is no longer needed. } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; … Re: Dynamic Arrays Memory Programming Software Development by mike_2000_17 …> using namespace std; int main() { char rerun; do //The do-while for a program rerun option { // Input information int items = 0… this program again? (y/n)"; cin >> rerun; } while (rerun == 'y' || rerun == 'Y'); system ("PAUSE"); return 0; } //End Main… Re: Help With Rerunning Program Programming Software Development by Ketsuekiame …, I suspect that this shouldn't even compile as "rerun" is being used outside of the scope in which… Re: Help With Rerunning Program Programming Software Development by xenhancd I am not all that well versed with C++ and am having a little hard time understanding what you mean. But I have tried to put the char rerun outside of the do/while loop but then the program just opens and closes instantly. String Calculator C++ Programming Software Development by programmer01 …()) { return true; } else { return false; } } int main() { string expression; string rerun = "y"; cout << " Welcome to Rajat… want to quit." << endl; cin >> rerun; }while (rerun == "y"); return 0; } [/ICODE] valgrind report memory leak when assign a value to a string Programming Software Development by earlati2 …, by Julian Seward et al. ==3910== For more details, rerun with: -v ==3910== this is a test XXXXXXXXX ==3910==… 126 bytes allocated. ==3910== For counts of detected errors, rerun with: -v ==3910== searching for pointers to 3 not-…was found) are not shown. ==3910== To see them, rerun with: --leak-check=full --show-reachable=yes [enzo@P0101222 … C++ Ratio! help please! Programming Software Development by xxjinseruxx … () { float x,y, dummy; float ratio = .046; //declare variables char rerun; cout<<"Welcome to Easy ArenaRatio finder!\n… another ratio? <y/n>: "; cin >> rerun; return 0; }[/CODE] Re: C++ Ratio! help please! Programming Software Development by vmanes … process in a loop, such as [code=c++] char rerun = 'y'; while ( rerun == 'y' ) { //do the work //ask if player wants another… Help with a if loop Programming Software Development by jmcorpse …;//Constant for meters in a foot. char getResponse();//This will rerun or terminate the program based on the users input. using… the program. char yes_no = 'y';//Variable for the response to rerun or terminate loop. do//Beginning of the do-while loop… Can't get certain products to install on server Hardware and Software Microsoft Windows by Vampdee … the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup. Exit code (Decimal): -2068052413 Exit facility code… the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup. Start time: 2011-12-08 10:51… I cannot find the memory leak in my program, can someone help? Programming Software Development by gwolf1 … 33 blocks ==640== suppressed: 0 bytes in 0 blocks ==640== Rerun with --leak-check=full to see details of leaked memory… ==640== ==640== For counts of detected and suppressed errors, rerun with: -v ==640== ERROR SUMMARY: 0 errors from 0 contexts… Attempt to free thread Programming Software Development by fyra … 4 blocks ==11701== suppressed: 0 bytes in 0 blocks ==11701== Rerun with --leak-check=full to see details of leaked memory… ==11701== ==11701== For counts of detected and suppressed errors, rerun with: -v ==11701== ERROR SUMMARY: 4 errors from 1 contexts… Making Inventory for game with Composite C++ Programming by _1_5 … Arrow", 50); ArrowBundle sa("Standard Arrow", 30); reRun: cout<<"Add Item "<<endl…;<endl; arrow.getDescription(0); cout<<endl; goto reRun; system("pause"); return 0; } Re: Computer is very slow Hijack log Hardware and Software Information Security by alsoule …; O4 - HKLM\..\RunOnce: [*urlcr] C:\WINDOWS\msagent\chars\urlcr.exe rerun O4 - HKLM\..\RunOnce: [*mainwin] C:\WINDOWS\msagent\mainwin.exe… rerun O4 - HKCU\..\Run: [MSMSGS] "C:\Program Files\Messenger\msmsgs.… Re: C++ Ratio! help please! Programming Software Development by xxjinseruxx Right, how do i do that? oh and one more thing.. when it reruns..it does it underneath the old text..is there anyway to make it rerun as though its been opened fresh? thanks alot! mozilla is awesome... Hardware and Software Information Security by ocnative1964 … explorer and outlook cold, approximately 2 months ago, I have rerun the spyware removal and such and have had not 1…