Programmation Avancée en C


cppextern.cpp

00001 #include <math.h>
00002 
00003 float racinecarre(float x) {
00004         sqrt(x);
00005 }
00006 double racinecarre(double x) {
00007         sqrt(x);
00008 }
00009 
00010 extern "C" float racinecarref(float x) {racinecarre(x);}
00011 extern "C" double racinecarred(double x) {racinecarre(x);};