132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fishsqzr

I have a table with a column containing a single character representing what type of animal described by the record. I have a comboBox which has the Items property filled with the descriptions corresponding to each code. Example "A" = Amphibian, "C" = Coldwater fish... and so on). What I …

Software Development
Member Avatar for JerryShaw
0
159
Member Avatar for kako13

Hi, I'm getting this error: Asig 2.cpp In function `void ManiMatrix()': 31 Asig 2.cpp expected primary-expression before "int" Asig 2\Makefile.win [Build Error] ["Asig 2.o"] Error 1 Here is how I'm calling it from main: customMatrix.checkIfMagic(); Prototype in the class: void checkIfMagic(int**); void matrix::checkIfMagic(int **arrayOfArray) {// function began } // function …

Software Development c++
Member Avatar for kako13
0
153
Member Avatar for Gopala Krishnan

when i use a dynamic 2d char array using pointers, i dont get any errors but the program is not executed correctly... //Pro to enter and display strings using dynamic 2d char array. [code=c] #include<iostream.h> #include<conio.h> void main() { char **v; int s; cout<<"Enter size :: "; cin>>s; v=new char[s]; …

Software Development c++
Member Avatar for VernonDozier
0
104
Member Avatar for atish00

Can anyone help me wiht the prog. arrange a 1D array in ascending order. No need for the prog. code just explain me the logic.

Software Development c++
Member Avatar for Lerner
0
146
Member Avatar for noellieb

Hi all, i am trying to do a quadratic hashing but i am having some difficulties probably because i am not in the right logic.using this code: [CODE] #include <iostream> using namespace std; int find(int); void insert(int); const unsigned int size = 13; int load = 0; // number of …

Software Development c++
Member Avatar for Narue
0
822
Member Avatar for wollacott

can anyone help me finish my program please. thank you [code=c] #include <stdio.h> #include <math.h> int main() { int product; float product1 = 2.98; float product2 = 4.50; float product3 = 9.98; float product4 = 4.49; float product5 = 6.87; float quantity = 1; double unitprice; float result; double total; …

Software Development c
Member Avatar for Aia
0
114
Member Avatar for sanzle

i am trying to pair a vector and an integer but [code] map<vector[i][j],int>m; m.insert(pair<vector[i][j],int>,(v[1][0],sum)); [/code] did not work??

Software Development c++
Member Avatar for HackWizz
0
58
Member Avatar for nurulshidanoni

I want to do two-dimensional array.. STUDENT1 take 001, 003, 005,006 STUDENT2 take 005, 007, 009, 001 001 002 003 004 like this 001 0 2 1 .... 002 003 004 and I do a programming like below, but how to fill inside the { }? [code=c++] // -------------------------------------------------------------- // …

Software Development c++
Member Avatar for Ancient Dragon
0
122
Member Avatar for LoloftheRings

Hi, I created an object to create buttons in console applications. But somehow, the program doesn't do much when it's checking if the button is clicked. I got this code from the internet, I could give the original code if you want to study it. I have stripped it down …

Software Development c++ os-x windows-vista
Member Avatar for LoloftheRings
0
522
Member Avatar for rockmania

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton …

Software Development api file-system java java-swing
Member Avatar for jwenting
0
179
Member Avatar for scru

Is there something wrong with the Frame Element that prevents these events from firing (AllowDrop is set to true)?

Software Development
Member Avatar for majestic0110
0
219
Member Avatar for Derice

