Search Results

Showing results 1 to 3 of 3
Search took 0.01 seconds.
Search: Posts Made By: jugnu
Forum: C++ Dec 31st, 2008
Replies: 1
Views: 517
Posted By jugnu
Hi!
This is Adnan

I have a text file having 10 records. There are 4 fields and each field is delimited by a comma.

I need to read data from text file such that when i input suppose Account...
Forum: C++ Nov 9th, 2008
Replies: 4
Views: 932
Posted By jugnu
#include<iostream>
#include <conio.h>

using std::cout;
using std::cin;

main()
{
double x=345624.769123;
cout<<"x=";
Forum: C++ Nov 9th, 2008
Replies: 4
Views: 932
Posted By jugnu
When i use a variable type double the value e.g 345624.769123 rounded to 345625
but when i take 5 digits before decimal i.e 34562.4769123 then it shows 34562.5

Please explain Why?

Thanks
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC