[ create a new paste ] login | about

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

C++, pasted on Feb 20:
#include <iostream>
using namespace std; 
 
int main()
{
    char a[] = "test_string space"; 
    char *b  = 0;
    char *b2 = 0;
    short i = 0;
    //while (true)
    {
        b  = a;
        b2 = a;
        i  = 0;
        while(b[i] != (0x20) )
            cout << b[i++] <<"\t";
 
        cout << endl << b << "\t" << b2 << endl;
    }
 
    return 0;
}


Output:
1
2
t	e	s	t	_	s	t	r	i	n	g	
test_string space	test_string space


Create a new paste based on this one


Comments: