It gave me the undeclared first use of function:
Code:#include <iostream> #include <stdio.h> #include <string> using namespace std; #define max_size = 100; int main () { //float instrs[max_size]; FILE * fin; fin = fopen("test.txt", "r"); unsigned int oneinst; int i; while (!feof(fin)) { fscanf(fin, "%x", &oneinst); int instrs[] = {oneinst}; } for(int i = 0; i < 5; i++) { int opcode = (instrs[i] >> 26) & 0x3F; } return 0; } For reason when I run this I get the error: `instrs' undeclared (first use this function)![]()



LinkBack URL
About LinkBacks



