Category Archives: How to Fix

Solution to the flash of visual studio console program output window

     
When you first come into contact with Visual Studio, most people will write a Hello World program to try. Some people will find that the output window will flash past after execution, and there is no “Press any key to continue”. This happens in both Visual Studio 2008, 2010, and 2012, and some people might do it one of two ways:

Add system(“pause”) or getchar() at the end of the program code. In fact, this is a command under DOS.

 

The problem is that when you Press F5, the correct one should be Ctrl+F5, and the window will display Press any key to continue… That’s it. You can also see the results of the program run.

This is because F5 is in Debugging mode, where the window does not remain open once the application finishes running. If CTRL +F5 is in Start Without Debugging mode, you’ll be able to see the results.

 

If you press Ctrl+F5 and it still flashes, then use the following Settings:

Right-click on Project –>; Property – & gt; Configure properties –> Connector – & gt; System – & gt; Subsystem (on the right side of window) –>; SUBSYSTEM:CONSOLE Drop down SUBSYSTEM selection CONSOLE

Solution of command line window flashback when visual studio runs C + + program

(By Tan Tan)
First, problem description
The original code looks like this:

#include <iostream>
 
int main()
{
    std::cout << "Hello World!\n";
    return 0;
}

The function is to print Hello World! From a command line window. However, the command line window will flash back as soon as I run it, and I haven’t even had time to read my Hello World!!
Second, solutions
Tried several methods of website, the following several works:
remember the following words are added before the return!!!!!!!!!
1. Add this sentence before return 0:

getchar();

2. Add this sentence before return 0:

system("pause");

3. Add this sentence before return 0:

cin>>name

The principle of these methods is the same, all want the command line window to wait for you to enter a signal before proceeding to execute, you do not enter a signal better stop there. Getchar () and cin> > The name is all about identifying what you’re typing, and the system(” pause “) should be free to enter a single character without identifying what you’re typing. Another way to do this is to write cin.get () before it; Get what you type, not type it and then execute it.

Solve the problem of vscode window console “flash”

Many friends in the use of VS Code, after running the program window console may flash past. At this point, the code is completely running, but the result is not visible. To do this, we can do configution by setting up a CMD configuration, as shown below:
Open the launch.json file and add

{
            "name": "(Windows) Launch",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "cmd",
            "args": [
                "/C",
                "${fileDirname}\\${fileBasenameNoExtension}.exe",
                "&",
                "pause"
            ],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole":true
        },

Note that the code is added in

 "version": "0.2.0",
    "configurations": [

and

{
            "name": "g++.exe - Build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
            "args": [],

In this case, you may find that this is just a case of keeping the old configuration and building a new platform, so that the runtime starts with window… Just run it
For convenience, share launch.json as follows:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) Launch",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "cmd",
            "args": [
                "/C",
                "${fileDirname}\\${fileBasenameNoExtension}.exe",
                "&",
                "pause"
            ],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole":true
        },
        {
            "name": "g++.exe - Build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "g++.exe build active file"    
        }
    ]
}

Hope the above content is helpful to readers (especially students)!
In the latest update, the Windows command box method is not debugable, so the breakpoint pause method is still recommended. hhhh

Causes and solutions of black frame flashback after debugging visual studio 2017

After debugging, the black box flashes back, and the following error is displayed.

The reason:
Debugging mode at this time, the program will not be suspended, so the window will not continue to open state. So when the black box appears, it goes away.
Solution logic:
Causes the program to pause in a wait state.
Some compilers, such as Visual 6.0, perform this function automatically at the end of code execution.
Solutions:
Method 1: As shown in Figure 1, add a statement before the return statement: system (” pause “); System (” Pause “); Call the system pause command.
,
Method 2: getchar () before the return statement;

Either of the above methods can be used.
So it runs successfully.

Three solutions to command line flashback in VS

Four solutions to command line flashback in VS:

    adds loop while(1). Add getChar () to get a character from the keyboard. System (“pause”) causes the command line to say: Please press any key to continue. Right-click properties in Solution Explorer –>; Connector – & gt; System – & gt; SUBSYSTEM just select “/ CONSOLE”.

Solution to the flashback of visual studio output window

 
1. The project – & gt; Property – & gt; Configure properties ->; The linker – & gt; System – & gt; Subsystem – & gt; SUBSYSTEM:CONSOLE adds “/SUBSYSTEM:CONSOLE”
2. Press Ctrl + F5 directly to run the program
3.return 0; Before adding a system(“pause”);
4. In return 0; I’m going to do a getchar ();

Some solutions to the problem of windows flashback after vs running

