Advertisement
Guest User

Test.cpp

a guest
Feb 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include "TestSort.h"
  3. #include <algorithm>
  4.  
  5. extern "C"
  6. {
  7.     void TestSort(int a[], int length)
  8.     {
  9.         std::sort(a, a + length);
  10.     }
  11.  
  12.     struct Pls
  13.     {
  14.         int a;
  15.         int b;
  16.     };
  17.  
  18.     Pls* Work(int a, int b)
  19.     {
  20.         Pls* pls = new Pls();
  21.         pls->a = a;
  22.         pls->b = b;
  23.         return pls;
  24.     }
  25.  
  26.     int GetA(Pls* pls)
  27.     {
  28.         return pls->a;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement