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;
    }
  • 相关阅读:
    11-28--订餐系统项目跟进
    冲刺一
    冲刺一 (Day 3)
    冲刺一 (Day 2)
    1117 冲刺一(Day 1)
    Value must be an existing directory配置tomcat问题
    第三个spring冲刺总结(附团队贡献分)
    第三个spring冲刺第10天
    第三个spring冲刺第9天
    第三个spring冲刺第8天
  • 原文地址:https://www.cnblogs.com/zijidefengge/p/13562724.html
Copyright © 2011-2022 走看看