Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPP #6

Merged
merged 2 commits into from
Mar 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Cpp file
RomanPodymov committed Mar 9, 2025
commit 4435cc053a91a24013faa5ed74ff94609d578b32
4 changes: 4 additions & 0 deletions CurrencyConverter/HomeViewObjCViewController.m
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
#import "CurexConverter_ObjC-Swift.h"
#import "HomeViewObjCViewController.h"
#import "Masonry.h"
#import "SomeCppClass.hpp"

#include "math.h"

@@ -64,6 +65,9 @@ - (void)viewDidLoad {

self.presenter = [[HomePresenter alloc] initWithView: self];

fff();
// const char* sss = fff();

_constants = createUIConstants(200);
int aaa = _constants.selectedCurrencyLabelTop;

17 changes: 17 additions & 0 deletions CurrencyConverter/SomeCppClass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// SomeCppClass.cpp
// CurexConverter-ObjC
//
// Created by roman roman on 09.03.2025.
//

#include "SomeCppClass.hpp"

// #include <Foundation/Foundation.h>
#include <string>

const void* fff(void) {
std::string s = "Hello";
std::string s2 = "World";
return (s + s2).c_str();
}
13 changes: 13 additions & 0 deletions CurrencyConverter/SomeCppClass.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// SomeCppClass.hpp
// CurexConverter-ObjC
//
// Created by roman roman on 09.03.2025.
//

#ifndef SomeCppClass_hpp
#define SomeCppClass_hpp

const void* fff(void);

#endif /* SomeCppClass_hpp */