Monday, January 27, 2014

Programming C++

Cplusplus, http://www.cplusplus.com/

Cprogramming,  http://www.cprogramming.com
C++ Tutorialshttp://www.tutorialspoint.com/cplusplus
Notes-cpp, http://www.fredosaurus.com/notes-cpp/index.html 
Learning step by step:  http://www.howtoforge.com/learning-c-cplusplus-step-by-step


Tutorial
Introduction
http://www.maths.manchester.ac.uk/~ahazel/courses_C++.html
A short introduction to C++, http://www.maths.manchester.ac.uk/~pjohnson/pages/cplusplusShort

Book
C++ for engineers and scientistshttp://roneducate.weebly.com/uploads/6/2/3/8/6238184/c_for_engineers__scientists_3rd_edition_-_g._bronson.pdf
Daoqi YangC++ and Object Oriented Numeric Computing for Scientists and Engineershttp://www.math.wayne.edu/~yang/book.htm
Yair Shapira, Solving PDEs in C++: Numerical Methods in a Unified Object-oriented Approach
Stan Lippman, C++ Primer (2nd edition),  Addison-Wesley, 1989
Bjarne Stroustrup and Margaret Ellis, Annotated C++ Reference Manual, Addison-Wesley, 1990
Bjarne Stroustrup, The C++ Programming Language (2nd edition), Addison-Wesley, 1991


C++ Pioneer
Bjarne Stroustrup,  http://www.stroustrup.com/




Create, compile, run C/C++ in linux, ubuntu
Install compiler:  sudo apt-get install gcc 
                         sudo apt-get install build-essential
C programming

  • Create file main.c  e.g.,   $ touch main.c
  • Edit and code        e.g.,  $ vi main.c   or   gedit/emacs main.c
  • Compile simple              $ gcc main.c -o main
  • Compile advance           $ gcc -Wall -W -Werror main.c -o main
  • Change permission for running executive (if need) chmod +x main
  • Running the program      $ ./main

C++ programming
  • Create file main.c  e.g.,   $ touch main.cpp
  • Edit and code        e.g.,  $ vi main.cpp   or   gedit/emacs main.cpp
  • Compile simple              $ g++ main.cpp -o main
  • Compile advance           $ g++ -Wall -W -Werror main.cpp -o main
  • Change permission for running executive (if need) chmod +x main
  • Running the program      $ ./main

No comments:

Post a Comment