132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 … | |
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 | |
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 … | |
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++ | |
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 | |
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++ | |
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++ | |
[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++ | |
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 … | |
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++ | |
![]() | 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 ![]() |
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++ | |
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++ | |
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 … ![]() | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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? | |
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 | |
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? | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
how do open port on firewall using java programmatically... any upnp code ... plz help me its urgent......... Software Development java | |
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++ | |
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 | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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 |
The End.