C语言小游戏3-贪吃蛇 摘要:#define _CRT_SECURE_NO_WARNINGS#pragma warning(disable:4996)#include#include#include#include#include…… 文章列表 2021年10月20日 0 点赞 0 评论 614 浏览 评分:9.9
C语言小游戏4-双人对决 摘要:/*--------------------------------------project: 双人小游戏anthor: LLz 操作 移动 逆、顺时针旋转 发射子弹 玩家1 …… 文章列表 2021年10月20日 0 点赞 0 评论 550 浏览 评分:9.9
01背包,动态规划算法 摘要:0-1背包问题:给定n种物品和一个容量为c的背包,物品i的重量是wi,其价值是vi问:应该怎样选择装入背包的物品,使得装入背包的物品的总价值最大?解:声明一个大小为m[n][c]的二维数组,m[i][…… 文章列表 2021年10月20日 0 点赞 0 评论 234 浏览 评分:9.9
关于listen函数backlog参数实战 摘要:一、环境: Ubuntu 18.04.1 LTS二、头文件 #include<sys/socket.h>三、函数简介 int listen(int sockfd,int backlo…… 文章列表 2021年10月23日 0 点赞 0 评论 317 浏览 评分:9.9
第一个代码Hello,World! 摘要:#include<stdio.h>int main(){ printf("Hello,World!"); return 0;}…… 文章列表 2021年10月24日 0 点赞 1 评论 198 浏览 评分:9.9
题目 1017: [编程入门]完数的判断(大概是最简单无脑的方法) 摘要:```cpp #include using namespace std; #include int main() { int n; cin >> n;//输入 for (in…… 文章列表 2021年10月26日 0 点赞 0 评论 233 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.3 (C语言) 摘要:/* 把a[0]默认为最小值, a[9]默认为最大值, 再一个个对比,更小的数放入a[0], 更大的数放入a[9]。*/#include <stdio.h> //导入输入数 void scan…… 文章列表 2021年10月27日 0 点赞 0 评论 623 浏览 评分:9.9
1047: [编程入门]报数问题 摘要:#include<stdio.h> int main(){ // n表示几个人围一圈, flog数组进行标识(谁被剔除),s数组表示记录报数的人,index表示位置,count表示剔除的人数…… 文章列表 2021年10月27日 0 点赞 0 评论 333 浏览 评分:9.9
做题技巧-C语言 摘要:#### 常用代码技巧 ##### 1. EOF C语言中,`EOF`常被作为`文件结束的标志`。 宏`EOF`的值就是`-1`. ASCII代码值的范围是`0~127`,不可能出现`-1`,…… 文章列表 2021年10月28日 0 点赞 0 评论 689 浏览 评分:9.9
TCP网络编程之http请求 摘要:公共头文件:#pragma once #include<stdio.h> #include<stdint.h> #include<string.h> #include<unistd.h> #…… 文章列表 2021年10月29日 0 点赞 0 评论 327 浏览 评分:9.9