C ++学生作业 [英] C++ student assignment

查看:51
本文介绍了C ++学生作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是使用相同的用户输入数字背靠背运行两个搜索功能(线性和二进制)。 每个函数必须输出搜索结果和执行的迭代次数以查找数字。 线性函数输出
后程序挂起。 任何人都可以告诉我为什么二元函数的调用不起作用?

My goal is to run two search functions (linear and binary) back-to-back with the same user entered number.  Each function must output the search result and the number of iterations performed to find the number.  After the linear function outputs the program hangs.  Can anyone tell me why the call to the binary function isn't working?

推荐答案

已删除


这篇关于C ++学生作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