Learn from Yin Cheng and C + + 002

Source: Internet
Author: User

To put someone else on the card. Asynchronous, synchronous words open one is close one
The value is a non-0 dead loop.
Preprocessing takes precedence over compilation, and is a nickname for precompilation
Main function Dead loop
The program is always executed starting from the main function.
The C language itself does not provide input and output statements
Print, etc. from the Stdio library
Only Blue is the keyword
Write programs annotated to increase readability

C Language Programming process
1. Problem Solving: Problem analysis
2. How to Solve: design algorithms, algorithms are the steps to solve the problem
3. Writing procedures
4. Analysis Results

#define _crt_secure_no_warnings
#include <stdlib.h>
#include <windows.h>
#include <stdio.h>
void Open ()
{
System ("notepad.exe");
Start cannot take path, need to enter directory in advance
}
void Openqq ()
{
Shellexecutea (0, "open", "notepad", 0,0,1);
0 means Hide window open, 1 normal, 3 maximized, 6 minimized
}

void Close ()
{
System ("Taskkill/f/im notepad.exe");
}

void Times ()
{

int num = 0;
scanf ("%d", &num);
int i = 0;
while (I<num)
{
Sleep (1000);
i++;
printf ("%d", I);
}
}

void Main ()
{
OPENQQ ();
Times ();
Close ();


}
C Program encountered an unexpected situation very much

C language Compilation precompiled link process


Pre-compiled with # #, define Precompiled
Compile translate converted files into binary obj, call a function
Link to include functions in

Learn from Yin Cheng and C + + 002

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.