132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for keatsey-9

i have an array that looks like this after it has been populated: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . …

Software Development c++
Member Avatar for keatsey-9
0
95
Member Avatar for vijayan121

variations of this are being posted repeatedly here. hope this will clarify things once and for all. [code=c] // to choose a random element from a sequence when // a. you do not know how many elements are there before hand // b. you want to make one single pass …

Software Development algorithm c++ linked-list storage
Member Avatar for vijayan121
0
242
Member Avatar for sonicvalley

i need java JRE to runa program but i cant seem to get it installed. i always get this weird error. any help? thanks

Software Development java
Member Avatar for sonicvalley
0
72
Member Avatar for Blujacker

Hi I am trying to get the mouse position on my Canvas [code] # -*- coding: cp1250 -*- import wx class Okno: def __init__(self,parent): self.okno=wx.MDIChildFrame(parent,title=u"Náhled situace",id=-1) self.okno.Maximize() self.okno.SetAutoLayout(True) self.okno.SetBackgroundColour("#FCFCFE") self.sizer = wx.FlexGridSizer(2,2,0,0) # Add canvas self.platno = wx.ScrolledWindow(self.okno, id=wx.ID_ANY) self.platno.EnableScrolling(True, True) self.sirka = 10000 self.vyska = 10000 self.platno.SetScrollbars(20, 20, self.sirka/20, …

Software Development python
Member Avatar for Blujacker
0
243
Member Avatar for Duki

Hey guys. I have a horrible problem with passing strings in a function and using the string to open an input file. Could you guys give me a hand? [code]#include "pe3.h" int main () { int ary[ SIZE ] ; ifstream inp ; string iNam ; cout << "Input-file name: …

Software Development c++
Member Avatar for John A
0
117
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 …

Software Development gui python tkinter
Member Avatar for fredzik
0
141
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 …

Software Development c++
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() …

Software Development python tkinter window-manager
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 …

Software Development c++
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

Software Development c++
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 …

Software Development delphi pascal
Member Avatar for Ferpudy
0
836
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 …

Software Development c++
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 …

Software Development c++
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 …

Software Development c
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 …

Software Development c file-system
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 :)

Software Development c++
Member Avatar for Aia
0
97
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); …

Software Development c
Member Avatar for jan1024188
0
107
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 …

Software Development python
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: …

Software Development
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 …

Software Development c c# c++
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, …

Software Development assembly
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??

Software Development c++
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 …

Software Development c++ file-stream
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 …

Software Development c++
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 …

Software Development c++
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?

Software Development c++
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] …

Software Development c
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 …

Software Development c++
Member Avatar for Ancient Dragon
0
87
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 …

Software Development c++ printer
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 …

Software Development c++
Member Avatar for vijayan121
0
1K
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 …

Software Development session vb.net
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

Software Development c++
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 …

Software Development algorithm c
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?...

Software Development vb.net
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".

Software Development visual-basic
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 …

Software Development c c# c++ data-structure linked-list printer queue
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> …

Software Development c c# c++
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 …

Software Development c++
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 …

Software Development vb.net
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 …

Software Development c
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..

Software Development perl
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 …

Software Development file-system perl
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, …

Software Development c
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 …

Software Development c++ first-post
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.

Software Development visual-basic
Member Avatar for jbennet
0
177
Member Avatar for dami06

Can someone please help me out here.. I am trying to convert a .xml file to .dtd file.. I got this .xml file from google. <?xml version="1.0"?> <book> <person> <first>Kiran</first> <last>Pai</last> <age>22</age> </person> <person> <first>Bill</first> <last>Gates</last> <age>46</age> </person> <person> <first>Steve</first> <last>Jobs</last> <age>40</age> </person> </book> Please could you help me out …

Software Development java xml
Member Avatar for ausgezeichnete
0
909
Member Avatar for cagricekin

hi all I am Cagri from MARTI LTD in TURKEY. As Marti Ltd we are searching assistance of delphi programmers. We would release works, we need assistance, in some time through internet. Therefore we want from programmers willing to colloborate us to send their mail addresses and their knowledgement and …

Software Development career delphi email pascal
Member Avatar for radu84
0
92
Member Avatar for PancoMaan
Member Avatar for PancoMaan
0
83
Member Avatar for fightfox06

[code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> #define MAX 20 //struct team_info typedef struct { char team[16]; int played; int won; int drawn; int lost; int goalsf; int goalsa; int goald; int points; int ID; }team_info; team_info arrdetails[12]; int print_header(); void draw_table (); int take_team_input(); int take_team_name(); int save_table(); int read_table(); int sort_table(); …

Software Development c c# c++ file-stream
Member Avatar for thekashyap
0
157
Member Avatar for Nelly1965

I am processing word documents and would like to move the files to a new location after processing. What code do I use to move file from one directory to another.

Software Development visual-basic
Member Avatar for shasur
0
85

The End.