V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
codechaser
V2EX  ›  C

这里是不是应该改成“静态内部存储类”啊?

  •  
  •   codechaser · Nov 6, 2018 · 2841 views
    This topic created in 2736 days ago, the information mentioned may be changed or developed.

    看的是 C Primer Plus 第五版 346 页存储类、链接和内存管理。 微信图片_20181106173635.jpg

    file1.cfile2.c每个都 includeconstant.h,都会声明一个各自是我静态、内部链接、文件作用域的PI吧?

    3 replies    2018-11-06 20:13:09 +08:00
    kokutou
        1
    kokutou  
       Nov 6, 2018 via Android
    他这个词的意思应该是从源码文件层面的,这个.h 相对于.c 算外部存储--是在源码文件外面,容易修改的存储。。。
    像是一个生造的概念,写几次程序自然就会想到这样做了。

    其实看看 the c programing language 就够了,这书只写了需要写的,能通过推导得出来的都没写。
    codechaser
        2
    codechaser  
    OP
       Nov 6, 2018
    @kokutou C 程序设计好一点吗?另外我这样理解在头文件中的`static`没问题吧?
    Tapir
        3
    Tapir  
       Nov 6, 2018   ❤️ 1
    看了下英文原版的避免是翻译错误
    大概这章是讲 storage class 相关
    static external storage class 这个词儿
    对应到之前的 external storage class 内容
    同时前面还有 internal static storage class 的相关内容
    是否都会声明一个各自是我静态、内部链接、文件作用域的 PI 问题
    我认为书里下面的内容已经继续讲了……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:35 · PVG 04:35 · LAX 13:35 · JFK 16:35
    ♥ Do have faith in what you're doing.