emanonchao
V2EX  ›  C

用 TAILQ 创建队列,一个队列里面能有不同的 struct 吗?

  •  
  •   emanonchao · Aug 24, 2015 via iPhone · 1305 views
    This topic created in 3957 days ago, the information mentioned may be changed or developed.
    建队列之前,先要用 TAILQ_HEAD 声明一个 head ,这其中有一个参数是先前定义的 struct 的类型。那这样的话,如何实现在一个队列里面存放不同的结构呢?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5754 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 02:08 · PVG 10:08 · LAX 19:08 · JFK 22:08
    ♥ Do have faith in what you're doing.