C/C++ Is my instructor covering enough of c++?

  • Thread starter Thread starter proton
  • Start date Start date
AI Thread Summary
The discussion centers around the effectiveness of a C++ course using "Teach Yourself C++ in 21 Days" at a community college, where the instructor often deviates from the textbook's structure. Key topics covered in the course include variables, functions, pointers, inheritance, and polymorphism. One participant notes that despite completing the programming course, they have not used C++ in their subsequent physics and math studies, suggesting that the relevance of programming skills may vary based on future academic paths. The conversation also highlights two approaches to learning programming: one focusing on mastering syntax and the other on understanding programming concepts and semantics. It is noted that while Mathematica is a programming language, it does not require deep programming knowledge, emphasizing that understanding design issues across languages is more critical than memorizing syntax. Overall, the discussion raises questions about the practical application of C++ in future studies and the best strategies for learning programming effectively.
proton
Messages
349
Reaction score
0
The textbook used in my C++ community college class is "Teach Yourself C++ in 21 Days", and my instructor doesn't really follow the book. Like when we're supposed to cover a certain chapter, he will often omit a lot of the material in that chapter but include material from a chapter way ahead. This is my first programming course so I spend about 6 hours/wk doing homework and studying. Am I getting enough out of this course that I need for my upper-div physics and math courses? The topics covered are:
variables and constants
expressions and statements
functions and basic classes
more program flow
pointers
data pointers and function pointers
references
advanced functions and overloading
inheritance
arrays and strings
polymorphism
 
Technology news on Phys.org
I was required to take a programming class at Community college and ransferred to a double physics/math bachelors. In the three years, I never once had to use that programming. So I guess it depends where you plan to transfer and what classes you plan to take later.
 
The traditional view is that you teach yourself the syntax outside of class, and the instructor spends time discussing concepts and semantics. It's typical.
 
daveb said:
I was required to take a programming class at Community college and ransferred to a double physics/math bachelors. In the three years, I never once had to use that programming. So I guess it depends where you plan to transfer and what classes you plan to take later.

I'm transferring to UCLA like you. Really, you never once used C++?
 
Nope. Whenever some class wanted something computational ( I took Math 151 which was numerical analysis), they usually had a specific software package in mind like mathematica.
 
so software package like mathematica don't require any computer programming experience?
 
so software package like mathematica don't require any computer programming experience?

Mathematica is a computer programming language!

There are two ways to learn computer programming:

1) Study a language like C++ in depth. This means that you memorize all the syntax of the language. In C++ you think of a for loop as:

for ( start ; test; increment) {body}

2) Another way to learn programming is to concentrate on semantics. In this case you learn what a loop is, and you learn the design issues of loops: what type can the loop counter be, what is the scope of the loop variable, is the test executed once or each time, etc. Every language handles these design issues differently, that's why there are so many languages. The design issues are language dependent, while the loop construct is language independent. Here is some code to do the same thing in three languages:

C++

Code:
for( i = 0; i < 10, i++)

  {
    
     printf(i);

   }
Mathematica

Code:
For[ i = 0, i < 10, i++,

         Print[i];
     ]

Ada
Code:
FOR i IN 0..9 LOOP

    PUT(i);

END LOOP;

All these example have different syntax for the same semantics. I strongly suggest having programming experience, but don't worry about learning the syntax of a particular language in depth until you are further on.
 
so I guess I have to learn C++ to learn mathematica and other languages well?
 

Similar threads

Back
Top