This format position specification also exists in C/C ++
For example:
Code Block |
---|
sprintf(buf, "row=%2$i column=%3$i value=%1$lf",value,row,column); |
Unfortunately it is not standard on all platforms, with MS Visual C ++ 6.0 for example it does not work, it would print this:
row=$i column=$i value=$lf
Therefore this indexed format should only be used in Tcl, but not in C / C ++.