132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Berniceazzopard

Hey i am doing a database of a bueaty salon with pascal. I need to tell the user to enter the date and validate it date but i on managed to get this far can u please help me. I need to validate that february contains 29 days if in …

Software Development pascal
Member Avatar for jsosnowski
0
111
Member Avatar for Roebuc

I am working with classes for the first time. I am trying to make an address book. While I think I have done my header files and class definition files correctly, I am running into a snag with getting it to show on the screen. I went back to a …

Software Development c++
Member Avatar for Roebuc
0
107
Member Avatar for it2051229

I'm reading a text file using a stream read and my code goes like this [ICODE] FileStream file = new FileStream("c:/data/theData.txt", FileMode.Open, FileAccess.Read); StreamReader streamReader = new StreamReader(file); // read the content of the first line of the data text file String line = streamReader.ReadLine(); while (line != "") { …

Software Development file-stream
Member Avatar for $dunk$
0
108
Member Avatar for superjacent

I've just completed an exercise from a book wherein the task is to display a menu of choices each associated to an alphabetical character. The program is to reject invalid characters and only finishing when a valid choice is made. Below is my solution, it achieves the task but I'd …

Software Development c++
Member Avatar for jade09091990
0
188
Member Avatar for navamous

I have to program an Address book program in C++. So far I've done about 40% of the assignment. The main requirements of the Address Book are the following (Which I am confused about are): 1. Display 20 Contacts at a time, using the space bar to go to the …

Software Development c++ display email first-post ios
Member Avatar for Spagett912
0
219
Member Avatar for sopel39

suppose we have template class X and template function template <class A, class B> A* g (B&); how to make something like that? template <class T> class X { template <class A, class B> friend B* g (T&); }; i mean that g<A, B> () is only friend of X …

Software Development c++
Member Avatar for vijayan121
0
108
Member Avatar for emilio

i have a form witch contains few user controls each control has combobox and 30 pictureboxes. each time i select a number from the combobox i want to press a button in my form and change the color of the picturebox for as many pictureboxes as i choose. for example: …

Software Development
Member Avatar for emilio
0
100
Member Avatar for torbecire

I have these two classes Maze and MazeCell. I have a problem with the Maze constructor in Maze Class and do not know how to access it, or test it. Does Maze N = new Maze(row, col) do anything. I know it's supposed to set it as the length of …

Software Development java
Member Avatar for parthiban
0
287
Member Avatar for cage

Hello, guys. I'm very new to Java and this is my first time I'm actually programming by myself. I have a homework due soon. Anyways, my question is: Write a program that asks the user for a word to replace in some text, and the word to replace it with. …

Software Development java
Member Avatar for Ezzaral
0
816
Member Avatar for Skeezo

Hello when I try to compile my program I get these errors: 1>funding6c.obj : error LNK2019: unresolved external symbol "void __cdecl ContributorSort(struct Contribution * const,int &)" (?ContributorSort@@YAXQAUContribution@@AAH@Z) referenced in function _main 1>C:\Users\Big Z\Desktop\program 6\Debug\program 6.exe : fatal error LNK1120: 1 unresolved externals what could be causing this? [code=C++] #include <iostream> …

Software Development algorithm c++ storage
Member Avatar for Skeezo
0
426
Member Avatar for Kusno

Dear all, I have these code below (netbeans) : All cells in columns "saldo Awal" are set to 58000000000.00, but appear in cell is 5.8E9 What should I fix in my code ? Thanks, Kusno import javax.swing.DefaultCellEditor; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.DefaultTableModel; import java.awt.Component; import java.text.NumberFormat; import javax.swing.JTable; import javax.swing.JOptionPane; import …

Software Development java java-netbeans java-swing
Member Avatar for Ezzaral
0
106
Member Avatar for sjcomp

Hello, I'd like to split a string into smaller parts using delimiters that are longer than one character. I'm curious if boost::algorithm::split can be used for that. I can not figure out what predicate I should give it to compare strings [CODE=C++] #include <vector> #include <string> #include <boost/algorithm/string/split.hpp> std::vector< std::string …

Software Development algorithm c++
Member Avatar for sjcomp
0
5K
Member Avatar for Adila

