64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for neighbordave

I am totally lost when it comes to assembly language. My teacher just decided one day at the end of this semester to give us a programming assignment in assembly language and has barely taught us anything. I have to use five subroutines: main, add, subtract, multiply, divide and cannot …

Member Avatar for ProgramIT
0
1K
Member Avatar for wingers1290

Hi, This is basically a continuation of my last thread but under a diffrent topic. I want to be able to save basic information entered in my application as a .'help' file for example, when i open that file te information will be viewed in my application. Any ideas?

Member Avatar for ddanbe
0
167
Member Avatar for josh48

How do I store the value after the orginal value has been calculated. For example I minus 10 from 100, and I want 90 to be stored and in the next calculation another 10 wil be minued from 90 not the 100 which the original.

Member Avatar for josh48
0
111
Member Avatar for T-Dogg3030

Hi, my code prints out the number of times a letter is typed. I can get it to print out the correct info, but when it deals with a white space, it will print out the list for every white space. how can I deal with this? [CODE] #include <iostream> …

Member Avatar for T-Dogg3030
0
150
Member Avatar for zackzak

I am creating a game like the text-based game Zorg using a console program. However, I don't know how to create a save file. How can I do this using the player's name to restore the variables I need?

Member Avatar for zackzak
0
153
Member Avatar for dougcb68

I'm a newbie trying to modify the code in an AJAX tutorial to load data from an XML file, and it is not working. The code is in a php file that is invoked with the URL: [icode]getXMLTest.php?showName=photoShowTest.xml[/icode] The code I've written (mostly copied from the tutorial, actually) is: [code] …

Member Avatar for Airshow
0
207
Member Avatar for mahela007

I've been trying to read up about how tkinter (or more accurately Tk) works on windows AND linux. Here's what I've understood so far. Tk is a predefined set of widgets. That is stuff like text boxes, check boxes, drop down lists etc. Tkinter is just a way of translating …

Member Avatar for vegaseat
0
1K
Member Avatar for carlcarman

Hi I am having a problem with getting my output to display a dollar sign. I have the program running the way it is supposed to, it just won't format for currency. I have tried a couple of different methods and do not understand why the current code does not …

Member Avatar for carlcarman
0
168
Member Avatar for kamikazekazuo

Not sure what's wrong... I keep gettin this error and I don't know how to solve it... error C2065: 'AveXYZ' : undeclared identifier can someone help me please? //----------------------------------- #include "stdafx.h" #include <iostream> #include <cmath> using namespace std; //----------------------------------- float Display(int x, int y, int z); float ComputeAve(int x,int y,int …

Member Avatar for m_usman
0
259
Member Avatar for William Byrd II

[December] 5. Greetings and salutations! My first visit here a few weeks ago was very helpful and friendly thanks to dkalita. I’ve been moving forward on my own since then, but it appears I have run into another dilemma. I have a short program listed below. It compiles fine. The …

Member Avatar for jonsca
0
107
Member Avatar for Kruptein

I have the following code: but for some reason it just won't work if I touch the i the query self works, cause if I just do .Append(str(i)) without the split strip it returns all the tables.. [code=python] def mysql_table(self): self.list_box_3.Set([]) try: self.cursor.execute("SHOW TABLES;") self.query = self.cursor.fetchall() except: self.log("error") for …

Member Avatar for Kruptein
0
87
Member Avatar for xfrolox

im making a tool for a gamer to help others but it has 3 forms 1 appear - 2 and 3 are hide they can change but how i do that when 1 form closes all close ? no only form 1 to close cuz if others close they are …

Member Avatar for xfrolox
0
113
Member Avatar for GL.Za

Hi everyone. Can someone please recommend a SQL editor (other than SQL Developer) that will allow me to test out my SQL statements & queries outside of the DB environment. I will predominantly be working in a windows environment, but may move to a linux environment at times. Will be …

Member Avatar for birdman32
0
167
Member Avatar for Shanti C

