Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) MusicChord

 

MusicChord is a class for a music chord.

 

 

 

 

 

musicchord.h

 

#ifndef MUSICCHORD_H
#define MUSICCHORD_H
//---------------------------------------------------------------------------
#include <string>
#include <vector>
//---------------------------------------------------------------------------
#include "musicnote.h"
//---------------------------------------------------------------------------
struct MusicChord
{
  MusicChord(const std::string& s);
  MusicChord(const std::vector<MusicNote>& v);
  static bool IsValid(const std::string& s);
  static bool IsValid(const std::vector<MusicNote>& v);
};
//---------------------------------------------------------------------------
#endif // MUSICCHORD_H

 

 

 

 

 

musicchord.cpp

 

#include "musicchord.h"


 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml