132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Beasts

Hey, I have been using youtube to learn how to use the JPanel, as the prof has not given a lesson regarding that… The project was a game, which I have finished, but for bonus I can do some sweet sweet graphics. Anyhow the game saves the data in arraylists …

Software Development java
Member Avatar for Ezzaral
0
101
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?

Software Development c++
Member Avatar for Narue
0
91
Member Avatar for aq5

Hey i recently got set a project to design a c++ connect four (four in a row) program on the console or using GUI. It only has to be Human vs Human, which is prolly sumthing a lot of you hav seen or done b4. I draw a blank with …

Software Development c++ gui
Member Avatar for Murtan
0
459
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 …

Software Development c++ file-system
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 …

Software Development c++ flash puzzle
Member Avatar for BobRoss
0
161
Member Avatar for theeurostick

In my code i got two compiling errors that i cant fix one is mared by (97) and the other is marked by (213) here is the code include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace std; struct skater { string fName, lName; int entry; double score[5]; double …

Software Development c++
Member Avatar for Lerner
0
295
Member Avatar for Jeff_5_7

Here is my assembly lang program. [CODE] mov dh,0 C: sub bl,cl mov al,bl mov ah,0 mov bh,2 div bh cmp ah,0 je A mov al,cl mov ah,0 mov bh,2 div bh A: mov al,cl add dh,al add bl,cl add cl,1 cmp cl,bl jle C[/CODE] I am trying to convert …

Software Development assembly
Member Avatar for marcel222
0
233
Member Avatar for merse

People used to use reference in operator overloading like this [CODE] Compex operator+(const Complex& c1, const Complex& c2); [/CODE] because its good for reference and static data also? (c1, c2 can be complex or complex reference also? or mixed too) Since [CODE] Compex operator+(const Complex c1, const Complex c2); [/CODE] …

Software Development c++
Member Avatar for Narue
0
115
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?

Software Development c++
Member Avatar for merse
0
104
Member Avatar for Ashe_Aqua

[CODE] #include <iostream> #include <string> #include <cmath> #include <conio.h> #include <cstdlib> using namespace std; class animal_game{ public: string name(){}; int leg (){}; }; //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* class bird : public animal_game{ public: string name () {return (" Bird ");} int leg () {return (2);} }; //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* class fish : public animal_game{ public: …

Software Development c++
Member Avatar for Ashe_Aqua
0
71
Member Avatar for CppFTW

Hi, does anyone know why I am getting these error messages? I'm using Code::Blocks IDE and MinGW(GCC) compiler. I included boost (v1.39.0) libraries already. I can use them correctly with #include <boost/lexical_cast.hpp> Also, I defined BOOST_NO_DEPRECATED [CODE]#include <boost/filesystem/operations.hpp> #include <string> using namespace std; int main() { //The meta data file …

Software Development c++ ide
Member Avatar for kevint77
0
511
Member Avatar for tak9

Hi, i have a lot of errors on this and am not sure how to fix it. This needs to be turned in in 2 hours so all help is needed =)). Description: Design and implement an application that creates a histogram that allows you to visually inspect the frequency …

Software Development c++
Member Avatar for Nick Evan
0
161
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. …

Software Development vb.net
Member Avatar for Chris11246
0
117
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 …

Software Development c++
Member Avatar for samweb$
0
90
Member Avatar for Stefano Mtangoo

I don't want to know each and everything in C++, but I wan't to know what do I need to be able to Code a good big app like Notepad++? I mean what it takes to be a best C++ expert? (Or how did the Ancient Dragon became expert ;) …

Software Development c++
Member Avatar for mrnutty
0
354
Member Avatar for shorty1523

I had a fair amount of experience with much older versions of VB, but recently made the switch to VB.net and am trying to figure my way out through the changes. I have a small form program that is basically an interface for installing different software packages so that we …

Software Development pdf vb.net
Member Avatar for stevee1984
0
136
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 …

Software Development java java-netbeans java-swing
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 …

Software Development sharepoint xml
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 …

Software Development java
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]

Software Development c++
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], …

Software Development c++
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 …

Software Development
Member Avatar for Narg2
0
1K
Member Avatar for timlo

Hi, I'm trying to find a way to extract numbers from a text consisting of words and numbers but have no idea how to do it. The numbers can be larger than one digit and should be able to be manipulated by common math operators like +, - and / …

Software Development c++
Member Avatar for timlo
0
4K
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 …

Software Development gui python user-interface
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 …

Software Development vb.net
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 …

Software Development python
Member Avatar for jlm699
0
151
Member Avatar for Kruptein

I have 2 frames in my wxpython program, MyFrame and OptionFrame if I start my program it shows MyFrame, and if I end it, the frame disappears and the program stops. If I start my program and choose to show the option frame, it will show it, but if I …

Software Development python
Member Avatar for jlm699
0
103
Member Avatar for Iam3R

