Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm very new to C++ programming language so to be familiar with the langauge I decided to make a simple project which could be also useful for my classmates (I am an engineering student).

So the basic idea is to create a Qt based GUI app which can work like a dictionary but instead of words you can search for formulas of different engineering subjects like mathmatics, electromagnetism, etc. But the problem is I dont know where to start from. The main problem i'm facing is how to display formulas based on relevance of letters i typed. For example (If I type elec then list of formulas containing elec as a substring should be displayed.) and please help me with a direction to follow.

What I have tried:

I tried looking for it on the web but couldn't find anything useful. Tried different forums but don't why they closed my question
Posted
Updated 24-Jul-22 7:40am

That's a fairly good idea for a project. I think you could make the formulas in the form of images and .PNG would be the best format for them. Give the images very, very descriptive names. Then what you display will be a matter of matching file names with what is typed. You will probably want to keep a sorted list of file names around for quick string matching. This is all pretty easy stuff to pull off.

I think they should be images because some formulae can get rather complex for most formats, including Latex. Displaying a PNG image is quite easy and lots of libraries support it. I am almost certain Qt supports it too. Also it will be easy to take screen grabs of formula images from the wikipedia and other sources.

Good luck with it.
 
Share this answer
 
Comments
0x01AA 24-Jul-22 13:55pm    
Quote:
Tried different forums but don't why they closed my question
Probably for the same reason you're unlikely to get an answer here: there is nowhere near enough information to even start answering it.

The problem is that we have no idea what your code looks like; how you store data; how you display it; ... we know nothing about what you have done so far! And contrary to the firmly held belief of many beginners, there is no "one right way" to complete a development task - there are as many as there are developers doing it!

Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Start here: Asking questions is a skill[^] and think about what you need to know, and what you need to tell us in order to get help.
 
Share this answer
 
Notwithstanding the comments above by the esteemed OriginalGriff, here are a couple of things to consider:
- Can you create a simple GUI application in C++? For example type your name into a box and the program converts it to upper case and displays it in another box.
- Do you know how to create a simple database (e.g SQLite, XML etc.) that you can use to search for the information you want? Hint: create a console application to test it.

Once you have those both working you can start putting them together in the form you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900