It is, except that here we are using terms that are similar thing only implementing them with C.
Type: Posts; User: mutandis
It is, except that here we are using terms that are similar thing only implementing them with C.
That's great because that's just what lecture #22 addresses. Check it out I'd like to know what you think..
-Dave
But, would you only use **ptr when dereferencing?
I ask because I *think* I've seen it used as an argument in a function prototype (do you guys call them prototypes or declarations here?)
I've...
Sparrowhawk,
I just finished up my first Comp Sci class where we covered different implementations of stacks using arrays as well as data structures. It's not really practical IMHO to do it with...
YOU solved it?!? LOL! (just kidding) Congrats!
Laserlight: Thanks for pointing out how *not* to call the flip function twice. I should have known better. There are a lot of smart people posting...
Sorry. I'm confusing instead of helping... :(
Aww cripes!
I don't even know where to start to try and help you with your code. Try this:
#include <stdio.h>
int flip (int num);
int main (void) {
int i, j, c = 0;
Not sure, but shouldn't you use the (&) address of operator like this:
scanf("%d %d %d\n", ptr_wld->&zone_num, ptr_wld->&room_biv, ptr_wld->§_type);
I'm new to C, so I'm not 100% on...
Update: The second example compiles fine. I forgot about the -lm option in the case of #including the math.h library. Check it out, pretty nifty stuff!
I gave up trying to follow your code, but I do have a question and a suggestion...
Question: Why are you using 'static' on almost every function? Someone please correct me if there is a good...
Thanks Adak! Unfortunately I have a Linux machine and haven't yet figured out how to adapt dos.h into my library, but that is an encouraging avenue to investigate.
In the meantime, I wanted to...
I am running Linux. Ubuntu 7.1 to be specific....
I have had some success compiling the example code found here:
http://www.oreilly.de/catalog/multilinux/excerpt/ch14-01.htm
One solution seems...
Sorry to be difficult, but not having a finer control over the duration would actually defeat the purpose of the program. :(
You see, in order to understand morse code, you have to start out by...
[QUOTE=C_ntua;817013]I believe you just do this:
putchar('\a');
I had actually thought of that at first, but there doesn't seem to be a way to control the duration of the beep, which is...
Hi all,
I just finished my very first programming class in C. (I got an A!) I feel fairly comfortable with the basics but now that class is over I wanted to challenge myself to write something...