Files
news.gitea.happylizard.me/bin/gems/rouge-4.7.0/lib/rouge/demos/objective_cpp
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

18 lines
488 B
Plaintext

@import Foundation;
#import <array>
#include <vector>
@interface IntegerArray : NSObject {
std::vector<NSUInteger> _numbers;
}
@property(readonly) NSUInteger count;
- (instancetype)initWithNumbers:(NSUInteger *)numbers count:(NSUInteger)count;
- (NSUInteger)numberAtIndex:(NSUInteger)index;
@end
int main(int argc, char **argv) {
auto numbers = std::array<NSUInteger, 3>{1, 2, 3};
NSLog(@"%@", [[IntegerArray alloc] initWithNumbers:numbers.data() count:numbers.size()]);
}