The C++ syntax for memory allocation for array does not allow any shortcut like what's done in Java.
You can always simulate the Javs syntax by creating a function that takes a variable number of arguments and returns an allocated int array with all the values received at their correct position in the array.
I disagree with that approach, because evaluation of functions with variable arguments have the reputation to be slow.