132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cwarn23

Hi and I have just downloaded the Irrlicht gaming engine and although I have had a briefing about it from a friend I can't seem make it do what I want. I got the demo which is nearly what my result will look like but then I tried switching from …

Software Development c++ gaming
Member Avatar for cwarn23
0
185
Member Avatar for twgood

I posted this in the computer and science forum, and i believe it should be here, and with no one saying anything I am afraid I posted in the wrong place so here goes again. I am having issues with an assignment, I am lost as how to do a …

Software Development c
Member Avatar for drwright68
0
522
Member Avatar for lotrsimp12345

we are supposed to implement using STL vector and base it on priority and have have a data value So every time i enqueue i insert an in item into the end of the vector and if no space i modify. So do i reorder the list to place the …

Software Development c++ queue
0
67
Member Avatar for ItecKid

Hello all, I am trying to write a clustering algorithm where, given location of certain points (I.e, latitude and longitude) I need to choose 50 of these to be cluster centers such that the diameter of each cluster is minimized. To that end, I believe that the program should choose …

Software Development algorithm c++
Member Avatar for ItecKid
0
113
Member Avatar for neumannj656

it builds correctly and runs correctly but when the program gets to the while statement, it just stops completely, does not even allow blind input of data. I know it is a little messy but here is the code: [code=c++]// buildingwillcost.cpp : Defines the entry point for the console application. …

Software Development c++
Member Avatar for Evan M
0
159
Member Avatar for Veri7as

For some reason when i'm trying to declare a float function it gives me this error. But if i declare a void or any other type of function it works... any ideas? THANKS!! [CODE]#include <iostream> #include <cstring> #include <iomanip> using namespace std; void inputInfo(float *** rawScores, char names[ ][50], int …

Software Development c++
Member Avatar for Veri7as
0
257
Member Avatar for need help!

This is some code I wrote for a music program... Any way on making it neater/more pythonic? [CODE] from Tkinter import * import pygame playlist=[] pygame.init() pygame.mixer.init() camera=pygame.mixer.Sound("E:\\Peter\\Python_stuff\\data\\Music\\camera1.wav") one=pygame.mixer.Sound("E:\\Peter\\Python_stuff\\data\\Music\\one.wav") wrong=pygame.mixer.Sound("E:\\Peter\\Python_stuff\\data\\Music\\wrong.wav") root=Tk() root.title("DJ Pro") def sound_play(event=None): playlist.append(wrong) wrong.play() def sound_play1(event=None): playlist.append(one) one.play() def sound_play2(event=None): playlist.append(camera) camera.play() def play_all(event=None): for ii in …

Software Development audio python tkinter
Member Avatar for need help!
0
144
Member Avatar for YingKang

I am writing a java applet that calculate heat index and wind chill. it requires the user to input temperature , wind speed and humidity, and then let the user choose either Metric ( kph, °C) or English (mph, °F) I have some problems with the code. First, the Calculate …

Software Development java java-swing
Member Avatar for YingKang
0
123
Member Avatar for glenlivet

I'm pretty new to java but have lots of coding experience with ruby, c and gui with gtk2 and qt. I'm trying to understand (and get rid of) the dead space to the far left portion of the window. The split panes have white backgrounds to separate it from the …

Software Development gui java java-swing qt ruby
Member Avatar for glenlivet
0
188
Member Avatar for PDB1982

I am trying to find a way to find a median of individual parallel arrays, but I'm not sure how to start. One question I have, though....is an array the same as a list? I was told that it might be easier to do a bubble sort of a list, …

Software Development c++
Member Avatar for PDB1982
0
133
Member Avatar for Phloxicon

I have an alarmingly strange situation. I fill my map with const char * and int values. When I try to "find" the one I want, it says it's not there. Here's the short version: [code=c] // tempText = "socialize" for( actionIter =actionMap.begin(); actionIter !=actionMap.end(); ++actionIter ) { if ( …

Software Development c++
Member Avatar for Phloxicon
0
120
Member Avatar for Happypants

