mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-16 13:54:19 +00:00
Update Crate and Examples
This commit is contained in:
16
Examples/Cpp/Main.cpp
Normal file
16
Examples/Cpp/Main.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "Library.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int num1 = 1;
|
||||
int num2 = 2;
|
||||
|
||||
cout << "Added: " << Library::Add(num1, num2) << "\n";
|
||||
cout << "Subtracted: " << Library::Subtract(num1, num2) << "\n";
|
||||
cout << "Multiplied: " << Library::Multiply(num1, num2) << "\n";
|
||||
cout << "Divided: " << Library::Divide(num1, num2) << "\n";
|
||||
}
|
Reference in New Issue
Block a user