C NOTATION Some very short story of C notation – 'convention' used in writing C codes www.tenouk.comwww.tenouk.com, © 1/4.

Slides:



Advertisements
Similar presentations
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Advertisements

IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
1 C++ Syntax and Semantics The Development Process.
Coding Standard: General Rules 1.Always be consistent with existing code. 2.Adopt naming conventions consistent with selected framework. 3.Use the same.
Chapter 2: Using Objects Part 1. To learn about variables To understand the concepts of classes and objects To be able to call methods To learn about.
VCE IT Theory Slideshows By Mark Kelly Vceit.com Naming Conventions for solution elements.
GTECH 731 Lab Session 3 Lab 2 Review, Lab 3 Intro 9/20/10 Lab 2 Review Lab 3 Overview.
Programming Style a programs language gives you a lot of freedom how to write a program – too much? but some programming style is good goal: it must be.
Getting Started with Java
GTECH 731 Lab Session 2 Lab 1 Review, Lab 2 Intro 9/6/10 Lab 1 Review Lab 2 Overview.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
110-D1 Variables, Constants and Calculations(1) Chapter 3: we are familiar with VB IDE (building a form…) to make our applications more powerful, we need.
CPS120: Introduction to Computer Science Lecture 8.
Microsoft Visual Basic 2005: Reloaded Second Edition
Tutorial 11 Using and Writing Visual Basic for Applications Code
Lists and More About Strings CS303E: Elements of Computers and Programming.
Tutorial 2 Variables and Objects. Working with Variables and Objects Variables (or identifiers) –Values stored in computer memory locations –Value can.
Visual Basic Starter Vocabulary. IDE Integrated Development Environment A setting in which programs are written, tested, debugged, etc. You could write.
CPS120: Introduction to Computer Science Variables and Constants Lecture 8 - B.
Objective C Basics. It’s C with Some Extras!  Cross Platform language  Mac  Linux/UNIX  Windows  Layer above C (Superset)  Adds Object-Oriented.
Introduction to Java Applications Part II. In this chapter you will learn:  Different data types( Primitive data types).  How to declare variables?
Computer Programming TCP1224 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
General Computer Science for Engineers CISC 106 Lecture 04 Dr. John Cavazos Computer and Information Sciences 09/10/2010.
CPS120: Introduction to Computer Science
Chapter 2 Using Objects. Types A type defines a set of values and the operations that can be carried out on the values Examples: 13 has type int "Hello,
Lesson 6. Python 3.3 Objectives. In this lesson students will learn how to output data to the screen and request input from the user. Students will also.
Microsoft Visual C++.NET Review 1 C++ Programming Basics—Brief Overview.
CONTENTS Processing structures and commands Control structures – Sequence Sequence – Selection Selection – Iteration Iteration Naming conventions – File.
1 Principles of Computer Science I Prof. Nadeem Abdul Hamid CSC 120 – Fall 2005 Lecture Unit 2 - Using Objects.
Matter 3-3 ELEMENTS. Pure Substance All particles (atoms or molecules) are alike Elements are the simplest pure substance.
VARIABLES Programmes work by manipulating data placed in memory. The data can be numbers, text, objects, pointers to other memory areas, and more besides.
CPS120: Introduction to Computer Science Lecture 15 Arrays.
Programming Fundamentals. Summary of previous lectures Programming Language Phases of C++ Environment Variables and Data Types.
Welcome to AP Computer Science A We use the Java language, but this class is much more rigorous than Intro to Java More programming, but also more theory.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Variables in VB.NET. Variables  A storage location in memory (RAM)  Holds data/information while the program is running  These storage locations can.
CPS120: Introduction to Computer Science Variables and Constants.
Aside: Running Supplied *.java Programs Just double clicking on a *.java file may not be too useful! 1.In Eclipse, create a project for this program or.
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
Declaring variables The type could be: int double char String name is anything you want like lowerCaseWord.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
© 2006 Lawrenceville Press Slide 1 Chapter 4 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration statement. For example: Dim.
Chapter 1 Object Orientation: Objects and Classes.
FG Group -Afrilia BP -Liana F.B.I -Maulidatun Nisa -Riza Amini F.
Alice terms Chapter 2. camelCase CamelCase is the practice of writing compound names without spaces, but capitalizing the first letter of each name that.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Logical Functions Excel Lesson 10.
Working with Java.
Chapter 3 GC 101 Java Fundamentals.
Advanced Coding Session 5
Advanced Programing practices
Introduction to C# Applications
Python 6 Mr. Husch.
Variables and Primative Types
C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur
Chapter 1 - An Introduction to Computers and Problem Solving
Advanced Programing practices
Programming Vocabulary.
Introduction to Programming with Python
CIS16 Application Development Programming with Visual Basic
Unit-1 Introduction to Java
Declaring Variables – Mod 4
Maintaining a Program In today’s lesson we will look at:
Advanced Programing practices
Put the dots on the shift keys.
Coding practices For IT and Computing students 2014.
Use a variable to store a value that you want to use at a later time
Variables and Constants
Presentation transcript:

C NOTATION Some very short story of C notation – 'convention' used in writing C codes © 1/4

C NOTATION  Dominated by Hungarian and CamelCase  Hungarian notation is mainly found in Microsoft Windows programming environments, such as Microsoft C, C++ and Visual Basic.  Originally devised by Charles Simonyi, a Hungarian, senior programmer at Microsoft for many years.  Storing variable in the very name of the variable.  Variable names are separated into 2 parts: 1.The lowercase prefix, contains info of the variable type, and 2.The qualifier, tells you what the variable contains. Usually begins with a capital letter.  For example: pstrError can be translated to: p + str + Error a pointer to a string, and which will contain an error message. A pointer A string Error message © 2/4

C NOTATION  CamelCase notation - a common name for writing compound words or phrases where the words are joined without space(s), and each word is capitalized within the compound.  Also have other variation names such as BiCapitalization, InterCaps, MixedCase, etc.  CamelCase is a standard identifier naming convention for several programming languages.  Comes from the uppercase "bumps" in the middle of the compound word, suggesting the humps of a camel.  For example: thisIsCamelCase, thisIsLowerCamelCase, ThisIsUpperCamelCase © 3/4

End of C notation © 4/4