C with classes

This commit is contained in:
e2hang
2025-12-31 00:39:23 +08:00
commit a047893756
198 changed files with 11173 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include "b.h"
#include <iostream>
void B::p()
{
int sm = this->retNum() + this->retPlus() + js;
std::cout << sm << std::endl;
}
std::ostream& operator<<(std::ostream& os, B& x){
os << x.js << " ";
return os;
}