Heya folks. I'm trying to write a BMI calculator, but I'm missing something. Splint tells me I have a parse error before the scanf, but I'm not seeing it. Also, I'm struggling to get the BMI to print (I'm pretty sure the two are related). It worked (before I put …

Software Development c
Member Avatar for Happypants
0
174
Member Avatar for Dmennite

Hello all, I am at it again this time incorporating MySQL database into C# code using Visual Studio 2008 first off the textboxes are databinded using details view... the issue at the moment is trying to not make bulky code and compare the value of txtDealName.text and mtxtDealNum2.text to what …

Software Development c c# c++ mysql visual-studio
Member Avatar for Dmennite
0
182
Member Avatar for adams161

Hi, I'm doing a bouncing ball game. i'm using y=mx + b I want to know when y hits certain numbers. that means it had a collision. the numbers are whole numbers like 539 etc. I increment Y slowly because i also want to not let x move much. when …

Software Development java
Member Avatar for adams161
0
91
Member Avatar for Archenemie

Ive been told that i can make Iphone Apps using java, but what IDE/File Extension/Code Structure do i use? can i simply use a converter program to swap my current java code into an iphone App or would i need to code from scratch? Any and all advice is greatly …

Software Development ide iphone java
Member Avatar for jbennet
0
120
Member Avatar for intelnf09

I am taking an IT course and need help desperately. I have referred to several different resources and am having a hard time grasping OOP. I came across this site and thought I should give it a try. Please bear with me I am new to the site. I am …

Software Development java oop
Member Avatar for intelnf09
0
129
Member Avatar for Dragennd

I'm having a problem with loading my MS Access Database. I can get it to load but it won't load in a row. My friend told me to try this but it puts all the information in a column instead of putting all the information spread out accross the row. …

Software Development dataset microsoft-access vb.net
Member Avatar for Dragennd
0
135
Member Avatar for Nerathas

Hello, [I] I have written a console version of a program that has 1 menu (5 possible choices). Then after selecting one, it goes into a second screen where you enter the values and eventuelly the calculation takes place. Now i want the exact same program in a Windows Form …

Software Development
Member Avatar for Nerathas
0
128
Member Avatar for jlego

Sorry if there is a topic on this somewhere - i have been searching for awhile now no dice. I'm upgrading a VB6 application to a vb.net 2008 application. problem that's driving me nuts: I fill a listview with a list of customer first & last names + number from …

Software Development listview vb.net
Member Avatar for jlego
0
350
Member Avatar for fuston05

i am trying to make a password system that will run another one of my programs when answered correctly. not sure how to call my main program in the password prog function. i have played w this over and over, and browsed the library and i am officially stuck. :) …

Software Development python tkinter
Member Avatar for fuston05
0
163
Member Avatar for jcax

I'm trying to move one big C++ string (with separators) like one below [CODE] & 12345 & 12345 & 23423 & 90323 & [/CODE] into 3x5 array like one below with the first group of numbers excluded char array[3][5]; [CODE] { '1' , '2' , '3' , '4' , '5'} …

Software Development c c# c++
Member Avatar for jcax
0
291
Member Avatar for rogerking

The American Heart Association (AHA) suggests that at most 30% of the calories in our diet come from fat. Although food labels give the number of calories and the amount of fat per serving, they often do not give the percentage of calories from fat. This percentage can be calculated …

Software Development python
Member Avatar for masterofpuppets
0
184
Member Avatar for fummy

Can someone help please! I need to search for a different set of strings like: 'fummy' or 'users' or 'logon' from a directory like this: C:\mycase\Nic..\ A Text document is stored in there LIKE: 544, Text Document, 45, 588 KB Can some help to write a script or python program …

Software Development python
Member Avatar for fummy
0
94
Member Avatar for Mitja Bonca

