Stick with C++ or learn something different?

  • Thread starter Thread starter 2sin54
  • Start date Start date
  • Tags Tags
    C++
AI Thread Summary
The discussion centers on the transition from learning Free Pascal to C++ in high school, with a focus on whether to deepen C++ knowledge or switch to another programming language for physics simulations. Key points include the benefits of C++, such as its versatility, efficiency, and widespread use, despite its complexity and extensive feature set. The importance of mastering fundamental topics like cycles, arrays, and strings in C++ is emphasized, especially for physics applications. Additionally, Python is suggested as an alternative due to its ease of learning and suitability for creating visually appealing programs. The conversation highlights the ongoing debate about the best programming language for physics simulations, encouraging further exploration of both C++ and Python.
2sin54
Messages
109
Reaction score
1
Hi. I am finishing my last year in High School and I have a question about programming. For a year or two I had been taught Free Pascal but the last year (grade 12) we have been taught some C++. My C++ knowledge is not as wide as it could or probably should be but I am familiar with the basics of cycles, arrays and other aspects of this level. However, I have not really touched on strings.

Moving on to my question: should I deepen my knowledge in C++ (and if so, what topics and things should I learn that would help me with physics simulations) or should I move onto another, maybe a better physics oriented language?
 
Physics news on Phys.org
C++ is a fine language to learn. It allows you to program in various paradigms, allows you to make very efficient programs and is widely used. However, it is a very large language, and, it has a lot of features that only serve to maintain compatibility with old standards.
But, if you stick to STL, i think its pretty easy to learn.

Another language I can recommend you is Python. Its easy to learn and very fun to program in and allows for prettier programs than C++.
 
Do a forum search. This topic gets discussed here frequently and at length.
 
Hey, I am Andreas from Germany. I am currently 35 years old and I want to relearn math and physics. This is not one of these regular questions when it comes to this matter. So... I am very realistic about it. I know that there are severe contraints when it comes to selfstudy compared to a regular school and/or university (structure, peers, teachers, learning groups, tests, access to papers and so on) . I will never get a job in this field and I will never be taken serious by "real"...
Yesterday, 9/5/2025, when I was surfing, I found an article The Schwarzschild solution contains three problems, which can be easily solved - Journal of King Saud University - Science ABUNDANCE ESTIMATION IN AN ARID ENVIRONMENT https://jksus.org/the-schwarzschild-solution-contains-three-problems-which-can-be-easily-solved/ that has the derivation of a line element as a corrected version of the Schwarzschild solution to Einstein’s field equation. This article's date received is 2022-11-15...
Back
Top