-
A bit of an exercise of my imagination
Hi, you're a great writer
Awesome! You should do more random stuff like this - I'm too lazy to commit to a series like Threading the Needle xDPosted 03-03-2012 at 11:10 PM by george7378
-
A bit of an exercise of my imagination
Oh...well...you know...don't get the BBC in the U.S., except for some all news 24/7 loop channel...even that has commercials...Posted 03-03-2012 at 11:04 PM by mojoey
-
A bit of an exercise of my imagination
The BBC Does not have and will never have commercial breaks.
Other than that I like it.
Keep up the good work.Posted 03-03-2012 at 11:02 PM by APDAF
-
Posted 03-03-2012 at 10:09 PM by Samuel Edwards
-
C++ typing animation
You can add some randomness to it, so it isn't always 80 milliseconds delay, but for example in range of 60-150 milliseconds.
Posted 03-03-2012 at 07:34 PM by orb
-
Posted 02-27-2012 at 06:07 PM by Scav
-
Posted 02-27-2012 at 03:24 PM by Aeadar
-
Posted 02-27-2012 at 08:06 AM by PhantomCruiser
-
Posted 02-27-2012 at 03:52 AM by Eli13
-
SEP-008, Chapter 5
Muahahahaha...I have them addicted to me!!!!
JK, I think you truly do an excellent job of writing these 
Posted 02-27-2012 at 02:59 AM by mojoey
-
On C++ coding.
Thanks for the tips, guys. I wasn't planning on incorporating units into the equation, since that's beyond my understanding of C++ at this time. this is just the start of the project, and I haven't had time to convert the entire TI program to something that C++ can read. I still am trying to make heads or tails of the header files, but considering I was half asleep when I looked at that section last, that's hardly suprising.
I'll take the tips and incorporate them into the project.Posted 02-25-2012 at 11:27 PM by MaverickSawyer
-
On C++ coding.
You could also just enter values (variable = value unit)and then start to calculate when enough data is given to calculate one other quantity.
Also as tiny help for describing units in a simple way: OpenFOAM for example uses a vector of seven integer values to describe the units. Each component of the vector is one basic unit (eg, kg, m, s) and the number gives the exponent of it... for example you could use (kg m s) as units and then describe internally meters per second squared as (0 1 -2) or Newtons as (1 1 -2)Posted 02-25-2012 at 10:10 PM by Urwumpe
-
On C++ coding.
I'm not gonna offer any technical advice, but I do have a suggestion for upgrading this - and giving you a new C++ task.
You have an if statement with 1, 2 and 3 for which value to pick, but if you remember, pretty much every quantity has a unit. For time it's seconds (s), for altitude it's meters (m) and for velocity it's meters per second (m/s). You could have the data entry done in a way that you just enter a number with the unit, example:
6000 s
The program would look for the unit. If it finds the unit s, it would work on the formula for time.Posted 02-25-2012 at 09:58 PM by RisingFury
-
On C++ coding.
I think (and that's just ME, I'm also a beginner) you could put all those into a forward declaration, and get rid of repeating them every time.Code:int refob; int vel; int orad; int rad; int alt; int time;

Again, I'm only a beginner, so I'm not sure about it.Posted 02-25-2012 at 08:35 PM by Hurricane
-
On C++ coding.
Presumably you are assigning values to refob, alt, rad, etc that will be used later. Those variables should be moved to the top of the method. They will fall out of scope when the if{} block is exited and not be available.
Replace the else if construct with a switch (as has been said).
Better yet, use consts so your code reads like this:Code:switch (type) { case 1: ... do stuff break; ...
I would also move the data entry to another method that is called from main so that the intent of your 'main' method is easier to read. That is a judgement call and depends on what else 'main' is going to do of course.Code:const int ALTITUDE = 1; ... switch (type) { case ALTITUDE: ... enter altitude etc. break; ...Posted 02-25-2012 at 08:31 PM by Blake
-
On C++ coding.
REMOVE THE SEMICOLON AFTER THE "if (...)".
your code won't compile like that, it will fail because the else hangs in the empty air.
is the same as if you writeCode:if (x) ;
The statements that should be executed if x is true is empty.Code:if(x) {}
Try it with a switch...case:...default: statement. This makes the if...else if...else stuff much better to read and will tell the compiler to make more effective code.Posted 02-25-2012 at 08:04 PM by Urwumpe
-
HASSESA update
Good luck friend!
Breto Aerospace will be around if you need another flight capable service for your spatial needs.
Posted 02-24-2012 at 02:12 AM by Napalm42
-
HASSESA update
Good luck, take care, and i'm also looking forward to HASSESA when it resumes flights!!
Posted 02-23-2012 at 02:51 PM by Nazban
-
Posted 02-23-2012 at 02:49 PM by IronRain
-
DIASA Session #1-Spaceflight
That is a good idea, but I'm not that familiar with OMP. Thats a good idea though, ill look into it if its possible.Posted 02-21-2012 at 05:53 AM by Nazban



