emanonchao
V2EX  ›  C

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

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