摘要: rust是一个预编译语言,类似C/C++ 写好一个rust源文件,其文件后缀为.rs文件 编译命令rustc main.rs 在windows系统中,会输出如下文件main.exe,main.pdb 其中pdb文件是一个附带调试信息的文件。 使用cargo管理代码 cargo可以方便管理各种包(cr 阅读全文
posted @ 2022-10-26 22:14 wenli7363 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 关于gets函数 有一段时间没有写算法了,今天重新写一道已经AC的题发现不通过。 发现如下报错:error: 'gets' was not declared in this scope; did you mean 'fgets'? 也就是说不支持使用gets函数了 请教了别人,应该是因为这个函数不安 阅读全文
posted @ 2022-10-26 00:09 wenli7363 阅读(801) 评论(0) 推荐(0) 编辑