199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fredzik

Hi, I'm puzzled by how one positions in Tkinter. Take a look at the following code: [code=Python]print "...................................Hello, world!"[/code] This works fine in the Main Idle but when it comes to Tkinter I'm confused:confused: . The game I'm working on has about 30 "clues" dotted all about the screen. About …

Member Avatar for fredzik
0
141
Member Avatar for Dallan

Hello, I've been set the task to convert a string into a list of words within that string. As in, go through a string character by character, recording each character into a list, then when a space appears, break off that list and resume recording the next characters into a …

Member Avatar for Dallan
0
354
Member Avatar for pulse0

I have a data base of 2000 people the following orientation: [phone-number] [Name] [address] [zipcode] all seperated by spaces in a text file. I want a way to read this data into a struct: struct person { long phone number[10]; string name[30]; string address[100]; int zip[5]; } The address and …

Member Avatar for John A
0
245
Member Avatar for fredzik

G'day, I've worked on your code Vegaseat and have come up with the following rough sketch of how my game will look in the end: [code=Python]# using geometry manager Tkinter.Place for layouts # tested with Python24 vegaseat 28apr2007 import Tkinter as tk import random as rn #help('Tkinter.Place') root = tk.Tk() …

Member Avatar for fredzik
0
122
Member Avatar for MaestroS

I really want to know WHERE I can find a simple example of parser for own script language for games. I found one on gamedev.pl [polish site], but I can't stick together all parts of the code. It'd be nice if someone can post a links to examples. I mean …

Member Avatar for MaestroS
0
1K
Member Avatar for some one

hi please i need your help i need an idea of how to encrypt text in file text using c++ Thanks alot

Member Avatar for some one
0
77
Member Avatar for EnderX

I am attempting to write a program that expects the value of a specific field to be a five-digit zip code. Logically, this should be a completely numeric value, but as I'm using a text field, it is possible for the end user to put [I]anything[/I] in there. I'm trying …

Member Avatar for Ferpudy
0
836
Member Avatar for raymondeze

Everytime i try to log on to blackplanet.com web site the page will not fully load up it keeps saying Page Cannot Be Displayed or it will load up halfway and stop. I never had this problem before.

Member Avatar for mnziabat
0
394
Member Avatar for steve_d

Hiya, Sorry for this extremely simple question of mine but... I'd need this small piece of code that would remove any empty space from the start or the end of a char[]. I've done my basic Java stuff but I'm clueless with c++. So far I've tried to fiddle around …

Member Avatar for ~s.o.s~
0
100
Member Avatar for Bidromicles

I'm trying to write a C++ program that uses some compound structs and vectors, and I'm getting a compile time error: multiple types in one declaration. Here's the form my code's in: [code] #include <vector> using namespace std; struct Struct2 { int value1; int value2; }; // end Struct2 struct …

Member Avatar for Bidromicles
0
118
Member Avatar for Thinka

Hey, I'm hoping someone can help out here. I'm trying to use the rand() function to generate sequential random numbers in C, and then write them to file. Now I know it's possible, I'm just not sure whether it is the way I want to do it. I have already …

Member Avatar for Thinka
0
290
Member Avatar for jerryseinfeld

Hi everyone again me again I have lots of questions... I have a program which reads something into a txt file like notepad. But I need to read into a dat file. Here is my code [code] #include <stdlib.h> #include <stdio.h> main() { int employeeNumber; char name[30]; char engineeringDicipline[40]; int …

Member Avatar for jerryseinfeld
0
109
Member Avatar for Zay

Hello; can any 1 tell me what is the answer for the following statement : 1%10 and 1%2 :)

Member Avatar for Aia
0
97
Member Avatar for w_3rabi

hey guys anyone knows a way to direct the browser to the page he came from like the Back button php plz

Member Avatar for w_3rabi
0
85
Member Avatar for shaytac

Hi everyone!!! I am absolutely a newbie on database design so please help me out even though questions might seem little stupid [IMG]http://www.dbforums.com/db_images_v3/images/smilies/tongue.gif[/IMG] I m trying to build a database design for an e-learning project; below is the database schema i ve got so far. In the current setup there …

Member Avatar for ph0ton
0
104
Member Avatar for shy_wani

hi.. i've created a table named :Survey [code]CREATE TABLE [dbo].[Survey] ( [CustomerID] [int] NOT NULL , [SurveyID] [int] IDENTITY (1, 1) NOT NULL , [SurveyTitle] [varchar] (500) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [SurveyDescription] [varchar] (300) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [DateCreated] AS (getdate()) , [coverletter] [varchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL …

Member Avatar for shy_wani
0
112
Member Avatar for jan1024188

