Stick with C++ or learn something different?

  • Thread starter Thread starter 2sin54
  • Start date Start date
  • Tags Tags
    C++
Click For Summary
SUMMARY

The discussion centers on whether to deepen knowledge in C++ or transition to another programming language for physics simulations. The participant has basic familiarity with C++, including cycles and arrays, but lacks experience with strings. C++ is recognized for its efficiency and versatility, particularly when using the Standard Template Library (STL). However, Python is suggested as an alternative due to its ease of learning and suitability for creating visually appealing programs.

PREREQUISITES
  • Basic understanding of C++ programming concepts, including cycles and arrays
  • Familiarity with the Standard Template Library (STL) in C++
  • Basic knowledge of Python programming language
  • Understanding of physics simulation principles
NEXT STEPS
  • Deepen knowledge of C++ by studying advanced topics such as object-oriented programming and memory management
  • Learn about physics simulation libraries in C++, such as Bullet Physics or Box2D
  • Explore Python libraries for physics simulations, such as Pygame or PyBullet
  • Research best practices for using STL in C++ to enhance programming efficiency
USEFUL FOR

This discussion is beneficial for high school students, aspiring programmers, and anyone interested in choosing the right programming language for physics simulations.

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.
 

Similar threads

Replies
13
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
13
Views
4K
  • · Replies 1 ·
Replies
1
Views
720
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 71 ·
3
Replies
71
Views
3K
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K