Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <experimental/filesystem>
- using namespace std;
- extern "C" int __fastcall Function1(unsigned int, unsigned __int16*, unsigned __int16*);
- int main()
- {
- unsigned __int16 a_size;
- cout << "Enter size: " << endl;
- cin >> a_size;
- unsigned __int16* a = new unsigned __int16[a_size];
- unsigned __int16* b = new unsigned __int16[1 << 16];
- cout << "Enter elements: " << endl;
- int el;
- for (int i = 0; i < a_size; i++)
- {
- cin >> el;
- a[i] = el;
- }
- cout << "Your array: " << endl;
- for (int i = 0; i < a_size; i++)
- {
- cout << a[i] << ' ';
- }
- cout << endl;
- int result;
- result = Function1(a_size, a, b);
- cout <<"Number of different elements: " << result << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement