您当前的位置: 首页 >  c++

ZhangJiQun&MXP

暂无认证

  • 3浏览

    0关注

    1187博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

c++基础,种子以及cmath,ctime,cstdlib,iomanip,cstring,iomanip,string

ZhangJiQun&MXP 发布时间:2018-10-11 21:48:23 ,浏览量:3

 

#include //用于输入输出 #include //用于数学公式计算,例:sum:求和。sqrt:根号。abs:绝对值。pow(2,3)=2的三次方。floor(-2)=-2。 #include//引入time  主要用于生成srand,例:srand((unsignde)time(NULL)).这样能使用:int a =rand();  用于生成随机数 #include //使用calloc,等等,这是常用的c++函数库,分配空间等等都会用到。 #include //  manip:操纵者。使用 setw 有序排列 #include //使用char的操作符,例:strlen: 查看字符串的长度  ,strcopy:复制字符串 这些函数是针对与char a[] 的

#include //在c++中存在string,注意是小写,字符串可以相加,例:string a= s+d;a.size();等等

#include //

using std::setw;

int main()
{
    for (int i=1;i            
关注
打赏
1665659684
查看更多评论
立即登录/注册

微信扫码登录

0.0408s