Heya,
This is my first post and I hope I don't break any rules (which I did read ). Anyway, here is my problem:
I have a project which I would really like to do in C# to expand my knowledge with this specific programming language. However, the libraries for this project are written in C++.
I won't ask for someone to convert the whole thing, because that's just very unfair (and breaks the rules I think ). So I will just ask for the following the be explained in plain English!
(In C++)
What does:
#ifndef
#include
#define
#void
...all mean or represent?
Thanks very much!
Swampy
Here is the code in full (in C++) just incase anyone would like to read it:
(This was initially made by Adafruit, the help support team said that they were ok with converting their code as long as it was not for commercial use (which it's not, it's a home project! ).
"and pull old flight details from your email during back-and-forth conversations"
The Siri I've become to know and trust. I've always wanted to pull info on old flights. /s
Apple unveils Siri AI, a "reimagined" version of SIri by David Uzondu
Image via Apple
Today, at the opening keynote of Apple's annual World Wide Developers Conference (WWDC), the company announced Siri AI, a "reimagined version" of its voice assistant that runs on Apple Intelligence.
Siri AI helps you do things like draft messages, edit photos, and pull old flight details from your email during back-and-forth conversations. You can access Siri AI through several methods, depending on the device. While "Hey Siri" remains active, iPhone users can also press the side button, swipe down from the Dynamic Island, or use a system-wide context menu on Mac to analyze on-screen text.
Image via Apple
If you ever need to go back and check previous interactions, you can open the dedicated Siri app to view your entire conversation history. This application privately syncs your data using iCloud, leveraging local Foundational Models alongside Apple's secure Private Cloud Compute servers to keep user data inaccessible to outsiders.
On the iPhone, Apple built the assistant into the Camera app, bringing Visual Intelligence to help you split bills or count calories. This feature also expands to the iPad and Mac, letting users use screenshots or shortcuts to analyze images, while Apple Vision Pro users can ask questions about objects in their physical room.
Other things to know about Siri AI include systemwide dictation that automatically handles punctuation and formatting, customizable voice speeds, and a spatial 3D interface built for Apple Vision Pro. Apple also added Smart Stack suggestions on the Apple Watch to help you continue recent conversations directly from your wrist.
The road to Siri AI was quite bumpy for Apple, which initially promised these capabilities at WWDC 2024 when the Cupertino tech giant debuted Apple Intelligence. Apple later turned to Google, signing a $1 billion annual deal to use Gemini models instead of relying solely on its own in-house systems. However, this deal came only after consumers sued Apple because features Apple promised "did not exist at the time, do not exist now, and will not exist for two or more years."
Siri AI is available for developer testing on iOS 27, iPadOS 27, macOS 27, and visionOS 27.
Question
SwampyPk
Heya,
). Anyway, here is my problem:
). So I will just ask for the following the be explained in plain English!
This is my first post and I hope I don't break any rules (which I did read
I have a project which I would really like to do in C# to expand my knowledge with this specific programming language. However, the libraries for this project are written in C++.
I won't ask for someone to convert the whole thing, because that's just very unfair (and breaks the rules I think
(In C++)
What does:
#ifndef
#include
#define
#void
...all mean or represent?
Thanks very much!
Swampy
Here is the code in full (in C++) just incase anyone would like to read it:
http://pastebin.com/nUQ7npTR
(This was initially made by Adafruit, the help support team said that they were ok with converting their code as long as it was not for commercial use (which it's not, it's a home project!
).
Thanks again!
Link to comment
https://www.neowin.net/forum/topic/1259864-c-to-c-converting-libraries/Share on other sites
23 answers to this question
Recommended Posts