[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the …

Software Development java
Member Avatar for Derice
0
239
Member Avatar for insignia1

Hi, My enquiry involves how jsp handles graphics updates I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser. I believe a similar situation exists …

Member Avatar for jwenting
0
142
Member Avatar for VersEtreOuNe

[B][COLOR="Red"]Value.h[/COLOR][/B] [code=c++] #ifndef VALUE_H #define VALUE_H #include <iostream> template<typename DataType> class Value { public: Value(DataType val); Value(const Value<DataType>& aValue); Value& operator =(const Value& aValue); Value& operator +(const Value& aValue); void SetValue(DataType val) { _value = val; } DataType GetValue() const { return _value; } template<typename DataType> friend std::ostream& operator <<(std::ostream& …

Software Development c++
Member Avatar for VersEtreOuNe
0
114
Member Avatar for TheBeast32

Hi, i have been making a server for a client I made to connect to. I don't have a static IP, so I need a way for someone on another computer to connect to me without me telling the user what it is every time. I have tried to just …

Software Development c++ client-server
Member Avatar for TheBeast32
0
99
Member Avatar for Mikecool509

Hello everyone, I am trying to write a program to help a friend out with updating virus definitions. In order to update their definitions, they must manually go out and download and install the file themselves. I would like to be able to write a program that automatically downloads the …

Software Development c#
0
82
Member Avatar for sjcomp

Hello, I have a vector of callbacks and I'd like to execute them. This is what I do: [CODE=C++] typedef boost::function<void (void)> FCallBack; std::vector<FCallBack> c; // Execute every callback std::for_each(c.begin(), c.end(), boost::bind(&FCallBack::operator(), _1)); [/CODE] This works, but is there an easier way to do so? For some reason reference to …

Software Development c++
Member Avatar for vijayan121
0
107
Member Avatar for blcase

i am trying to overload subtraction between two separate classes. Class Id is basically several strings such as the information of a voter database. Class Collect would be the collection of several class Id's in an array along with a total of Class Id's and the title of the collection …

Software Development c++
Member Avatar for John A
0
145
Member Avatar for charles_wt

I have borland C++ compiler on my system.while generating random numbers in C++,though i have incuded #include<cstdlib> and #include<iostream> i get these errors 1.cannot open include file cstdlib 2.call to undefined function rand please help me with a solution

Software Development c++
Member Avatar for WaltP
0
315
Member Avatar for Darth Vader

Hello everyone. I have attached a folderBrowserDialog1 to my Form1. To a button I will do a function. What I will do now is when I press the button, I want to open this folderBrowserDialog wich works fine. After this I will click on a folder wich contains *.txt Files …

Software Development c++
Member Avatar for Darth Vader
0
236
Member Avatar for Begjinner

Hello, I'm doing (post) #2 of 'Projects for the Beginner' and I used for making this the 'The Address Book Revisited' example on this [URL="http://www.freenetpages.co.uk/hp/alan.gauld/tutor2/tutfiles.htm"]page[/URL] The author says he even put in two errors on purpose. I have re-written the code and changed it more to a Code Library like …

Software Development python
Member Avatar for woooee
0
125
Member Avatar for glindhot

[code]program pics; var N : integer; OutString : string; begin for N := 1 to 6 do begin Str(2*N, OutString); writeln('image'+ OutString) end end.[/code] That is the code I've got and here is its output: image2 image4 image6 image8 image10 image12 but here is the output format that I want: …

Software Development pascal
Member Avatar for glindhot
0
289
Member Avatar for nljavaingineur

Hello developers, I have a Product class defined. Then have an applet extending this class. This applet lets me key in: 1.Ordered item 2. Quantity to order then display total amount payable for each item ordered plus the total amount of all items ordered. I am learning to use array …

Software Development java
Member Avatar for jwenting
0
108
Member Avatar for VersEtreOuNe

Hi. Need to know what's the difference when using Templates between: [inlinecode]template<class T>[/inlinecode] and [inlinecode]template<typedef T>[/inlinecode]

Software Development c++
Member Avatar for VersEtreOuNe
0
252
Member Avatar for sgw

Hi, I'm trying to use the pow function. Extremely simple program like the following, but it never passed compiler: #include <iostream> #include <cmath> int main() { int a, b, c; a=2; b=3; [COLOR="Red"]c=pow(a, b);[/COLOR] cout << c; return 0; } Compiler would highlight the red part. What's wrong?:icon_rolleyes: Thanks in …

Software Development c++
Member Avatar for sgw
0
656
Member Avatar for kartouss

[code=c++] // Input the plaintext in the array char d; string temp; ifstream myfile1 ("Plaintext.txt"); if (myfile1.is_open()) { do { for ( j=0; j<BC; j++) // BC=4 for ( i=0; i < 4; i++) { myfile1.get(d); a[i][j] = d; // plaintext } Encrypt(a, rk); /* strcpy(temp,a); // Code to write …

Software Development c++
Member Avatar for kartouss
0
154
Member Avatar for shiyamala

hi i need code for binary to decimal in java

Software Development java
Member Avatar for Jx_Man
0
48
Member Avatar for Derice

I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will …

Software Development java java-swing
Member Avatar for Derice
0
201
Member Avatar for Acidburn

Can an object that implements runnable throw an exception to its caller? I ask this cause the run method itself can't throw exceptions so i wonder how it could be achieved. Basically the run method itself can throw an exception but others can't see it (RuntimeException) but can it throw …

Software Development java
Member Avatar for Ezzaral
0
100
Member Avatar for linux

Does Python have a built-in GUI kit? Meaning without using Tcl/Tk. Because, I'm developing for the iPod touch / iPhone, and I don't want to have the user need to install the Python and Tcl runtimes.

Software Development gui iphone python
Member Avatar for linux
0
152
Member Avatar for abhi_elementx

Hi, I am using dev c++ 4.9.9.2 and I am new to DLLs. I am tryig to create a DLL which I am not creating thru the "DLL project" in dev cpp. Here are my three files: //dlltest.h [CODE] #ifndef _DLLTEST_H #define _DLLTEST_H #ifdef BUILD_DLL #define EXPORT _declspec(dllexport) #else #define …

Software Development c++
Member Avatar for Duoas
0
166
Member Avatar for LoloftheRings

Hi, I've made a console Pong game. I've added some sounds but the sounds are about 10 external .wav sounds. It seems a bit like a mess when I send the game to somebody, and it's not really user friendly. I want these sounds to be included IN the .exe …

Software Development c++ windows-vista
Member Avatar for Duoas
0
261
Member Avatar for javaStud

I am trying to do a sort of and expiry date so that when an account is created about 3 months later I'll be informed so that the account can be renewed. I don't know how I can do this and to tell you the truth I never used the …

Software Development java
Member Avatar for javaStud
0
137
Member Avatar for Undertech

(Note: sizeof(character) == 68 bytes) I am having issues with fstream::seekg()/seekp(). It seems like when one is invoked to modify the get or put pointer, the other pointer follows it instead of staying in place. Example: [CODE=cplusplus] charfile.seekp(0,ios::beg); cout << endl << "Put pointer is at " << charfile.tellp() << …

Software Development c++ ios
Member Avatar for vijayan121
0
196
Member Avatar for mithun_kanungo

how to create a dl of a window application, step by step

Software Development vb.net
Member Avatar for Sawamura
0
272
Member Avatar for javaStud

I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String …

Software Development java
Member Avatar for javaAddict
0
232
Member Avatar for sukatoa

Is there a code in assembly that is similar C like sleep(milliseconds)? Is there also a code in assembly that is similar also to C, clrscr()? I like to add that to my code that will be passed tomorrow... but i have no idea!!! Can you advice me where to …

Software Development assembly
Member Avatar for sanzilla
0
117
Member Avatar for ceyesuma

pi = 4(1-1/3 + 1/5-1/7 + 1/9-1/11 + 1/13-.........- 1/(2i-1) + 1/(2i+1) ) I am starting this program to approximate pi. Would someone be so kind as to direct me to information concerning this formula?

Software Development java
Member Avatar for ceyesuma
0
1K
Member Avatar for arby11886

I need some guidance on an assignment I'm working on for school. The objectives of this assignment are to read data from a binary file, use some basic class functionality, store objects in an array and produce a neatly formatting report. [code] #include <fstream> #include <iostream> #include <cstring> using std::ifstream; …

Software Development c++ ios
Member Avatar for WaltP
0
95
Member Avatar for ajeckhobar
Member Avatar for ajeckhobar
0
73
Member Avatar for sjcomp

Hello, I have base class and a derived class if I want to use bost::bind in an algorithm to call a virtual function that is declared in the base class I have two options: [CODE=C++] struct Base { virtual void Go(){}}; struct Derived:Base { virtual void Go(){}}; Derived d; // …

Software Development algorithm c++
Member Avatar for vijayan121
0
118
Member Avatar for flazwy

I'm new to GUI's and have has some trouble with the wx.lib.plot.py module. I can insert the graph panel into an app, but I can not get the panel to expand when the window is resized. I've read about the need to set the initial size, but... is this plotting …

Software Development gui python
Member Avatar for woooee
0
121
Member Avatar for TSharma

I am trying to use sort defined in algorithm in c++. I want to use it in vector string ( vector<string> vec) can we use it i vector string. here is my code [code=c++] #include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; int main() { vector<string> vec; vector<string> ::iterator it; string …

Software Development algorithm c++
Member Avatar for TSharma
0
90
Member Avatar for arby11886

I need some guidance on an assignment I'm working on for school. The objectives of this assignment are to read data from a binary file, use some basic class functionality, store objects in an array and produce a neatly formatting report. [code] #include <fstream> #include <iostream> #include <cstring> using std::ifstream; …

Software Development c++ ios
Member Avatar for WaltP
0
116
Member Avatar for kenank

Can somebody explain to me "nested class templates" or give me some links about it and some codes ? I get this theme for a homework ! (nasty profesor)

Software Development c++
Member Avatar for Jx_Man
0
59
Member Avatar for n_mehdi

i am seeking for an answer to fix my unit graph problems basically when i try to use it this error pops up BGI error: Graphics not initialized (use InintGraph) the funny thing though is that this unit works fine sometimes soooo your answers will be appriciated thanks

Software Development pascal
Member Avatar for Duoas
0
91
Member Avatar for olams

Hi, please help me with this program that i am writing. i am writing a program to create a polynomial. i set the values, but whenever, i debug it, i get this: 4x^2 + 0X^1 + 0x^0 + which do not correspond to the values that i set it to. …

Software Development c++ linked-list
Member Avatar for WolfPack
0
195
Member Avatar for hawisme000

i only have knowledge of connecting into a database(singel PC) but i have now idea where to start when my database needs to be centralized(1database for many PC) or (Network, LAN connected database) can any1 help me on how to make this, my code for connecting a database to VB …

Software Development visual-basic
Member Avatar for hawisme000
0
84
Member Avatar for andyg55

My program initially asks the user to input 3 values, x1, x2 and x3. These get fed into a mathematical equation and come out of it the other side slightly altered. The program then prints to screen the new values of x1, x2, and x3. These x values must go …

Software Development c++
Member Avatar for John A
0
151
Member Avatar for peteefb

[code=c] //* By peter blatcher *// #include <stdlib.h>; #include <stdio.h>; #include <math.h>; float trap(float b, float Xo, int n); float integ(float X); int main() { float Va, Ve, difference, n, area, Fao, kCao, y, X, a, b; char c = n; n = 2; Fao = 0.4; a = 0.8; …

Software Development c
Member Avatar for Ancient Dragon
0
147

The End.