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
#include
using namespace std; class Zivotno { private: char ime_na_zivotno[51]; int tezina; public: Zivotno() { } Zivotno(char *i, int t) { strcpy(ime_na_zivotno, i); tezina = t; } ~Zivotno() { } char* get_ime_na_zivotno() { return ime_na_zivotno; } int get_tezine() { return tezina; } }; class Mesojadni : public Zivotno { private: char vid_na_zivotno[51]; bool dali_e_divo; public: Mesojadni() : Zivotno() { } Mesojadni(char *ime_na_zivotno, int tezina, char *vid, bool d) : Zivotno(ime_na_zivotno, tezina) { strcpy(vid_na_zivotno, vid); dali_e_divo = d; } char* get_vid() { return vid_na_zivotno; } bool get_divo() { return dali_e_divo; } }; int main() { Mesojadni kuce("lusi", 30, "kuce", false); cout << kuce.get_ime_na_zivotno() << " " << kuce.get_tezine() << " " << kuce.get_vid() << " " << kuce.get_divo() << endl; }
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)