---
title: "结构体初始化方法"
author: "xhanxhanxhan"
date: "2010-12-20T20:30:24Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-12-20T20:30:24Z"
id: 847502
url: "https://blogs.iteye.com/blog/847502"
---

本来  
        LogInfo a ;  
        a.start = 1;  
        a.end = 2;  
        track.lrcInfo = a;  
4行  
牛逼的方法=&gt;  
        track.lrcInfo = (LogInfo){clock(),0};

简单又优雅.