14.05.2017, 14:33
Quote:
PHP код:
|
PHP код:
new arrays[][]= {"abc","fdg","******","******"};
main()
{
printf("Index = %d",getIndex(arrays,"samp"));//prints 1
printf("Index = %d",getIndex(arrays,"******"));//prints 1
printf("Index = %d",getIndex(arrays,"fdg"));//prints 3
}
PHP код:
main()
{
new arrays1[][]= {"abc","******","loop","fdg"};
new arrays2[][]= {"abc","fdg","******","******"};
printf("Index = %d",getIndex(arrays1,"fdg"));//prints 3
printf("Index = %d",getIndex(arrays2,"fdg"));//prints 3
}