Search:

Type: Posts; User: cheesehead

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,457

    next step in a jump

    Here is a direct intersegment jump that is assembled:

    EA 03000210 jmpi 1002h,3 ;jump to the Linux kernal

    Where does it go?
  2. Replies
    6
    Views
    2,653

    Bubba: Thanks for the reply. However, you blew...

    Bubba:

    Thanks for the reply. However, you blew past me. I'm not sure if I understand what you said.

    Your example did not refernce the value 10000 or the array memory[Size]. Sorry for the...
  3. Replies
    6
    Views
    2,653

    Initialize an array

    Will the code below preload an array of 100 locations with the
    value 10000?

    size - 100
    int memory[Size]
    const int mem = 10000;


    int *p, memory[Size];
    for ( p = &memory[0]; p <...
  4. Replies
    4
    Views
    1,118

    Enumeration question?

    This is a problem with calling a function.

    I have declared the following:

    enum height { high, low, equal }
    void errormsg ( errors )

    ////////////////////
  5. Replies
    5
    Views
    2,225

    Sorry - maybe my question wasn't clear. I did...

    Sorry - maybe my question wasn't clear.

    I did want to put 8 in every element. I realize that the computer will store this as an ascii number but my program will require number of + to - 10000. I...
  6. Replies
    5
    Views
    2,225

    Does this mean that if I wanted to load every...

    Does this mean that if I wanted to load every element of the array with the number 8 it would be :
    --------------------------------------------
    /*fills an array with 8's*/
    char array[SIZE], *p;...
  7. Replies
    5
    Views
    2,225

    Loading an array using pointers

    I am trying to use pointers to preload an array. I know how to do it as an array but the pointer method has my head twisted around.

    The Array is defined as Array[Size]

    If I used a function ...
  8. Replies
    3
    Views
    2,040

    Illegal local function definition

    Can you point out my error? Am I missing something obvious???

    The function should return a TRUE if the number falls between -9999 and +9999. False if out of range.

    Using MSV C++ 6 Intro...
  9. Replies
    2
    Views
    1,157

    Point well taken but there are several...

    Point well taken but there are several restrictions on the problem.

    It still doesn't make sense that the program would go to the if when the value was not exceeded.
  10. Replies
    2
    Views
    1,157

    Logic doesn't equal

    Listed below is the complete set of code for a problem.
    It is the classic turtle graphics problem. PenUp, PenDown, Turn Left, Turn Right, Move, print Array.

    The problem occurs during the...
  11. Replies
    5
    Views
    1,063

    The cout

    The cout << (char) a[i][j]; didn't work. I ended up with a series if if else statement. This worked but not pretty. I'm glad I only had two char.

    BTW - cout << (char) a[i][j]; statement did not...
  12. Replies
    5
    Views
    1,063

    Thanks for the reply, here is some additional...

    Thanks for the reply, here is some additional information.

    1) The array was predefined and wasn't to be altered

    declaration
    int floor[BoardSize][BoardSize] = {{0,0}},

    2) The call

    case...
  13. Replies
    5
    Views
    1,063

    Character won't print from an array

    I have a 2 dim array a [20] [20} with the character * in some locations. It was loaded as Character = '*' into the location. When I cout a[x][y], I get the ASCII number. In this case 42 instead of...
  14. Replies
    5
    Views
    2,738

    Great hint - it took care of the left & right...

    Great hint - it took care of the left & right problem.

    Now it only has 2 problems:

    1) The Pen Up / Pen Down

    2) Printing characters it now prints only the number 42 instead of the *
    ...
  15. Replies
    5
    Views
    2,738

    I tried that but the direction did not change....

    I tried that but the direction did not change. The declaration and the function were changed. Any other places?

    int turnRight(int &);


    int turnRight(int &d)
    {
    ++d;
    if (d=4)
    d = 0;
  16. Replies
    5
    Views
    2,738

    Classic problem doesn't accept direction

    Listed below is the classic turtle graphics problem. It takes a command 1 through 9. The problem is that it won't place the distance or the direction into the move function. It must have something to...
  17. Replies
    0
    Views
    1,295

    Graphics won't print characters

    This program seems to work OK except for the "walking" ( function movePen ) part. It gets the commands and prints. The answer is probable right in front of me. Can you give me a clue?

    Thanks...
  18. Replies
    20
    Views
    2,654

    A liitle work on my own solved the questions. ...

    A liitle work on my own solved the questions.

    I changed all the cin >> to variable = cin.get();

    I then added one line to the main() . Since the problem occured at initialization, I found...
  19. Replies
    20
    Views
    2,654

    What do you mean by overloaded version of get()?...

    What do you mean by overloaded version of get()? I would appreciate an example.
  20. Replies
    20
    Views
    2,654

    My book says that letter1 = cin.get() will...

    My book says that letter1 = cin.get() will only read the next character and puts that in letter1.

    Can something be put in the () to limit the input to 1 character?
  21. Replies
    20
    Views
    2,654

    I know that you should quit when something works...

    I know that you should quit when something works but you don't learn much that way. I substituted all the cin statements in the recursion with variable = cin.get()

    The program then did the...
  22. Replies
    20
    Views
    2,654

    You are correct Zen. That line did it. However,...

    You are correct Zen. That line did it. However, the single character case ( half == 0 ) will only work if I add status = true; to that bit of code. Without it, it says that " is not a palindrome."...
  23. Replies
    20
    Views
    2,654

    Here is a copy of the code that hangs. Meaning it...

    Here is a copy of the code that hangs. Meaning it print the palindrome & stops.

    I the half == 0 code is commented out, the program runs fine for characters 2 and up. ????#include <iostream>

    ...
  24. Replies
    20
    Views
    2,654

    Zen: here is the entire program. The main()...

    Zen:

    here is the entire program. The main() seems to work fine but the bottom does not recurse as intended.

    It should: 1) get a letter 2) write a letter 3) recurse for half the number of...
  25. Replies
    20
    Views
    2,654

    Thanks - but how do I decrement half. If I...

    Thanks - but how do I decrement half. If I decrement in the first if statement if(half-- >= 1 ) then the program jumps back to main but goes into a loop in main() with no exit.
Results 1 to 25 of 26
Page 1 of 2 1 2