给定一个范围列表,例如:1-3,5,6-4,31,9,19,10,25-20,我如何将其简化为1-6,9-10,19-25,31?$in = '1-3,5,6-4,31,9,19,10,25-20';$rs = explode(',', $in);foreach($rs as $r) {
// find the start and end date of the ra
在第6章中,示例6-4建立了反彩色索引模式下的线条.我用它编写了代码并编译了它。代码运行,但问题是,应该着色的行只是白色的。在init()函数中插入了这一行:
printf("The size of the color map is %d entries\n", glutGet(GLUT_WINDOW_COLORMAP_SIZE