Search:

Type: Posts; User: mutandis

Search: Search took 0.00 seconds.

  1. It is, except that here we are using terms that...

    It is, except that here we are using terms that are similar thing only implementing them with C.
  2. That's great because that's just what lecture #22...

    That's great because that's just what lecture #22 addresses. Check it out I'd like to know what you think..

    -Dave
  3. But, would you only use **ptr when dereferencing?...

    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...
  4. Sparrowhawk, I just finished up my first Comp...

    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...
  5. YOU solved it?!? LOL! (just kidding) Congrats! ...

    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...
  6. Thread: Noob question

    by mutandis
    Replies
    19
    Views
    2,642

    Sorry. I'm confusing instead of helping... :( ...

    Sorry. I'm confusing instead of helping... :(



    Aww cripes!
  7. Replies
    20
    Views
    2,504

    I don't even know where to start to try and help...

    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;
  8. Thread: Noob question

    by mutandis
    Replies
    19
    Views
    2,642

    Not sure, but shouldn't you use the (&) address...

    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->&sect_type);


    I'm new to C, so I'm not 100% on...
  9. Replies
    10
    Views
    4,181

    Update: The second example compiles fine. I...

    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!
  10. Replies
    9
    Views
    3,581

    I gave up trying to follow your code, but I do...

    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...
  11. Replies
    10
    Views
    4,181

    Thanks Adak! Unfortunately I have a Linux machine...

    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...
  12. Replies
    10
    Views
    4,181

    I am running Linux. Ubuntu 7.1 to be specific.......

    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...
  13. Replies
    10
    Views
    4,181

    Sorry to be difficult, but not having a finer...

    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...
  14. Replies
    10
    Views
    4,181

    [QUOTE=C_ntua;817013]I believe you just do this:...

    [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...
  15. Replies
    10
    Views
    4,181

    Producing a "beeep!" as simply as possible

    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...
Results 1 to 15 of 15