电话目录 [英] Tele phone directory

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

问题描述

我谦虚地请求你回答这个问题--------------------------写一个程序来保存电话联系方式按名称搜索。[通过使用结构和功能] ??? c ++



我尝试了什么:



我的谦卑请求你要回答这个问题--------------------------编写一个程序来保存手机联系人并按姓名搜索。[通过使用结构和功能] ??? c ++

its my humble request to you to give answer of this question-------------------------- write a program to save a phone contact and search by name.[ by using structure and function] ??? c++

What I have tried:

its my humble request to you to give answer of this question-------------------------- write a program to save a phone contact and search by name.[ by using structure and function] ??? c++

推荐答案

你有什么尝试?

What have you tried?
引用:

我尝试了什么:



我谦卑地要求你回答这个问题-------------- ------------编写程序保存手机联系人并按名称搜索。[通过结构和功能] ??? c ++

What I have tried:

its my humble request to you to give answer of this question-------------------------- write a program to save a phone contact and search by name.[ by using structure and function] ??? c++



所以,你什么也没做。



对不起,如果你不尝试,那就没有意义了给你答案。所以,这是你应该做的:



1.查阅关于如何使用函数,数组和结构的C ++教程。通过一些简单的例子学习在实际程序中使用它们。确保你理解它们是如何被使用的。



2.考虑你的问题并写下一些应该解决这个问题的伪代码。



3.使用您对函数,数组和结构的了解,将该伪代码转换为实际的C / C ++代码。尝试构建代码并修复编译器错误,直到您正确编译它为止。



4.测试程序以查看它的功能。可能在第一次尝试时无法正常工作。因此,使用调试器并查看您的程序是否与您在程序中的每个步骤中的行为相符。



5.如果您仍然无法修复程序,请来回到这里,描述你做了什么,展示你的计划,并寻求帮助。



然后,你会得到帮助。



如果您在步骤1中失败,请学会使用Google或您喜欢的任何其他搜索引擎



如果您在步骤2中失败,请搜索'伪代码'来理解它是什么,以及如何创建它。



如果你在第3步失败了,你可能会来这里询问具体如何在C / C ++中表达某种行为。但是不要求整个计划 - 我们希望你在来这里寻求帮助前真诚地尝试自己。



如果你在第4步失败,这是可以理解的:高效地测试和使用调试器是需要经验的事情。请尽量至少尝试一下,然后来这里告诉我们你做了什么,以及你需要什么帮助。不要忘记告诉我们您正在使用哪个编译器和调试器 - 每个都以不同的方式工作。


So, you did nothing.

Sorry, but if you don't even try, there is no point showing you the answer. So, here is what you should do:

1. Look up C++ tutorials on how to use a function, array, and struct. Learn to use them in an actual program with some simple examples. Make sure you understand how each of them is used.

2. Think about your problem and write down some 'pseudocode' that should solve the task.

3. Turn that pseudocode into actual C/C++ code using your knowledge of functions, array and structs. Try to build the code and fix compiler errors until you get it to compile correctly.

4. Test your program to see what it does. Likely it will not work correctly on your first try. So, use the debugger and find out if your program behaves like you thought at every step in your program.

5. If you still have trouble fixing your program, come back here, describe what you did, show your program, and ask for help.

Then, you will get help.

If you fail at step 1, learn to use google or any other search engine that you like

If you fail at step 2, search for 'pseudo code' to understand what that is, and how to create it.

If you fail at step 3, you may come here and ask, specifically, how to express a certain action in C/C++. But don't ask for the entire program - we expect you to sincerely try yourself before coming here for help.

If you fail at step 4, that would be understandable: testing and using a debugger efficienly is something that needs experience. Please do your best to at least try it, then come here and tell us what you did, and what you need help with. Don't forget to tell us which compiler and debugger you are using - each works differently.


这应该可以帮助您编写自己的代码。



插入更新删除元素在数组cpp代码〜初学者的C ++编程教程 [ ^ ]
This should help you to write your own piece of code.

Insert update delete element in array cpp code ~ C++ Programming Tutorial for Beginners[^]


我们不做你的HomeWork。

HomeWork未设置为了测试你乞求其他人做你的工作的技巧,它会让你思考并帮助你的老师检查你对所学课程的理解,以及你应用它们时遇到的问题。

你的任何失败都会帮助你的老师发现你的弱点并设定补救措施。

所以,试一试,重读你的课程并开始工作。如果您遇到特定问题,请显示您的代码并解释这个问题,我们可能会提供帮助。



作为程序员,您的工作是创建算法解决特定问题,你不能依赖别人永远为你做,所以有一段时间你必须学会​​如何。而且越快越好。

当你要求解决方案时,就像试图通过培训其他人来学习开车一样。

创建算法基本上是找到数学并做出必要的调整以适应你的实际问题。



We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.

As programmer, your job is to create algorithms that solve specific problems and you can't rely on someone else to eternally do it for you, so there is a time where you will have to learn how to. And the sooner, the better.
When you just ask for the solution, it is like trying to learn to drive a car by having someone else training.
Creating an algorithm is basically finding the maths and make necessary adaptation to fit your actual problem.

引用:

它不是我试图这样做的作业我在11级,但是电话目录在12级

its not a homework i trying to do so i was in class 11 but the telephone directory is in class 12



所以,它是下一堂课的自我分配作业你想知道为什么你缺少知识?


So, it is self assigned homework from next class and you wonder why you are missing knowledge ?


这篇关于电话目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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