|
[求助]求破解密码,别人出的一个题目
貌似是不能的 |
|
[求助]求破解密码,别人出的一个题目
有没有破解的过程哇?就是比赛的题目,不过比赛还没结束,现在是初赛阶段 |
|
[求助]还是c++
楼上已经说了 我举个具体的例子。 假设你要运行的程序是main.exe,程序所在路径为D:\Main\main.exe在控制台执行的时候: main.exe one two three 此时你的主函数接受到的参数是 argc=4 表示总共的参数个数 argv[0]=D:\Main\main.exe;//程序的完整路径 argv[1]=one //命令行的第一个参数 argv[2]=two //命令行的第二个参数 argv[3]=three //命令行的第三个参数 argc保存的是 后面*argv[]指针数组 (有时候写作**argv,一样的)的元素个数 ; argv[0]保存程序完整路径 argv[1]---argv[n]保存传进来的第1--n个参数。 |
|
[求助]一个关于c++的问题
<< 作为运算符的时候是左移位运算 比如int a=(1<<2)此时a就是4了,左移相当于是乘以2的N次方的运算 这里就是1x2的2次方。用移位运算会比乘法运算快一些。 if(val & (1 << i)) std::cout << "1"; else std::cout << "0"; 这段代码是根据不同的i值,来取val的不同的位,在这里val应该是8位的一个数 设为10101010 当i=0时 ,1<<0=0000 0001 val&(1<<0)的结果就是 (10101010)&(0000 0001)=0000 0000,输出“0” 当i=1时,1<<1=0000 0010 val&(1<<1)的结果就是 (10101010)&(0000 0010)=0000 0010,输出“1” . . . 当i=7时,1<<7=1000 0000 val&(1<<7)的结果就是 (10101010)&(1000 0000)=1000 0000 输出“1” 需要注意的是 ,代码中是从i=7开始的,所以输出的刚好是10101010 也就是正序 如果代码中是从i=0开始的,那么输出的就是01010101 也就是倒序了。 因为1<<i之后的值只有一位是1,其他的都是0 所以相当于是判断对应的位是1还是0了 <<作为流操作符,可以简单的理解为流的流向,c++中有很多流,输入流,输出流,文件流,字符串流等 ,这方面我也搞不太懂,不过作为流操作符的时候其实是重载的实现。具体的我也不知道怎么说,不过感觉也没必要完全搞懂得样子。想用的时候就自己重载一个也行。 |
|
[求助]关于vs2008 c++编译问题
先编译文件 才能得到对应的可执行文件,如果还是不行的话,就找到对应解决方案的目录 删除debug、文件夹 ,在vs里面点击生成 重新生成解决方案 |
|
[求助]一个c++的小问题
这个是那条语句的汇编代码 这个是把过程拆开来的结果, 从结果来看应该是第二项的值是2,而第一个和最后一个是0 也就是说对m的赋值过程应该是m=0+2+0 对于汇编我不是很懂,但是大概的意思是经过第一项之后k的值是1,第一项值还是0,但是之后的这个1被同时交给了++k和--k同时处理,所以就是0+2+0的结果了。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值