static int main_(int argc, char** argv)
{
    char const* bundlePath  =   "superhero.properties";

    if(argc > 1)
    {
        bundlePath = argv[1];
    }

#if 1
    superhero   thing("The Thing", 200, 99, 100);
    superhero   batman("Batman", 100, 80, 95);

# if 0
    ff::writeln(std::cout, "Ben Grimm is ", thing);
    ff::fmtln(std::cout, "Bruce Wayne is {0}", batman);
# else /* ? 0 */

    ff::properties_bundle   bundle_(bundlePath);

    bundle = &bundle_;

    ff::writeln(std::cout, "Ben Grimm is ", edna_1(thing));
    ff::writeln(std::cout, "Ben Grimm is ", edna_2(thing));
#if !defined(STLSOFT_COMPILER_IS_BORLAND) /* Borland is messed up, and cannot handle the filter type mechanism */ && \
    !defined(STLSOFT_COMPILER_IS_DMC) /* DMC++ gets confused and can't find any matches for c_str_data_a */
    ff::writeln(std::cout, "Ben Grimm is ", edna_3(thing));
    ff::writeln(std::cout, "Ben Grimm is ", edna_4(thing));
    ff::writeln(std::cout, "Ben Grimm is ", edna_5(thing));
#endif /* compiler */

    ff::fmtln(std::cout, "Bruce Wayne is {0}", edna_1(batman));
    ff::fmtln(std::cout, "Bruce Wayne is {0}", edna_2(batman));
#if !defined(STLSOFT_COMPILER_IS_BORLAND) /* Borland is messed up, and cannot handle the filter type mechanism */ && \
    !defined(STLSOFT_COMPILER_IS_DMC) /* DMC++ gets confused and can't find any matches for c_str_data_a */
    ff::fmtln(std::cout, "Bruce Wayne is {0}", edna_3(batman));
    ff::fmtln(std::cout, "Bruce Wayne is {0}", edna_4(batman));
    ff::fmtln(std::cout, "Bruce Wayne is {0}", edna_5(batman));
#endif /* compiler */

    bundle = NULL;

# endif /* 0 */
#else /* ? 0 */

#if 0
    std::string sink1, sink2;
    ff::fmt(ff::fmt(sink1, "{0}", 1), "{0}", 2);
    ff::write(ff::write(sink2, 1), 2);
#endif /* 0 */


    OutputDebugString(NULL);
#endif /* 0 */

    return EXIT_SUCCESS;
}
static int main_(int /* argc */, char** /*argv*/)
{
    superhero   thing("The Thing", 200, 99, 100);
    superhero   batman("Batman", 100, 80, 95);

#if !defined(STLSOFT_COMPILER_IS_BORLAND) /* Borland is messed up, and cannot handle the filter type mechanism */ && \
    !defined(STLSOFT_COMPILER_IS_DMC) /* DMC++ gets confused and can't find any matches for c_str_data_a */
    ff::writeln(std::cout, "Ben Grimm is ", thing);
    ff::fmtln(std::cout, "Bruce Wayne is {0}", batman);
#endif /* compiler */

    return EXIT_SUCCESS;
}
static int main_(int /* argc */, char** /*argv*/)
{
    superhero   thing("The Thing", 200, 99, 100);
    extrasuperhero  batman("Batman", 100, 80, 95);

#ifdef FF_COMPILER_SUPPORTS_FILTER_TYPE

    ff::writeln(std::cout, "Ben Grimm is ", thing);
    ff::fmtln(std::cout, "Bruce Wayne is {0}", batman);

#endif /* FF_COMPILER_SUPPORTS_FILTER_TYPE */

    return EXIT_SUCCESS;
}
Exemple #4
0
void main()
{	inicializa();
	stars();
	eme(100, 150, 200, 250, 300, 100, 200, 250, 300, 5, LIGHTGRAY);
	getch();
	clearviewport();
	cruz(100,150,200,250,300,100,150,200,250,300,5, WHITE);
	stars();
	getch();
	clearviewport();
	stars();
	cinco(250,300,350,100,150,200,250,300,350,8, RED);
	getch();
	clearviewport();
	stars();
	penta(200,300,400,350,250,120,200,300,9,BLUE);
	getch();
	clearviewport();
	stars();
	batman(100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 330, 340, 360, 380, 400, 420, 440, 460, 480, 500, 520, 540, 560, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 2, YELLOW);
	getch();
}