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.
 
TL;DR Summary: I want to do a PhD in applied math but I hate group theory, is this a big problem? Hello, I am a second-year math and physics double major with a minor in data science. I just finished group theory (today actually), and it was my least favorite class in all of university so far. It doesn't interest me, and I am also very bad at it compared to other math courses I have done. The other courses I have done are calculus I-III, ODEs, Linear Algebra, and Prob/Stats. Is it a...
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