Link to home
Start Free TrialLog in
Avatar of dandeliondream
dandeliondreamFlag for Singapore

asked on

how do i display subscript

i want to cout << "X1, Y1, Z1";
Due to the system I cannot display the desired result. All the 1s beside X,Y and Z are subscripts.

How do i do this in c++?
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi dandeliondream,

what do you mean with 'subscripts'? Do you mean these three are arrays? If so you can output them like this:

cout << X[1] << ", " << Y[1] << ", " << Z[1];

Hope that helps,

ZOPPO
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dandeliondream

ASKER

Hi Infinity08,
hmmm...i'm unsure if i can use unicode. i'll check with my lecturer. Thanks for the info