Search:

Type: Posts; User: alexmallaburn

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    18,467

    don't think I should start another thread? but...

    don't think I should start another thread?
    but how would I create a Xor Gate? - As i can not use the logical operators
  2. Replies
    21
    Views
    18,467

    All done & working, thanks guys

    All done & working, thanks guys
  3. Replies
    21
    Views
    18,467

    #include int And(int x, int y); int...

    #include <stdio.h>int And(int x, int y);
    int Not(int x);
    int Or(int x, int y);
    int multiplexer(int a, int b, int c);

    int main(void)
    {
    int a;
    int b;
    int c;
  4. Replies
    21
    Views
    18,467

    how would i go about that, I understand how i...

    how would i go about that, I understand how i would do it using if statements - does the not function for example return 1 ?






    int Not(int x)
    {
    return !x;
  5. Replies
    21
    Views
    18,467

    is it that there is two int x's - I have...

    is it that there is two int x's - I have corrected that then i get a LNK2019 error








    int Or(int x, int x)
  6. Replies
    21
    Views
    18,467

    Thank you laser light - massive help I'm...

    Thank you laser light - massive help

    I'm getting error C2086: 'int x' : redefinition on line 40
    & error C2065: 'y' : undeclared identifier on line 42
  7. Replies
    21
    Views
    18,467

    yes, dmh2000 your correct, i've mistyped that one...

    yes, dmh2000 your correct, i've mistyped that one :/
  8. Replies
    21
    Views
    18,467

    I have updated the code but need more help...

    I have updated the code

    but need more help with the calling the function part, could you give a full example - much appreciated



    #include<stdio.h>int And1(int a, int b);
    int And2(int b, int...
  9. Replies
    21
    Views
    18,467

    Hi laserlight, could you expand on this, and yes...

    Hi laserlight, could you expand on this, and yes I'm unsure of how to call functions properly.

    Thanks for quick reply
  10. Replies
    21
    Views
    18,467

    Logic Gates - Multiplexer Help

    Hi, I have to make a 2:1 multiplexer in C programming for an assignment

    The user has to input A B & C (with C being the switcher)

    Y is the output

    Truth table


    C
Results 1 to 10 of 10