-
The program you wrote is itself wrong, so it's not that you can't make it, it's that you make it wrong.
-
If you have created an incorrect working interval and have made up an incorrect **, it is recommended that you find a practical training guide. First "copy", then "imitate", and finally innovate.
-
include because you want to call system("pause");So add this.
#include
using namespace std;
int main()
int a = 0;
cout<<"s"return 0;
Also、Your file type is。 This is wrong, it should be. CPP is right、Pay attention when you create a new file、
-
#include
using namespace std;
int main()
cout<<"s"Hehe, it's been compiled, your problem is that you haven't figured out the concept.
-
Why can't it, just write it on the cpp.
-
Create a win32 console project, and select an empty project in the next step.
Select C++ Resource File (CPP) to create a new fileto the project you just had.
In cpp, type:
#include
using namespace std;
int main()
Just run it.
-
dev-c++:
#include
using namespace std;
int main()
Just debug and run.
Just press f9 and you're good to go!
-
It should be written wrong in main.,Check if it's written as mian, a very complicated program?,Send it up and see.
Then it could be a problem with installing the software... Or the engineering, the file is not set up correctly?
I changed the running program main to mian, and the error you said will appear when compiling, but it won't run. You can package the project files and contact me directly.
-
You press the green triangle execution button, this is debugging and running, and the crash is normal, because there is no waiting and pausing statement in the program.
Press Ctrl+F5 to execute the program, and you can see the execution result.
-
Your ** has been successfully compiled, there are no errors, when it runs, because the normal operation is completed, so the window is automatically closed, and it can't be called flashback. Because your program isn't letting the user type or waiting for the user to type.
1: You can run with non-debugging, or use CTRL+F5. or a non-debugging run in the menu.
2: You can add a statement that reads user input, such as read, get, etc., waiting for user input.
It is recommended to run directly with non-debugging. This does not affect the logic.
-
There is no best, only better, hehe!
If it's an entry, it's a general domestic book to lay the foundation.
If you go deeper, just take a look at "In Plain Terms" Hou Jie's, "Windows Core Programming", "MFC Windows Programming", etc., the latter two are foreign, I don't remember the author's name, you have to find it yourself, if you really want to study in depth, it's best to buy these books. Hope it helps.
-
Windows Programming (2nd Edition) Yanping Wang.
This book is very good, the introduction is easy to understand, and its e-book and source ** are easy to find online, of course, it is best to buy this book.
-
Pulse VC++ is pretty good, don't believe you to check it, and the aftermath is also very good.
-
Bad link? It should be that the program you ran before was not closed.
-
Is it because the running exe is not closing?
Because you didn't close it, there was an error when recompiling the generated exe file.
Wind-heat cough. Symptoms: unpleasant cough or heavy cough voice, sputum spitted out is viscous, yellow in color, a small amount of blood, not easy to cough up, thirst, sore throat, nasal runny nose; or accompanied by fever, headache, fear of wind, and slight sweating; The tongue is red in color and has a thin yellow coating. >>>More
If the thorn is not deep enough, it may fade after recovery. The so-called depth of the puncture is not enough, the pigment only pierces the epidermis, and the color is very good beforehand, but the epidermis of the human body is constantly updated and scattered, this renewal cycle is about more than 50 days, the younger the age, the shorter the renewal cycle, assuming that the color only pierces the epidermis, when the ** update, the color will also fall with the epidermis. >>>More
Think of each end as a new beginning. When I was 20 years old, I couldn't think about why I loved that person at that time, why I left selfishly. Unacceptable. >>>More
Here are a few easy-to-learn and convenient recipes that may help you: 1 When you have a toothache, you can cut a small piece of ginger and bite it into the sore area, and you can reuse it when necessary, and it doesn't hurt to put it in your mouth when you sleep. 2 Spot honey on the toothache and it will be fine in a few minutes, and it will make your mouth full of flavor. >>>More
If you have less than three bowel movements a week, it is likely to be constipation, and there are many factors that lead to constipation, such as unhealthy diet, little water in daily life, sitting for a long time, etc. <> >>>More