Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
using namespace std; class SrednoSkolo { private: string ime_na_skolo; int godina_na_gradenje; int poeni; int pobeda_vo_kviz; public: SrednoSkolo () {} SrednoSkolo(string _ime_na_skolo, int _godina_na_gradenje, int _poeni, int _pobeda_vo_kviz) { ime_na_skolo = _ime_na_skolo; godina_na_gradenje = _godina_na_gradenje; poeni = _poeni; pobeda_vo_kviz = _pobeda_vo_kviz; } SrednoSkolo & operator += (SrednoSkolo tmp) { if(poeni > tmp.poeni) { cout << "Pobedilo skoloto " << ime_na_skolo << endl; } else { cout << "Pobedilo skoloto " << tmp.ime_na_skolo << endl; } return *this; } }; int main() { SrednoSkolo s1("korcagin", 1950, 150, 10); SrednoSkolo s2("jbt", 1920, 130, 5); s1 += s2; return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)