结构体与自定义类型 结构体:将相关的数据放置在一起 可以通过点操作符(.)访问内部元素 可以作为函数的输入参数或返回类型一个简单的代码示例://self-defineddatatype-struct include<iostream> structPoint{ intx; inty; };//Point voidprintPoint(Pointp){ std::cout<<"x:"<<p.x<<"y:"<<p.y<<"\n"; } PointhandlePoint(Pointp){ p.x=p.x+1; p.y=...

  YFWfQFHczcqM   2024年01月25日   33   0   0 C++

1.C初识 因为先前已经学过C了,所以在C的学习中,大多只记录和C不同的点,在学习的过程中,感谢刘铁猛老师的教程,您是我C入门的领路人。 1.1使用.netcli 1.1.1使用VSCode创建C工程 先安装C相关插件 创建新工程 dotnetnewconsole-nProjectName 构建 dotnetbuild 运行 dotnetrun 更多信息访问:https://learn.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code?pivots=dotnet-8-0 1.1.2使用VisualStud...

  YFWfQFHczcqM   2024年01月25日   31   0   0 .NET
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~