Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 15th, 2006, 4:29 PM   #1
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
Writing code intended for a GUI Developing program

hi. i've just been messing around with a few simple programs today to refresh my memory on C++. I decided to write a simple one and try to use a GUI development program to see if i can make a gui for it. now when you use the GUI developer to attach code to the widgets can you only attach a function for it to execute? Here is the simple program i was tryiing to make a GUI for.

#include <iostream>

using namespace std;

 int main()
{
	int NUM;
	
	cout << "Input a number: ";
	cin >> NUM;
	cout << "You entered " << NUM << "\n";
}

now because i know the input a number would be a input box would i have the first cout and cin in a function say input() and then have the widget use that function for the input box? Or is that an unecessary step? Thanks for any replies in advance.
linuxpimp20 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC