TRENDING NEWS

POPULAR NEWS

How Do I Create A Gui For My C Project

How can I create GUI using C programming?

Nowadays there r many options available for the creation of GUI,efficiently and conveniently:-You can make use of Tcl/Tk Library (In Python it can be accessed using the Tkinter module) For ex:-import Tkinter

root=Tkinter.Tk()
root.title("Demo Application")

l1=Tkinter.Label(root,text="Demo Python Application",bg="#F0F",font="COURIER 25 ")
l1.pack()
root.mainloop()
Its all done ,only using 8 lines, you can start making the GUI application without any complexity in pythonHow to make GUI in C Programming Language ?Ans:-1.Firstly if you are using the old Borland Compiler ,Turbo C ,then first of all I would suggest you to start using the modern compilers like the Microsoft Visual Studio /Dev C++ , that provides support to all the modern libraries.2.So,for writing the GUI application for Windows in C.->>Windows itself provides a API(Application Programming Interface) commonly knowns as Window32 API that enables you to develop the GUI application→For more information:-Tutorial: Getting StartedBook to Learn Gui Programming In Chttp://www.charlespetzold.com/pw5/3.Secondly use can also make use of GTKFor more information:-The GTK+ Project

How do I create a project using C/C++ only?

Also a user on youtube under the name 'thenewboston' has excellent tutorials.  He is a funny guy which makes the material less dry.58 videos                                                                                          C Programming Tutorials  14 videos                                                                                          C++ GUI with Qt Playlist    You can also check out the 'Head First' book series.  It is similar in that it keeps the material as non-dry as possible.The best advice I can give is to just jump right in and have fun.  Best of luck.

I would like to create application for my final year project. For this, which program i have to choose? C++ or Python is best? I need good GUI development for my project. Can you give your points? Also i'm somewhat familiar with C++. But i dont know how to develop GUI applications with C++?

Go with python. C++ has got a steep learning curve. If you have time constraints, Python would be a good bet. it has got a lot of built in features for you to start with . Along with the above mentioned ui tools , you also have pyqt, the qt api for python .. There are many open source tools developed with python and pyqt may be that could be a starting point for your project .

How do I create a GUI using C/C++?

There're these two libraries I know for creating GUI in C/C++.Qt : Qt ProjectBig Plus: Cross Platform, Open SourceHere're some good Qt-tutorials you can start with.1. Tutorials | Documentation | Qt Project2. VoidRealms"C++ GUI Programming with Qt4" is also a very good book for learning Qt. (Caution: It's a bit old. Qt5 has many more added features & improvements which would not be covered in that book.)Similar thread on Stackoverflow: What is the best place to start learning Qt?I personally recommend this one. Because it is open source & supports almost all platforms.Microsoft Foundation Classes (MFC) : MFC ApplicationsLimitation: Only for Windows platform, A bit older one.Hope this helps!! :)

Cluedo; A Java Project?

My school has given our project this year, and it seems to be that the professor gave us the project about simple and complex games using logic. Now, I have planned to create a game as good as the board game Clue or Cluedo, the detective deduction game. To all those top contributors there and programming experts, I hope you can answer the following questions: (big points for the best answer ^_^ )

1. Is it complex enough to make the board game clue?
2. Are GUI or JFrames connected to create it?
3. Can you please tell me a link or a download link to where I can see the Java Source Code of this game or any sample of this game.
4. Where will I start doing my project?
5. Are formulas needed in Java for the logic of the game?

thank you very much and have a good day.

Need help with a Gui Project, Where to start.?

In this Assignment, you will design and write a GUI program to calculate pay for different types of employees. Your program should have the following components:
1. Combo box to select the type of employee.
2. Two text fields to input the number of hours worked and pay rate.
3. A button to calculate the total pay.
4. Labels where appropriate.

The types of employees are as follows:
1. Salaried – These employees do not get paid by the hour and earn $2000 plus a weekly bonus. Use a JOptionPane to ask for the weekly bonus.
2. Hourly – These employees are paid a certain amount per hour. Any work over 40 hours is paid at time and a half
3. Volunteer – These employees do not get paid anything.


If Salaried or Volunteer is selected in the combo box, the hours and rate text fields should be disabled, as they are not needed. Whenever the employee type is changed, the hours text field should reset to 0 and the rate text field should reset to 0.0. If the calculate button is pressed when no employee type is selected, use a JOptionPane to tell the user to select an employee type.

Thanks in Advance

Need C++ help for my project!! Please, I have most of it done but i'm getting error?

cout all of your inputs.. see what's coming out it might help you find out what's causing the problem.


I ran it as is.. and the only problem was the \n. No errors nothing. Are you sure you don't have a breakpoint in your compiler by accident. But yeah there's some logic errors in there to cause it doesn't prompt for anything
EDIT:
Start a new project, and paste the code in if you cant figure out how to turn off the breakpoints

Edit: may want to also read this
http://idiotsguides.com/static/quickguid...
No i'm not calling you an idiot.. but adding discounts confuses the hell outta me so i had to read it :P

Please help me in another Turbo C project...?

I answered a similar question 2-3 weeks ago.

Well you should have an aaray that holds the information about the families. As you know there are 20 families, you can make the array has a size of 20.

int families[20];

Then you need to get the input. Use a loop to get the input for the 20 families.
for (int i = 0; i < 20; i++)
{
// get the input here. You should know how to do this, I will give one hint.
// families[i] is where you want to store the input.
}

Now you want to know 5 different things.
- at least 6 children
- exactly 9 children
- 4 children or less
- no children
- total children.

So you would need to have variables to place this information.
int children6 = 0;
int children9 = 0;
int children4 = 0;
int children0 = 0;
int total = 0;

So you could make one loop and get all of this information at one time.
for (int i = 0; i < 20; i++)
{
int num = families[i];
total = total + num;
if (num >= 6)
{
children6 = children6 + 1;
}
if (num == 9)
{
children9 = children9 + 1;
}
if (num <= 4)
{
children4 = children4 + 1;
}
if (num == 0)
{
children0 = children0 + 1;
}
}

To get the average, you divide the total by 20.0 and use a double to store the average.

Then you output all of the information you have.

Good luck.

How do I create GUI software using C++ and winAPI?

First of all I agree with Vivek Nagarajan, under no circumstances would I initiate an MFC project in modern times. MFC is dead; let it rest in peace.So depending on the project size I would either:For a small project, write the application directly to the Win32 API wrapped in C++ myself as I see fit. This is not for everyone. I can personally do it quickly but I used to do this professionally in another life (i.e. the 1990s)For a large project, use QT or some other 3rd party C++ application framework. QT would be my first choice but there are many more e.g. wxWindows, Juce, etc.If I wanted to stick with Microsoft libraries, I would consider using WTL ... although I haven't touched it personally. I know from job interviews and other developer gossip that there are definitely people who are using WTL in current and ongoing Windows application development projects.Implement the user interface part in C#, with either WinForms or WPF, and implement the application specific part as a native DLL in C++. Wrap the DLL with a C# class library using the DllImport attribute, marshalling, et. al. This is actually pretty easy to do if your application specific code is amendable to a straight C interface.But basically, if you want to stick to an all C++ solution, ... use QT.

TRENDING NEWS