标题:c程序中的or逻辑运算符在键盘上怎么打?
只看楼主
mianyang12
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2008-3-5
 问题点数:0 回复次数:3 
c程序中的or逻辑运算符在键盘上怎么打?
#include<stdio.h>
#include <stdlib.h>

int main()
{
    int a=11,b=15;
    int c=a>b;
    int d=a==b;
    int e=a!=b;
    /*比较和逻辑运算符的交互运算关系*/
    printf("a=%d,b=%d\n",a,b);
    printf("c=a>b, c=%d\n",c);
    printf("d=a==b, d=%d\n",d);
    printf("e=a!=b, e=%d\n",e);
    printf("c&&d= %d\n",c&&d);
    printf("c││d = %d\n",c││d);
    printf("c││!e = %d\n"c││!e);
    system("pause");
    return 0;
}



printf("c││d = %d\n",c││d);   
printf("c││!e = %d\n"c││!e);

我打的好象是错的  这两行里像竖着的等于符号在键盘上怎么打出来?


再次先谢谢各位大哥指点

[[it] 本帖最后由 mianyang12 于 2008-4-1 22:47 编辑 [/it]]
搜索更多相关主题的帖子: 逻辑运算符 键盘 
2008-04-01 22:46
now
Rank: 1
来 自:广州
等 级:新手上路
帖 子:544
专家分:0
注 册:2007-11-9
得分:0 
shift+\+\==||

[[it] 本帖最后由 now 于 2008-4-1 23:32 编辑 [/it]]

GIS
Geographic Information System
你在哪里?——》你的坐标?
2008-04-01 23:24
rxfengqihao
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2008-2-16
得分:0 
是shift+\+\
2008-04-01 23:29
now
Rank: 1
来 自:广州
等 级:新手上路
帖 子:544
专家分:0
注 册:2007-11-9
得分:0 
不好意思,做得题多,有点糊涂了,差点。。。

GIS
Geographic Information System
你在哪里?——》你的坐标?
2008-04-01 23:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-206639-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.329564 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved