Recent content by atsquishy
-
A
C/C++ Two Body problem with RK4 in C++
Sorry, I don't really have that much experience. It's my first course, and it's only been a few months since I started learning C++/programming. But it's compiling now. I just think the RK4 is off now, because it gives me the excel file, but the numbers are ridiculous. Is there something that I...- atsquishy
- Post #13
- Forum: Programming and Computer Science
-
A
C/C++ Two Body problem with RK4 in C++
so how do i specify that? do i use long int or int? EDIT: Yes. I switched the data into unsigned long int, then it compiled! but now the RK4 seems off since it doesn't give me a result.- atsquishy
- Post #11
- Forum: Programming and Computer Science
-
A
C/C++ Two Body problem with RK4 in C++
I redid it, but I still get this error. TwoBodies.cpp: In function ‘void RK4_func(double, double, double, double, double, double, double, double, double, double, double, double)’: TwoBodies.cpp:87: error: size of array ‘data’ has non-integral type ‘double’ line 87 is double data...- atsquishy
- Post #9
- Forum: Programming and Computer Science
-
A
C/C++ Two Body problem with RK4 in C++
Sorry sorry, yes I've made some fundamental problems. Not very used to C++, I'm rewriting it now and I'll post up the new code. I'll also be deleting the forward declaration, and making it easier to read.- atsquishy
- Post #7
- Forum: Programming and Computer Science
-
A
C/C++ Two Body problem with RK4 in C++
I want to output an excel file with the results of the trajectories of a two body problem, with initial position and velocity. But my program is not compiling. Any suggestions/problems that you can see? #include <iostream> #include <vector> #include <fstream> using namespace std...- atsquishy
- Thread
- Body C++ Rk4 Two body problem
- Replies: 13
- Forum: Programming and Computer Science