132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for GDICommander

Hi, everyone. I am doing a performance test on the heapsort. I wrote this program and it has a run-time error that I cannot explain. I am compiling on Microsoft Visual Studio 2008 and this is the error. HEAP CORRUPTION DETECTED after Normal Block ... well, I think that the …

Software Development c++ visual-studio
Member Avatar for GDICommander
0
116
Member Avatar for Foe89

I'm really not understanding what's going on with the array in this. Here's the question. The following code totals the values in each of the two arrays. Will the code print the correct total for both arrays? [code] int total = 0; int count; for (count = 0; count <= …

Software Development algorithm c++
Member Avatar for ddanbe
0
124
Member Avatar for 00matt

Hi, I am new to java and would really appreciate it if someone could look at the code I have attached. This is part of a java lab assignment that I have got to do for university. For reference, I have also uploaded the lab file. I am trying to …

Software Development java
Member Avatar for jasimp
0
146
Member Avatar for hello11

Here is my code I'm pretty sure the problem has to do with using namespace std and the included header files but I can't figure it out (error string no such file or directory in .h, error iostream no such file or directory in .h,error syntax error before namespace) box.h: …

Software Development c++
Member Avatar for Ancient Dragon
0
110
Member Avatar for Anselm

Is there an API I can use to program a flow diagram? My need to develop a table flow diagram from database data collected in a excel spread sheet. I need to parse the table joins and generate a flow diagram. The program is an attempt to keep our diagrams …

Software Development api java
Member Avatar for Ezzaral
0
189
Member Avatar for Stefano Mtangoo

I have code but when I want to gather my widgets under same wx.StaticBox I fail. I wonder what is wrong! Please someone to corrrect me! [CODE=python] #Add static box to hold related widgets--- it otherwise does nothing holder1 = wx.StaticBox(mpanel, -1, label="Transactions", pos = (10, 10), size = (300,300)) …

Software Development python
Member Avatar for Stefano Mtangoo
0
139
Member Avatar for ninjaimp

Hi I have a form which adds data to a dataset, which can be viewed in a datagrid as it happens and then they finish and this adds it to the database - but after a short while the data that was added seems to rdissapear ffrom the database! Wondered …

Software Development dataset perl vb.net
0
85
Member Avatar for Lokolo

Main.cpp This is where the problem lies. [code] #include <iostream> #include <time.h> #include <math.h> #include <iomanip> #include "LinkedList.h" #include <fstream> #include <string> using namespace std; void main(void) { LinkedList Customers; Customer* newCustomer; Entry* test; int i = 0; newCustomer = new Customer(1001, "Olly", "07/10/1988", "17 Bob Lane", "Hobbs Road", "UB3 …

Software Development c++ linked-list
Member Avatar for Lokolo
0
113
Member Avatar for nedsnurb

Hi Have written this code for a program that requires the user to either enter 1 or 2 dependant on whether the program solves the problem of finding the divisors of any given to numbers by recursive or iteration methods. [code] #include<iostream> using namespace std; int recursiveGCD(int ,int ); int …

Software Development c++
Member Avatar for nedsnurb
0
133
Member Avatar for Cwapface

Okay, I cannot figure this out. I still get the same error: [QUOTE]Error 1 error C2039: 'function' : is not a member of 'D'[/QUOTE] Here's what I have: Class A.h: [CODE] #pragma once #include <string> using namespace std; class D; class A { public: void function(string s); friend class D; …

Software Development c++
Member Avatar for mrboolf
0
105
Member Avatar for peter_budo

In the JFrame I have two components JMenuBar and JPanel. A selection in one of the options in menu bar change the content of panel as [code=Java]JMenuItem jmiAddEmployee = new JMenuItem("Add Employee"); jmiAddEmployee.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { mainPanel.removeAll(); mainPanel.add(addEP); validate(); } });[/code] This will replace the content, …

Software Development java
Member Avatar for peter_budo
0
174
Member Avatar for kavithabhaskar

