#include <iostream>
using namespace std;
int main()
{
int x;
x=5%-5;
cout<<x<<endl;
}
#include <iostream>
using namespace std;
int main()
{
int x;
x=-3+4%-5*3;
cout<<x<<endl;
}
#include"stdio.h"
void main()
{
int x,y,t;
x=y=3;
t=++x||++y;
printf("%d %d %d ",y,x,t);
}
当你想用下列字符函数之一的时候,要用到原型声明,就#include <ctype.h>
int toupper(int ch);
int tolower(int ch);
int isdigit(int c); figure (0-9)
int isalpha(int c); letter (A-Z or a-z)
int isalnum(int c); letter (A-Z or a-z) or figure (0-9)
int isprint(int c); character which can be printed (0x20-0x7E)
int iscntrl(int c); control char (0x7F or 0x00-0x1F)
int isspace(int c); empty space
int islower(int c); letter (a-z)
int isupper(int c); letter (A-Z)
上档字符变下档,下档字符变上档,这个字符是不是数字,是不是字母....
语言包含5个基本数据类型: void, int, float, double, 和 char.
C++ 定义了另外两个基本数据类型: bool 和 wchar_t.
一些基本数据类型能够被 signed, unsigned, short, 和 long 修饰
所以short,long等等都不算基本数据类型。
这是书上说的,所以是7种基本数据类型.