When I first came into contact with C ++, I thought it was difficult because I had to remember many terms and formats, which made me very uncomfortable. My teacher's "Master Theory" increased my confidence. We are programmers who ask computers to
/* Copyright (c) 2011, School of Computer Science, Yantai University * All Rights Reserved. * file name: test. CPP * Author: Liu Mingliang * completion date: September 29, 2012 * version No.: V1.0 ** input Description: I compiled the first C ++ *
1. Int main (INT argc, char ** argv)
Argc: an integer used to count your runProgramNumber of command line parameters sent to the main function
* Argv: String Array, used to store a pointer array pointing to your string parameters. Each element
# Include # include # include using namespace STD; Class commandbase {public: Virtual void run () = 0; private :}; class command1: public commandbase {public: command1 (string strname): m_strname (strname) {}; void run () {cout : iterator itr = m_
/*************************************** ***************** Author: Peng Xiaolin* Copyright: All Rights Reserved. You can skip this article]* Function: test the default parameters of the constructor.**************************************** ***********
VC note path: cannot contain Chinese Characters
Keywords:
1.1, the widest and constant keyword ---- Auto
Auto: It is very wide and constant, so you can leave it alone. The compiler defaults to all variables.
All are auto.
1.2, the fastest
Second C ++ProgramAccording to the template given by the teacher, it is still a little troublesome, but I finally wrote it!
# Include using namespace STD; int main () {double C; double F; cout C; F = C * 9/5 + 32; cout
Computer content: C ++ProgramCOMPILATION AND APPLICATION
Objective: To understand the general process of editing, compiling, connecting and running a simple C ++ Program
My program:
/** Copyright (c) 2011, School of Computer Science, Yantai
Recently, the computer has been infected with viruses. Why? Ntldr file exception always reported, causing the computer to fail. Fortunately, there is a USB flash drive, and it is OK to copy the ntldr and ntdetct.com files to the C root
Double Precision Floating Point (Long Double Precision) data output with % lfOutput short integer data with % u
% D signed 10-digit integer% I signed 10-digit integer% O signed octal integer% U unsigned 10-digit integer% X unsigned hexadecimal
In C, users can use three types of storage space: program area, static storage area, and dynamic storage area.
The program stores machine commands of executable programs;
The static storage area stores the variables of the fixed storage units
Oleg F (experienced C ++ developers), a member of TechRepublic, asked me about the current situation and future of C ++. In addition, he also wants to know how C ++ adapts. NET World, Web development and cloud computing, the following is my answer.
Computer content: Writing and running C ++ programs
Objective: To understand the general process of editing, compiling, connecting and running a simple C ++ Program
My program:
/** Copyright and version statement of the program: * copyright (c) 20
Computer content: Writing and running C ++ programs
Objective: To understand the general process of editing, compiling, connecting and running a simple C ++ Program
My program:
/** Copyright and version statement of the program: * Copyright (c) 20
// Author: p_x_l
// Copyright: All Rights Reserved.
# Include # Include
Using namespace std;
Void test (int );Void test (long );Void test (float );Void test (double );
Int main (){Test (2 );Test (2332 );Test (1.32554 );Test (234.342 );
/*************************************** ***************** Author: Peng Xiaolin* Copyright: All Rights Reserved.* Function: copy the constructor test program.**************************************** **************/
# Include # Include
Using
/*************************************** ***************** Author: Peng Xiaolin* Copyright: All Rights Reserved.* Function: Deep copy example of Constructor**************************************** **************/
# Include # Include
Using namespace
Today, I checked the color screen driver and saw this code when displaying characters. With the help of Zhu zhaoqi from Jiangxi University of Technology, I realized that I had a huge misunderstanding about array pointers before. Let's summarize it
In a twinkling of an eye, I have been learning c ++ for a year. I have been using a csdn blog for almost a year. I have ranked 11796 people thousands of miles away from the beginning, and now I have earned 921 points and 6819 visits, I wrote 86
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