I would like to know how to do the code for creating a new Folder that the user can rename it instantely after being created. Like in Windows Explorer: [URL="http://www.file.si/files/2zjwzcmya5woaokschgo.jpg"]PICTURE![/URL] When user clicks on "Make New Folder" it creates inside already selected folder and it colors blue (focus is on …

Software Development
Member Avatar for ddanbe
0
125
Member Avatar for paolo_romeo13

Hi hoping for some help with what is wrong with my code. Basically i have 2 sets of arrays that need to be compared. I'm creating a computer shop so there is a set of arrays giving descriptions of the computer like CPU speed etc and there is another set …

Software Development java
0
56
Member Avatar for zobadof

I have been getting tutorialed by somebody who also learns C++ and gave me the code to make a new window, but the CMD also opens with that. The fact that cmd opens with that is not the problem, the problem is I dont think I was ready to move …

Software Development c++
Member Avatar for zobadof
0
91
Member Avatar for bonotevo

This is my first post so please bear with me. I am bringing in 2 files into 2 arrays and then trying co compare the arrays to each other. When I compare the arrays, I am trying to find out how many locations have matching letters in both strings. ) …

Software Development c++
Member Avatar for Dave Sinkula
0
304
Member Avatar for HunterFish

Good day to all. I would like to ask some help regarding C++ sounds. I read some codes in playing sounds using C++ and this codes was based on WINDOWS. I would like to as if there is a possibility that I can play a wav file in LINUX using …

Software Development c c# c++
Member Avatar for Stefano Mtangoo
0
289
Member Avatar for Devi

First let me say I know absolutely nothing about Python. All I know for sure is that I own the PC game Vampire Bloodlines and I am getting a runtime error. I have researched online and have read that if you have an older version of Python the game will …

Software Development python
Member Avatar for Nick Evan
0
365
Member Avatar for ihatestarch

So on the last day of class, I've learned about vectors. They seem like linked list, which seem like arrays. They are all pretty much containers that will hold some object of some data type I believe. Why would someone use one vs. using the other? And is there one …

Software Development c++ linked-list
Member Avatar for ihatestarch
0
142
Member Avatar for dennis.d.elston

I new to the C# world. I'm currently taking a class and am having trouble with the following program. "Write a program for an automated teller machine that dispenses money. The user should enter the amount desired (a multiple of 10 dollars) and the machine dispenses this amount using the …

Software Development
Member Avatar for towerrounder
0
592
Member Avatar for digital_ice7

[CODE]#include <iostream> using namespace std; void pop(int s, int n) { for (int l = 0; l < n; l++) { for (int i = 0; i < n; i++) { cout << s[l][i] << "\t"; } cout << endl; } } int main() { int n, num; cout << …

Software Development c++
Member Avatar for mrnutty
0
94
Member Avatar for zobadof

Hello I would like to start learning allegro but need some suggested sites, please help!

Software Development c++
Member Avatar for zobadof
0
98
Member Avatar for bhavz

hey all, im new to this programing stuff consider a buffer of size 2048bytes. the data i need to send is more than 2048 bytesof the of buffer. i have a func SendDataReq (u8* pu8_TxBuffPtr,u16 u16_NoBytes);. how do i send this data using this func

Software Development c
Member Avatar for Narue
0
70
Member Avatar for Antenka

Hello, everybody. I had a problem while connecting to Oracle. Got messages: [QUOTE=Error]ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified[/QUOTE] And found solution for this - setting the default locale in java code: [code=java] Locale.setDefault(Locale.US); [/code] This works just fine …

Software Development java oracle
Member Avatar for Antenka
0
146
Member Avatar for FanatiK

Hi, this is pretty much my first post here. I just started learning C++ about a week and a half ago and I started working on a program that could compare pixels on the screen to see which letters they form (kind of like OCR). I probably know what you're …

Software Development app-store c++
Member Avatar for FanatiK
0
901
Member Avatar for ihatestarch

Studying for the final and can't remember the details behind the copy constructor. I know what it does, just don't know the "why" behind some stuff. Here is an example of a copy constructor I have. [CODE] Person::Person(const Person& aPerson) //m_variable=private variables { m_name = aPerson.get_name(); m_pBirthDate = new Date; …

Software Development c++
Member Avatar for ihatestarch
0
79
Member Avatar for meeny

We have several legacy "Windows" applications built in Visual Basic 6 that until Windows Vista displayed normally. Now we have random textboxes that display with a black background, even before any records are brought into the form (and after as well). Some forms in one application have one or two …

