background preloader

C/C++

Facebook Twitter

Learn C++ Common C/C++ commands. Join/copy or convert to int,string,char,array. Skytopia > Articles > Quick reference to the most common commands used in C/C++ (article created 05/07/2006) I knocked up this page as a quick reference to many useful commands used in the C/C++ programming language. They're mainly geared towards C though I'll include some C++ only commands when I feel like it. Basically, I would have died for a web page like this when I first started out learning C (I came from a Java background, but found C many times faster for my first application conversion!). Hope you all find it useful! If you'd like to comment on this page, please email me Basic program template #include Basic Operators and C/C++ syntax + * - / % // Simple math functions same as usual.

Bread and Butter Commands Useful libraries to include in your code. #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/timeb.h> #include <time.h> Declaring Variables (for next section) Arrays, malloc, passing to functions etc File opening, saving, etc \n Newline \? Links. Learn C by examples in just 5 hours - Vimperator. The Descent to C. By Simon Tatham 1. Introduction This article attempts to give a sort of ‘orientation tour’ for people whose previous programming background is in high (ish) level languages such as Java or Python, and who now find that they need or want to learn C. C is quite different, at a fundamental level, from languages like Java and Python. However, well-known books on C (such as the venerable Kernighan & Ritchie) tend to have been written before Java and Python changed everyone's expectations of a programming language, so they might well not stop to explain the fundamental differences in outlook before getting into the nitty-gritty language details.

This article will not actually teach C: I'll show the occasional code snippet for illustration and explain as much as I need to make my points, but I won't explain the language syntax or semantics in any complete or organised way. I'm mostly aiming this article at people who are learning C in order to work with existing C programs. 2. 3. 3.1. 3.2. 3.3. The C Book - Table of Contents - Vimperator. Learn C++ - Vimperator.