1dcbe335e1
subrepo: subdir: "dotfiles/.vim/plugged/YouCompleteMe" merged: "99ccab251" upstream: origin: "https://github.com/ycm-core/YouCompleteMe.git" branch: "master" commit: "99ccab251" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
31 lines
507 B
C++
31 lines
507 B
C++
|
|
struct PointInTime
|
|
{
|
|
int point_before_time;
|
|
double age_of_universe;
|
|
char lifetime; // nobody will live > 128 years
|
|
};
|
|
|
|
struct Line
|
|
{
|
|
enum { RED_AND_YELLOW, PINK_AND_GREEN } colourOfLine;
|
|
double lengthOfLine;
|
|
};
|
|
|
|
struct PointInTimeLine
|
|
{
|
|
PointInTime point;
|
|
Line line;
|
|
};
|
|
|
|
static void what_is_the( PointInTimeLine* p )
|
|
{
|
|
p->line.colourOfLine = Line::
|
|
p->line.colourOfLine = Line::PINK_AND_GREEN;
|
|
}
|
|
|
|
static void draw_a( Line l )
|
|
{
|
|
PointInTimeLine p = { .line = l };
|
|
what_is_the( &p );
|
|
}
|