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