source: projects/punch-card/lib/erste ideen/test.cpp @ 39

Last change on this file since 39 was 39, checked in by sven, 10 years ago

Added stuff that i've written month ago ;-)

  • A small C++ library (to be extended) for punch card handling in C++
  • geshi.php: Fix to detect .cc files as cpp
  • documentation: A README for th punch card project with up to date

infos

-- sven @ workstation

File size: 408 bytes
Line 
1#include <iostream>
2#include <cstdio>
3#include "card.h"
4
5using namespace PunchCard;
6
7int main(int argc, char** argv) {
8        Card card;
9
10        for(int x=0; x < 80; x++) {
11                card.columns[x].set_value_at(4, true);
12                card.columns[x].set_value_at(12, true);
13                card.columns[x].set_value_at( (int)((double)x/80.*12.), true);
14        }
15
16        printf("Done:\n");
17        std::cout << *card.to_string() << std::endl;
18        printf("Really done.\n");
19}
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License