Search:

Type: Posts; User: ChickenChowMinh

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Ohh okay I get it now. I didn't realize that the...

    Ohh okay I get it now. I didn't realize that the addresses should be stored like that. And sorry, this was just a quick code I came up with, but it pretty much follows the format of my own...
  2. How to get address returned by malloc()?

    So, I'm in the midst of implementing my own malloc() and free() functions, but I'm having a hard time with the syntax of getting the address that malloc returns. Whenever I check the address, it's 0....
  3. Replies
    14
    Views
    1,497

    I reiterate my drawings into my code, but I think...

    I reiterate my drawings into my code, but I think my issue is syntax. I'm kind of uncomfortable with passing structs and such.

    The only thing that's a downer is that my class doesn't allow us to...
  4. Replies
    14
    Views
    1,497

    I actually have a paper filled with doodles of...

    I actually have a paper filled with doodles of different possible linked lists and it seems correct to me. But then again, I've been trying to write this code for hours. So, I maybe off..
  5. Replies
    14
    Views
    1,497

    How do I go about updating the list itself...

    How do I go about updating the list itself instead of the copy? This whole time I was assuming that "List" was actually being updated ><
  6. Replies
    14
    Views
    1,497

    Is there anything wrong though with the initial...

    Is there anything wrong though with the initial implementation of my code though?

    For instance:
    When I input 1, 2, and 3 and print out the list. Only 3 would print out..
  7. Replies
    14
    Views
    1,497

    I'm not really sure how to change my program...

    I'm not really sure how to change my program around this. Forgive me, I'm rusty with the syntax.
  8. Replies
    14
    Views
    1,497

    Structs and Linked Lists

    Hey,

    So, I've been working on this all day and I'm going crazy as to why my linked list isn't actually linking together. What I mean is that when I print it out, it will only print out the node...
  9. Replies
    7
    Views
    1,319

    If statement (easy, but I forgot)

    So, I'm having a really dumb moment and I cant seem to remember how an if statement works, with only the variable name as the condition.. :(



    if(var){
    //then do something
    }
  10. oh got it! I didn't really understand makefiles...

    oh got it! I didn't really understand makefiles that well until I read a bit more into it and it's not as bad as I thought it'd be. I realized that I was making my makefile longer than it should have...
  11. Thanks. I have my makefile working now. Though,...

    Thanks. I have my makefile working now. Though, is there a way to make the executable not "a.out", but a variable called "formula"..so that I can call the program like "./formula blahblah"
  12. Oops. I didn't even notice that. Thank you for...

    Oops. I didn't even notice that. Thank you for noticing.
  13. It worked! Thank you! Now, I have a makefile that...

    It worked! Thank you! Now, I have a makefile that I use to run my programs. How would I incorporate nCr.s into my makefile?

    Here's my makefile in case..


    COMPILER=gcc
    CFLAGS = -ansi -pedantic...
  14. Okay, I'll try it. I'll let you know in a minute!

    Okay, I'll try it. I'll let you know in a minute!
  15. Sorry, I forgot to mention..when I ran my program...

    Sorry, I forgot to mention..when I ran my program with full C code, it obviously didn't have that "include nCr.s" line. It just had the regular "include nCr.c". But when I incorporated the assembly...
  16. C and Assembly (error: expected identifier or '(' before '.' token)

    So I'm having trouble linking my assembly code into my C code. Simply, I have one program, but I'm using two different source codes to implement this one program.

    For the assembly code, I simply...
  17. haha you're right. I was too busy looking at the...

    haha you're right. I was too busy looking at the first few lines of main that I didn't realize that this program actually computes fibonacci values. Thanks so much.
  18. Okay, so I trying to do this, but the command I'm...

    Okay, so I trying to do this, but the command I'm putting in may be wrong.

    command: "gcc -c mystery.s"

    I keep getting these errors..
    error: suffix or operands invalid for 'push'
    error:...
  19. Currently having trouble (assembly and c)

    I have this assembly code that I'm trying to convert to C. I'm currently having trouble understanding it though. I've tried to compile it with Nasm, but I get numerous amounts of error. It could be...
  20. Replies
    15
    Views
    1,703

    :D The one thing I'd like to see is if I could...

    :D The one thing I'd like to see is if I could sort a list of words with different cases and numbers :X I'm gonna make a few changes to see if I can implement that!
  21. Replies
    15
    Views
    1,703

    Wow that works perfectly. Thank you so much!

    Wow that works perfectly. Thank you so much!
  22. Replies
    15
    Views
    1,703

    Okay I'm getting a bit closer now lol. Here's...

    Okay I'm getting a bit closer now lol. Here's what I have..

    EXPECTED OUTPUT
    adam
    banana
    cheese
    dog
    hello
    oval
    ruler
  23. Replies
    15
    Views
    1,703

    nothing happened :(

    nothing happened :(
  24. Replies
    15
    Views
    1,703

    I've noticed though that the only thing that got...

    I've noticed though that the only thing that got swapped was "cheese" and "hello".

    EXPECTED OUTPUT
    adam
    banana
    cheese
    dog
    hello
    oval
    ruler
  25. Replies
    15
    Views
    1,703

    Here's a mini version of my main function... ...

    Here's a mini version of my main function...




    #include <stdio.h>
    #include <string.h>

    int main(int argc, const char *argv[]){
Results 1 to 25 of 33
Page 1 of 2 1 2