纠正以下扭曲图像的步骤是什么?它看起来像是从中心凸出的图像.它们具有相同的QR码,因此可以使用这些图像的组合来获得单个正确和直接的图像.请指教.

我是新手,我试图float在两边打印最多四个值.例如11.3将0011.3000.为此,我使用以下行: -
float t = 11.3;
printf("%4.4f", t);
Run Code Online (Sandbox Code Playgroud)
但我得到了11.3000.那么,甚至可能我想做什么?如果是,那怎么样?谢谢
我试图检查通过分配的指针内存的大小malloc().为此,我编写了一个程序,其中我最初分配10的内存大小.然后插入for循环并通过使用继续增加内存realloc().我正在使用检查内存大小sizeof.
这是我的代码:
int main(int argc, _TCHAR* argv[])
{
char *ptr;
long int size;
int count;
ptr = (char *) malloc(10);
size = sizeof(*ptr);
printf("size of ptr is= %d\n",size);
for(count=11;count<=100;count++)
{
ptr=(char *) realloc(ptr,count);
size = sizeof(*ptr);
printf("size of ptr is= %d\n",size);
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
但我总是'1'作为输出:

所以,请告诉我是否有其他方法可以做到这一点.