As deceptikon said, a declaration of variable is saying to compiler "I will use a variable it is defined before and on another file."
nitin1 commented: why are you repeating it ? +0
As deceptikon said, a declaration of variable is saying to compiler "I will use a variable it is defined before and on another file."
You need to write your own C# compiler. there are not any compiler in the market for this purpose.
You could use sprintf to convert int numbers to string then compare them with strcmp or memcmp
if you want do run a loop at least once, it is better to use do-while loop.
lets explain more. look this sample code:
FILE *fp;
do
{
read file and assign some values
}
while( some data in file is equal to special value so file read again );
will use last data from file
in this example if you dont use do-while loop structure you need read file once before loop and also read in loop ;)
as you say "it is mainly just a readability thing"
if you want do run a loop at least once, it is better to use do-while loop.
lets explain more. look this sample code:
FILE *fp;
do
{
read file and assign some values
}
while( some data in file is equal to special value so file read again );
will use last data from file
in this example if you dont use do-while loop structure you need file once before loop and also read in loop ;)
as you say "it is mainly just a readability thing"