[ create a new paste ] login | about

Link: http://codepad.org/u8NHYchI    [ 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
3
4
t	e	s	t	_	s	t	r	i	n	g	_	s	p	a	c	e				
	�	�	4	�	�	$	=	^	�	�	4	�	�		m	L	�	$	=	^	�	@	A	r	�	�	4	�	�		m	L	�						5	�	�		5	�	�	p	�							@	�	q	�	�		^	�	�	E	r	�					p	�							�	�			B	�								5	�	�	�	�			
test_string_space	test_string_space


Create a new paste based on this one


Comments: