Brief introductiongcc means gun C Compiler. After years of development, GCC has not only supported the C language, it also now supports the ADA, C + +, Java, objective C, Pascal, COBOL, and Mercury languages that support functional programming and
First, the establishment of web pages
JavaScript Access C # code
II. Building Windows applications
1. Create a Windows Application project
2. Add WebBrowser controls to the Form1 form
3. Add above the Form1
You can use a macro to define a function that has no return value. For example:
Copy Code code as follows:
#define PRINTMAX (A, b) \ do \ {\ int x = A, y = b; \ printf ("Max:%d\n", x > y x:y); \} while (0)// ... Printmax (3, 4);
C++11 introduces a new line threading that includes tools to start and manage threads, and provides a way to synchronize (mutex, lock, and atomic variables), and I will try to introduce you to this new line threading.
If you want to compile the
C language malloc () function: allocating memory space dynamicallyheader file:
#include
malloc () function is used to dynamically allocate memory space (if you do not understand dynamic memory allocation, see: C Language Dynamic
The examples in this article describe how C + + implements the current time dynamic display. Share to everyone for your reference. as follows:
/* 24-06-10 10:44 dynamic display time but not the optimal function is very single This program is
C language Bcopy () function: Copy memory (String)header file:
#include
The bcopy () function is used to copy memory (a string), and its prototype is:
void bcopy (const void *src, void *dest, int n);
"Parameter" SRC is
This note is summarized from a code view.
In general, when programming with C, we are used to defining a numeric constant in our code using the macro definition in C:
#define MY_CONST 7
When developing a project in C + +, there is
Pointer to ObjectWhen creating objects, the mutation system assigns a certain amount of storage space to each object to store its members.The starting address of the object space is the pointer to the object. You can define a pointer variable that
Copy Code code as follows:
Class A
{
Public
Static Functiona ()
{
Menber = 1;
}
Privateint menber;}
There was an error compiling the above code. The reason is simple, as you all know, static member functions cannot
Const keyword:
A defined object with a const modifier is called a constant object;
The declared member function with the Const modifier is called a constant member function;
Declared data members that are decorated with const are called constant
The specific summary is as follows:
(1) reinterpret_castThis function converts a pointer of one type to a pointer of another type.This conversion does not change the format of the pointer variable value (without changing the value of the pointer
1. One of the questions: The procedure code is as follows:
Copy Code code as follows:
void Exchg1 (int x, int y)
{
int tmp;
Tmp=x;
X=y;
y=tmp;
printf ("x=%d,y=%d/n", X,y)
}
void Main ()
{
int a=4,b=6;
#include
class Test
{
private:
int i;
Int J;
int k;
Public:
void Initialize ()
{
i=0;
J=1;
k=2;
}
void print ()
{
printf ("i=%d,j=%d,k=%d", i,j,k);
}
};///semicolon critical
int main ()
{
Test T1;
T1.initialize (); constructor
Today's small knitting and everyone together through several examples to learn the basic knowledge of C + +, the following example resolution: "1-1" to write a program to achieve an integer, long integer, floating-point number and double the Count
The first time to write a program in C + + is only a rookie level of C #, but very familiar with C #. There is a great similarity between the two. But there are also differences.
First wrote a network communication with a small MFC program. Found
(
1\ when developing a project, use the ListControl control, for some questions, make a note for later use
(1) Delete all project Deleteallitems () to the list item;
(2) Add a column to the list item. InsertColumn (0, _t ("number"));
(3) Set the
Last blog wrote about how to update the system time through the network time, when writing how to test is not successful, and then think of my operating system (then was developed on the Win8) problem. At that time I guess should be insufficient
This article describes the C language to achieve the letter case conversion method. Share to everyone for your reference. The implementation methods are as follows:
* * Convert uppercase letters to lowercase/
#include
int lower (int c)
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