[英]Hi, i am learning in C++ and i am having a problem. I am trying to make a very simple stopwatch and it keeps giving me "using unitialized memory" [closed]
复制错误:严重性代码描述项目文件行抑制 State 错误 C4700 未初始化的局部变量 'mil' 使用秒表 C:\Users\Josef\source\repos\4watch\stopwatch\stopwatch.cpp
“未初始化的内存”是什么意思?
#include <iostream>
using namespace std;
int main() {
int ms = 00;
int start;
cout << "type 1 to start";
cin >> start;
do
{
int ms = ms + 1;
cout << ms;
} while (start == 1 && sm< 100);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.