Greetings For all..... I have number of products in mysite...I want to show short url for all my products in my site...How to make them dynamically...Is there any thirdparty tool??? Or any information would be appreciated.. Thanks in advance.... Shanti..

Member Avatar for diafol
0
87
Member Avatar for wingers1290

Hi, I am writing a program to store basic information such as name and address but i want to be able to store this information as a separate file. So for example i could fill out the Name as 'Mary' and then save this as an executable file which I …

Member Avatar for sknake
0
265
Member Avatar for xuexue

hi there, need some help: i have a command button in which it will generate a textbox whenever it is clicked, thus, if it is clicked 5 times, then 5 textboxes will appear. please help me with this, i want to code this using PHP or even HTML..

Member Avatar for sibizulu
0
141
Member Avatar for Sandar Khin

Hi all Plz help me about media streaming.I want to play files that transmit from 'rtmp' link at my java application program.I have a program that play from 'http' link.Code is here [code] import java.awt.*; import java.awt.event.*; import java.io.*; import javax.swing.*; import javax.media.*; //import com.sun.media.protocol.rtsp.DataSource; import java.net.*; public class MediaPlayerTest …

0
59
Member Avatar for Towely

I'm currently working on a project that simplifies and adds two user-defined fractions. The teacher specified that we use a function with the prototype: [code] Fraction addfractions(const Fraction& f1, const Fraction& f2) [/code] My problem is, I can't find any information on this Fraction data type that he is making …

Member Avatar for rbrt13
0
1K
Member Avatar for chuckc

In defining MS Access tables where a 1 to many relation exists what is the best way to define a table containing the “many” records. For example, a database with orders and line-items might have the “line item” table with an order-number and a line-number which would define a unique …

Member Avatar for chuckc
0
400
Member Avatar for BobRoss

I'm using [B]remove(inputPath.c_str());[/B] to remove a file after a while loop is completed, but the file remains. I'm using Vista and logged in as an administrator and the file is located in my home folder. Any help would be appreciated. Thanks in advance. [code=c] #include <cstdlib> #include <iostream> #include <fstream> …

Member Avatar for BobRoss
0
136
Member Avatar for xxunknown321

I am using jGrasp IDE and i'm having trouble with the compiler i keep getting this error ----jGRASP exec: g++-3 -g C:\Users\Joe\Documents\Downloads\testfile.cpp ----jGRASP wedge2 error: command "g++-3" not found. ---- This command must be in the current working directory ---- or on the current PATH to use this function. ---- …

Member Avatar for lbarowski
0
2K
Member Avatar for confusedndazed

