Click to See Complete Forum and Search --> : C++ programming


Lisa
March 28th, 1999, 08:36 PM
I need help getting started on writing a program. If you could please show me an example, your help will be very much appreciated.


Question: What is the largest int value that can be represented int a 16 bit PC?

Ramon Saenz-Badillos
March 28th, 1999, 08:42 PM
the best site i know of to start learning visual c++ in particular

(plus C++ and java...) is at


http://devcentral.iftech.com/learning/tutorials/


enjoy

Once and Future Consultant
March 29th, 1999, 09:56 AM
Advice for newbies in C++.


Read Schaum's outline on C++. Cheap, quick, easy,

lots of worked examples. Just don't let it be your

last book, because it is by no means even close

to complete. It will help you up the learning curve.


You want to read the FAQs at these URLs. Pay

attention to the further books they recommend.


The C++ FAQ lite

http://www.cerfnet.com/~mpcline/c++-faq-lite/index.html


An MFC FAQ

http://mfcfaq.stingray.com/


And you should be able to find some good book reviews here.

http://www.accu.org/bookreviews/public/reviews/0sb/beginner_s_c__.htm

cdmahesh
April 10th, 2001, 01:30 AM
ans for ur question is 32767

u tell me wat help u need

Mahesh Kumar C D

Zeeshan
April 10th, 2001, 02:15 AM
There is general formula to find the highest and lowest no.

For Signed no

-2 ^ (n-1) to 2 ^ (n-1) -1

And for signed no

0 to 2 ^ (n) - 1

Where ^ is power.

According to this 16 bit int can store

-32768 to 32767 signed no
and
0 to 65535 unsigned no

Hope this helps.

Dmitry Zemskov
April 10th, 2001, 10:50 AM
There is a define in <limits.h> for max. integer - INT_MAX. (ANSI-compliant) That will be 2147483647 if integer is 32-bits wide and 32767 for 16 bits. You can e-mail me for more help