Recently, I do not know where VS has a problem. Every time I write the code, after compiling and running the code, the window is always flashing back. However, I do not want to reinstall, which is too troublesome. Here are some of the solutions I have put together. Please add more:
(Take the following code as an example)

#include<iostream>
using namespace std;
int main()
{
	cout << "hello world" << endl;
	return 0;
}

1. Press Ctrl+F5 to run the program
(This method only solves general flashbacks and may not be very useful)
2. Right-click on the project ->; Property – & gt; Configure properties ->; Connector – & gt; System – & gt; Subsystem – & gt; SUBSYSTEM right drop down window selection CONSOLE (/SUBSYSTEM:CONSOLE)

Int main(); int main(); system(“pause”);

4. C uses getchar() before return, C ++ uses cin. Get ();

Inline void keep_window_open(){char ch; cin> > ch; }, and then call the function at the end of main

6. Set breakpoint debugging, press F9 to set breakpoint, press F10 to step debugging, find the problem through debugging

Come and watch! Let’s see how people use Python to visualize the congestion situation of cities

Come and watch! See how the guy visualizes congestion in cities using Python
Preface one, climb congestion index two, data visualization three, build display website to write in the last

preface
Just today, I felt the deep malice from the traffic jam There is nothing wrong! I was stuck in traffic for almost 3 hours today and my best date just went up in smoke.

br bb0

ECCV 2020 panoramic segmentation papers (2 papers)

preface
The official series of Computer Vision Daily organized the large-scale inventory work of ECCV 2020
See above for details:
2020 target detection ECCV paper large inventory (49 papers) ECCV 2020 semantic segmentation large inventory (article 37) [ECCV paper 2020 instance segmentation paper inventory (12 paper) (https://blog.csdn.net/amusi1994/article/details/108999316)
This paper mainly includes: panoramic segmentation and other directions. Two papers have been sorted out, and the PDF of all papers have been packaged. Baidu cloud resources are as follows:

Link: https://pan.baidu.com/s/12WBsFFJKelcS7Fvrqiv3HQ
extraction code: t7nr

The article directories
Preface Panoramic Segmentation Paper Download PDF

Panoramic segmentation
Joint Semantic Instance Segmentation on Graphs with the Semantic Mutex Watershed

Author units: Heidelberg university paper: https://www.ecva.net/papers/eccv_2020/papers_ECCV/html/5393_ECCV_2020_paper.php code: no Chinese reading: no
Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentation
Author unit: Johns Hopkins university, Google paper: https://www.ecva.net/papers/eccv_2020/papers_ECCV/html/1564_ECCV_2020_paper.php code: https://github.com/csrhddlam/axial-deeplab in Chinese reading: no
Paper PDF Download
The PDF of the above 14 papers has all been packaged, Baidu Cloud link:

Link: https://pan.baidu.com/s/12WBsFFJKelcS7Fvrqiv3HQ
extraction code: t7nr

National No.1, what did Python do?

Python is without a doubt one of the hottest programming languages out there right now. The rise of Python has taken programming to a new level. It is no longer just for programmers, and everyone is learning Python, leading to a sudden rise in popularity and popularity. Python is extremely beneficial to the entire industry.
Python is everywhere, as Tiobe officially says, and in fact, since 2018, businesses have been deploying Python.
In education,
1. Since March 2018, the subject of “Python Programming” has been added to the National Computer Rank Examination II;
2. In 2018, Zhejiang Provincial Information Technology Teaching Material announced to abandon VB language and choose Python language which is more easy to understand;
3. The sixth grade information technology textbooks for primary schools in Shandong Province have also added Python content
In technical circles,
1. Python is developing rapidly in data science, machine learning, artificial intelligence, etc.
Python is also suitable for Web development, backend, mobile application development, and even (larger) embedded systems.
Python is becoming more and more popular, and it’s also attracting a lot of learners. Although Python has a reputation for being easy to learn, it can be difficult for people who have never been involved in computer programming to get a good grasp of it. The most important thing for beginners to Python is to choose a direction that works for them.
Learn Python from scratch! Learn Python from scratch! Today you can get all the information for only 0 yuan! And in the process of learning, you can also participate in our live learning!
A basic introduction to Python
Python development environment, function application, file manipulation, object-oriented, exception handling

2, Python advanced knowledge point explanation
Network programming, concurrent programming, database Linux system application Python syntax advanced HTML, CSS
Three, Web development selected good article + project combat
Django framework environment construction and entry case ORM principle and database configuration project practice: CSDN micro-course mall development practice

Three, Python crawlers selected good articles
How to use Scrapy framework, Middleware data persistent storage development method Redis visualization tool use project: Python distributed crawler + data analysis project: 2020 the latest focus of the crawler mechanism and bypass

Four, data analysis and data mining tools + actual combat projects
Pandas and Seaborn will be Pandas’ Notebook Data Science module. It will be Pandas’ Notebook Data Science module. It will be Pandas’ Notebook Data Science module

5. Artificial intelligence
Features Engineering Machine Learning Spam Classification Mechanism Principle Classifier Processing Recommendation System Architecture New Algorithm Launch Process and User Satisfaction Collection Strategy RMSE and MAE Evaluation Accurate Practice Project: Movielens Recommendation Data Analysis

 
All technical articles selected documents, video materials, project actual combat video have been sorted to the network disk

Click on the link and leave your contact information, can rapid consulting, get free information: https://t.csdnimg.cn/VtgI

And these [Python project source code] are all sorted out
It is not easy to organize the data, so be patient and learn
 


 

Click on the link and leave your contact information, can rapid consulting, get free information: https://t.csdnimg.cn/VtgI

> > > > > > > > > > The dividing line, underline < < < < < < < < < <
As a programmer technical community, has been adhering to the “achievements of 100 million technical people” mission, in order to help Python small white from 0 system combat each application direction, play a good Python each application post core ability! CSDN launched the Python Full Stack Developer!
What are the features of this course?
1. Constantly iterating content research and development to keep up with the market
CSDN, as the domestic programming technology community and the gathering place of the domestic programmers, has a good understanding of the Python technology requirements of the current enterprises.
This course is designed by the front-line industry lecturers according to the corporate talent portrait and training needs of the enterprise, with comprehensive content and professional learning path for the students, and training the complex and professional Python development talents.
1) The course teaches Python programming grammar + 4 popular applications +10 enterprise-level practical projects from a practical perspective. Connecting all of your Python knowledge through six stages of module design creates your own Python framework. At the same time, the course keeps up with the market demand iteration, and the course content of the upgraded version of the course is free to learn within the learning cycle! 2) Multi-stack technical personnel training, from the basic knowledge to the orientation of various employment, to provide multi-module content learning. 3) Multi-level employment analysis personnel training: Python full-stack development, Python crawler, Python data analysis, Python Web, artificial intelligence and other employment direction.

