I'm writing a program that will take a users postfix (aka reverse polish) and complete the calculations ,except I'm having a problem taking an input with white space between characters and removing...
Type: Posts; User: Jasonx521
I'm writing a program that will take a users postfix (aka reverse polish) and complete the calculations ,except I'm having a problem taking an input with white space between characters and removing...
Anyone with a solution?
Here is my Errors:
assignment1.c: In function `gateNot':
assignment1.c:74: warning: initialization makes pointer from integer without a cast
assignment1.c: In...
Thank you for the link, it's a good reference
Thank you "maven" for the info, I was using bitwise for OR , AND and need them for integers..
what do you think about the intToBit function?
...
How would I set up gateAnd(), gateOr()...etc...
I have never tried to replicate these operations with a program, and also first time using c, only have used Java previously..
I also will have...
Thank you..
Here is the code:
#include "stdlib.h"
#include "assert.h"
#include "stdio.h"
#include "circuit.h"
int main(int argc, char * argv[])
{
Okay I made some progress, but now is where I 'm really stuck... how would I set up gateAnd, GateOr etc..?
I know the logical math and how to add binary, but never tried to replicate it with a...
thank you.. obviously
Here is the error message:
assignment1.c: In function `gateInput':
assignment1.c:24: error: syntax error before "int"
and here is the code:
#include "stdlib.h"
#include "assert.h"...