Software Development display visual-basic windows-vista
Member Avatar for meeny
0
91
Member Avatar for azdonald

Please i'm developing an application with vb.net and mysql. I want to add additional users to the application but with different access levels. this is my original code [code=vb]sql = "select username, password from users where (username = '" & UsernameTextBox.Text & "') and (password = '" & PasswordTextBox.Text & …

Software Development vb.net
Member Avatar for azdonald
0
115
Member Avatar for kirennian

Hi there. I'm currently attempting to create a vector of structs whereby the struct itself contains a vector. The problem I am having is upon creation of the struct itself, throwing the following error. error:C2075: 'Target of operator new()' : array initialization needs curly braces. [code=c] struct DISPLAY_DEVICE_CAPABILITIES{ vector<int[3]> resolutions; …

Software Development c++
Member Avatar for kirennian
0
211
Member Avatar for Perveance

Hello, I'm trying to create Frame with 2 JButtons and 1 JList. Buttons are Add and Remove. After clicking Add button JFileChooser creates and user choses a file. The file then must to be added to the JList. [CODE]public class GmFrame extends JFrame { private JButton bAdd; private JButton bRemove; …

Software Development java
Member Avatar for Perveance
0
244
Member Avatar for karthik.c

hi, im getting recv:bad address error in the server code when im receiving the data from the client.i tried passing the structure and an integer alone ,but for both i got the same error. for structures: client: [code=c++] struct Data { char data1[255]; char data2[255]; int val1; }; struct Data …

Software Development c client-server data-structure
Member Avatar for programmersbook
0
3K
Member Avatar for bubonic88

i have been trying to compile for a while now worked fine until i added a symbolic constant then i get all kinds of syntax errors please help thanks heres source code: [CODE]#include <stdio.h> #include <stdlib.h> //GIGO.c- Coded by Ross Camarillo aka Bubonic_88 // on 12/02/2009 //Created by Randy Gibson …

Software Development c
Member Avatar for xavier666
0
103
Member Avatar for tqmd1

Dear Experts I Have four textboxes, I want textbox1 to accept only char data. I want textbox2 to accept only numeric data. I want textbox3 to accept only alphanumeric data. I want textbox4 to accept only bolean data. Please help

Software Development vb.net
Member Avatar for TomW
0
267
Member Avatar for tchiloh

I will if i press down that the focus go to the next textfield. i will not do every time [CODE] if (focus() = controlname) controlname.focus() else if (focus() = controlname) controlname.focus() [/CODE] what can i do?

Software Development
Member Avatar for tchiloh
0
159
Member Avatar for ravinamita

I am new to XML and have a very sketchy knowledge of C. I am writing a C program in which I need to read strings (each on a separate line) in a text file, match that string with a value enclosed in a specific tag inside an XML file, …

Software Development c xml
Member Avatar for JenniLei
0
2K
Member Avatar for NickT80

I have this simple project that I'm sure has come throught here before. I am take input from a user using JOptionPane, make sure it is >15 Chars, and count the uppercase. Here is what I have so far. I am having trouble setting the first loop correctly. [CODE] import …

Software Development java java-swing
Member Avatar for MxDev
0
134
Member Avatar for kanababa

Hi All I have a listview attached to a dbase app I am working on, the last column has a price value and I would like to create a total value for this column in a label or text box below the listview control. I was searching back the old …

Software Development listview vb.net
Member Avatar for kanababa
0
99
Member Avatar for ujjval dave

hi guys please help me.i have confusion for file handling. i am developing a application that uses one txt file. now i want to find a particular word from file and replace it as space. i don't how to do this. please help me

Software Development vb.net
Member Avatar for kvprajapati
0
105
Member Avatar for Ulukay

:idea:I'm a bit stuck I wrote a printing part. But cant find how to preform a pagefeed [CODE]Private Sub PrintBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintBTN.Click copieen = 1 PrintDocument1.PrinterSettings.Copies = copieen PrintDocument1.Print() end Sub Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage …

Software Development printer vb.net
Member Avatar for Ulukay
0
127

The End.