Posts by Filipe_Br • 19 points
3 posts
-
0
votes1
answer62
viewsQ: How to pass structures to templates class functions
I just don’t understand why it’s wrong. This code works. template class test{ public: struct st1{ T a, b, c; }; struct st2{ T d, e, f; }; T foo1(st1 *st); st1 *foo2(); }; template typename test::st1…
-
1
votes2
answers75
viewsA: Questions about the standard C library
I stopped to think about the absence extern and I came to a conclusion. This has to do with the concept of modularization. Know when you create a file (.h) and another (.c) and both have the same…
-
0
votes2
answers75
viewsQ: Questions about the standard C library
I noticed that the header file (.h) are different in different compilers. So I have the doubt, is that this "C ANSI pattern" just defined which functions should have the standard library and not…