Contacts book without using struct or class

Hi there,

I am new to c++ and i got an assignment that asks to create a c++ program where the user can "add", "remove" and "search" for a contact as well all input should be saved in a txt file. The problem is that i am not allowed to use structures or classess.So i am wonder which functions should i use for inputing/removing and searching?
Thanks in advance. Write your question here.
You use functions inside your main file for the input removing and searching. That's 3 functions. You can have a 4th function for a menu. In your main, you can have a switch statement which leads to these functions depending on the user input. For file handling look up the tutorial on this site or on youtube, same with switch cases etc. Get started on some code, come back present it, if you get stuck ask specific questions and we will help :)
Topic archived. No new replies allowed.