What about :
int *num;
int i;
num.val=10;
i=num.val;
Type: Posts; User: sweets
What about :
int *num;
int i;
num.val=10;
i=num.val;
Isnt this how I would dereferrence a pointer
int *num;
...
...
int i;
i = #
Gotcha....thanks for everything
Great feedback ;)
Where did you figure out the page table offsets to be 2^9? Is it because it is 2 pages, so you just divided the remaining 18 bits???
sorry :(
wasnt thinking when I answered....busy stressing out about my finals
- How did you figure out that 16 kbytes was 2^14? :blush:
- I dont know why they are using 9 for the page table offset. I was hoping someone could tell me that
The question has other parts,...
const int MAX=12;
int printArray (int [])
int main ()
{
int numArray[MAX];
cout << "Please enter 12 numbers";
I am studying for my OS finals and there is something I just cant understand. The question is as follows:
Consider a virtual memory system with the following parameters:
- 32 bit virtual...
Thanx ;) does anyone have any other ideas or suggestions :confused:
Sorry...I didn't want to overflow you all with too much info.
A 'new mail' UI is displayed when the user clicks the email button. The user enters the email address and file and hits the send...
I dont know if this is possible or not, but what I need to do is create a list of email addresses and the filenames to be sent with the email. Later this list will be sent to outlook for mailing.
...
Being a beginner, I would have never picked it up.
:D Thanx guys
I have been going through the qsort questions/responses and still cannot figure out what Im doing wrong. The following is what I have:
int compareface(const void* c1, const void *c2)
{
...
This code is for sample purposes....normally if in a condition where a list, tree etc is created using a obj declared within the class, would the contents within that object cease to exist when the...
all strings need to end with '\0'...try
len = strlen(strTemp);
strTemp[len] = '\0';
Something I am very confused about..assuming I had the class and functions found below.
When the printTestData() fnct starts running, will the listObj contain anything in it? or am I suppose to...
The thing is...I actually want the object within the node returned,so I can use the object in the calling function. The returned objects data are to be written to a file and used elsewhere....that's...
I want to save the data found within my tree but I am not sure how to do this. I was thinking that my printInOrder() function could be changed to be generic and return the data to the calling...
You could try using kbhit()...for example
int main ()
{
cout << "\nThis is a test to see kbhit()";
cout << "\n Prog. will not continue until you press enter";
...
I have attached the txt file I am trying to store. Here is the dictionary struct. I keep getting the error at 8801.
const int LEN = 150;
struct Dictionary
{
long ID;
char key[LEN];
I am sending the tree an object that contains information such as :
Essendon 3040 <-- This line is used as the key
27234
Essendon North 3041
27235
Essendon West 3040
27236
I have created an avl tree which seems to work if the information stored is only in the hundreds. The problem begins when the information to be stored in the tree is in the thousands. The tree...
The actual files are separated..but I just kept it as one for example purposes. As for the merged headers...what is a merged header??
I need to include a .h file that has already been included in another file. Because I cant include the same .h files in two different classes, I am stuck.
The following is an example of what I...
clrscr();
Please also check the FAQ....you will find the answers to alot of similar questions
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385