Cheers, updated it...now I have error
C2143: syntax error : missing ';' before 'type'
on line 34
but there is no need for another ; ?
#include <stdio.h>#include <stdlib.h>
#include...
Type: Posts; User: alexmallaburn
Cheers, updated it...now I have error
C2143: syntax error : missing ';' before 'type'
on line 34
but there is no need for another ; ?
#include <stdio.h>#include <stdlib.h>
#include...
I have tried to create a choice menu, I am coming up with several error C2143's saying I am missing ')' before ;
which I don't think I need, If anyone could help me with this, maybe it is a simple...
don't think I should start another thread?
but how would I create a Xor Gate? - As i can not use the logical operators
All done & working, thanks guys
#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;
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;
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)
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
yes, dmh2000 your correct, i've mistyped that one :/
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...
Hi laserlight, could you expand on this, and yes I'm unsure of how to call functions properly.
Thanks for quick reply
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