Array trouble
#1

pawn Код:
main()
{

            new Ranks[3][7][] =
            {
                {{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"},{"Nothing\t"}},
                {{"Nothing\t"},{"Cadet\t"},{"Officer"},{"Corporal"},{"Sergeant"},{"Lieutenant"},{"Chief\t"}},
                {{"Nothing\t"},{"Outsider"},{"Associate"},{"Soldier"},{"Capo\t"},{"Underboss"},{"Godfather"}}
            };
           
            printf("Ranks[2][6] = %s", Ranks[2][6]);



}
The code should print: 'Ranks[2][6] = Godfather' but it doesn't, it prints 'Ranks[2][6] = ther'.

What did i do wrong, please help.

Thank you.
Reply


Messages In This Thread
Array trouble - by Whizion - 16.11.2011, 22:21
Re: Array trouble - by Whizion - 17.11.2011, 07:44

Forum Jump:


Users browsing this thread: 1 Guest(s)