Search:

Type: Posts; User: runtojesus

Search: Search took 0.01 seconds; generated 33 minute(s) ago.

  1. Replies
    10
    Views
    1,767

    tried it

    I tried to compile it without the y-20 in your if statement and I get an error that states:
    implicit declaration of function `int gotoxy(...)'
    implicit declaration of function `int clrscr(...)'
  2. Replies
    1
    Views
    939

    is this the best way??

    I have written a little program from an example problem in a book. I am wondering if you guys would look at it and tell me if this is the most efficient way to do this or is there a better way?

    ...
  3. it's all good

    it's cool... we are all in this together, just trying to be helpful and add a little sarcastic humor to the messages
  4. Replies
    4
    Views
    1,062

    it's all good

    what is the best way to create exit a program? For example:
    This program uses a while loop and then checks the inputed value before it enters it again. Is there a shorter better way to do this?...
  5. yeah

    Maybe you should try using a program like notepad to learn to read C++ before you put it in an IDE that does the work for you. You just posted your code blindly and it doesn't work as is... sorry...
  6. errors

    Leeman_s: I downloaded your code and found a couple of errors. It would not compile so I changed the code to work correctly. Before you brag you might want to make sure the code works:

    ...
  7. Replies
    3
    Views
    1,364

    thanks

    thanks for your help... it works fine now
  8. Replies
    3
    Views
    1,364

    incorrect output

    I am just trying to write a program where a user enters a grade and then when -1 is entered the program outputs the average grade and exits. The code I have written compiles and works, but it...
  9. Replies
    4
    Views
    1,262

    got to be a better way

    I am trying to find a better way to do this. I wrote the below code, but it is not working. How can I get this to work? I created an array to hold the values entered from the keyboard. I then...
  10. Replies
    4
    Views
    1,262

    array output

    The code below compiles and runs but it doesn't do what I want it to do. I want it to print each element of the array with 3 spaces in between. Instead, it is printing all five elements received...
  11. Replies
    2
    Views
    1,395

    try this

    int main()
    {
    int year;
    char ans;
    ans = y;
    while(ans==y)

    with this code you have created an endless loop. ans will always equal y in this case. By the way, your syntax should be:
    ...
Results 1 to 11 of 11