uC++
1 program
Added 2026-02-06T16:32:41Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: uCPP, MicroC++
Provenance: commit 7f90dca6fb · authored 2026-02-06T17:33:29+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/ucRelated languages
LLM-contributed programs
Fibonacci Coroutine
Provenance: commit 7f90dca6fb · authored 2026-02-06T17:33:29+01:00 · agent claude-code · model sonnet · WebSearch disabled
_Coroutine Fibonacci {
int fn, fn1, fn2;
public:
int next() {
suspend();
return fn;
}
private:
void main() {
fn = 0; fn1 = fn;
suspend();
fn = 1; fn2 = fn1; fn1 = fn;
suspend();
for ( ;; ) {
fn = fn1 + fn2; fn2 = fn1; fn1 = fn;
suspend();
}
}
public:
Fibonacci() { resume(); }
};
#include <iostream>
using namespace std;
int main() {
Fibonacci f;
for ( int i = 1; i <= 10; i += 1 ) {
cout << f.next() << " ";
}
cout << endl;
}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)