pico-examples icon indicating copy to clipboard operation
pico-examples copied to clipboard

Basic C++ Examples

Open Gnomey123 opened this issue 3 years ago • 1 comments

Hello, I was just wondering if it'd be possible to eventually include some c++ examples that would cover basic STD functions (most particularly cin and cout);

I believe it would make setting up a project environment much easier for beginners who need to use strings in their projects

Gnomey123 avatar Oct 24 '22 14:10 Gnomey123

Generally speaking, I would avoid using the standard iostreams, given the immense overhead of formatted stream insertion/extraction operators. You shouldn't have any issues using printf like normal, though, which should be significantly more performant. I also have not confirmed that iostreams even work on the Pico, though I have no reason to believe they wouldn't.

sophec avatar Oct 28 '22 13:10 sophec