132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Esben

Hello, I have several Objects in switch I need to set the text that should be in a string, ill show an example of how i have done it. It´s all made in a JPanel using NetBeans. private void comboBoxMajorChoosingActionPerformed(java.awt.event.ActionEvent evt) { comboBoxMinorChoosing1.addItem("English"); comboBoxMinorChoosing1String = comboBoxMinorChoosing1.getSelectedItem().toString(); } private void comboBoxMinorChoosing1ActionPerformed(java.awt.event.ActionEvent …

Software Development java java-netbeans
Member Avatar for peter_budo
0
91
Member Avatar for Psykocyber

Hi I'm having a problem with this piece of inheritance code. When compiling it displays this error " 'getAverage' : is not a member of 'Person' " but shouldn't the casting overcome that problem? Do i really need to have a virtual function in "Person" for this to work? Thanks …

Software Development c++
Member Avatar for Psykocyber
0
129
Member Avatar for abhi_elementx

In this code : [CODE] #include <iostream> using namespace std; class Singleton{ private: Singleton(){} public: static Singleton* getInstance(); void myFunction(){ cout<<"\nmyFunction() called.."; } }; Singleton* Singleton :: getInstance(){ static Singleton* obj = NULL; if(obj == NULL){ cout<<"\nCreating new instance..."; obj = new Singleton(); cout<<"\nReturning instance..."; } else{ cout<<"\nan old instance …

Software Development c++
Member Avatar for MrSpigot
0
103
Member Avatar for bhanu1225

Hello all. For getting the values from text field, we use [COLOR="Red"]".get"[/COLOR] function. I would like to get all the contents from the [COLOR="Red"]text area[/COLOR]. What is the function to use.

Software Development python
Member Avatar for Mearah
0
95
Member Avatar for Nawsheen

I have been surfing the net for hours but couldn't find anything as to whether it is possible to make a groupbox readonly. So if you can make it read-only how do you go about?Is there any code?Thanks

Software Development vb.net
Member Avatar for omotoyosi
0
505
Member Avatar for sunshyne23

is there any one that can help me write a program for class

Software Development c++
Member Avatar for ithelp
0
84
Member Avatar for Ortal

So Ive been working really hard to get a working ASP captcha to incorporate into my form (note, classic ASP not .net). I FINALLY got it working in a test area, the form looks like this: [CODE] <form action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method="post"> <table border="0" width="570" align="center" cellpadding="1" cellspacing="0"> <tr> <td align="right" valign="center"><%=font4%><font …

Software Development session vbscript visual-basic
Member Avatar for navertech
0
156
Member Avatar for Nawsheen

I have done half of my project on microsoft visual studio express edition 2008. However as the express edition does not support reporting i will have to use the professional edition. My question is will my project open in the professional edition.

Software Development vb.net visual-studio
Member Avatar for ithelp
0
97
Member Avatar for harrykokil

hi everyone.. i have a face recognition project to do in any language.. i have no clues on how to begin this.. can anyone plz send me an algorithm on face recognition using neural networks?? thanks

Software Development algorithm c++
Member Avatar for ithelp
0
111
Member Avatar for smita123

Hi all, Could you please sugest me some code for building the GUI to browse a file and to upload using Swing. Thanks,

Software Development gui java java-swing
Member Avatar for smita123
0
147
Member Avatar for Joe Hart

Hi, This is my first post to this forum. I am just a beginner so I am not really sure what everything in my code does. Below is my python code. I would like to change the code to ask the user where the files are located and automatically update …

Software Development python user-interface
Member Avatar for Mearah
0
181
Member Avatar for vict0rjr

I'm creating a new class called album which is supposed to make an album and show pictures with caption. so.. Ok my problem is the methods section... i need help to set the array in the picture album and set the captions too can any one please help me out …

Software Development java
Member Avatar for peter_budo
0
100
Member Avatar for burger87

-------------------------------------------------------------------------------- Hey all. I'm a newbie at C++ and hope that you guys can guide me along. I recently got assigned a project and is needed to code it in C++, which I have almost zero experience with, so bear with me. =) I need to delete 3 log files …

Software Development c++ file-system ios
Member Avatar for burger87
0
139
Member Avatar for ajithraj

[B]is there any way to disallow more than one login [/B] I mean , in IE we can log in a yahoo Mail with a number of mail id at the same time...But this is not allowed in Mozilla..... I want to implement this(like that in Mozilla) restriction in our …

Software Development java
Member Avatar for ajithraj
0
95
Member Avatar for JimD C++ Newb

Good afternoon, all! I'm in the process of writing a chat program. The server is completed, and if I simply telnet into the server with 2 different windows, 2 people can chat in fluid fashion. However, when I connect 2 clients, the chat appears in lock-step fashion. (ie. Client 1 …

Software Development c client-server windows-server
Member Avatar for JimD C++ Newb
0
433
Member Avatar for sammo5889

Hi, just doing a uni assignment and have completed a majority of it, just asking if someone could please proofread and help me out with the last line as i can't get it to compile. heres my instructions: All objects that float through space are instances of the SpaceObject class …

Software Development java
Member Avatar for zyaday
0
116
Member Avatar for astroboy_x4

hello guys, just want to ask if you have a module for adding/deleting of registry key easily, I have tried reading some articles and they have given some of their examples.. but its not working... i'm working now on adding this registry key HKEY_CLASSES_ROOT Folder\shell\Use Zip Help\command ValueName = (Default) …

Software Development visual-basic
Member Avatar for ROYALPINTO
0
326
Member Avatar for harrykokil

hi guys.. ive tried to integrate a timer code (which works fine) into a tkinter window but im having errors. can u plz fix it 4 me? thanks. this is the code i want to integrate. [icode] import Tkinter as tk import time def start(): global count_flag count_flag = True …

Software Development python queue tkinter
Member Avatar for jlm699
0
118
Member Avatar for JerryShaw

Hello, I typically hang out in the C# forum, however I hope someone here can help. I am converting a C++ program to C#, and I need to know how to handle a couple things: IOW I know almost nothing about C++, and this code is coming from a non …

Software Development c++
Member Avatar for JerryShaw
0
271
Member Avatar for robbyboy20

[code=c]# include <stdio.h> # include <conio.h> # include <stdlib.h> int main(int, char**); void welcome_message(void); void main_menu(void); void second_menu(void); void add_customer(void); void edit_customer(void); void print_report(void); void cust_menu(void); void exit_message(void); int main(int argc, char *argv[]) { char menuOpt; int isExit = 0; if (argc > 1) { printf("%s : Start Up Error …

Software Development c
Member Avatar for jephthah
0
190
Member Avatar for deshun
Member Avatar for RizzLinux1388

Hi everybody I am working on a String project for my class and I'm stuck on this swap function. This is what my professor has in his "tests" : [CODE]void test_swap_first_shorter() { // Setup fixture string foo("foo"); string barbar("barbar"); // Test foo.swap(barbar); // Verify assert(foo == "barbar"); assert(barbar == "foo"); …

Software Development c c# c++
Member Avatar for jephthah
0
204
Member Avatar for swatiringe

I want to construct a bipartite Graph for matchmaking of web services. First step of my project is graph construction. I need help in Bipartite graph construction

Software Development algorithm java
Member Avatar for Freddy00daniweb
0
170
Member Avatar for Lee_Sonnenburg

I'm writing a program that accesses a public web service. The web service has one web method. After referencing the service and creating an instance of it i'm retrieving the data from the web method. The problem: The data that gets retrieved is a long string of xml. What I …

Software Development c# xml
Member Avatar for Lee_Sonnenburg
0
102
Member Avatar for mzdiva041986

This program actually reads in an input expression and using the grammar rule to determine whether the syntax is ok or not. This is a lexical analyzer. I need to be able to read in the input expression and output each token of the expression and it's token kind. I'm …

Software Development java
Member Avatar for BestJewSinceJC
0
74
Member Avatar for nexocentric

Before I state my problem, which is in bold text, I need to give you a little bit of background. I'm working with 3 binary log files of about 35mb each. Each one holds approximately 65000 records. Each record, which is about 400 bytes, holds information containing the date, transmission …

Software Development data-structure visual-basic
0
65
Member Avatar for smitem03

I am a new user on this C and have a hard trouble with I/O's. If you could let me know what I am not clarifying. Thank You! [code] #include <stdio.h> #include <stdlib.h> // employee structure definition // struct year2009Data { float SSN; // employee social security number // char …

Software Development c data-structure
Member Avatar for Ancient Dragon
0
164
Member Avatar for Dewey1040

Write a program to compare two text files. The names of the files are to be supplied as command line arguments. The program should write a message to the screen indicating that the files are exactly the same or that there are differences. If the files differ, the program should …

Software Development c file-system
Member Avatar for Ancient Dragon
0
83
Member Avatar for aerobama

okay, so I'm a little lost on how to use selection sort and i/o files for this project. the program is supposed to sort a list of first and last names into alphabetical order. here's the catch. each name has a GPA that goes with it. so not only do …

Software Development c++
Member Avatar for siddhant3s
0
211
Member Avatar for viki0077

I made this small C++ program, and it won't compile. Please if someone can help me to fix these 2 errors: error C2059: syntax error : ';' error C2059: syntax error : '}' The text is not in english, but it doesn't metter, just these 2 syntax errors so it …