The Programming languages started with the low level language( 1's and zero's , so no conversion is needed. Assembly language is used mnemonics ( ADD,INC,DEC) so needs conversions as the machine cannot understand it directly. there comes the Assembler. Now the question is how the Assember was implemented, i mean …

Software Development assembly c
Member Avatar for Iam3R
0
97
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 …

Software Development c
Member Avatar for Iam3R
0
266
Member Avatar for llemes4011

I'm somewhat new to C++, and this question has been nagging at me. Is it more efficient to use a Pointer, or an actual object? Here's an example: [CODE] class SomeObject{ public: SomeObject(); /* Other methods */ }; int main(int argc, char **arcv){ SomeObject *ptrObj = new SomeObject(); // Do …

Software Development c++
Member Avatar for Narue
0
165
Member Avatar for IcetalkeR

Error 1 The type or namespace name 'RegularExpressions' does not exist in the namespace 'System.Text' (are you missing an assembly reference?) C:\Documents and Settings\IcetalkeR\My Documents\Visual Studio 2008\Projects\SciSem\SciSem\CodeFile1.cs 2 19 SciSem What do I do?

Software Development assembly c c# c++ microsoft regex visual-studio
Member Avatar for IcetalkeR
0
109
Member Avatar for Gribouillis

This snippet defines a function [b]chmod[/b] which uses symbolic strings to represent the mode (eg [b]u+rwx[/b]) like the shell command 'chmod'.

Software Development file-system python
0
509
Member Avatar for GL.Za

Simple question one would think, but I am having trouble finding the answer. Eclipse.org promotes eclipse as being a Java IDE, but has many plugins and extensions. I was wondering if maybe there is a plugin or extension that would allow me to compile/debug vb.net projects in eclipse?

Software Development ide vb.net
Member Avatar for GL.Za
0
185
Member Avatar for ramjeev

For synchronized block, an object has been passed.The question is,Why & when it is passed & what is the purpose of passing an object? -Thanks in advance

Software Development java
Member Avatar for ramjeev
0
115
Member Avatar for shashikant.v

hi I have to create a help menu in my project for that i had made html pagesand my problem is I cannot connect that html pages from help menuitem. pls helpme and guide me for that. thanks for ur response shashikant.v

Software Development java
Member Avatar for AndreiDMS
0
77
Member Avatar for ShemoPT

I am trying to read data from remote SQL base. I have written the function that works great if you need to get 1 Value , but when I want to read 2 or more value at from one query it doesn't work how can I fix it? [CODE]Imports System.Data.SqlClient …

Software Development open-source sql vb.net
Member Avatar for G_Waddell
0
3K
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> …

Software Development c++
Member Avatar for luvsom
0
108
Member Avatar for xcarbon

First off, i would like to introduce myself. My name is Ryan, im 18 and a professional gamer. About the client! Well this client is for my clan members, they can login and retrieve updates, news, ect through a webbrowser Help! Okay, so i have set a webbrowser, two texboxes …

Software Development visual-basic
Member Avatar for AndreRet
0
94
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 …

Software Development image
Member Avatar for snakay
0
135
Member Avatar for RehabReda

hi guys i get wrong answer in this [URL="http://uva.onlinejudge.org/index.php?option=onlinejudge&Itemid=8&category=3&page=show_problem&problem=100"]problem [/URL] and i don't know why please if any one know or can help please share it [CODE]#include<iostream> using namespace std; #include<string> int EditDistance[30][30]; int Tracing[30][30]; string FirstString,SecondString; int NoOfDeletions , NoOfAdditions; int FindMin(int a,int b,int c,int i,int j) { if(a<b&&a<c) …

Software Development c++
Member Avatar for RehabReda
0
170
Member Avatar for Manoj_06

cud ny1 plz tell me,how 2 connect to mysql via VB6.0 without d help of mysql connector as 1 user said. i don't think there is ny need of such in VB6.0 i just wanna know how to set connection string through coding an fire sql query in VB its …

Software Development mysql visual-basic
Member Avatar for AndreRet
0
49
Member Avatar for musthafa.aj

how do open port on firewall using java programmatically... any upnp code ... plz help me its urgent.........

Software Development java
Member Avatar for musthafa.aj
0
237
Member Avatar for merse

Whats wrong with the folowing simple sample? [CODE]struct mystruct { double x, y; mystruct(double z) { x=z; y=z; } }; template <class Real> class myclass { public: Real x; myclass(Real x) { this->x=x; } }; int main() { mystruct s(1.,2.); myclass<mystruct> obj(s); return 0; }[/CODE] The error message look for …

Software Development c++
Member Avatar for jonsca
0
104
Member Avatar for jas2010

I have a question. I have a report that the load time is different I want show wait time to user , I think should use the Multi Thread but I not know how works it.

Software Development
Member Avatar for sknake
0
110
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 …

Software Development dataset
Member Avatar for stoymigo
0
89
Member Avatar for kool005

Well, here i m trying store the some vertices(4) in an array. and trying to read them. But i m getting an error of "Array Index out of Bounds Exception. I know the error is in the line i have highlighted(red). And i have tried various methods. But not working. …

Software Development java
Member Avatar for masijade
0
1K
Member Avatar for f3rrari

[CODE] import java.util.Scanner; public class Card { private boolean rankBad; private boolean suitBad; private boolean invalid; private boolean valid; private int value; private int altValue; private int suit; private int rank; private int numValue; private int status; private boolean isJack; private boolean isAce; private String card; public Card() { Scanner …

Software Development java
Member Avatar for masijade
0
100
Member Avatar for jgelderloos

im working on a function for a custom list class that writes all the items of the list to an output file. However i keep getting this error: no match for 'operator<<' in 'fout << nodePtr->List::Node::myItem' and error: no match for 'operator<<' in 'fout << ' '' i think ive …

Software Development c++
Member Avatar for tkud
0
87
Member Avatar for simpatar

My prob' is that when I type 'Amanda' when the program asks for my name, it returns Hi. I want it to return Howdy when I input 'Amanda', and hello for all other strings. This is my program: [CODE]#include <stdio.h> int main() { int nothing; char namn[20]; printf("What's your name?\n"); …

Software Development c
Member Avatar for simpatar
0
74
Member Avatar for bj35man

hi, I use a software called HD-speed to test the speed of my USB hard dirve. when I test the write speed, it destroy the data in my hard dirve. can I restore my data back? I find that the method used by HD_Speed to read/write is the following Win32 …

Software Development api c hard-drive
Member Avatar for bj35man
0
93

The End.