File: tprog.cc

package info (click to toggle)
gccintro 1.0-5
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 3,028 kB
  • sloc: ansic: 1,004; sh: 506; cpp: 172; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include "buffer.h"

using namespace std;

int
main ()
{
  Buffer<float> f(10);
  f.insert (0.25);
  f.insert (1.0 + f.get(0));
  cout << "stored value = " << f.get(0) << '\n';
  return 0;
}