Software Development c++
Member Avatar for waldchr
0
170
Member Avatar for Straightone

My question is how do i call the variable Neotile from the main function into the Neo() function and then redefine it and return it back into the main function at the begging of the while loop so it is redefined? [code]from p2lib import * from string import * def …

Software Development python
Member Avatar for adam1122
0
146
Member Avatar for enginer

I am completely new to assembler and I am starting to write in assembler 8086-8088 with tasm. I have the beginning correctly. I need only the coding for reading two digit numbers. So far I know that you have to multiply the first by 10 and add the second. Please …

Software Development assembly
Member Avatar for peachville
0
83
Member Avatar for dimitriz5

Please, if anyone could give me assembly code for a calculator it would be a great help . I am using mips... Thanks in advance.:-|

Software Development assembly
Member Avatar for peachville
0
176
Member Avatar for gotm

How come this just hangs, after debugging I found it never returns True for precondition even though it should on the very first go around....ugh!!! [code=python]#!/usr/local/bin/python #Scott Landau #CS 380 #Assignment 1 Programming Portion in Python #Created - 4/6/09 #Last Edited - 4/8/09 import pdb #n is going to be …

Software Development python
Member Avatar for gotm
0
143
Member Avatar for Acidburn

Hey guys I've got a Factory that can return a database writing object. It takes in a config file that points it to which class to create an object of. Now this is were I'm stuck. Factory -> returns a database writter now there's more than 1 way of writing …

