小编Gop*_*rma的帖子

如何美化PhpStorm和其他Intellij编辑器中的代码?

有没有办法在PhpStorm中美化我的PHP代码?(键盘快捷键更可取)

phpstorm

26
推荐指数
2
解决办法
5万
查看次数

在C/C++中使用chars执行算术运算

这个C/C++代码如何工作?我理解了大部分但不是下面指定的部分:

c2= (c1>='a' && c1<='z') ? ('A'+c1-'a'):c1
Run Code Online (Sandbox Code Playgroud)

特别是这部分:

('A'+c1-'a')
Run Code Online (Sandbox Code Playgroud)

这部分代码在做什么?

无论c1c2有型char.

c c++

4
推荐指数
1
解决办法
197
查看次数

c中的算术运算符,模数(%)给出警告.为什么?

int main(void)
{
    int a=12,b=3;
    printf("\n a+b = %i\n",a+b);
    printf("\n a-b = %i\n",a-b);
    printf("\n a*b = %i\n",a*b);
    printf("\n a/b = %i\n",a/b);
    printf("\n a%b = %i\n",a%b);//conversion type error 
}
Run Code Online (Sandbox Code Playgroud)

模数部分给出警告 Unknown conversion type character 'b' in format.

c operators

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

标签 统计

c ×2

c++ ×1

operators ×1

phpstorm ×1