zoukankan      html  css  js  c++  java
  • 小张二级代码

    #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种基本数据类型.
  • 相关阅读:
    Android 对话框(Dialog)
    struts2 开发模式
    Struts2动态方法调用(DMI)
    Struts2中 Path (getContextPath与basePath)
    String path = request.getContextPath
    ios虚拟机安装(二)
    Spring MVC 的 研发之路
    Swift辛格尔顿设计模式(SINGLETON)
    【算法导论】多项式求和
    uva 11181
  • 原文地址:https://www.cnblogs.com/herizai/p/3170574.html
Copyright © 2011-2022 走看看