.386
.model flat,STDCALL
extrn ExitProcess:Proc
extrn MessageBoxA:Proc
extrn EnumWindows:Proc
extrn GetWindowTextA:Proc
.data
TITLE1 db 'Windows',0
WND_NAME db 200 dup(0)
;===============================
.code
Start: push 0
push offset PROG1
call EnumWindows
STOP: call ExitProcess,0
;================================
PROG1 proc hwnd:DWORD, wparam:DWORD
push 200
push offset WND_NAME
push hwnd
call GetWindowTextA
call MessageBoxA,0,offset WND_NAME,offset TITLE1,30h
or eax,1
Ret
Endp PROG1
End Start
#main-search {
position: relative;
}
#main-search input {
border-radius: 1rem;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
{
test: /\.sass$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
options: {
minimize: true
}
},
'sass-loader'
],
filename: path.resolve(__dirname, 'styles/main.sass'),
publicPath: path.resolve(__dirname, 'styles/')
})
"scripts": {
"build-dev": "set NODE_ENV=development&& babel-node server.js --presets es2015",
"build-prod": "set NODE_ENV=production&& webpack && babel-node server.js --presets es2015"
}
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.26.0",
"html-webpack-plugin": "^2.30.1",
"react-hot-loader": "^3.0.0-beta.7",
"webpack": "^3.6.0",
}
#include<iostream>
#include<conio.h>
using namespace std;
class Polynom {
private:
unsigned int degree; // ñòåï³íü
double *exponents; // ìàññèâ êîåô³ö³ºíò³â
public:
Polynom();
Polynom(unsigned int, double*);
~Polynom();
friend istream& operator >>(istream&, Polynom&);
friend ostream& operator <<(ostream&, Polynom&);
};
int main() {
Polynom x;
cout << x;
Polynom y();
getch();
return 0;
}
Polynom::Polynom() {
degree = 0;
exponents = new double[1];
exponents[0] = 0.0;
}
Polynom::Polynom(unsigned int degree, double* exponents) {
this->degree = 0;
for (int i = 0; i < degree; i++) {
if (exponents[i] != 0) {
degree = i;
}
}
this->exponents = new double[this->degree + 1];
for (int i = 0; i < this->degree; i++) {
this->exponents = exponents[i];
}
}
ostream& operator <<(ostream& os, Polynom& p) {
os << "degree: " << p.degree;
return os;
}
Polynom::~Polynom() {
}