Skip to content

Instantly share code, notes, and snippets.

@Zaryob
Created February 26, 2025 21:54
Show Gist options
  • Save Zaryob/698b2befa11d11293e259cfe324cb374 to your computer and use it in GitHub Desktop.
Save Zaryob/698b2befa11d11293e259cfe324cb374 to your computer and use it in GitHub Desktop.
export module MyModule; // Modül bildirimi
export int add(int a, int b) { // Export ile dışa açıyoruz
return a + b;
}
int subtract(int a, int b) { // Export olmadan yazılan fonksiyonlar yalnızca modül içerisinde kullanılabilir
return a - b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment