source: testjes/getl.cpp

Last change on this file was 10, checked in by willem, 11 years ago

willem

File size: 481 bytes
Line 
1#include <iostream>
2#include <fstream>
3#include "../trunk/utils.h"
4int main()
5{
6  std::string a;
7  std::ifstream f;
8  unsigned int x= (unsigned) -1;
9  std::cout << x << std::endl;
10  f.open("prut");
11  getline(f,a);
12  std::cout << a << a.size() << " " << a.length()<< std::endl;
13  for(int i=0; i<a.size() ; i++)
14  {
15    std::cout << i<<":"<<a[i] << " " << (unsigned) (a[i]&255) << std::endl;
16  }
17  std::string h = strtohex(a);
18  std::cout << "'" <<h<<"'" << std::endl;
19  return 0;
20}
Note: See TracBrowser for help on using the repository browser.