help

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
Giorgi
New poster
Posts: 48
Joined: Wed Jun 07, 2006 6:26 pm
Location: Georgia Tbilisi

help

Post by Giorgi »

can I declare in C++ one byte integer like "word" of "shortint" in pascal?
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

8-bit integer is char, 16-bit - short, 32-bit - int (or long.)
Use unsigned attribute if you need an unsigned type (e.g. unsigned short is a 16-bit unsigned integer, equivalent to Pascal's word.)
Post Reply

Return to “C++”