Search:

Type: Posts; User: coug2197

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,314

    Looks like C will be calculated twice. Since B...

    Looks like C will be calculated twice. Since B is an int, and the assignment b=b/2 when b is origially 9 will result in 4.5, but because b is an int, the .5 is dropped off, and b is 4. And since 9...
  2. Thread: Unions

    by coug2197
    Replies
    1
    Views
    916

    Unions

    Hi, doing an assignment that involves floating point numbers and integers. What I am supposed to do is make the program use either integers or floating point numbers depending on the input from the...
  3. Replies
    1
    Views
    935

    Instantiating classes

    Right now I'm working on a program that uses a class that contains pointers to other classes. The problem I am having is trying to figure out where to instantiate the classes using the "new" command...
  4. Thread: XOR lists?

    by coug2197
    Replies
    4
    Views
    1,865

    same class

    hey man, same class. I dunno how much help I can be at this point, but drop me an email with the subject "CPTS 223", and we'll talk.

    jimbeam445@hotmail
  5. Thread: pointers

    by coug2197
    Replies
    3
    Views
    1,141

    xorstore

    here is the code for the xorstore()

    xorptr AllocXorStr()
    {
    return (xorptr)malloc(sizeof(xorstr));
    };

    This is declared outside of the class. Why, I am not sure, but prof. says that it is...
  6. Thread: pointers

    by coug2197
    Replies
    3
    Views
    1,141

    pointers

    I can't seem to get this access to the correct pointers. I have delared two header nodes as private members in the class to point to the head and tail nodes of a linked list. When I run the...
  7. Thread: strcmp

    by coug2197
    Replies
    4
    Views
    1,359

    strcpy

    I'm trying to copy some strings into a char* array, I've been trying to use strcpy, only when I do, the program crashes. The array is initialized, within a class, as:

    char* Commands[MAXNUMBER]...
  8. Thread: void pointers

    by coug2197
    Replies
    2
    Views
    1,336

    void pointers

    Hey I'm having trouble with some void pointers, I'm really pretty unclear on their usage. If some one could provide me with an explanation of them and how to use them, I would be mighty...
Results 1 to 8 of 8