String interpolation
#2

Instead of ( ) use " " and you don't need ; in it example:
PHP код:
#define MAX_CUSTOM "5"

//...
print("I like " #MAX_CUSTOM " cakes"); 
Reply


Messages In This Thread
String interpolation - by Misiur - 16.03.2016, 14:50
Re: String interpolation - by jlalt - 16.03.2016, 15:15
Re: String interpolation - by Misiur - 16.03.2016, 15:22
Re: String interpolation - by jlalt - 16.03.2016, 15:33
Re: String interpolation - by Gammix - 16.03.2016, 16:14
Re: String interpolation - by Misiur - 16.03.2016, 16:30

Forum Jump:


Users browsing this thread: 2 Guest(s)