zoukankan      html  css  js  c++  java
  • 缓冲区(2)

    缓冲区(2)
    #include<stdio.h>
    #include<stdlib.h>

    int main(){
           printf( "%d ", *(stdin ->_ptr)); //打印换成区内容  -> 0
           printf( "%d ", stdin ->_cnt);//缓冲区还有多少个字节
           char ch = getchar();        //输入123 会把1提走 缓冲区剩余23 注意缓冲区大小为3 因为末尾有回车
           printf( "%p ", stdin ->_ptr);
           printf( "%c ", *(stdin ->_ptr));
           printf( "%d ", stdin ->_cnt);
           putchar(ch);
           system( "pause");
           return 0;
    }





  • 相关阅读:
    python爬虫第二天
    sqlite3 数据库创建表
    python 中的nonlocal
    python中 random.seed()函数
    每日一题6/5
    竞赛191
    二进制操作, ~按位取反, | 或, & 与, ^异或, >倍数
    竞赛190
    css BFC
    css动画 Vs js动画
  • 原文地址:https://www.cnblogs.com/ZhangJinkun/p/4531469.html
Copyright © 2011-2022 走看看