Published on
August 18, 2009 in
C/C++.
Tags: C, Class, Console, Download, Easy, Exercise, Freeware, GNU GPL, Include, Library, List, Memory Leaks, Open Source, Portable, Programming, Source Code, Teaching, wxDev.
Just as I published some days ago the Simple C++ String Class as a C++ learning exercise, now I am freeing a Simple C++ List Class.
The standard library has a list class. But, while learning, it’s a good idea to know how to develop your own list class.
That’s why I made the List class. It’s not intended for professional projects (for them, you should use the standard library’s list), but as help to learn C++.
template <class TYPE>
class List
{
/* ... */
public:
//Construction and destruction
List() { /* ... */ }
~List() { /* ... */ }
List(const List& rlList) { /* ... */ }
//Assignment operator
List& operator=(const List& rlList);
//Information
int Length() { /* ... */ }
bool Empty() { /* ... */ }
//Element managing
int Add(TYPE& rtData);
TYPE* Elem(int nPos);
bool Delete(int nPos);
void DeleteAll();
//Search
int Find(TYPE& rItem, int nStartAt = 0);
//Operadores
TYPE& operator[](int nPos) { /* ... */ } //Elem
int operator<<(TYPE& rdData) { /* ... */ } //Add
protected:
void FreeList();
void Init() { /* ... */ }
};
//Output
template <class TYPE>
std::ostream& operator<<(std::ostream& oStream, List<TYPE>& rlList);
Keep reading…
Support appreciated!
All the content offered in this website is, except noted otherwise, of free nature. This means you can share it wherever you want if you do it freely and stating its source.
If it was useful for you and you’d like to contribute, you can make a donation or, at least, visit one of our advertisers of your choice; they are all around the site.
Incoming search terms for the article:
Published on
July 30, 2009 in
C/C++.
Tags: Attendance, C, Console, Control, DOS, Download, Exercise, Freeware, GNU GPL, Linux, Open Source, Portable, Programming, Source Code, Teaching, Windows, wxDev.
“Attendance Control” is a console application made as an exercise to integrate the different C++ concepts taught in class up to the middle of the year.
The main objective is to be able to develop a employee attendance control which records the times (and justifications, if corresponding) of each time the employees arrive, go to lunch, return from lunch and go back to home.
Sistema de control de asistencia de personal
--------------------------------------------
DNI:
Keep reading…
Support appreciated!
All the content offered in this website is, except noted otherwise, of free nature. This means you can share it wherever you want if you do it freely and stating its source.
If it was useful for you and you’d like to contribute, you can make a donation or, at least, visit one of our advertisers of your choice; they are all around the site.
Incoming search terms for the article:
Published on
July 29, 2009 in
Tools.
Tags: C++, Console, DOS, Download, Freeware, GNU GPL, LAN, Network, Open Source, Power, Source Code, Tool, Visual Studio, Windows.
Have you ever wondered how you could power on a computer remotely?
Well, with this program you can do it!
C:\>wol
Wake-On-Lan (WOL) Tool v1.0 by NeoEGM
http://www.neoegm.com/software/wake-on-lan/
-------------------------------------------
Usage: wol
Wakes the computer with the specified MAC address.
Accepted MAC address formats: 01-4B-8E-00-52-A1
01-4b-8e-00-52-a1
01:4B:8E:00:52:A1
01:4b:8e:00:52:a1
014B.8E00.52A1
014b.8e00.52a1
014b8e0052a1
014B8E0052A1
Keep reading…
Support appreciated!
All the content offered in this website is, except noted otherwise, of free nature. This means you can share it wherever you want if you do it freely and stating its source.
If it was useful for you and you’d like to contribute, you can make a donation or, at least, visit one of our advertisers of your choice; they are all around the site.
Incoming search terms for the article:
Recent Comments