I was wondering how one would go about declaring a word in msvc++ 6.0. I checked MSDN but the did not have any information on the subject.
-JLBShecky
Printable View
I was wondering how one would go about declaring a word in msvc++ 6.0. I checked MSDN but the did not have any information on the subject.
-JLBShecky
what do u mean word like a simple sentence?
Code:#include <string>
string str = "A simple sentence.";
It is not possible to declare a word in C++.
The word-length varies from machine to machine.
Often a "short int" is a word, but one cannot be sure.
If you're using Win API, there's a type called WORD. Use it.
do you mean declearing a word like a int ? if so it is not possible cause int and other number types has fixed sizes but word dont have fixed sizes so use a string you cant define one.