首页 > 其他分享 >杂七杂八备忘

杂七杂八备忘

时间:2023-02-14 00:33:41浏览次数:34  
标签:aa 杂七杂八 备忘 Wall int64 Wextra Werror

C++

使用{}初始化会在损失初始化数据时报错。

double aa = 3.1415926;

int64_t bb = aa;  # 这行代码正常执行,自动损失精度
int64_t cc = {aa};# 这行代码将会报错

Makefile 常用命令

CFLAGS+= -g -Wall -Wextra -Werror
CPPFLAGS+= -g -Wall -Wextra -Werror

标签:aa,杂七杂八,备忘,Wall,int64,Wextra,Werror
From: https://www.cnblogs.com/songxi/p/17113579.html

相关文章

  • 一些套路的备忘笔记
    组合计数类对于\(\sum\limits_{k=1}^{m}{x_k}=n\)的限制,在任何解中,本质不同的\(x_k\)的数目是\(\mathrm{O}(n^{\frac{1}{2}})\)。一道题目涉及到异或和的时候......
  • 常回顾 做备忘
    1.成员变量整xing在初始化时候系统会默认置为0.而在局部变量设置初始化时,一定要赋值置0,因为会有意外发生不是默认为0,下面再用到会出错;L1:{intcount =0;//切莫图方便写......
  • Tmux操作备忘录
    Starting Your First Session    tmux    start session and set name to it:    tmux new -s name    rename your existing session: ......
  • gdb操作备忘录
    b main - Puts a breakpoint at the beginning of the programb - Puts a breakpoint at the current lineb N - Puts a breakpoint at line N......
  • EXCEL使用备忘
    1.表格取值求和   不同Sheet1取值,Sheet名字+!+单元格 ......
  • vim备忘录 -- 可视模式
    DefineaVisualSelectionSwitchingBetweenVisualModesTogglingtheFreeEndofaSelectionIndentOnce,ThenRepeatPreferOperatorstoVisualCommands......
  • vim 备忘录
    插入模式MakeCorrectionsInstantlyfromInsertModeGetBacktoNormalModePastefromaRegisterWithoutLeavingInsertMode......
  • TS备忘录
    前言不做笔记不学习一个线上的TypeScript练习地址:TypeScriptPlayground为什么要有TypeScriptTypeScript是JavaScript的超集,因为它扩展了JavaScript,有JavaScript没有......
  • Unicorn备忘录
    摘自https://bbs.kanxue.com/thread-224330.htm#msg_header_h3_7_,个人存档用fromunicornimport*-加载Unicorn库。包含一些函数和基本的常量。fromunicorn.x86_cons......
  • 备忘录——win10系统中SVNClient 连接超时
    问题:win10笔记本使用华为SVNClient连接超时解决方案1.设备管理器-->网络适配器-->SVNAdapterV1.0,右键选择禁用设备.2.进入C:\Windows\System32\drivers目录下,替......