I got the error with this:
error C2065: 'a' : undeclared identifierCode:int *address[] = { &a, &b, &c, &d, etc... &z };
"
error C2065: 'z' : undeclared identifier
Printable View
I got the error with this:
error C2065: 'a' : undeclared identifierCode:int *address[] = { &a, &b, &c, &d, etc... &z };
"
error C2065: 'z' : undeclared identifier
The "etc..." is where you fill it in.
i filled in every letter from a to z.
you are trying to initialize the array with varriables in the line above?Code:int *address[] = { &a, &b, &c, &d, etc... &z };
>i filled in every letter from a to z.
In your original code, you have counters a through z (well actually z isn't listed). Make sure you declare these above int *address[].
Or you could simply make address an array of int:
And then leave out the dereference where address is incremented.Code:int address[26] = {0}
that doesn't make sense and it doesn't work either
I initialize those variable like this
and the program compiled but got error when run the function.Code:int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,m=0,l=0,o=0,q=0,u=0,z=0,x=0, y=0,s=0,k=0,w=0,v=0,t=0,r=0,p=0,j=0;
Post your code.