LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2009, 09:13 AM   #1
shank.nikhil
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
data type help needed and multiple inputs in single line


Hello Everyone,
I want to know which data type needs to be used to store a value of order 10^26?

Another problem is that, I need to enter variable no of inputs in single line. How will this be done?

eg:
1
1 2
2 6 5
2 4

where the above sequence is to be input for same variables.
 
Old 04-03-2009, 08:07 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,430

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
Which language are you using?
 
Old 04-04-2009, 09:35 AM   #3
shank.nikhil
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
rply:

i m using "C" over linux.
 
Old 04-04-2009, 08:04 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,430

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
Here's a table http://www.mmg.tu-sofia.bg/tysc/ch03/ch03.htm#Heading4. There's probably a better one on the net. Consider if you need exact precision for a num that size.
Numerical limits are described in the limits.h and float.h header files.

Actually, this looks like a good page: http://ftp.cwi.nl/steven/enquire/enquire.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sed/awk/grep for multiple line data hotrodmacman Programming 8 10-18-2007 11:06 AM
Automatic command line inputs at startup JamesNewbie Fedora 2 10-27-2006 06:07 PM
How to pass data to a console program with multiple inputs? juanbobo Programming 3 08-18-2005 06:39 PM
merge multiple lines of a single file into one line groverrajiv Linux - Newbie 4 05-26-2004 02:38 AM
trying to search and replace text file for single & multiple line breaks separately brokenfeet Programming 7 08-29-2003 01:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration