User Profile

Collapse

Profile Sidebar

Collapse
Keo932
Keo932
Last Activity: Nov 30 '06, 07:51 PM
Joined: Oct 17 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Keo932
    started a topic esc key to exit do while loop
    in C

    esc key to exit do while loop

    Anyone know how to enable the esc key to exit a do while loop?
    Code:
     
    do 
    {
    
    
    } while(ch != ?);
    See more | Go to post

  • Keo932
    replied to HELP! C++ program for simulating tollbooth
    in C
    i wish i could but the instructions call for the esc key to be pressed
    See more | Go to post

    Leave a comment:


  • Keo932
    started a topic HELP! C++ program for simulating tollbooth
    in C

    HELP! C++ program for simulating tollbooth

    Hello all,

    I am finishing up my program to simulate a tollbooth by using classes. What happens is cars passing by the booth are expected to pay a fifty cent toll. The program keeps track of the number of cars that have gone by (paid and unpaid), and the total money collected.

    The two data items are of type int to hold the total number of cars and type float to hold the total amount of money collected.
    A constructor...
    See more | Go to post

  • Keo932
    started a topic Program crash. Can't identify problem
    in C

    Program crash. Can't identify problem

    The following is supposed to print out a two dimensional array but instead it crashes at the end. If anyone could take a look and notice any problems i could sure use the help. Thanks

    Code:
    #include <iostream>
    #include <iomanip>
    #include <math.h>
    void voltage(void);
    
    int main()
    {
    voltage();
    return 0;
    }
    
    void voltage()
    {
    ...
    See more | Go to post

  • Keo932
    replied to Help! Storing strings into arrays
    in C
    ah so it was a for loop.. i was having trouble deciding which loop to use. Sircool, thanks for taking the time to help. Everything works perfectly now
    See more | Go to post

    Leave a comment:


  • Keo932
    started a topic Help! Storing strings into arrays
    in C

    Help! Storing strings into arrays

    Im having trouble with the last part of an assignment of storing a user defined string into a one dimensional array. If anyone can help it would be much appreiated. Here's what it requests:
    • Prompts the user to enter a string and store it into one-dimensional array.

      Replace the content of the string with the string reversed and save into another array.

      Print both the original string and reversed one in this function.
    ...
    See more | Go to post

  • Keo932
    replied to Newbie. help with validity checks
    in C
    thanks buddy
    See more | Go to post

    Leave a comment:


  • Keo932
    started a topic Newbie. help with validity checks
    in C

    Newbie. help with validity checks

    How would i loop this switch statement if the user does not want to quit after running the selection, lets say 'S'. I tried a do while loop but it only causes errors. Thanks!

    char choice;

    do{
    switch (choice)

    {
    case 'V': case 'v':
    voltage ();
    break;
    case 'S': case 's':
    rev_str();
    break;
    case 'Q': case 'q':
    cout << "Program...
    See more | Go to post
No activity results to display
Show More
Working...