[ create a new paste ] login | about

Link: http://codepad.org/MxX3wH3d    [ raw code | output | fork ]

C++, pasted on Dec 12:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <string>

int
main (int argc, char *argv[])
{
  std::string s1 (" world");
  ;           s1.resize (25);

  for (std::string::iterator it = s1.begin (); it != s1.end (); ++it) 
    std::cout << (int)*it << std::endl;
}


Output:
32
119
111
114
108
100
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0


Create a new paste based on this one


Comments: