thanks dude
i was lost in the tabs
one more problem
i wrote this code
Code:
#include <stdio.h>
#include <conio.h>
int main(int argc, char **argv)
{
int i;
int numbers[10];
for(i=0;i<5;i++)
numbers[i]=10+i;
for(i=5;i<10;i++)
numbers[i]=i;
for(i=0;i<10;i++)
printf("%d ",numbers[i]);
for(i=0;i<argc;i++)
printf("\n%d %s",i, argv[i]);
if(argv[2] == "-a")
printf("Ascending");
else
printf("Descending");
getch();
return 0;
}
now i put the arguments -a -a -a in the project,-settings-debug-...
but i can not get the Ascending message, instead i get the Descending message.