dllbridge

Untitled

Apr 22nd, 2026
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1.  
  2. #include     <stdio.h>
  3. #include   <windows.h>
  4. #include    <locale.h>      
  5.  
  6.  
  7. #ifdef __GNUC__
  8. ////////////////////////////////////////////////
  9. void foo()
  10. {
  11.      
  12.      printf("Мой компилятор GNU G++. Меня зовут Дима.\n");
  13.    
  14. }
  15. #endif
  16.  
  17. #ifdef _MSC_VER
  18. ////////////////////////////////////////////////
  19. void foo()
  20. {
  21.      
  22.      printf("Мой компилятор Microsoft C++. Меня зовут Евгений.\n");
  23.    
  24. }
  25. #endif
  26.  
  27. ///////////////////////////////////////////////
  28. int main()
  29. {
  30.    
  31.     SetConsoleOutputCP(1251);
  32.  
  33.  //   setlocale(LC_ALL, "rus");    
  34.  
  35.  
  36.     printf("Привет\n");
  37.    
  38.     foo();
  39. }
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment