Exemple #1
0
void main()
{
    /*test special local cahr* */
    char *local_string = "JCC pass all the tests!\n\n";

    /*test function call without return value*/
    nested_if_for_test();
    printf("%s",string_nested_if_for);
    factorial_test();
    printf("%s",string_fact);
    iterative_fibobacci();
    printf("%s",string_fib);
    gcd_test();
    printf("%s",string_gcd);

    printf("%s",local_string);
}
Exemple #2
0
/*ALL TESTS*/
int main(int argc, char ** argv)
{
    std::cout << "factorial_test " << std::endl << factorial_test() << std::endl;
    std::cout << "point_test " << std::endl << point_test() << std::endl;
    //std::cout << "square_test" << std::endl << square_test() << std::endl;
}