1. ftp - login to eagle use alt-t to ftp to your PC
hit enter for your username use alt - w for the pasword.
ftp>b:
ftp>bin
ftp>get as1.cpp
Copy all the files
use submit command to submit the files one at a time
eagle% submit 2006 1 as1.cpp
submit all the files: as1.cpp, as1.ide, timer.cpp, timer.hpp
as1.cpp:
#include "timer.hpp"
void main()
{
}
Take all the code related to the template and put it in a file called timer.hpp
#include <time.h>
template <class algorithm_type>
class timer
{
public:
time_t timed(int n, algorithm_type t);
};
template <class algorithm_type>
time_t timer<algorithm_type>::timed(int n, algorithm_type t)
{
}
#include "timer.hpp"
class dummy
{
public:
void work(int n){}
};
void main()
{
timer<dummy> test;
}