2. Perfect and sound course learning/supervision system
One to one question-answering by instructors, real project practice, regular testing, head teacher supervision, live question-answering, homework correction, and effective “learning, practice, testing, evaluation, answer integrated teaching mode”, CSDN guarantees your learning effect.
In addition, CSDN will also invite some industry celebrities to hold closed-door sharing meetings for students from time to time. Maybe just a little experience sharing in job hunting and daily work can help you avoid many detours.

3. Build your own personal network
I have to mention CSDN’s in-factory promotion service: excellent students can directly promote their resumes to the desk of the employing department. Meanwhile, they can cooperate with a number of senior tutors to provide one-to-one guidance to improve your employment rate.  
At the same time, CSDN alumni from Baidu, Tencent, Toutiao, Huawei, Meituan, JD.com, Xiaomi, Apple and other well-known first-tier “star” companies exchange circle, promote mutual communication and communication, at any time with excellent people continue to learn and progress. It also provides each student with the opportunity to enter the circle of high-quality network communication.
4. For all your other questions, here are the answers:
Q1: What is the learning style?
A: Online learning: the teaching mode of live broadcasting + recording. Of course, if you can’t catch up with live broadcasting, you can watch high-definition recording and playback at any time.
Q2: Is the after-sale service of the course complete?
A: Private VIP small group services: the speaker, teaching assistant, head teacher and employment teacher provide more than one personal question-answering service to effectively ensure the speed of answering questions and improve learning efficiency.
Q3: What is the schedule of the course?
A: The course adopts the on-demand learning mode. During the learning cycle, the courses are upgraded for free learning.
Recording part: is the dry, weekly recording 4-6 hours [material], probably need 1.5-2.5 times the learning time, this is to see their own appropriate time range, recording is the lecturer in advance in the recording studio alone, after the opening to you, not the playback of the period of live Oh.
live broadcast: weekly live broadcast, 1-2 times a week, two hours a time, combing important and difficult points for expansion, usually 8-10 PM, or in the afternoon of the weekend, miss can watch the playback and review repeatedly.
Q4: Is there any guarantee for registration?
A: In order to protect your learning rights and interests and our confidence in the course, if you are not satisfied within 7 days, you can carry out the refund process with CSDN unconditionally at any time.

Click the link, free to receive hd + learning route course planning: https://t.csdnimg.cn/VtgI