2008-12-06 07:20:56
How to show arrayi in html
I have a C++ course and facing a problem in showing something like this in HTML output:
int array[10];
for (int i=0 ; i<10 ; ++i)
cout << array[i];
The problem is that in HTML output the [i] is omitted and the rest of text becomes italic. I know the problem is because [i] acts as <i> in HTML, but I don't know how to disable it. Any help would be appreciated!