if-else statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thefarmer
    New Member
    • Nov 2006
    • 55

    #16
    hi there,

    i hope this might be of help.....

    the function "main" like all function must state what kind of value it will return, it is not necessary to use int as always, if not appropriate, you can use " void main () " but mostly depending on your application,

    When declaring Variables, C++ provides several different basic data types. The most important ones are:
    double: decimal numbers between a smallest, negative one and a largest, positive one
    int: a whole number between a smallest, negative one and a largest, positive one
    char: a single letter or special symbol, anything that is on your keyboard


    ok

    regards,

    mike

    Comment

    • bitong
      New Member
      • Sep 2006
      • 40

      #17
      Originally posted by thefarmer
      hi there,

      i hope this might be of help.....

      the function "main" like all function must state what kind of value it will return, it is not necessary to use int as always, if not appropriate, you can use " void main () " but mostly depending on your application,

      When declaring Variables, C++ provides several different basic data types. The most important ones are:
      double: decimal numbers between a smallest, negative one and a largest, positive one
      int: a whole number between a smallest, negative one and a largest, positive one
      char: a single letter or special symbol, anything that is on your keyboard


      ok

      regards,

      mike
      ok..thnx a lot =)

      Comment

      Working...