2020-02-27

Linux下刷写eeprom和Mac地址

  • dos下
  • 使用eeupdate.exe工具
    -1.刷eeprom:
  • (由lanconf提取的刷写文件) :
  • eeupdate /nic=* /d 刷写文件.eep
    
  • (由烧录器提取的刷写文件)
  • 使用lanconf工具刷写  lanconf-eeprom/flash-flash-write flash-选择刷写文件
    
    1. 刷mac地址:
  • eeupdate -mac_dump-all   查看
    
  •  eeupdate -nic=*  -mac=***
    
  • uefi下
  • 使用eeupdate64e.efi工具
  • 刷eeprom:
  • eeupdate64e /invmupdate /file=**.txt /nic=
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是使用不同的格式化输出方式编写的程序: 1. 使用printf函数输出: #include <stdio.h> int main() { char name[] = "苏炳添"; int weight = 75; float speed = 11.0; float time = 20.0; float distance = 3.67; float calories = 297.95; printf("时间:%s,姓名:%s,体重:%d公斤,跑步速度:%.1f公里/小时,跑步时间:%.1f分钟,运动距离:%.2f公里,燃烧卡路里:%.2f千卡。\n", "2020-02-27", name, weight, speed, time, distance, calories); return 0; } 2. 使用cout流输出: #include <iostream> #include <iomanip> using namespace std; int main() { string name = "苏炳添"; int weight = 75; float speed = 11.0; float time = 20.0; float distance = 3.67; float calories = 297.95; cout << "时间:" << "2020-02-27" << ",姓名:" << name << ",体重:" << weight << "公斤,跑步速度:" << fixed << setprecision(1) << speed << "公里/小时,跑步时间:" << fixed << setprecision(1) << time << "分钟,运动距离:" << fixed << setprecision(2) << distance << "公里,燃烧卡路里:" << fixed << setprecision(2) << calories << "千卡。" << endl; return 0; } 3. 使用stringstream流输出: #include <iostream> #include <sstream> #include <iomanip> using namespace std; int main() { string name = "苏炳添"; int weight = 75; float speed = 11.0; float time = 20.0; float distance = 3.67; float calories = 297.95; stringstream ss; ss << "时间:" << "2020-02-27" << ",姓名:" << name << ",体重:" << weight << "公斤,跑步速度:" << fixed << setprecision(1) << speed << "公里/小时,跑步时间:" << fixed << setprecision(1) << time << "分钟,运动距离:" << fixed << setprecision(2) << distance << "公里,燃烧卡路里:" << fixed << setprecision(2) << calories << "千卡。"; string output = ss.str(); cout << output << endl; return 0; }

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值