• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน
 

บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน

on

  • 950 views

 

Statistics

Views

Total Views
950
Views on SlideShare
950
Embed Views
0

Actions

Likes
1
Downloads
11
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน Presentation Transcript

    • Variable)
    • ASCII character (- char 128Unsigned - char int - - long 3.4E-38 E+38 Float 1.7E-308Double E+308Unsigned int
    • C Variable Declaration)type name;type :name : C main
    • #include <stdio.h>int num;  numfloat y;  y
    • C C
    • A-Z a-z Underscore) A-Za-z - Reserved Word)
    • C ANSI Standard C) defa regist volatilauto float struct break ult er e doubl do far return switch while case e typede signegoto short char else if f dunio unsig contin const enum int sizeof n ned ueexter long static void n Borland C
    • C char stringchar name[n] = "str";namenstr
    • CC
    • C --
    • a>b a ba >= b a b a<b a ba <= b a b a == b a b
    • x < 60 && x > 50 xx == 10 || x == 15 xx = 10 !x x
    • -
    • C printf printf int floatstring
    • %d%u%f%c
    • printf Hello printf("Hello Program C Program C");printf("Lampang Lampang kunlayanee kunlayanee school school"); Lampangprintf("Lampang Thailand Thailand");
    • scanf C scanf
    • scanf()scanf("format",&variable);forma t printf() varia ble