chu.cpp
来自「关于数据结构的各章节的c原代码实现」· C++ 代码 · 共 20 行
CPP
20 行
// chu.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
float *fp;
fp=(float*)malloc(sizeof(float));
if (fp==NULL)
{printf("分配内存失败!");
}
*fp=3.14;
printf("圆周率是%f\n",*fp);
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?