132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for malugirl4

I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. …

Software Development assembly c++ java
Member Avatar for wildgoose
0
5K
Member Avatar for llemes4011

Before I say anything else, I do realize that there are numerous threads on this topic, but I haven't been able to fix my problem. Okay. Well, here's my problem. I'm writing a map editor for the game that I'm working on, and the map is oftentimes much larger than …

Software Development java
Member Avatar for llemes4011
0
132
Member Avatar for Mathhax0r

I just started learning Python last week, and I was having a few issues with doing a GUI app in Tk. My main problem is this: I have a list (each member of the list is a frame with a picture and some text in it) that populates itself by …

Software Development gui python
Member Avatar for woooee
0
116
Member Avatar for alex-VX

hello im new here on the forum.. so im using phyton 2.5.4 and i need help to finish this count loop [CODE=Python]while not inloged and not ended: sleep(1) print Time Time = Time - 1 if Time == 0: # os.system("shutdown -s") ended=True[/CODE] so now the count works good but …

Software Development python
Member Avatar for woooee
0
88
Member Avatar for imwan

I have written this code which reads a file and stores it in a struct. and from struct it saves the data in a new file. The file name is inserted by the user and new file name is also generated dynamically. But it is giving error. HEAP CORRUPTION DETECTED: …

Software Development c++
Member Avatar for DdoubleD
0
1K
Member Avatar for cohen

I need help with a task: [QUOTE]For example, given the input: [CODE]doubloons[/CODE] your program should output: [CODE]Yarrrrrrr[/CODE] [/QUOTE] I don't know how to do the python script. I have never done Python before. Cohen

Software Development python
Member Avatar for leegeorg07
0
132
Member Avatar for masterjiraya