Hello all!! I've been working on this code for a while now and I'm still lost. Can anyone tell me what's wrong with this code please??? I know Line 44 is missing something but I'm not sure what goes there, here is the pseudocode as well: /* pseudocode for Binomial …

Member Avatar for confusedndazed
0
116
Member Avatar for restrictment

Well, I am making a tic-tac-toe game, and I need a way to make it so when the person enters their name it adds a ".txt" to the end of their name. For example: What is your name? Robert *ifstream infoout("Robert[COLOR="Red"].txt[/COLOR]");* The .txt highlighted in red is what I need …

Member Avatar for Narue
0
107
Member Avatar for merse

What is the compound assignment operator overloading syntax? I cannot find on the web. How can for example overload operator+= ? I know that it has to be a member function but what has to be its return value? reference?

Member Avatar for Narue
0
91
Member Avatar for Loner7

I'm working on a University assignment at the moment (a final assignment). I've normally been able to figure things out, but the teacher's thrown us a curve ball by making us use <fstream>. We've only had one lecture on it which covered [I]outputting[/I] a file, but nothing really handling taking …

Member Avatar for UberJoker
0
113
Member Avatar for BobRoss

I'm trying to finish up this little shift cipher I'm writing so I can encrypt the text files on my flash drive in case the drive becomes lost or stolen. It simply reads line by line from a plain text file, encrypts each line and outputs the lines to a …

Member Avatar for BobRoss
0
161
Member Avatar for merse

I naturally included [CODE] #include <iostream> using namespace std;[/CODE] but the following overloading not works [CODE]friend ostream& operator<<(ostream& stream, mystruct& x); [/CODE] just if I included std:: [CODE]friend std::ostream& operator<<(std::ostream& stream, mystruct& x); [/CODE] Why it is necessary?

Member Avatar for merse
0
104
Member Avatar for Chris11246

Im trying to set one variable equal to another but it says "No default member found for type 'Decimal'" what does that mean? Both the varuables are deciamls, one is a regular decimal that I declare in the sub and another is an array that I declare in the class. …

Member Avatar for Chris11246
0
117
Member Avatar for DdoubleD

Hi. I decided to try out the Report Wizard, having only worked with Crystal Reports prior, and when I try to connect to an Access DB with the default OLE DB data provider, I get "Unspecified Error" in the Add Connection dialog upon "Test Connection" or trying to accept the …

Member Avatar for DdoubleD
1
166
Member Avatar for samweb$

Hi Everyone, I have a program built on VS 2005 which compiles fine, and when I execute the same, it runs as expected. But i see memory leaks being detected by tools like (Visual Leak Detector, Glow Code etc..), Below is the block of code for your reference. void Argument(const …

Member Avatar for samweb$
0
90
Member Avatar for Clawsy

Hello, I build my java desktop application using NetBeans 6.7, visually. So I click on the Frame -> Events -> KeyTyped and I add a new handler. The problem is the key events are not detected! My components are Swing components. Why is this happening?? :( [CODE] private void formKeyTyped(java.awt.event.KeyEvent …

Member Avatar for Clawsy
0
443
Member Avatar for TAMU_David

This is the XSLT from a SharePoint Dataview: [CODE]<tr> <td class="ms-vb">Trip Count : <xsl:value-of select="count(/dsQueryResponse/Rows/Row)" /></td> </tr> <tr> <td class="ms-vb">Warning Count : <xsl:value-of select="count(/dsQueryResponse/Rows/Row )" /></td> </tr>[/CODE] Trip Count above counts the total number of forms entered by traveller - the xpath expression works like a charm... How do I …

Member Avatar for TAMU_David
0
359
Member Avatar for gibbsfan19

I finally got it in order for smooth compilation, but nothing gets converted [CODE] import java.util.Scanner; public class nizadi_Lab8 { public static void main(String[] args) { if(args.length > 0) { try { Integer.parseInt(args[0]); } catch(NumberFormatException f) { System.out.println("wrong format"); } } else { System.out.println("no arg"); } } public int printBin(int …

Member Avatar for stevelg
0
149
Member Avatar for kavourdoukos

1)How can i delete the memory allocated if i have allocated dynamically through "new" like that: classA** instances; instances=new classA*[5]; for(int i=0;i<5;i++){ instances[i]=new classA;} 2)How can i pass arguments on the constructor while i am allocating memory in this way?: classB* instances; instances=new classB[5]

Member Avatar for kavourdoukos
0
86
Member Avatar for PDB1982

Alright....this is a mess, but it works (compikes) correctly....how would I create a function (probably using "switch") to return a grade based on the averages found in CalculateAvg? [code] #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; double CalculateAvg (ifstream& students, string studentid[60], string fname[60], string lname[60], …

Member Avatar for jonsca
0
122
Member Avatar for narg

Start off this is my first post so go easy on me :) I am a beginner at C# programming and have been set the task of making a tamagotchi in a console application, my question is there anyone who can point me in the direction of a good tutorial …

Member Avatar for Narg2
0
1K
Member Avatar for coffeebox

I know it seems that everyone is writing a 'backup' program these days. I started working on this a couple weeks ago and now my dream just keeps growing. I have written a script that uses rsync to backup selected files and folders in my home directory to an external …

Member Avatar for ov3rcl0ck
0
209
Member Avatar for G_Waddell

Hi Guys, I'm obviously missing something here. Basically I'm writing a program that will read in a csv file or excel file, and allows the user to pick which fields thay wish to use for what line of an address, and then import all the addresses to a SQL table …

Member Avatar for G_Waddell
0
299
Member Avatar for hondros

Okay, here's my issue. I want to take a message a user enters, and then take it and convert it to a number, the standard a-z = 1-26, with space equaling 0. I haven't put in any punctuation yet. Anyways, I think I needed a loop, and I made this …

Member Avatar for jlm699
0
151
Member Avatar for michelle1

Hello, There seems to be a multitude of different unit testing frameworks for C and I'm having difficulty in choosing which one to use. (I have no experience with C development at all) Is [URL="http://cunit.sourceforge.net/"]CUnit[/URL] generally the well known and widely used framework as NUnit is for .net and JUnit …

Member Avatar for Iam3R
0
266
Member Avatar for feoperro

Hi, Could someone please tell me how to read from a CSV file? Also, how to update (write) to a CSV file? Thanks, -Ashton.

Member Avatar for feoperro
0
204
Member Avatar for feoperro

Hi, I was wondering how developers have stable backgrounds, with scrollable foregrounds. i.e. [URL="http://forums.devx.com/"]http://forums.devx.com/[/URL] Please could someone give a basic piece of sample code to demonstrate this. Thanks, -Ashton.

Member Avatar for feoperro
0
303
Member Avatar for luvsom

I have this code that was done using pass by reference but now all the pass by references need to be changed to pass by pointer. Im not sure how to do this going back and forth between the functions. Here's what I have so far. [CODE]#include <iostream> #include <cmath> …

Member Avatar for luvsom
0
108
Member Avatar for snakay

Hi, I'm having " 'System.DBNull' type object not assigned to 'System.Byte[]' type " exception on reading picture data from database into picture object. When there is a picture no problem I get it, but I cannot handle the null case. I tried many alternatives but no result. Here is the …

Member Avatar for snakay
0
135
Member Avatar for rouse

I would like to run the javascript code in between the script tag on a button press, but the code runs as the page load. Please point out what I am doing incorrectly. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="html/html; charset=UTF-8" /> …

Member Avatar for rouse
0
205
Member Avatar for vuyiswamb

Good Day All i have a Table with the ID Field that was not an identity Field. This Field has not Duplicates. Now later i want to Change this numeric Field as an Identity Field like this [CODE]--STEP 7 ADD THE IDENTITY BACK IN TABLE MTM_ACTV_STAFF ALTER TABLE [New_Jaco].[dbo].[MTM_ACTV_STAFF] ALTER …

Member Avatar for vuyiswamb
0
102
Member Avatar for stoymigo

I've added a dataset , and a table adapter to my C# project. In this query , I get table data , then filter , then I will iterate and fill a listbox.(The dataset and tableadapter was added via DataSources boxes) [CODE=CSHARP] listBox1.Items.Clear(); ETPDataset.t_USR_UsersDataTable tbl = (new ETPDataset.t_USR_UsersDataTable()); ETPDatasetTableAdapters.t_USR_UsersTableAdapter tblAdap …

Member Avatar for stoymigo
0
89
Member Avatar for lifeworks

Hi Trying to pull this off in one query but my and right & left joining is giving me unusual results... i have a 'product_style' table, an 'product_item' table, an 'addto' table and a 'removefrom' table - im monitoring when products are added/removed to/from the cart... and want to pull …

Member Avatar for lifeworks
0
105
Member Avatar for rickya100

Hi and thanks for looking. The problem i'm having is simply getting an image to swap on a mouseover. Well I sort of had it working but then I cahnged the function to try and accomodate for more images and it just fell over dead. Let me show you the …

Member Avatar for HenryGR
0
338
Member Avatar for CFROG

I'm having a bit of a problem with my page protect script. I've been working on my backup server for the past week or so making changes to the site. I uploaded all of the changes to the main site today and now every single page that includes my database …

Member Avatar for CFROG
0
152

The End.