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;
    }
  • 相关阅读:
    windows下安装redis以及redis扩展,设置redis为windows自启服务
    Redis和Memcache的区别
    Git 简单入门使用
    ssh 连接 mac osx下 virtual box虚拟机中的 cent os 记录
    把可运行jar转换成Linux服务运行
    CentOS 7 配置FTP(vsftpd)
    团队总结
    第五周小组项目总结
    第四周小组项目总结
    第三周小组项目总结
  • 原文地址:https://www.cnblogs.com/zijidefengge/p/13562724.html
Copyright © 2011-2022 走看看