d
This commit is contained in:
1 parent
1584571c3e
commit
3e231475b0
5 files changed
+32
-2
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#include <map>
|
||||
#include "Memory.h"
|
||||
|
||||
|
||||
std::map<int, int> memory_generateConstPlayfield(
|
||||
int n
|
||||
) {
|
||||
std::map<int, int> idGroups;
|
||||
int id = 0;
|
||||
for (int gid = 0; gid < n; ++gid) {
|
||||
idGroups[id++] = gid;
|
||||
idGroups[id++] = gid;
|
||||
}
|
||||
return idGroups;
|
||||
}
|
||||
|
||||
func memory_generateConstPlayfield(
|
||||
n: Int
|
||||
) -> [Int: Int] {
|
||||
var idGroups = [Int: Int]()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
print("Hello, world from Swift")
|
||||
/*
|
||||
std::cout
|
||||
<< test_memory_generateConstPlayfield()
|
||||
<< std::endl;
|
||||
*/
|
||||
Reference in new issue
Block a user