Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Tutorials & Challenges
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Tutorials & Challenges Feel free to publish your tutorials, challenges, & flight scenarios in this forum.

Reply
 
Thread Tools
Old 10-25-2016, 12:24 PM   #46
Longjap
Orbinaut
 
Longjap's Avatar
Default

It works!
Holy moly this is daunting, but moving on. The idea of e-v-e-n-t-u-a-l-l-y speaking this fluently and getting creative with it is really nice. But right now this is like learning Chinese.
Longjap is offline   Reply With Quote
Thanked by:
Old 10-25-2016, 03:43 PM   #47
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by Notebook View Post
 An obvious question, probably so obvious its stupid.

Why doesn't the compiler offer the option to set all declarations to a valid value?

INT = 0
Double = 0.0
and so on for all types.

Not overwriting any values already put in of course.

Thanks, N.
Because that is still a common cause for errors. Also it is too implicit for the style of C++.

In other languages, the compiler can simply warn you of you using uninitialized variables - in C and C++, its impossible, because of the pointers.
Urwumpe is online now   Reply With Quote
Thanked by:
Old 10-25-2016, 03:48 PM   #48
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

I have noticed in compiling in orbiter 2016 and VS2013 I get a message that a variable was uninitialized in debug mode
gattispilot is online now   Reply With Quote
Old 10-25-2016, 03:59 PM   #49
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by gattispilot View Post
 I have noticed in compiling in orbiter 2016 and VS2013 I get a message that a variable was uninitialized in debug mode
Yes, but you should not rely on that and this feature is limited in C++.
Urwumpe is online now   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Tutorials & Challenges


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 04:00 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.