C ++代码至少包含4个类 [英] c++ code contain 4 class at least

查看:73
本文介绍了C ++代码至少包含4个类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个至少包含4个用c ++编写的类的代码.

i need a code that contain at least 4 class wrote in c++

推荐答案

好吧,去:
Well, here goes:
class A
{};
class B
{};
class C
{};
class D
{};


那是4个班级,而且令人惊讶的是,它们非常有趣...

如果您要在问题上付出更多的努力,我可以肯定,答案也将更加有趣.

最好的问候
Espen Harlinn


That''s 4 classes, and surprisingly enough they are pretty uninteresting ...

If you would put a bit more effort into your question, I''m fairly certain that the answer would be a bit more interesting too.

Best regards
Espen Harlinn


这篇关于C ++代码至少包含4个类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