Hello, I have a problem with my Win32 app. I made a window, and than a Dialog boxes. For window I use one message loop, and for Dialog boxes another. But It seems this wont work: [CODE]while(GetMessage(&Msg, NULL, 0, 0) > 0) { if(!IsDialogMessage(g_hToolbar, &Msg)) { TranslateMessage(&Msg); DispatchMessage(&Msg); } TranslateMessage(&Msg); …

Member Avatar for jan1024188
0
107
Member Avatar for bhavna_816

I am new to PHP. I am trying to connect mysql with PHP with mysql_connect but i m getting "A link to the server could not be established" I have used ODBC 3.51 driver for odbc and made connections with odbc with odbc_connect but i don't know how to connect …

Member Avatar for jbennet
0
154
Member Avatar for azharcs

<h3>In php how do you create accounts and let the user send messages to each other which cannot be viewed by other people .</code></h3> <h2>The only thing i have come close to is by creating accounts by giving each one them an unique email id and let them send and …

Member Avatar for w_3rabi
0
108
Member Avatar for Python23

hello, I was wondering if I could recieve some help? The function I am writing is called pyramid, it consumes a number and produces stars(*) from 1 to that number. For example pyramid(5) would be: * ** *** **** ***** so far I have a function that does that backwards …

Member Avatar for Python23
0
453
Member Avatar for luvuyomaq

can anyone p/z help me with this i am suppose to create a program that investigates conjecture. the question is as follows. Investigate the sequence of numbers produced when a number is halved if even, or multiplied by 3 and then increased by 1 if the number is odd. Example: …

Member Avatar for JerryShaw
0
137
Member Avatar for addicted

hey, i read that in C++ some programmers consider using break and continue statements as a violation of structured programming practise....... and usually avooid using them except in switch statements..., i will like to know how to use the structured equivalent of these statements..... i want to know the statement …

Member Avatar for Narue
0
161
Member Avatar for eeeraser

Hi.. This is my fist time, I need your help guys to figure out what is the problem with my code. My program is to show time in this format " TIME:Hours : minute : seconds : Hunderthseconds" , but , the problem is that it didn't show correct numbers, …

Member Avatar for Ancient Dragon
0
164
Member Avatar for naya22

Hi. I'm currently writing some design tools for my programs, and I am in desperate need of some help. Does anyone have any good sites that I can go on to find some tutorials on how to use the hierarcy chart, pseudocode, and flowchart for C++ program??

Member Avatar for ~s.o.s~
0
88
Member Avatar for T-Fizz

Hi, I am writing a program that has some functions in it to open, read and then search through lines in a file. It will be a txt file. Currently I am trying to find a way to pass the Open file to the ReadFileLine function, so that it can …

Member Avatar for Infarction
0
119
Member Avatar for desijays

Im using VC++ express and usually i come across situations where i have to create more than one project within the solution. But the problem is that each time i create a new project inside the solution, i have to go to the new project's property pages to add the …

Member Avatar for Infarction
0
350
Member Avatar for C++freak

Hi all, I was writing a program for sorting the test scores using array of pointers and dynamic memory allocation. Surprisingly, I am getting indefinite values after sorting. I wrote a header file, .cpp file and main. cpp. Actually, after sorting I thought of adding an average function in .cpp …

Member Avatar for Ancient Dragon
0
116
Member Avatar for linux

Would it be possible to write a proxy in C++? I mean a CLI application that would take a users input (a site name) and open Internet Explorer / FireFox to that page, bypassing network restrictions all the other fun stuff that a proxy does, much like proxy.org?

Member Avatar for linux
0
110
Member Avatar for Sacky

Well i'm trying to get the path from which my app was launched so when it gets an exception i can just handle it and restart it, the only solution to this that i found was getenv ( "PATH" ), however doing this yields this: [QUOTE][Sat Apr 28 19:29:37 2007](null)/gtamp.cfg[/QUOTE] …

Member Avatar for Salem
0
88
Member Avatar for keatsey-9

i am trying to compare an element in an array but it gets stuck in a loop. from what i see it doesnt even compare the element. I want to place a x in an array but if there already is an x there i want to place it above …

Member Avatar for Ancient Dragon
0
87
Member Avatar for Fungus1487

hello, ive been busy trying over and over and over again to write a block of SQL that will perform this task for me but have failed ever time. hopefully someone can point me in the right direction or at least gime a hand cheers. task : to work out …

Member Avatar for davidcairns
0
122
Member Avatar for CRD

The version of DEV-C++ I Do not Know. However I would appreciate any information as to where I might find information as to how you can access Drives and the Printer on my machine with C++ commands. at present I'm unable to do anything in my C++ Programs other than …

Member Avatar for CRD
0
176
Member Avatar for jrivera

I have a hw project and I need to write my own reverse iterator. The problem is i don't know for sure if I'm starting off ok. Here is the code I have so far and a simple test in main keeps giving me an error stating no parameter's for …

Member Avatar for vijayan121
0
1K
Member Avatar for 7arouf

hey there i just wanna ask... i am new to web design thing and i have a domain.... and used ASP.NET to create a website and i wanna publish this website on the domain!! how can i do it?!!!

Member Avatar for 7arouf
0
87
Member Avatar for CyberWrek

Please help! I've been putting together a webpage using CSS and a Javascript feature. Everything looks fine when I test the page from my PC. But when I upload it to my server, I get a bunch of odd symbols, like Asian writing. I had this happen ages ago to …

Member Avatar for MidiMagic
0
106
Member Avatar for ScatterMap

Hi! I'm a newbie with VB.NET and I'm so close to finished an internet explorer of my own and have come to the following problems: Whenever i type a URL into the combobox and hit "Go", i have a text box that fetches that URL. Everytime I enter a new …

Member Avatar for manal
0
192
Member Avatar for Skyblue

hi everyone i really need a maze game in C++. i know its not fair for me to just ask for the program but its due tomorrow and i really don't know how to do it. can somebody help me out with this. thanks

Member Avatar for John A
0
97
Member Avatar for shamma

a) Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and calculate its complexity T(n).:-/ b) Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and with complexity T(n) is at most about (1.5)n …

