How to save text in variable?
#3

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
You are not leaving a 'slot' for the NULL terminator.

It should be:

PHP код:
new Text[5] = "Nice"
Could also be written as:

PHP код:
new Text[5] = {'N''i''c''e''\0'}; 
I still get the same error
Reply


Messages In This Thread
How to save text in variable? - by Supermaxultraswag - 07.11.2015, 17:38
Re: How to save text in variable? - by ThePhenix - 07.11.2015, 17:44
Re: How to save text in variable? - by Supermaxultraswag - 07.11.2015, 17:53
Re: How to save text in variable? - by AbyssMorgan - 07.11.2015, 18:09
Re: How to save text in variable? - by Supermaxultraswag - 07.11.2015, 18:35

Forum Jump:


Users browsing this thread: 2 Guest(s)