Adds a basic c++ app using ncurses and a build system.

This commit is contained in:
2023-03-25 17:12:32 -07:00
parent 9ba05f381f
commit f19ec79b1e
6 changed files with 124 additions and 0 deletions

32
sbf-cpp/Info.plist Normal file
View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en-US</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleDisplayName</key>
<string>Metal Test</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>? Tom Hicks, 2023</string>
<key>CFBundleDisplayName</key>
<string></string>
<key>CFBundleExecutable</key>
<string></string>
<key>CFBundleIdentifier</key>
<string></string>
<key>CFBundleName</key>
<string></string>
<key>CFBundleSignature</key>
<string></string>
<key>MetalCaptureEnabled</key>
<false/>
</dict>
</plist>

19
sbf-cpp/main.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <ncurses.h>
#include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
// cout << "Hello, World!" << endl;
initscr();
raw();
noecho();
keypad(stdscr, true);
printw("Hello, World!");
refresh();
getch();
endwin();
return 0;
}

0
sbf-cpp/main.h Normal file
View File