神犇们看看,这是怎么回事

using System;
public class problem{
    public static void Main(String[] args){
        Thread.Sleep(2000);
        Console.WriteLine("1");
        Console.ReadKey();
        return;
    }
}
编译错误,提示:
The name 'Thread' does not exist in the current context
#C#(17531)#
全部评论
Thread  t  = new Thread();
点赞 回复
分享
发布于 2019-08-26 14:30
引入命名空间就好了
点赞 回复
分享
发布于 2022-02-09 01:48
联易融
校招火热招聘中
官网直投

相关推荐

北京中电45所 对自研产品进行测试或质量保证 工资待遇约了下周谈,可能每月应该会比东软多个4-6k的样子,不过可能会涉及到绩效工资,还不清楚占比多少。
点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务