Hello, I am having some strings grammar problems.
char *eisodos1[50];
char e;
int *a;
int i;
int main()
{
eisodos1[i]=getchar(); (1)
e=eisodos1[i]; (2)
if (eisodos1[i] == ' ') g++; (3)
while ((e!=EOF) && (a!=EOF)); (4)
}
Please don't look the code like a complete program, I posted the lines that I got a warning (not an error).
Ok first I am not sure about the declaration of strings and if I can declare them without saying the max number.
Here are the warnings:
(1) assignment makes pointer from integer without a cast (I dont even know whats a cast)
(2) assignment makes intenger from pointer without a cast
(3) comparison between pointer and integer
(4) is it correct?
Also by the way,
data = fopen("C:\\Program Files (x86)\\CodeBlocks\\mydata.dat","rb");
if (data == NULL)
the data isn't getting NULL, even the file doesn't exist!