zoukankan      html  css  js  c++  java
  • scanf()函数, 链表的参数,数组的参数

    链表的参数只有一个,就是头结点,头结点知道了,整个链表就能确定了。

    确定数组需要首地址,并且还需要知道数组的长度。

    //object: scanf函数的一点理解
    //writer: mike
    //time: 2020,08,25
    
    
    #include<stdio.h>
    #include<stdlib.h>
    
    int main()
    {
        int a, b, c;
        printf("please input you number(three) :
    ");
        // 这里空白字符会被当做数字的间隔符,比如,空格,回车,tab
        scanf("%d%d%d",&a, &b, &c);
        printf("the number is :%d,%d,%d
    ",a, b, c);
        printf("please input three number again: 
    ");
        // 这里,三个变量再次被利用
        //这里,只允许逗号作为数字之间的分割字符
        scanf("%d,%d,%d", &a,&b,&c);
        printf("the number is :%d,%d,%d
    ", a, b, c);
        system("pause");
        return 0;
    }

    //object: scanf函数的一点理解
    //writer: mike
    //time: 2020,08,25


    #include<stdio.h>
    #include<stdlib.h>

    int main()
    {
        int abc;
        printf("please input you number(three) : ");
        // 这里空白字符会被当做数字的间隔符,比如,空格,回车,tab
        scanf("%d%d%d",&a, &b, &c);
        printf("the number is :%d,%d,%d ",abc);
        printf("please input three number again:  ");
        // 这里,三个变量再次被利用
        //这里,只允许逗号作为数字之间的分割字符
        scanf("%d,%d,%d", &a,&b,&c);
        printf("the number is :%d,%d,%d "abc);
        system("pause");
        return 0;
    }
  • 相关阅读:
    jmeter bean shell断言加密的响应信息(加密接口测试二)
    java ID3算法
    MPI常用函数
    数据结构——单链表
    RBM代码注释c++
    MPI_一个简单的消息传递
    电路测试
    java KNN算法
    [转]矩阵分解在推荐系统中的应用
    java EM算法
  • 原文地址:https://www.cnblogs.com/zijidefengge/p/13562724.html
Copyright © 2011-2022 走看看