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...
Type: Posts; User: coug2197
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...
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...
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...
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
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...
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...
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]...
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...