我试图从vs17中的文件中读取.但这里系统("暂停")不起作用.这里的控制台窗口弹出并消失.input.txt文件只包含一个整数.
#include<iostream>
#include<stdio.h>
#include<cstdio>
#pragma warning(disable:4996)
using namespace std;
int main()
{
freopen("input.txt", "r", stdin);
int n;
cin >> n;
cout << n << endl;
system("pause");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
那么有没有办法从文件中读取并在控制台中显示输出,直到给出键盘的另一个输入.提前致谢
我正在尝试在 ngx-smart-modal 中设置自定义宽度。
我已经尝试了(如何将独特的自定义 CSS 添加到 ngx-smart-modals)上给出的步骤,并且还尝试了在 github 上为此项目创建的问题的解决方案,但没有运气:(。
版本“ngx-smart-modal”:“^7.1.1”,
在我导入的全局 styles.scss 中
@import '~ngx-lightbox/lightbox.css';
@import "~ngx-smart-modal/ngx-smart-modal";
在组件 .html 中
<ngx-smart-modal [customClass]="'pack-modal-custom'" #packModal identifier="packModal" class="pack-modal">
<p>
love this game
</p>
</ngx-smart-modal>
Run Code Online (Sandbox Code Playgroud)
在组件 .scss 中
.pack-modal-custom{
min-width: 800px !important;
max-width: none !important;
background-color: black !important;
}
Run Code Online (Sandbox Code Playgroud)
但这个模态的宽度仍然是 520px,这是在 .nsm-dialog 中设置的。我做错了什么吗?