LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-03-2006, 02:37 PM   #1
maheshrajn
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Why am I getting bunch of 0's and 1's in my program?


Hi all,
I have a program which is like..
int main()
{...file accepting and file processing....
///converting each string into the flaoting point value and storing them into a vector///
return 0;
}
while doing so, I find a bunch of 0001100101010101010 attach to my output(in the screen).
But if I store the output in a text file it doesnot have any 0's and 1's.
CAn anyone suggest me how to avoid them and only return the out put?
Is this the problem of buffer?
Suggest me.
Raj
 
Old 03-03-2006, 02:46 PM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Quote:
Originally Posted by maheshrajn
Hi all,
I have a program which is like..
int main()
{...file accepting and file processing....
///converting each string into the flaoting point value and storing them into a vector///
return 0;
}
...
lol you have missed out the important stuff, like how are you converting from a string to float?
 
  


Reply



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
Knoppix & Writing 1's & 0's to H/D xemous Linux - Newbie 4 01-26-2005 01:43 PM
1's, 0's and £ Software Sale HadesThunder General 9 05-23-2004 10:46 PM
Slackare boot is 1&0's BillyJr Slackware - Installation 12 01-25-2004 05:52 PM
Rewriting MBR to 0's? Dren Linux - General 6 04-10-2003 09:05 PM
Lots of 1's and 0's neals-a-newbie Linux - Software 1 02-27-2002 03:41 PM

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

All times are GMT -5. The time now is 01:30 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