OT: c++ q

OT: c++ q

Diego Iastrubni elcuco at kde.org
Sun Apr 26 17:19:38 IDT 2009


On Sunday 26 April 2009 15:38:53 Erez D wrote:
> files:
> == a.h ===
MISSING: 
#ifndef __FILE_H__
> class a {
> int m_a;
>  a (int val);
>  void do_somthing()
> }
MISSING: semicolon, last line should be
};

MISSING: 
#endif // __FILE_H__

> == a.cpp ===
> #include "a.h"
> a::do_somthing {a.m_a++;};
> a::a(int val):m_a(val) {};
> ============

GRADE: C- ~ 70.
Go back to school, and as punishment re-implement quick_sort in VB.NET.



More information about the Linux-il mailing list