By the way, int i=-9 defines a signed integer by default (unless your compiler has a flag that changes that default behaviour). For unsigned...
They don't. Unsigned integers are unsigned, by definition, and therefore always positive. If you try then what will happen is that the bit...
Re: Main difference between a variable declared globally with and without extern keyw Or for even less coding: variable_defs.h: #ifndef EXTERN...
Re: Main difference between a variable declared globally with and without extern keyw It's actually quite simple. If you define a variable in a...
Strange question; that's the syntax, you just have to get on with it. But there's nothing magic about a %. It could equally well have been # or...
Why not confirm what it is doing by displaying the value of the pointer? You'll see clearly what it is doing then.
No, it's not. Edit: Sorry, correction. Yes, it is. What will it be pointing at after you add ANOTHER 15 elements to the pointer?
Because date is already a pointer.
No it's not a syntax error. Think again. What is path pointing at when you get into this function?
The code is valid, the output should actually be "Computer8". 8 is returned by printf, which returns the number of characters it prints.
Think hard about this line: path = &(path[15]); // reset back to centre
It doesn't seem like a difficult task. How far have you got and where are you stuck? Do you understand the requirements? What CPU are you using?
What, for free?
1 & 2, the error probably means stdafx.h doesn't exist. Check if Precompiled Headers are switched on in Project Properties - Configuration -...
Sounds like a homework assignment. Have you tried reading your notes, and/or the course book? If you're really stuck and don't know where to...
New Project expand Visual C++ in the left pane select Win32 So far so good, this is what you've done previously. Now, instead of selecting...
Assuming line 46 is this one: element = list_entry (ptr, struct roll_struct, list); you can't put a typename (struct roll_struct) there. You...
Can you do a text-mode screen shot (and just paste it in here) to show the input you gave and the output you got? Also state (a) what output was...
I like using state machines for this kind of stuff. switch (state) { case 0: // door is locked and we want a PIN get_PIN(); state =...
Really? Which bit did you find of help?
Separate names with a comma.