Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Different results between running in eclipse and run in DOS
Different results between running in eclipse and run in DOS [message #1272573] Tue, 18 March 2014 08:32 Go to next message
Maurizio Mising name is currently offline Maurizio Mising nameFriend
Messages: 3
Registered: November 2009
Junior Member
Hello,

I have created a C++ program in eclipse (X.exe).If I run the program in eclipse the output in the console is fine. The output are random numbers. If in the DOS command window I execute the X.exe the results is different. The numbers are not random.
Is there any one that know this issue?
Re: Different results between running in eclipse and run in DOS [message #1272887 is a reply to message #1272573] Wed, 19 March 2014 02:04 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 03/18/2014 05:55 AM, Maurizio Mising name wrote:
> Hello,
>
> I have created a C++ program in eclipse (X.exe).If I run the program in
> eclipse the output in the console is fine. The output are random
> numbers. If in the DOS command window I execute the X.exe the results is
> different. The numbers are not random.
> Is there any one that know this issue?

I guess I'd wonder if the two ways of running it result in consuming
exactly the same [s]rand() function in the standard C runtime library.

Whatever the case, this is the newcomers' forum. It's for answering
questions more about installing Eclipse, using the workbench interface,
etc. C/C++ questions are handled in the Eclipse CDT forum where you'll
find much more such expertise than here.

Cheers.
Re: Different results between running in eclipse and run in DOS [message #1273012 is a reply to message #1272887] Wed, 19 March 2014 09:52 Go to previous message
Maurizio Mising name is currently offline Maurizio Mising nameFriend
Messages: 3
Registered: November 2009
Junior Member
Thank you,

I have moved the topic in Eclipse CDT.

Cheers.
Previous Topic:Newbie: Mihini
Next Topic:A fatal error has been detected by the Java Runtime Environment:
Goto Forum:
  


Current Time: Mon Oct 26 02:56:49 GMT 2020

Powered by FUDForum. Page generated in 0.02638 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top