I am having trouble to print a message before user's input from command window.
I wrote a read() method in the "Instruction.c" file as follow:
#include <stdio.h>
#include <stdlib.h>
#include...
Type: Posts; User: robert_sun
I am having trouble to print a message before user's input from command window.
I wrote a read() method in the "Instruction.c" file as follow:
#include <stdio.h>
#include <stdlib.h>
#include...
nop, still doesn't work. Only the the perror() was called and error message printed out before the user input, the printf() still doesn't work properly
I wrote a read() method in the "Instruction.c" file as follow:
#include <stdio.h>
#include <stdlib.h>
#include "memory.h"
#include "processor.h"
void read(int address)
{
I wrote a simple program called "processor.c" like this:
#include <stdio.h>
#include "memory.h"
#include "processor.h"
#include "Instructions.h"
int main()
{
thanks for the help. I have changed all te define in the Instruction header file, after the compilation, the new error messages come up like this:
snow:Cproject$ gcc processor.c...
I am having an annoy problem with errors:
processor.c:22: called object is not a function
processor.c:24: called object is not a function
processor.c:26: called object is not a function...