![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
Seshoumaru_?
这个作者很懒,什么都没留下…
展开
-
C三子棋游戏半成品
game.h#pragma once#include<stdio.h>//符号的定义#define ROW 3#define COL 3//函数的声明//初始化棋盘void InitBoard(char board[ROW][COL],int row, int col);//玩家下棋void PlayerMove(char board[][COL], int row, int col);//电脑下棋void ComputerMove(char board[][CO原创 2021-10-30 18:16:31 · 67 阅读 · 0 评论 -
typedef与static
typedef类型重命名#include<stdio.h>typedef unsigned int u_int;//类型重命名int main(){ unsigned int num = 100; u_int num2 = 100; return 0;}static静态修饰变量修饰局部变量#include<stdio.h>int main(){ int i = 0; while (i<10) { test(); i++; } re原创 2021-10-26 13:00:12 · 217 阅读 · 0 评论 -
关于scanf的补充
先看一下下面的代码#include<stdio.h>int main(){ int a = 0; int b = 0; int sum = 0; scanf("%d %d",&a,&b); sum = a + b; printf("%d", sum); return 0;}运行结果会报错,系统告诉你“scanf”:此函数或变量可能不安全。考虑使用SncFis代替。要禁用弃用,请使用_CRT\u SECURE\u NO\u警告。解决方案1.使用sc原创 2021-10-20 17:54:16 · 145 阅读 · 0 评论