我使用SVG创建了六边形计时器,它包含2个路径:一个用于核心六边形,另一个用于计时器计数。这是工作代码:http://codepen.io/decipher91/pen/rMXYRV/
#include <iostream>
using namespace std;
int main(){
int a , b , c , d;
cout << "Enter First Value" <<endl;
cin >> a;
cout << "Enter Second Value" <<endl;
cin >> b;
cout << "Enter 1 to add values" << endl << "Enter 2 to subtract values" <<endl <<"Enter 3 to multiply values" <<endl ;
cin >> c;
if (c == 1){
d = a + b;
cout << "After Adding your answer is " << d << endl;
}
else if (c == 2){
d = a - b;
cout << "After Subtracting your answer is " << d << endl;
}
else if (c == 3){
d = a * b;
cout << "After Multiplication your answer is " << d << endl;
}
else{
cout << "You Enter Invalid operation to perform";
}
system("pause"); //buitin function to stop the comand screen.
return 0;
}
在所有浏览器上从左上角开始填充,但在Edge上从右下角开始填充。有没有办法解决它?