Software Development
Member Avatar for JerryShaw
0
101
Member Avatar for ShadowScripter

I stumbled upon another what I think is initializer, like int and char, named [B]HANDLE.[/B] It's also used when creating an application, I've browsed the net and found that it is a sort of pointer to an object that can change without me knowing it... eh... It wasn't really that …

Software Development c++
Member Avatar for ShadowScripter
0
108
Member Avatar for southernd0529

[code=cplusplus] #include<iostream> #include<iomanip> #include<fstream> using namespace std; const int N = 20; // file declaration and open ifstream inFile; ofstream outFile; /* need to open files here */ //function prototypes void initialize(int& zeroCount, int& oddCount, int& evenCount); void getNumber(int& num); void classifyNumber(int num, int& zeroCount, int& oddCount, int& evenCount); void …

Software Development c++
Member Avatar for jephthah
0
350
Member Avatar for booker

Hello I have a C++ project A which has to use heather/source files of project B. When I do include "B.h" then B's heather can't be seen because B and A are in a different sub-folders of the same folder.What can I do thank you

Software Development c++
Member Avatar for booker
0
99
Member Avatar for dustman

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/thread28858.html"]this[/URL] >>[/I] [quote=Narue;145474]>u asking me if i cant code why should i be asking about sockets? No, I was asking you what you know so we don't waste time going over things that we don't need to. But if you want to be a dick about it, …

Member Avatar for jephthah
0
169
Member Avatar for sharensla

I have a problem with this code given below when i compile it without pointers it easily runs i want to run it by using pointer it gives me erro can any body runs the programme with pointers. when i compile this without pointer it runs #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> …

Software Development c++
Member Avatar for JugglerDrummer
0
179
Member Avatar for Nickair

Hi i am trying to find a good C++ tutorial to help get me started with programming. Does anyone know of a good one?

Software Development c c# c++
Member Avatar for tux4life
0
104
Member Avatar for scrypt3r

I have just wrote a quick task manager-like-app that shows you running processes and the threads and affinity etc but i have a problem, on all of the processes it returns that the process affinity is 3?? (i have a dual core) Why would it return 3?

Software Development
Member Avatar for ddanbe
0
74
Member Avatar for daviddoria

I found some code to parse command line arguments (is there an easier way? sed always seems so complicated...) [code] #!/bin/bash for i in $* do case $i in --files=*) FILES=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` ;; --default) DEFAULT=YES ;; *) # unknown option ;; esac done echo $FILES echo "File …

Software Development shell-scripting
Member Avatar for hexram
0
110
Member Avatar for bolx

Hi there, i have an assignment, and i need to create a monthly expenditure. I have managed to get alot done, a fully functioning menu and all the functions. Im stuck when it comes to deleting an entry I have been using structured arrays to store data, ive posted all …

Software Development app-store c++ ios
Member Avatar for bolx
0
141
Member Avatar for Trav580

Ok, so I just started using Python last week and I have written 4 VERY simple, non-GUI programs. This is for my intro to game physics class and I happen to be stuck on the last project until my next class. What this project is SUPPOSED to do is ask …

Software Development gui python
Member Avatar for Trav580
0
453
Member Avatar for viki0077

I'm really a beginner in C++ programming, and the above problem is just a part of c++ excercise. Can somebody give me a tip how to implement this in C++? The biggest problem for me is to implement and write this: • red+yellow light on cat traffic light is 2 …

Software Development c++
Member Avatar for tux4life
0
8K
Member Avatar for jomacho

Hi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i only got the source code for it, one header file and 6 cpp files. …

Software Development c++
Member Avatar for tux4life
0
127
Member Avatar for vidaj

Hi, In my current project I'm trying to compose some objects at runtime based on a string containing the object-configuration. Based on the "Favour composition, not inheritance" pattern, but done runtime. My usecase: I have a downloader that downloads web-pages. The downloader is configured with a set of request-handlers and …

Software Development python
Member Avatar for vidaj
0
105
Member Avatar for Egypt Pharaoh
Member Avatar for gbeltrao
0
96
Member Avatar for rock9449

i am a bit confused on how to start this i have to write a for loop to read in 10 number , write bubble sort having 2 nested for loops and writing a loop to output to sorted array [code] int main () { int total_neg=0;// intialize int total_pos=0; …

Software Development c++
Member Avatar for WaltP
0
152

The End.