Questora

PHY 371 — PROGRAMMING WITH C++ I

BSc BSc Physics · Kwame Nkrumah University of Science and Technology

C++ class libraries. C++ key words Layout of a typical C ++ Program. Precedence of operators. Variables. Identifiers. Variable declarations . Assignment statements. The types int. and double. Other number types. The type char. Type compatibility . Arithmetic operators and expressions. Output using Cout . Input using Cin. Line breaks in I/O. The if selection structure . The if/else selection structure . The while repetition structure . Assignment operators . Increment and decrement operators .The for repetition structure , The switch multiple - selection structure . The do/while repetition structure . The break and continue statements. Declaring arrays. Sorting arrays . Searching arrays. Multidimensional arrays . Pointers and strings. Functions as program modules in C ++ . The math library functions . Function definitions . Function prototypes . Scope rules . Recursion Inline functions . Function over loading

Credits
3
Level
Level 300

Other courses on this programme

Practising PHY 371 with Questora

Upload your own slides, notes and past papers for PHY 371 and Questora builds mock exams, practice questions and a revision plan from them.

Start free

Course details from Courses for BSc. Physics - Physics.