"File" undeclared issue/stdio not found
Hello, I am new to c programming so please be patient. When I try to run this code through the compiler, it comes out as a "FILE" undeclared error on line four, even when i move line four lower via the enter key. Also, my stdio.h file is not being picked up by the compiler, even when I type out the full destination. here is the code:
Code:
#include<C:\Users\drewtoby\Desktop\My Folder\projects\C\Game\stdio.h>
void main()
{
FILE * fopen(char * "C:\Program Files (x86)\Notepad++\notepad++.exe");
char astring[99999999999999999999999999999999999999999999999999999999999999999999];
int i = 0;
getch( "%s", astring );
for ( i = 0; i < 10; ++i )
{
if ( astring[i] == 'w' )
{
goto up_key;
}
if ( astring[i] == 's' )
{
goto down_key;
}
if ( astring[i] == 'a' )
{
goto left_key;
}
if ( astring[i] == 'd' )
{
goto right_key;
}
if ( astring[i] == 'z' )
{
goto power_key;
}
}
up_key:
{}
down_key:
{}
left_key:
{}
right_key:
{}
power_key:
{}
}
My main goal is to be able to open up different windows for a very small image game. I have read through some tutorials, and understand the BASICS at the moment. Thanks for the help!!!