Hi: I need some assistance in this code. I am trying to get this format. 1 .2 ..3 ...4 and so on.. i dont get any errors in the code but i get no o/p eitehr [code] #include<iostream.h> int main() { int i; cout.fill('.'); for(i=i;i<10;++i) { cout.width(i); cout.fill('.'); cout<<i; }}[/code]

Software Development c++
Member Avatar for chococrack
0
150
Member Avatar for sriram.19801980

Can some someone help me with a code to create a new Excel workbook and send data to the workbook using[B] java[/B].Please help me.

Software Development java
Member Avatar for Ezzaral
0
317
Member Avatar for localp

I want to know how to call the above function ??? [code] import java.awt.*; import java.applet.Applet; import java.awt.event.*; public class GridDrawingApplet extends Applet { public void paint (Graphics g) { // Draw the vertical lines: g.drawLine (0,0, 0,240); } } public static void main(String []args) { // now i want …

Software Development java
Member Avatar for anil_forum
0
118
Member Avatar for superbob7

I was messing around trying to figure this out and came up with this. This works but I'm looking for a more elegant recursive solution. Can anyone think of one? I couldn't find anything with google. Oh and sorry for the stupid variable names. [code=java] public class arraybackwards { public …

Software Development java
Member Avatar for peter_budo
0
738
Member Avatar for Devlan

I'm trying to get to grips with using files, particurlarly saving a set of inputs from the user into a file and then load it all back up again. I have a program which, through a little object oriented interactivity, allows the user to pair up names and numbers in …

Software Development file-system python
Member Avatar for vegaseat
0
124
Member Avatar for nisha_fortune

Hi, I have to create a map table in C. I have used the following codes : [COLOR="Red"]************************************** #include <map.h> using namespace std; map <char,char> fileMap; fileMap.clear(); CL_LOG_INFO(" Putting into HASH MAP"); // Storing into the map fileMap.insert(make_pair(key_xsd,key_moc)); CL_LOG_DEBUG("hash table"); CL_LOG_DEBUG(fileMap); *************************************[/COLOR] I am getting following compilation errors : [COLOR="Green"]snmpd.c:379:17: …

Software Development c storage
Member Avatar for Nick Evan
0
157
Member Avatar for meirmark

Hello. I have a problem sending a string to a serial port. I am using the MScomm to control a motor . to get a full status form the motor I need to send the strng "R01 99" and a CR LF. when I use MSComm1.Output = "R01 99" & …

Software Development visual-basic
Member Avatar for meirmark
0
112
Member Avatar for mbroadway

I am creating an application in VB.NET that has multiple pages. It's turned out to be a four page application as it took 4 forms for me to get all of the information for this application. My question: Is there a way for me to somehow link these forms as …

Software Development vb.net
Member Avatar for waynespangler
0
196
Member Avatar for *nur

Hi, i am trying to send email from a web site which was upgraded from 2003 to 2005. I am having problem to send email to other email add. smtp: mail.company.com i can send and receive email on [email]any@company.com[/email], but for email other than [email]anyemail@company.com[/email], such as gmail, yahoo etc....it …

Software Development asp asp.net client-server email web-server
Member Avatar for dickersonka
0
150
Member Avatar for kux

I have a document/view aplication that opens a bitmap I use the following OnDraw override to draw the bitmap on a window and OnOpenDocument to opening the image from file The bitmap handle ( HBITMAP bmaphandle ) is taken from the Document object that does LoadImage in it's OnOpenDocument method …

Software Development c++
Member Avatar for kux
0
175
Member Avatar for mpCode

I am working on a small project that contains a vector of base class pointers and my question is, is there anyway to tell which derived class is being stored in the container. for example... we have a base class named creature and two derived classes named, alien and monster. …

Software Development c++
Member Avatar for mrboolf
0
154
Member Avatar for intellogo

Hi.. I have a table: PROFESSOR in ms access, that has 2 fields: "Name" and "Location". The table has 10 records. And i have made a vb form with a combo box that will show a list of available locations from the database table, when it is dropped down. So, …

Software Development visual-basic
Member Avatar for bruce2424
0
450
Member Avatar for jspar090

Hello, I am cooking up an application that when I first thought of figured would not be difficult. Basically, what I am thinking of is an application that will track the growth of several of my mothers orchids (I know it is kinda of weird, but this is something that …

Software Development java xml
Member Avatar for jspar090
0
78
Member Avatar for k59smooth

I'm trying to input these letters into and array using the following an tex char Letters[26] = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}; my complier has an error reading too …

Software Development c++
Member Avatar for Nick Evan
0
84
Member Avatar for k59smooth

I'm trying to input these letters into and array using the following an tex [TEX]char Letters[26] ={"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}; [/TEX] my complier has an error reading too …

Software Development c++
Member Avatar for Nick Evan
0
287
Member Avatar for abu taher

I work in a project with 12 chekbox(12 monthname) and a textbox. when I check a box a month name like "january" show in textbox. when I check another checkbox "February" show in that textbox after january. like "January February" as like same 12 checkbox. but when I uncheck any …

Software Development visual-basic
Member Avatar for kain_mcbride
0
143
Member Avatar for DJPlayer

I'm getting ready for a test in a couple days. I'm trying to find some decent well commented examples of programs that use polymorphism and inheritance (public,private,protected). Also it was mentioned about special circumstances on using const for a variable within the say private area of a class. Any assistance …

Software Development c++
Member Avatar for Nick Evan
0
90
Member Avatar for AsantaSane

Hey there, this is my first post here and I'm in the need of some real help. I've written a basic password verifier, which checks to see if what you type in is the same as the default stored password, but i continually get a compile error. [CODE]import java.util.Scanner; public …

Software Development java
Member Avatar for stultuske
0
999
Member Avatar for cardanadam
Member Avatar for KevinADC
0
98
Member Avatar for mangoxoxo

ASSIGNMENT: In section 6.1 of the text, the authors explain how to compute the distance between two colors. They write, The Pixel class has an object method colorDistance(Color color) which returns the distance between the color in the current Pixel object and the passed color. Write a method which takes …

Software Development java
Member Avatar for mangoxoxo
0
121
Member Avatar for pete08

Does anyone know how to start an application from other application in C# for smart devices?

Software Development c#
Member Avatar for Errel
0
92
Member Avatar for Errel

Hello everyone, I'm new to this forum and i'm sorry if a similar thread already exists, but I couldn't find one. I'm trying to run the microsft speech SDK 5.1 sample code, but the Microsoft speech library seems to be missing from my computer. It's not in the COM tab …

Software Development microsoft
Member Avatar for Errel
0
78
Member Avatar for madmaxx350

Hey guys :) i'm new at programming in C++ and i'm stuck at an assignment that im suppose to write I need to Write a string function that gets a word at random from a file and returns it as the value of the function. It should use a random …

Software Development c++
Member Avatar for vmanes
0
73
Member Avatar for potatskie

Hi. I had some difficulty in getting the list of all the path of the My Documents Folder in XP and Vista. Since for every Account there is, there will an assigned path for that account to its own My Documents folder. I also heard that is only true to …

Software Development
Member Avatar for jessjane
0
111
Member Avatar for brechtjah

Hi, I'm having some frustrating issues with char/strings. I have a function which returns an unsigned short integer, the unsigned short integer is ALWAYS 1 char long. So if I try this code: [code] number[2] = function(); [/code] So, number[2] should give me the number I want, however, it gives …

Software Development c++
Member Avatar for brechtjah
0
192
Member Avatar for glecymay

i hope you can help me regarding computing the running time of a program in C++ environment the specification is like this: i will make a program that can read another file which is a program too in C++. I would like to compute the main() alone of the file. …

Software Development algorithm c++
Member Avatar for dmanw100
0
61
Member Avatar for Manutebecker

I want to be able to bring the single instance class into a function of another class without having to take each seperate little variable from the class and inject it in, can I just do something like void Yeah(class *The Class) and then pass the class in easily??? Or …

Software Development c++
Member Avatar for Rashakil Fol
0
85
Member Avatar for 666kennedy

i have an array weights[16][60] 16 rows of 60 columns if you are changing indiviual elements it goes from weights[0][0] to weights[15][59] right? see if im using them in a loop for instance [CODE]]for(int i = 0; i < 16; i++) {[/CODE] so each element is used would it be …

Software Development c++
Member Avatar for Rashakil Fol
0
87
Member Avatar for arreyes

If you make a vector of a class of no designated size, as you reserve spaces inside the vector will it just make a default instance from the constructor?

Software Development c++
Member Avatar for ArkM
0
122
Member Avatar for sacarias40

i need to have 14 string items in a combobox each item needs to have a different value but the same variable, how would i do this. im new to programming. help would be apreciated much. thanks!!!!!

Software Development visual-basic
Member Avatar for sacarias40
0
102
Member Avatar for mabros86

hey guys!!! okay!!! i have a problems that this program is to build to choose a file and the copy it exactly to a new file of my choice but the only is that everytime i do that it happens to make a mistake it copies the file into the …

Software Development java java-swing
Member Avatar for mabros86
0
359
Member Avatar for PRob99

I'm working on a problem where I need to use a one-dimensional array to write an application that inputs five numbers, each between 10 and 100, inclusive. As each number is read, it displays it only if it is not a duplicate of a number already read. The program should …

Software Development java
Member Avatar for dickersonka
0
2K
Member Avatar for hello420
Member Avatar for carlcarman

I wrote this program that reads data from a txt file named books,and then arranges the data by name and price. that part works fine ,my problem is that I want to sum up the total price of the books and display it. I've tried a couple of ways to …

Software Development java
Member Avatar for carlcarman
0
160
Member Avatar for kunlamp

[code=cplusplus] #include<iostream.h> #include<malloc.h> #include<stdlib.h> struct point{ float x; float y; point *next; }; point * create(int count) { point *p,*h,*s; h=(point *)malloc(sizeof(struct point)); if(h==NULL) { cout<<"Malloc memory error"<<endl; } /********************************************Init head**********************************/ h->x=NULL; h->y=NULL; h->next=NULL; /********************************************Init head**********************************/ p=h; for(int i=0;i<count;i++) { s=(point *)malloc(sizeof(struct point)); if(s==NULL) { cout<<"Malloc memory error"<<endl; } cout<<"cin …

Software Development c++
Member Avatar for kunlamp
0
128
Member Avatar for Feenix45

Its about the pay system of a shop. The user enters a product ID,the interpreter gets the details from the file and appends it to a list and continues till the products are over. If the user can't enter the ID he can add the product name directly which will …

Software Development python
Member Avatar for Feenix45
0
159
Member Avatar for elsa87

hi everyone the program below is a function that should give the number of items greater than a number entered by a user.(unsorted list ADT) ex: input 3 unsorted list contains: 2 6 8 1 5 9 8 output should be 5 here is my try by there are alot …

Software Development c++
Member Avatar for WaltP
0
209
Member Avatar for freelancelote

Hi, the following code works fine, that is, strcpy effectively copies the whole string on temporal to word. [CODE=cpp] char word[20]; char temp[ ] = "hola"; cout << temporal << endl; strcpy(word, temporal); cout << word << endl; [/CODE] However, if I try to use the heap to store the …

Software Development c++
Member Avatar for freelancelote
0
140
Member Avatar for ccube921

I only made an on and addition button with actual functions[ICODE] #!/usr/bin/python # gridsizer.py import wx app = wx.App() class GridSizer(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(300, 250)) def On(self, event): x=input("") def add(self,event): return x y=input("") print x + y menubar = wx.MenuBar() file = …

Software Development python
Member Avatar for ccube921
0
121

The End.