小编Ala*_*ker的帖子

为什么 if else 结构在 C++ 中不起作用?

我一直在尝试用 C++ 编写 tictactoe,但我不知道为什么 if else 语句没有被执行。

    #include <iostream>
#include <conio.h>
#include <cstdlib>

using namespace std;

char XorO;

int n;

char a = '1';
char b = '2';
char c = '3';
char d = '4';
char e = '5';
char f = '6';
char g = '7';
char h = '8';
char i = '9';

int charchange[] = {79, 80, 81, 575, 6786, 75, 7879, 67697, 689698};
void Welcome() // FUNCTION1
{
    cout << "\nWelcome to Tic-Tac-toe!!!\n";
    cout << …
Run Code Online (Sandbox Code Playgroud)

c++ if-statement

2
推荐指数
1
解决办法
121
查看次数

标签 统计

c++ ×1

if-statement ×1