how do i reset the applet? i thought that it would work if i call the method itself thanks [code=java] private class ButtonListener1 implements ActionListener{ public void actionPerformed(ActionEvent e){ myButton1.setBackground(Color.black); int answer = JOptionPane.YES_OPTION; answer = JOptionPane.showConfirmDialog(null, "BOOOoooM!!! Would you like to play again?", "", JOptionPane.YES_NO_OPTION); if(answer == JOptionPane.YES_OPTION){ LoanApplet …

Software Development java
Member Avatar for Adila
0
728
Member Avatar for snakeman

I've created simple C++ ATL Web Service in VisualStudio 2005 Is it possible to host it in Apache or some another web server exept IIS? Any help will be really appreciated. Thanks

Software Development apache c++ web-server
Member Avatar for Ancient Dragon
0
149
Member Avatar for dmanw100

I finally broke down and wrote my first header file, but one of my functions is acting a little weird... This function is supposed to convert from Celsius to Fahrenheit but whenever I call the function, it returns an incorrect value. Is there an easy way to multiply the float …

Software Development c++
Member Avatar for dmanw100
0
111
Member Avatar for zaza_thegreat

please help to with this program by mainly using arrays and pointers ,... i need this program to check 2 matrix files "if they contain any character and if they contain cout<<"invalid"; " and to open them from .txt file [code=cplusplus] #include<iostream> #include<fstream> #include<string> #include<cmath> using namespace std; int main() …

Software Development c++ ios matrix-multiplication
Member Avatar for Nick Evan
0
217
Member Avatar for Ryano24

I have to write an applet that asks the user to enter two floating-point numbers, obtains the two numbers from the user and draws their sum, product, difference and quotient. This is what I have so far. Can anyone make sure I am on the right track. import java.awt.Graphics; // …

Software Development java java-swing
Member Avatar for darkagn
0
109
Member Avatar for a_iyer20

Hi All, I have 2 classes. say Class A and Class B. My logic is coded in a method in class B. I am accessing this method of class B by creating an instance of class B in class A. To explain better: Class A{ ClassB b = new ClassB(); …

Software Development java
Member Avatar for a_iyer20
0
100
Member Avatar for kux

plz take a look at the following code [CODE] #include <iostream> #include <string> #include <iostream> #include <string> using namespace std; class A { public: string sa; A(string sia); }; class B:public A { public: string sb; B(string sia, string sib); }; A::A(string sia):sa(sia) { } B::B( string sia, string sib):A(sia),sb(sib) …

Software Development c++
Member Avatar for Agni
0
263
Member Avatar for toolbox03

Anyone knows how to capture the data pipe in from linux ls command in c++ program? the command is ls - ali and I need to pipe it to a c++ program by ls - ali|./a.out how do I code the main in c++ to capture the data? int main() …

Software Development c++
Member Avatar for dougy83
0
157
Member Avatar for Lensva

hey again, code below works but it tends to give some info which shouldn't be there: (for example a - 0 where 'a' is a letter and 0 is the times the letter was repeated) [code=cplusplus] #include <iostream> #include <stack> #include <fstream> using namespace std; int main() { fstream fin1("E:\\iras.txt", …

Software Development c++ ios storage
Member Avatar for Lensva
0
208
Member Avatar for tracyda

The following code is what I have so far. I know there are errors in some parts, because i'm currently still workin on them. However, I am having trouble invoking the reduce() method. The purpose of the program when im done is to be able to add and multiply fractions …

Software Development java
Member Avatar for jinternalframe
0
149
Member Avatar for sandip250382

Friends, I am facing a strange problem with Visual Studio 2005 for few days. While I am surfing online for more than 15 minutes or so, an pop up message shows "An unhelded win32 exception occured in svchost.exe[808]",an error generated by Just in time Debugger,though I disabled Just in Time …

Software Development visual-basic visual-studio
Member Avatar for Jx_Man
0
78
Member Avatar for mikky05v

Write a program which will accept a Roman numeral input from the keyboard and return to the screen its numeric value. Some of you cases should input unusual or awkward input, and at least one trial must include an improperly formed Roman numeral. The following features of the Roman numeral …

Software Development c++
Member Avatar for mikky05v
0
138
Member Avatar for soka2oo7

I want to know how to develop a matrix calculator that preforms basic matrix operations usin g arrays and/or pointers. Iwant a calculator to do addition ,subtraction ,multiplication ,transpose,checking enquality, checking properties and matrix power & the program will read the data from a file & check if the data …

Software Development c++ matrix-multiplication
Member Avatar for soka2oo7
0
123
Member Avatar for Skeezo

What i am trying to do is pass an array of structs to a function. the code i have so far follows: [code=C++] struct Contribution { string name; double amount; }; const int MAX = 25; typedef Contribution BigSpender; typedef BigSpender ContributionRec[MAX]; const string NAME_FILE = "names.txt"; const string CONTRIBUTION_FILE …

Software Development c++
Member Avatar for vmanes
0
85
Member Avatar for bornok15

Where can i find in the registry the value of the savesetting function of vb6? im getting the value using GetSetting("Project", "Options", "Auth").. anyone who has an idea on how to find this value in the registry?

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
300
Member Avatar for Noliving

Well this is a lab assignment, the problem I'm having is that the sample code he gave us is suppose to run as is, but it doesn't. I email him and he thought that most likely there might be a problem with the CLASSPATH for java or that I might …

Software Development java java-swing
Member Avatar for Noliving
0
186
Member Avatar for zzsu

I use pymmsql to access MSSQL 2000, with a table, I store Chinese Character in NVarchar field, Chinese Character display normally when I query them by MS SQL Query Analyzer under Windows or by unixODBC under Ubuntu. But when I query those data by pymssql or pyodbc, all Chinese Character …

Software Development mssql python ubuntu
Member Avatar for zerocq
0
54
Member Avatar for hgedek

Hi.I need an answer to my heap problem. I am creating a 1000 items priority_queue (priority_queue<Molecule*,vector<Molecule*>,SortClass>); Sometimes I need deleteThis(Molecule *mol) function.So this function can delete any item at any index.Pop wont work here if I dont use pop-push until the target.But this takes long time.So I want to learn …

Software Development c++
Member Avatar for vijayan121
0
307
Member Avatar for sjcomp

Hello, I have a project that I can build with a script. I'd like to add version number + release number to my builds. I'm looking for a way to do it automatically. As a result I'd like to get something like that: [inlinecode]\deployment\v1.2.3\some.exe[/inlinecode] When I run exe I'd like …

Software Development perl shell-scripting
Member Avatar for sjcomp
0
104
Member Avatar for rayscosmic

Hello i am new in perl scripting.I have to write a script to check for .c file and then go in to the ,c file and find all function and insert line1 after `{` and line2 before `}` or before return( if return is present). Can any1 plz help me …

Software Development perl
Member Avatar for KevinADC
0
161
Member Avatar for bobrien314

I have an assignment to do a linked list in mips, but i cant find a good starting point, can someone offer some insignt, and also wouldi t ever be useful to use a linked list in mips?

Software Development assembly linked-list
Member Avatar for bobrien314
0
801
Member Avatar for C#Novice

Hi All, I m working on a project that has different sub-projects. I would like to include a link to a file that is placed in another folder. For ex. My file whose path is ProjB/FolderB/FileB.asp --I want to write a line of code that will enable me to link …

Software Development
0
107
Member Avatar for shahriar2403

Is there any way to indicate row number of a datagrid? I mean list1.listindex = 1 means 2nd item of that list box, how can i indicate such type in datagrid? I want to select a row from datagrid and with my given criteria depending on the row number or …

Software Development visual-basic
Member Avatar for ritstu
0
85
Member Avatar for curt1203

I am on my last assignment and i have no idea how to do or start this one. This class has gotten to where i understand nothing when i watch the lectures. I have invested so much time trying to learn this stuff and i do not get structs. This …

Software Development c++
Member Avatar for big24fan
0
98
Member Avatar for kahaj

I keep getting this when I go to debug: "Error 1 Operator '=' is not defined for types 'Integer' and 'System.Random'. C:\Documents and Settings\All Users\Documents\College-C\IT\VB.Net\Assignments\16.11\GuessNumber.vb 16 10 GuessNumber" I'm getting the same thing for the greater than and less than operators. I've been banging my head for an hour now …

Software Development vb.net
Member Avatar for Jx_Man
0
282
Member Avatar for chemicaldave

I'm being given the assignment of using the selection sort method to alphabetize a 2D array of names. Specifically I am supposed to modify a selection sort algorithm for integers and convert it for my purposes. I took the skeleton code and tried to convert it. The program compiles and …

Software Development algorithm c++
Member Avatar for chemicaldave
0
141
Member Avatar for emilio

hello. i created a new form and added to my form few user controls and menu. my menu contains numbers. i created all my user controls in the forms constructor and changed their visibility to false. my goal is to show the number of controls i picked in my menu. …

Software Development
Member Avatar for emilio
0
143
Member Avatar for drjekil

I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text filelooks like this: #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD 1lghB A i 79.8 H H -24.58 1lghB V i 79.6 H H -22.06 1lghB H …

Software Development python
Member Avatar for drjekil
0
165
Member Avatar for tah

Hi Sir Write a C program to count and print the total number of: upper case letters, i.e. ‘A’ to ‘Z’ lower case letters, i.e. ‘a’ to ‘z’

Software Development c c# c++
Member Avatar for jephthah
0
263
Member Avatar for tro

I am passing information between two forms. Up to now, I have passed information from one form to another. Is there another way to do this? [DisplayDie dpDie = new DisplayDie(dp); // Getting constructor error in this line DisplayPanel dp = new DisplayPanel(dpDie,dpDie);] When I swap the lines, error moves …

Software Development java
Member Avatar for tro
0
244
Member Avatar for tigger0484

using visual studios C++ express 2005 edition this is my code but when I run it I get a bunch of garbage...any suggestions would be greatly appreciated!!!! [code=cplusplus] #include <iostream> #include <fstream> using namespace std; int length(char phrase[]); void concat(char phrase1[], char phrase2[], int measure1); void copy(char phrase1[], char phrase2[]); …

Software Development c++
Member Avatar for tigger0484
0
264
Member Avatar for mofoparrot

Hey guys, I'm new here, I looked through the help also searched and couldn't find anything that helped. Although I will be using the Algorithms you guys have on this site. anyways I only took a intro course to C++ about four years ago and don't remember much I wrote …

Software Development c++ file-system
Member Avatar for mofoparrot
0
132
Member Avatar for ericisshort

This is probably the most frustrating thing in c++ for me. I can handle compile errors just fine, but when I get a core dump, I get so frustrated, because I have no idea where the problem is, especially when I have 300+ lines of code to be looking at. …

Software Development c++
Member Avatar for mitrmkar
0
103
Member Avatar for ITJohn89

hi my name is john i have been trying to learn how to design my own software. i have been told in order to i must learn c++ i have just download Visual C++ Express Edition am not to sure what i am doing so if anyone could give me …

Software Development c++
Member Avatar for mitrmkar
0
117
Member Avatar for Black Magic

Hey i've made a simple calculator, but i was thinking about adding a square root option.. But is there a actual way to do this or would i have to create my own?? PLEASE REPLY A.S.A.P

Software Development c++
Member Avatar for hammerhead
0
136
Member Avatar for DigitalPackrat

I searched the forums for Windows API tutorials and have found [URL="http://www.winprog.org/tutorial/"]this[/URL]. Is it necessary to do everything manually like in the tutorial and after getting the hang of it move on to QT or should I jump into QT right now?

Software Development api c++ qt windows-api
Member Avatar for eager
0
253
Member Avatar for williams1987

Hi all, I am working on a simple form for work, which has multiple questions (labels) and text boxes and combo boxes (to answer the questions). My issue is that i do not wish to show all the questions right from the start. Some questions will remain non-visible, until a …

Software Development vb.net
Member Avatar for williams1987
0
95
Member Avatar for n8makar

sort of a noob as i have been doing c++ for only a couple months now. my problem is that i am using a function to pass data from a file into an array then into a .out file. the function im using to read the data from the file …

Software Development c++ file-system
Member Avatar for vmanes
0
518

The End.