Tag Archives: input

VS2010 debugging window flash solution

These days the development integration environment has been changed to VS2010, just started to use, some places are not very understand, by consulting the relevant documents, is now solved.
Take the VS2010 debugging window flash through the solution is as follows:
#include < iostream>
using namespace std;
void main()
int add(int,int,int);
float business (int);
int x, y, z, sum;
cout< < “Input x, y, z:”;
cin> > x> > y> > z;
the sum = add (x, y, z);
cout< <” sum=”< < sum< < endl;
cout< <” average=”< < average(sum)< < endl;
// system (” pause “);
}
}
Int add (int a, int b, int c)
{return (a+b+c); }
float business (int s)
{return (s/3.0); }
This is the test code.
The solution is as follows:
If you are compiling (F5), you can run the program (Ctrl+F5). If it is still flashing, use the following method to solve it.
method one:
1. If the c + + files, in the final to write a program before (return) add: system (” pause “);
= #include”stdlib.h”;
= #include”stdlib.h”; Then add: system(“pause”) at the end of the program (before the return).
Method 2:
. Right click on the current project – Properties
2> 3. Change the SUBSYSTEM configuration in System Options, select the first ‘/ CONSOLE’ in the drop-down menu and then select ‘Start Executing (Don’t Debug)’, that is Ctrl +F5;
This solves the flash window problem once and for all.
 

Eclipse package explorer related problems and Solutions

Problems and Solutions:
Use case description: Right click on a project in the Package Explorer, select “Open in New Window”, close the previous Eclipse window, and close the new one
Problem: After opening Eclipse, the Package Explorer will always be in the project of open in new Window
Solutions: This solution personal feel very feasible, but may have a better way, my way is, direct delete/eclipse working directory workspace \. Metadata \. Plugins \ org. The eclipse UI. The workbench folder workbench. The XML file, then, the eclipse before some of the relevant Settings window will disappear, but this does not trouble, and this method can make the eclipse open load something small and open eclipse will fairly quickly
The
Problem and Solution ii:
Use case description: As mentioned in question 1 above, the project that opened in the new window was either deleted in Explorer or changed its name
Problem: The Package Explorer will always be empty
Solution: can be as a method to solve above problem, but there is a better, open the workbench. XML, find the input factoryID = “org. Eclipse. UI. Internal. Model. ResourceFactory”, change can be put behind the path values, the said the root directory “/”

Add a new page in latex

When we use Latex, we sometimes need to start a new page to continue writing. Instead of using \ newPage, you’d better implement this using \ ClearPage.
Because:
\newpage: The \newpage command ends The current page.
\clearpage: The \clearpage command ends the current page and causes all figures and tables that have so far appeared in the input to be printed.
In plain English, when you add a large number of new pages, the two are basically the same. When you add a small number of new pages, \ NewPage won’t achieve the effect you want, but \ ClearPage will.
Here’s an example:
Exp1:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{song}
\CJKtilde
first side
\newpage
sorry, first side
\clearpage
\end{CJK*}
\end{document}

Exp2:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{song}
\CJKtilde
first side
\clearpage
haha, second side
\clearpage
\end{CJK*}
\end{document}

(EE) Failed to load module “fbdev” (module does not exist, 0)

Enter the command startx in the virtual machine:
The following error occurs.
(EE) Failure to load module “Video Electronics Standards Association” (module does not exist, 0)
(EE) failed to load module “fbdev” (module does not exist, 0)
(EE) failed to load module “evdev” (module does not exist, 0)
(EE)No driver matching evdev input
(EE) failed to load module “evdev” (module does not exist, 0)
(EE)No driver matching evdev input
(EE) failed to load module “evdev” (module does not exist, 0)
(EE) No input driver matches “evdev”Solution.
yum install xorg-x11-drivers