Limits on 32 and 64 bit in C++ / C


 
Thread Tools Search this Thread
Top Forums Programming Limits on 32 and 64 bit in C++ / C
# 1  
Old 05-05-2017
Hi.

To see arithmetic characteristics of compiler and machine, consider enquire:

Enquire: Everything you wanted to know about your C Compiler and Machine, but didn't know who to ask

Best wishes ... cheers, drl
This User Gave Thanks to drl For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. UNIX for Dummies Questions & Answers

Soft and hard limits for nproc value in /etc/security/limits.conf file (Linux )

OS version : RHEL 6.5 Below is an excerpt from /etc/security/limits.conf file for OS User named appusr in our server appusr soft nproc 2047 appusr hard nproc 16384 What will happen if appusr has already spawned 2047 processes and wants to spawn 2048th process ? I just want to know... (3 Replies)
Discussion started by: kraljic
3 Replies

3. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

4. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

5. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
Login or Register to Ask a Question
QInputDialog(3qt)														 QInputDialog(3qt)

NAME
QInputDialog - Simple convenience dialog to get a single value from the user SYNOPSIS
#include <qinputdialog.h> Inherits QDialog. Static Public Members QString getText ( const QString & caption, const QString & label, QLineEdit::EchoMode mode = QLineEdit::Normal, const QString & text = QString::null, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) int getInteger ( const QString & caption, const QString & label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) double getDouble ( const QString & caption, const QString & label, double num = 0, double from = -2147483647, double to = 2147483647, int decimals = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) QString getItem ( const QString & caption, const QString & label, const QStringList & list, int current = 0, bool editable = TRUE, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) DESCRIPTION
The QInputDialog class provides a simple convenience dialog to get a single value from the user. The input value can be a string, a number or an item from a list. A label must be set to tell the user what they should enter. Four static convenience functions are provided: getText(), getInteger(), getDouble() and getItem(). All the functions can be used in a similar way, for example: bool ok; QString text = QInputDialog::getText( "MyApp 3000", "Enter your name:", QLineEdit::Normal, QString::null, &ok, this ); if ( ok && !text.isEmpty() ) { // user entered something and pressed OK } else { // user entered nothing or pressed Cancel } <center> [Image Omitted] </center> See also Dialog Classes. MEMBER FUNCTION DOCUMENTATION
double QInputDialog::getDouble ( const QString & caption, const QString & label, double num = 0, double from = -2147483647, double to = 2147483647, int decimals = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) [static] Static convenience function to get a floating point number from the user. caption is the text which is displayed in the title bar of the dialog. label is the text which is shown to the user (it should say what should be entered). num is the default floating point number that the line edit will be set to. from and to are the minimum and maximum values the user may choose, and decimals is the maximum number of decimal places the number may have. If ok is not-null *ok will be set to TRUE if the user pressed OK and to FALSE if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal. This function returns the floating point number which has been entered by the user. Use this static function like this: bool ok; double res = QInputDialog::getDouble( "MyApp 3000", "Enter a decimal number:", 33.7, 0, 1000, 2, &ok, this ); if ( ok ) { // user entered something and pressed OK } else { // user pressed Cancel } int QInputDialog::getInteger ( const QString & caption, const QString & label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) [static] Static convenience function to get an integer input from the user. caption is the text which is displayed in the title bar of the dialog. label is the text which is shown to the user (it should say what should be entered). num is the default integer which the spinbox will be set to. from and to are the minimum and maximum values the user may choose, and step is the amount by which the values change as the user presses the arrow buttons to increment or decrement the value. If ok is not-null *ok will be set to TRUE if the user pressed OK and to FALSE if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal. This function returns the integer which has been entered by the user. Use this static function like this: bool ok; int res = QInputDialog::getInteger( "MyApp 3000", "Enter a number:", 22, 0, 1000, 2, &ok, this ); if ( ok ) { // user entered something and pressed OK } else { // user pressed Cancel } QString QInputDialog::getItem ( const QString & caption, const QString & label, const QStringList & list, int current = 0, bool editable = TRUE, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) [static] Static convenience function to let the user select an item from a string list. caption is the text which is displayed in the title bar of the dialog. label is the text which is shown to the user (it should say what should be entered). list is the string list which is inserted into the combobox, and current is the number of the item which should be the current item. If editable is TRUE the user can enter their own text; if editable is FALSE the user may only select one of the existing items. If ok is not-null *ok will be set to TRUE if the user pressed OK and to FALSE if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal. This function returns the text of the current item, or if editable is TRUE, the current text of the combobox. Use this static function like this: QStringList lst; lst << "First" << "Second" << "Third" << "Fourth" << "Fifth"; bool ok; QString res = QInputDialog::getItem( "MyApp 3000", "Select an item:", lst, 1, TRUE, &ok, this ); if ( ok ) { // user selected an item and pressed OK } else { // user pressed Cancel } QString QInputDialog::getText ( const QString & caption, const QString & label, QLineEdit::EchoMode mode = QLineEdit::Normal, const QString & text = QString::null, bool * ok = 0, QWidget * parent = 0, const char * name = 0 ) [static] Static convenience function to get a string from the user. caption is the text which is displayed in the title bar of the dialog. label is the text which is shown to the user (it should say what should be entered). text is the default text which is placed in the line edit. The mode is the echo mode the line edit will use. If ok is not-null *ok will be set to TRUE if the user pressed OK and to FALSE if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal. This function returns the text which has been entered in the line edit. It will not return an empty string. Use this static function like this: bool ok; QString text = QInputDialog::getText( "MyApp 3000", "Enter your name:", QLineEdit::Normal, QString::null, &ok, this ); if ( ok && !text.isEmpty() ) { // user entered something and pressed OK } else { // user entered nothing or pressed Cancel } SEE ALSO
http://doc.trolltech.com/qinputdialog.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qinputdialog.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QInputDialog(3qt)