C/C ++ Style

Source: Internet
Author: User

  # Include <stdio. h> </P> <p> int main () <br/> {<br/> char * STR [] = {"welcome", "", "fortemedia", "Nanjing" };< br/> char ** P = STR + 1; </P> <p> STR [0] = (* P ++) + 2; <br/> STR [1] = * (p + 1); <br/> STR [2] = P [1] + 3; <br/> STR [3] = P [0] + (STR [2]-str [1]); </P> <p> printf ("% s/n", STR [0]); <br/> printf ("% s/n ", STR [1]); <br/> printf ("% s/n", STR [2]); <br/> printf ("% s/n ", STR [3]); <br/> RET Urn 0; <br/>}// this style is ANSI </P> <p> # include <stdio. h> </P> <p> int main () {<br/> char * STR [] = {"welcome", "to", "fortemedia ", "Nanjing" };< br/> char ** P = STR + 1; </P> <p> STR [0] = (* P ++) + 2; <br/> STR [1] = * (p + 1); <br/> STR [2] = P [1] + 3; <br/> STR [3] = P [0] + (STR [2]-str [1]); </P> <p> printf ("% s/n", STR [0]); <br/> printf ("% s/n ", STR [1]); <br/> printf ("% s/n", STR [2]); <br/> printf ("% S/n", STR [3]); <br/> return 0; <br/>}// K & R </P> <p> # include <stdio. h> </P> <p> int main () <br/> {<br/> char * STR [] = {"welcome", "", "fortemedia", "Nanjing" };< br/> char ** P = STR + 1; </P> <p> STR [0] = (* P ++) + 2; <br/> STR [1] = * (p + 1); <br/> STR [2] = P [1] + 3; <br/> STR [3] = P [0] + (STR [2]-str [1]); </P> <p> printf ("% s/n", STR [0]); <br/> printf ("% s/n ", STR [1]); <br/> printf ("% S/N ", STR [2]); <br/> printf (" % s/n ", STR [3]); <br/> return 0; <br/>}// this style is called GNU </P> <p> # include <stdio. h> </P> <p> int main () <br/> {<br/> char * STR [] = {"welcome", "", "fortemedia", "Nanjing" };< br/> char ** P = STR + 1; </P> <p> STR [0] = (* P ++) + 2; <br/> STR [1] = * (p + 1); <br/> STR [2] = P [1] + 3; <br/> STR [3] = P [0] + (STR [2]-str [1]); </P> <p> printf ("% s/n", STR [0]); <br/> printf ("% S/ N ", STR [1]); <br/> printf (" % s/n ", STR [2]); <br/> printf ("% s/n", STR [3]); <br/> return 0; <br/>}// this type of style is Linux <br/> // For details, see astyle. The style is the same as that of your project team. <Br/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.