Shortest path finder C++ GUI with map [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Well I am new to programming. I have made a C++ console application on VS 2012 which uses Dijkstra's algorithm to calculate the shortest path between any two cities of my country .It prints the main cities the path will go through from, the total distance and the total time it would take for a person to travel that distance via a car. Well the application is just a simple C++ console application.
What I want to do is to add a GUI to it. And especially a map, which will show the path by highlighting that specific path on it. All experience I have is on C++ console apps. And I have NO idea how I'd be doing this.
Well I can manage to do some simple GUI. But kindly tell me how would I be dealing with the map. That's the main thing which I have to do.

QT is a good toolkit for GUI programming. They have a tool called QtCreator which allows you to quickly build a GUI program.
But there are a lot of things to learn when developing GUIs which would be to much for an simple answer here. Good luck!

Related

Replacing QT with OPENCV for Face Recognition [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have a face recognition program. Its basics are in opencv but GUI is in QT. I want to change the GUI to opencv. How can I do? Like What is the reciprocal class for QWidget in OpenCV?
Any document or link will be help full.
Thanks in advance.
You seem to have some confusion on the role of the two:
openCV is a computer vision library, not an application and GUI framework
Put simply: with Qt you can create graphical interfaces that run on many platforms and expand those using OS wrappers
openCV is a series of APIs designed to operate on image data to do image recognition, image processing and, in general, all the tasks and operations that fall under the "computer vision" umbrella term
TL;DR - they serve different purposes, your question as it stands makes little sense

Magic Particles [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I really like this Particle Emitter software here:
http://www.astralax.com/projects/particles
They have an API and even an OpenGL Wrapper for IOS but I cannot figure out how to integrate these particle emitters in to my standard UIKit Xcode project.
They have a sample for Cocos2dX (not interested in that) and they have a sample using OpenGL (which is pretty advanced) but no easy sample of how I can integrate to my existing standard Xcode projects referencing from my standard .h and .m files.
Has anyone figured out how to use this program with basic Xcode?
EDIT: I guess it says I am "Off Topic"...never seen that here before. Curious, I didn't even know there was a specific topic going on. I'm confused (sort of why I made the post in the first place).
You can use CAEmitterLayer extented from CALayer. See Apple documentation.

Bindind to keys C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
Hello there I am a realative newbie when it comes to using different "commands" in order to achieve things so I was wondering if any of you know a way to bind a key to do a certain task anywhere in the programme ,so I would be able to display a function for example and after the display finishes the programme carries on normally like nothing happened and then that same key on any other push would still do the display . Thanks in advance
Plain C++ does not have any concept of "key binding". The platform (e.g., the operating system) has this knowledge and it provides some libraries to handle it. So, you must provide more information about the operating system, or use a cross-platform library like Qt.

How is it possible to create an information fetcher for a game like League of Legends? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Basically what I'm wondering is, how could you get like a list of all mobs, champions their hp, mana etc with programming? I know this is possible because it has been done before but I just can't see how you would be able to do this. Is looking in the assembler code necessary or can you do it in some other way? I'm mostly wondering about the theory behind it. (Using C++ if that helps anything at all)
Such things are usually done using crawling (e.g. retrieving the data from the web pages provided by Riot Games; might be partially outdated) or using reverse engineering to get this data from the game client's files (might not contain everything). In either way you'd get datasets which you'll have to read or interpret (look for values or replicate the way the game client reads and interprets the data).
I'm not sure whether there are some tools or APIs released somewhere, at least I haven't heard of anything officially supported or endorsed; most of this is essentially in a gray zone usage wise.

How does normal C++ code apply to GUI Programming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am a beginner at programming, so this might be a dumb question, but here it is...
I've been going through books, learning languages such as C and C++, and I have a basic understanding of the code. Yet, is this type of code used in actual programs? For example, I open a program on my computer, and there is a nice looking user interface on it. When I code programs at home, my user interface is the command line. But when I go to code a program with a GUI, the code I learn in books doesn't even apply to the GUI code.
So I guess I'm wondering - How does the code and things you learn in books apply to actual programs with a user interface? And is the code used for console applications even used anymore?
Any guidance or help would be appreciated!
Thanks
Ian Vaughn
Yes and yes.
GUI's are sometimes programmed in C++ (C is rarer), but it's also used for console programs. One special type of GUI's is in fact usually done in C++, and that's games. A common example of console programs is a converter program, which takes in one file and creates another. It's UI can be ./tool < InFile > OutFile.