Member Avatar for Lerner
0
78
Member Avatar for ScatterMap

How do i reverse the order of a combobox. I'm currently loading cboItems.items.add (reader.readline) from a .txt document using streamreader. After the items are loaded into the Combobox, i want to reverse their order from Bottom to Top. Is that possible?...

Member Avatar for hollystyles
0
299
Member Avatar for Kees Baltus

I need to read "Title tag" and "original date"of pictures. I installed WIAaut.dll and put Commondialog on form. :'( I can read all items from the Img.Properties with a loop. It is difficult to find out how to get only the "Title tag" and "DateTimeOriginal".

Member Avatar for Kees Baltus
0
112
Member Avatar for aberlynn

hi folks - i'm quite new to c++ and have written a program where i have used a linked list to simulate 3 printers working in a queue according to their priority. After much blood, sweat and tears I got that bit working. Now I'm onto the second "easy" bit...I …

Member Avatar for iamthwee
0
117
Member Avatar for scarface3288

Hi every one I have a big problem, I need help with creating a program which reads every third word in a text file and excludes puncuation like -,?.!'" etc.. so far none of my work need code or suggestions just plain help(newb) [code] #include <iostream> #include <fstream> #include <string> …

Member Avatar for iamthwee
0
4K
Member Avatar for wheelie

Hi, Im trying to make a sysmple program that plays different .wav files when an appropiate key is pressed. Its going to be keyboard drumkit kind of thing, anyway, ive got it to play the sounds, but they always seem to have a short delay, from when the key is …

Member Avatar for wheelie
0
91
Member Avatar for snipered

Hi, this is my first post on this thread. I have a datagrid with a checkbox. I followed the one on msdna2 site using a tablestyle etc. However, i want to do update using all the ones the user has checked. I can do this for one single checked item …

Member Avatar for snipered
0
97
Member Avatar for JINX_

[COLOR=#000000]Dear All,[/COLOR] [COLOR=#000000]Was wondering if there is any way of generating the next values in an array to compute an np-complete system? Ok I know that sounds confusing but this is how it goes: [/COLOR] [COLOR=#000000]Say you have array[4][/COLOR] [COLOR=#000000]First Array is : 1 2 3 4[/COLOR] [COLOR=#000000]Second Array: 1 …

Member Avatar for JINX_
0
132
Member Avatar for pkraop

hi i am creating a directory using perl's system command how can i test that it is created bofore proceeding..

Member Avatar for KevinADC
0
129
Member Avatar for hack_tom

Hi have a file which consist of following thing begining of file ---------------------- my name some dfgfgfk jdksjdkls laladsl sdlsdls . . . kfdjkfdk some drt pro vhdl sdjls. ---------------------------------------------------------------- ddr.spw.df.df 0 0 0 0 0 ddr.ser.ddf.tp 1 2 3 4 1 ddr.pwq.pro.fgt.tp 1 3 4 5 7 eth.pro.iw 1 …

Member Avatar for KevinADC
0
78
Member Avatar for amt_muk

Hi Friends, Can any of you pls tell me (in detail) which of the following options will be faster? Option 1: [code] int fun() { if( !cm_aObject ) return -1; return cm_aObject->getNum(); } [/code] Option 2: [code] int fun() { try{ return cm_aObject->getNum(); }catch(...){ return -1; } } [/code] Thanx, …

Member Avatar for vijayan121
0
128
Member Avatar for Lavitz

hey guys. i was given a project today in my C++ class. The directions are as follows: A. solicit from the user a positive integer n. B. Generate and display a list of all the possible permutations of the first n integers. in other words, the user inputs 3, the …

Member Avatar for Lavitz
0
161
Member Avatar for ericseven

I was given an unused copy of Visual Basic 4 as a gift. Is it possible to upgrade this to Visual Basic 6? I've already searced MicrosSoft's web site, but I couldn't find any info about this.

Member Avatar for jbennet
0
177

The End.