[CODE=JAVA] import javax.swing.*; public class TimeDeposit{ public static void main(String[] args){ String choice1, choice2,monthlySales,income; int value1, value2; // to display value of a variable DecimalFormat num=new DecimalFormat(",###.00"); JOptionPane.showMessageDialog(null,"Monthly Sales In $","Bank", JOptionPane.INFORMATION_MESSAGE); JOptionPane.showMessageDialog(null,"the Interest is 0.025"num.format(monthlySales)+"income is"+num.format(income),"Bank", JOptionPane.INFORMATION_MESSAGE); choice1=JOptionPane.showInputDialog("The time less than: "); value1=Integer.parseInt(choice1); choice2=JOptionPane.showInputDialog("The deposit is greater than: "); …

Software Development java java-swing
Member Avatar for cgeier
0
85
Member Avatar for nunos

Hi I would like to know if there is any way to obtain a float result from a division between two integers other than using "from __future__ import division"? I am not looking for the .0 'trick'. Example 4/5.0 = 0.8. I want to be able to do 4/5 = …

Software Development python
Member Avatar for nunos
0
186
Member Avatar for Syllabus

Hi! I'am trying to make a program that dispalys a label with a image, but the rest of the program is "invisible", The problem I got is when I set the opacity, it affects the whole frame. This was ofcourse excepted, but I have not yet been able to make …

Software Development python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for cokaznsyco72

I'm having trouble with this program from right out of the book. Its just supposed to write an integer array to a file that it creates. I've compiled it without any errors, but when I try to run it, it fails and tries to debug. can anyone help me figure …

Software Development c++ ios visual-studio
Member Avatar for WouterLindenhof
0
149
Member Avatar for ggl0rd

i got create combobox and i want show item at combobox from my database data. i set datasource from properties.. but for displaymember i try to use coding. [CODE]cmbPelan.DisplayMember = "Pelan" cmbPelan.SelectedIndex = -1[/CODE] but result like image me attach. i want my combobox show item like 1 2 3 …

Software Development vb.net
Member Avatar for ggl0rd
0
341
Member Avatar for nunos

Hi. I am asking help for something that I have already done. However, I believe there is a much better way to do it. I am pretty novice to python and I don't know (yet xD) all of its capabilities and I am sure some of you will find this …

Software Development display python
Member Avatar for nunos
0
85
Member Avatar for rugae

I can't figure how to get this going, for every object I create I want to add that to the existing array. I read about arraycopy but I don't know how to increase the existing size of the array and always end up with array out of index error... [code=java]A …

Software Development java
Member Avatar for eng.M4AH
0
164
Member Avatar for gretty

Hello I have made a function that determines whether 2 words are an anagram or not. [B]My Problem is:[/B] that if the word contains 2 or more of the same letters(eg hello, arrest, gall) the function doesn't work even when the 2 words input are an anagram, If i input …

Software Development c++
Member Avatar for mrnutty
0
519
Member Avatar for Half_Pirate

Hello. I am an international student trying to solve my assignment which requires to implement Circular Linked List. I asked my lecturer to check my work and she said that I solved it but actually still using the normal Linked List (Linear). She hinted me that I need to modify …

Software Development java linked-list
Member Avatar for eng.M4AH
0
145
Member Avatar for esesili

Hi everyone, I have a problem about inheritance and I can not solve it since Monday. I have two classes [B](Student_Patient and Emp_Patient) [/B]inherited from [B]Patient[/B] class. [B]Patient [/B]class and [B]Doctor [/B]classes are inherited from [B]Person [/B]class. The [B]Doctor[/B] class has a member function[B]double get_fee_of_doc() const;[/B] which returns a double …

Software Development c++
Member Avatar for NathanOliver
0
126
Member Avatar for ddanbe

Hi all, I'm trying to implement a C-style union in C#. Found things on the web, but I have a problem. Depending how I initialize the fields in the union I get different results. Can anyone tell me what am I doing wrong here? Here is my code: [CODE=c#]using System; …

Software Development
Member Avatar for ddanbe
0
103
Member Avatar for adel_elrefaey

#include <time.h> // double RAND_MAX = 4294967296.0; //2147483647; // void aleatorio(); void warmup_random(double); void advance_random(); int flip(double); double randomperc(); double aleatorios_0_1(); long rnd(long, long); double Rseed; /* Random numbers seed */ double oldrand[55]; /* Array of 55 random numbers */ int jrand; /* current random number */ /* Initialize random …

Software Development c++ visual-studio
Member Avatar for adel_elrefaey
0
742
Member Avatar for snakay

Hi everyone, I'm having the error msg. "ıbmdadb2" E_FAIL(0X800004005) when I try to delete a row on the dataset. I populate the table in many combination of selections, no problem. But when I try to delete a line, I can do it on gridview but I cannot do it on …

Software Development dataset
Member Avatar for DdoubleD
0
506
Member Avatar for mansi sharma

I want to get the width & height of the image file.. Mine code is currently getting the file size, I also want to get the width & height.How to get width & height,kindly help me. [code] Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e …

Software Development vb.net
Member Avatar for mansi sharma
0
487
Member Avatar for Cole

Hi everyone! I am starting my first year of college classes next week with an intended entry into a computer science major. I am most proficient in Java and PHP, and understand that C++ and the former are vastly different. In doing some research, I have found that my professor …

Software Development c++
Member Avatar for northrider
0
156
Member Avatar for chanlichin

hi,i am new to vb 8 and i am now facing the problem to write sql statement. i want to retrieved data from MS Access by select the date using date time picker. so my problem is how to write the sql statement. My code is as below: sql = …

Software Development sql vb.net
Member Avatar for chanlichin
0
83
Member Avatar for surima

how to generate number and characters together randomly. I know how to generate numbers randomly, but not getting anywhere with random character generation. Please help.. Thanks

Software Development java
Member Avatar for JamesCherrill
0
152
Member Avatar for tomtetlaw

I am doing a tutorial on Assembly, and I have ran into this error: [icode]fatal: Unable to open include file "includes/asm_io.inc"[/icode] Here is my code: [code=assembly] %include "includes\asm_io.inc" MOV EAX, 3 ;EAX = 3 ADD EAX, 4 ;EAX = EAX + 4 INC EAX ;EAX++ CALL print_int ;cout << EAX …

Software Development assembly
Member Avatar for tomtetlaw
0
2K
Member Avatar for Zebibyte

In an attempt to make my if statements cleaner, I figured out a simply way of making them quite a lot shorter. Instead of doing this: [code=python]elif talk_in == "quit" or talk_in == "q" or talk_in == "exit" or talk_in == "x":[/code] I can do this: [code=python]elif talk_in == ("quit" …

Software Development python
Member Avatar for Gribouillis
0
131
Member Avatar for hollywoood

Hello everyone.... I have gotten this far with my mortgage calculator....the problem is the while loop and the actual calculation isn't working correctly. The while loop really doesnt do what i was hoping for it to do...and being pretty amature at this...i am not sure where to go. i built …

Software Development c++
Member Avatar for hollywoood
0
772
Member Avatar for Roguey

I'm trying to write a peice of code that will convert all the uppercase characters in a word to lowercase, and to store that in an array. I know how to convert individual characters, and to output all these characters in the fixed lower case. The thing i'm unsure about …

Software Development c++
Member Avatar for mrnutty
0
447
Member Avatar for CD-4+

hello , i am a newbie in c++ and desperately wanna learn it. icoded this but i m gettin some error [code]# include<iostream> using namespace std; class cat { public: unsigned short int age; public: void meow () { cout<<"MY AGE IS "<<age<<endl; } [/code] [code]# include"cat.cpp" int main() { …

Software Development c++
Member Avatar for dgr231
0
160
Member Avatar for eaon21

[CODE] #include <iostream> #include <algorithm> #include <conio.h> #include <cmath> #include <iomanip> using namespace std; int main() { int terminals[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; int count,row,col,i; int limitcomp[20]; int coordinates[2][20]; double smallest = 0.0; double current = 0.0; double x, y; int network = 1; double chunk, total; do { cout<<"Enter number of computers: "; …

Software Development algorithm c c# c++
Member Avatar for VernonDozier
0
148
Member Avatar for flipjoebanana

If I have a string, i.e.: s = "'Quote Example'\tby person\n" How can I display it to view the special characters untranslated, to see: "'Quote Example'\tby person\n" instead of: 'Quote Example' by person I need to know mostly for debugging purposes since the string is generated and doesn't follow a …

Software Development python
Member Avatar for zachabesh
0
117
Member Avatar for nunos

(a | b): For what I have read in other forum post, if a is true, python doesn't evaluate b an returns a. (a & b): What happens with logical and? If a is false, does python evaluates b or not? Thanks for your help.

Software Development python
Member Avatar for nunos
0
411
Member Avatar for razmca

Hi everybody... I have struck in a issue which is explained below. Pls resolve it... I have an download option in my web application(ASP.Net with C#), which brings an dialogbox asking where to save the file. But i want to get the path of the file which is going to …

Software Development asp.net
Member Avatar for DdoubleD
0
154
Member Avatar for wasala

Hi I am developing a spell checker for my language, and I came across solving an interesing problem. It would be great if you can suggest me an optimized solution for the problem described below: I have certain group of letters like these: Group #1: c,r,b Group #2: a,z,k Group …

Software Development python
Member Avatar for wasala
0
150
Member Avatar for ashish2234

Actually what i want to do is that on a click of a button , the selected row of the jTable increments to next row so that i can fetch that row to play the next song...how can i do that???

Software Development java
Member Avatar for TheWhite
0
112
Member Avatar for manutd4life

Ok i have a button on MDI parent form and i need to disable it when closing a child form. When writing the button name (cmdmenu) in the child form, it says that the cmdmenu is not declared please help

Software Development vb.net
Member Avatar for manutd4life
0
207
Member Avatar for nunos

[code=python] class ExcelDocument(): """ Some convenience methods for Excel documents accessed through COM. """ def __init__(self, visible=True): self.app = Dispatch("Excel.Application") self.app.Visible = visible self.sheet = 1 def new(self, filename=None): """ Create a new Excel workbook. If 'filename' specified, use the file as a template. """ self.app.Workbooks.Add(filename) def open(self, filename): """ …

Software Development python
Member Avatar for nunos
0
195
Member Avatar for esesili

Hi all, I have a simple question. I am working on it for a long time and I feel that I am almost done except for a small problem. As seen below there is a member function of patient class. It takes variables name and visit_duration. In addition to these …

Software Development c++
Member Avatar for Sky Diploma
0
148
Member Avatar for Schoorsteen

Hello, I am having a trouble with the proxy I am making with C++. I am connecting a client to a server trough my program. client talks to my program, program talks to server server talks to my program, program talks to client Like that. However, when I receive something …

Software Development c++ client-server
Member Avatar for Schoorsteen
0
396
Member Avatar for arelius

Hello everybody, I have a datagridview and one of the columns contains dates. I want to loop through the data in the column using this for loop. string StartDate=""; string EndDate=""; string date=""; foreach (DataGridViewRow dgvr in dataGridViewTasksReport.Rows) { date = dgvr.Cells["work_date_col"].Value.ToString(); } But what I want to do is …

Software Development
Member Avatar for arelius
0
2K
Member Avatar for clc571

So this is going to sound like other posts but I have been racking my brain to figure this out. This code is a mod of one that my instructor posted, he said it was fine to just change the names of variables and submit it. When I did so …

Software Development java
Member Avatar for VernonDozier
0
83
Member Avatar for toucan

I'm trying to run a thread until a mouse event occurs, which will trigger an interrupt to the thread. The problem is that I can't get the thread to stop running in an asynchronous way (i.e. to listen is a mouse event occurred). Instead, what happens is that the thread …

Software Development java
Member Avatar for JamesCherrill
0
182
Member Avatar for jure.gregorin

Hi! I'm working with an XSD Schema in C# and I have all of the classes imported through a C# code generator. Now I want to know if an element/property of a class is mandatory, optional and such. Any clues anyone?

Software Development
Member Avatar for DdoubleD
0
94
Member Avatar for hemaljoes

In my projects I have several ListView . I ListView I have Checked Boxes ( I have made the CheckBoxes property true in my ListViews.) I can select multiple items in my ListView. What i Want to do now is when i select multiple Items i want to marked those …

Software Development listview
Member Avatar for serkan sendur
0
115
Member Avatar for jonny_java

I have the code at the bottom of this post: Running [icode]abc x = new abc()[/icode] can often take a long time (minutes or longer) and is only ever necessary if flag is true. If I leave the code as it is below, I get a "x cannot be resolved …

Software Development java
Member Avatar for jonny_java
0
115
Member Avatar for darkocean

I am copying excel file to mssql database's table, problem is this : I have some informations in 4 rows but mssql database table has 13 rows. fisrt 4 rows has my information and 4-13 rows has null values. sbccm from 1 to 14. where is the problem I donw …

Software Development mssql
Member Avatar for DdoubleD
0
202
Member Avatar for Owbon

How would i close the file then ... I am writing a program to run different powerpoint show depending on the time of day. I want to be able to close 1.pps when its time for 2.pps to run. hope this makes sense! [CODE] if (time.Hour >= 9 && time.Hour …

Software Development
Member Avatar for Owbon
0
90
Member Avatar for babbu

[code] frmColourName.ShowDialog() 'adding a customer m_Customercount = m_Customercount + 1 Dim drNewRow As DataRow = m_CustomerDataTable.NewRow() drNewRow("CustID") = m_Customercount drNewRow("Company") = txtCompName.Text.Trim drNewRow("Address") = txtAddress.Text.Trim drNewRow("Telephone") = txtContact.Text.Trim drNewRow("Address") = txtAddress.Text.Trim drNewRow("Email") = btnEmail.Text.Trim Dim counter As Integer = 0 While counter < m_CustomerDataTable.Rows.Count If m_CustomerDataTable.Rows(counter)("Company") = txtCompName.Text.Trim Then MessageBox.Show("This …

Software Development vb.net
Member Avatar for babbu
0
141
Member Avatar for maxbug

I have an MFC SDI application in VC++6. Data is read from disk in the Doc, converted, and displayed in the View. I have implemented a CDialog, launched from an entry on the main menu, in order to permit the setting of data display options. By including the CDialog's header …

Software Development c++
Member Avatar for maxbug
0
105
Member Avatar for Traicey

Hi all I have a function writetofile() which save a record to a file but the problem is when its writting to a file it doesnt write the record in a correct order, here is the code for WriteToFile() [code=c++] void StudentC::WriteToFile() { ofstream Outfile; Outfile.open("File\\Student.txt", ios::app); Outfile << Count …

Software Development c++ ios
Member Avatar for group256
0
227
Member Avatar for taikoprogrammer

Hi everyone, So I am writing this program that is supposed to do the following: Create a program that accepts a string from the user (not from the command line) and displays: 1. The string using upper-case letters, e.g. all lower-case letters are converted to upper-case letters 2. The string …

Software Development c
Member Avatar for yellowSnow
0
4K

The End.