Recent content by julz
-
J
C/C++ Native C++ vs. Managed languages (C#)
Hello there, There's a question that keeps running in my head, which I wanted to share with you. I've always loved C, C++ and low level languages, like Assembly. I like to think that I stay close to the processor and other devices. This is usually faster, and in my mind, easier to...- julz
- Thread
- C++
- Replies: 4
- Forum: Programming and Computer Science
-
J
Graduate Is the speed of gravity truly instantaneous or does it have a delay?
I think this video would also answer your question. You'll see that at the end, they make the sun suddenly disappear and it shows what would happen then. It is part from The Elegant Universe by Brian Greene, you can find the whole documentary on youtube, which explains a lot of things. Other...- julz
- Post #9
- Forum: Astronomy and Astrophysics
-
J
When Even The Posted Solution Isn't Working
Ok glad to know that it worked. If the window closes right away, don't worry you've done nothing wrong ! Actually, when you enter the two ints, the program keeps going and then comes to an end. When it ends, the console window closes (it's the normal behavior). You have two solutions then...- julz
- Post #7
- Forum: Programming and Computer Science
-
J
When Even The Posted Solution Isn't Working
Ok hmm. It might depend on your compiler. Which one are you using ? A quick fix would be to replace: catch (runtime_error e) { cout << e.what () << "\n"; getch (); return 0; } by catch (exception& e) { cout << e.what () << "\n"; getch...- julz
- Post #5
- Forum: Programming and Computer Science
-
J
When Even The Posted Solution Isn't Working
And here is the fixed version of your code. #include <iostream> #include <conio.h> using namespace std; void error(const char* str) { cout << str; exit(0); } int main () { try { int val1=0; int val2=0; cout <<"Please enter two integer...- julz
- Post #3
- Forum: Programming and Computer Science
-
J
When Even The Posted Solution Isn't Working
Ok, I actually took your code and compiled it, and here is what I got: Did you really copy this from the book ? If so, maybe they made mistakes for you to find them, as an exercise ? If not, here are the mistakes: - if (!cin) error ("something went bad with the read"); error doesn't seem...- julz
- Post #2
- Forum: Programming and Computer Science
-
J
What Programming Language Should I Start With for Game Development?
The language you should choose depends on what you are planning to do. If you want to quickly be able to make an application that would, say, work with databases, you should try C#. I would tell you to avoid Visual Basic (especially version 6 and older). VB6 is outdated, not supported...- julz
- Post #8
- Forum: Programming and Computer Science
-
J
Undergrad Is there such a thing as the Null Speed in the concept of motion and relativity?
Actually, I "knew" about the speed of light and special relativity. Or should I say, I read about it, as I don't think I have the necessary background to fully understand it. Maybe I have missed something about it though :)- julz
- Post #3
- Forum: Special and General Relativity
-
J
Undergrad Is there such a thing as the Null Speed in the concept of motion and relativity?
Hello everyone ;) When we talk about speed, it's known that motion is relative. I can say my speed is 0 relatively to my chair. Is there any possible notion of "absolute speed", as there is no center of the universe ? I believe that the answer will be no, as motion is relative, however...- julz
- Thread
- Speed
- Replies: 2
- Forum: Special and General Relativity
-
J
The first programming language you learned?
I started back in 1992 with BASIC on a ZX81 then on an Apple IIe. Then moved on to "Hypercard" on Macintosh, Visual Basic and finally C, C++, C#.- julz
- Post #9
- Forum: Programming and Computer Science
-
J
Can Magnets Really Prevent Car Crashes? Debunking the Myth
Bringing this thread up as I had a thought about this. What if, instead of putting an electro-magnet in front of the car, we put one at the four sides of the car, and kept them off until another car gets too close. The magnet that would be in the right direction would then be turned on, thus a...- julz
- Post #44
- Forum: Electromagnetism
-
J
Physics Cosmology/Physics and programming
Hello everyone, I currently have a Master (M2) in computer science and been working as a C++ programmer in the video games industry for 3 years, in Paris, France. However, I don't really enjoy it anymore as I don't feel like it's being much "useful" and the place is not that friendly...- julz
- Thread
- Programming
- Replies: 3
- Forum: STEM Career Guidance
-
J
Graduate Recent Progress in String Theory
Actually, I agree that reality wasn't the right term to use: By reality, I actually meant, like tom.stoer said: "a theory that predicts these facts correctly".- julz
- Post #8
- Forum: Beyond the Standard Models
-
J
Graduate Recent Progress in String Theory
Right, it makes things a little more clear for me now. Thanks for your answers- julz
- Post #4
- Forum: Beyond the Standard Models
-
J
Graduate Recent Progress in String Theory
Hello everyone, I have been interested by the String Theory and the M-Theory for quite a few years now, I read the Elegant Universe by Brian Greene (and watched the PBS documentary based on his book). This theory sounds really "elegant" indeed, but I was wondering what progress, if any...- julz
- Thread
- String String theory Theory
- Replies: 7
- Forum: Beyond the Standard Models