43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for henpecked1

I'm being asked to make my default constructor "interactive" by having it prompt for an input and store the three phone number pieces you see below. They are strings, and they get called for display in main with the telnumber yournumber piece of main. How would one do that? [code] …

Software Development c++
Member Avatar for henpecked1
0
133
Member Avatar for grvs

In C,how to define an array which is of a length specified by the user? I tried writing a code, but outputs were strange. Sometimes first two elements are correctly displayed, sometimes only first. Other seems some random values (extremely large sometimes). May be the problem is in initializing the …

Software Development c
Member Avatar for grvs
1
728
Member Avatar for Magda

Hi all, I am currently revising for an exam which will cover all the basics of object-oriented programming, it was going quite well until I met Collection :) I have got two questions to which I have started writing answers to but got stuck...Could someone please have a look at …

Software Development java
Member Avatar for Ezzaral
0
339
Member Avatar for Zolookas

Hi, i am new to c/c++ and i need to execute external cabextract program to extract archive, but if i sprintf command and file name to command variable i get segmentation fault. How i need to modify code to avoid segmentation fault? Here's an example: [CODE=C++]void cabext(const char *fname) { …

Software Development c++
Member Avatar for Zolookas
0
913
Member Avatar for BluePaper

For my computing project last year I created a simple booking system in Access 2003 with a little bit of VBA to enhance it a little. However this year I need to improve it. One of the main problems I found with my booking system is that double bookings can …

Software Development vb.net
Member Avatar for BluePaper
0
430
Member Avatar for henpecked1

I have the function below in three base classes, one base, then one derived, and another derived from the second. I'm getting external resolution errors when I try to build it. [code] virtual void printtostream(ostream& out); //Since it is a virtual function the above was not defined in any of …

Software Development c++
Member Avatar for henpecked1
0
128
Member Avatar for jaasaria

sir, question.. can i get the exact len of string when quering? because i have two format in my TransID. The one is the 10digit for the MSAccess and the another is the 11 Digits in my MySql. So if i update all in the MySql database the problm is …

Software Development visual-basic
Member Avatar for jaasaria
0
130
Member Avatar for henpecked1

I have a "two stage" inheritance piece I'm writing. The overall class is telnumber, the worknumber is derived from telnumber, and billnumber is derived from worknumber. The problem is in in my billnumber.cpp. In the main there are two lines referring to the billnumber class with only 4 parameters, and …

Software Development c++
Member Avatar for henpecked1
0
175
Member Avatar for VernonDozier

Hi, I am writing a program where I want the user to be able to e-mail me feedback, so I have downloaded javax.mail and I'm trying to send myself an e-mail to test it out. I have Yahoo Mail Plus. Below is my code, which I tweaked from one of …

Software Development java session
Member Avatar for VernonDozier
0
847
Member Avatar for C41R0

can i have more then one JTextArea and JTextField for one inner class (MyUndoableEditListener())? [CODE=JAVA] . . MainTabbed mPane = new MainTabbed(); . . . mPane.area.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.locField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.dateField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.ndBuddyField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.depthField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.firstBuddy.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.weightField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.timeInField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.tOutField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.sTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.bTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startField.getDocument().addUndoableEditListener(new …

Software Development java
Member Avatar for C41R0
0
192
Member Avatar for C41R0

currently i am facing a problem for these method. when my program copying or cutting a selected text and paste to another selected area, unexpected result, it paste the selected text to all of the fields and areas of my program. is there anyway to check current selected area or …

Software Development java
Member Avatar for C41R0
0
121
Member Avatar for ff4930

Hello everyone, This program compiles fine and runs fine in Eclipse(C++ IDE) but when I compile it in UNIX and Visual Studio its fine but when I run it, it gives me an error. For Unix is segmentation fault The problem is when I initialize VNT, it calls Matrix and …

Software Development c++ ide os-x unix visual-studio
Member Avatar for ff4930
0
79
Member Avatar for 007tron

Hi all, i was hoping some on could help me solve this problem i am having:i have been going over it for the past two hours but can not find the mistake\s. I have three files i am working on 1 header and 2 cpp ones(implementation of header file and …

Software Development c++
Member Avatar for 007tron
0
134
Member Avatar for suriname0

Hello! I have a little problem. I am a relatively new Java learner, and I just finished a little project for a friend. I use an IDE, called JCreator, that solves basically all of my needs without ever having to touch the command line. Since all the coding I've done …

Software Development ide java
Member Avatar for suriname0
0
134
Member Avatar for FreeFull

[CODE=c++]#include <iostream> using std::cout; bool help = 0; bool expl = 0; int main(int argc, char *argv[]) { for(int i=1; i + 1 <= argc; i++) { if((argv[i] == "-h" | argv[i] == "--help" ) && help != 1) { cout << "This is an experiment for parsing arguments.\n" << …

Software Development c++
Member Avatar for William Hemsworth
0
122
Member Avatar for TheOneElectroni

Hi everyone, I'm new in this forum. By the way it's not longtime since I started learning python. After a couple o months of studying and tutorialing I'm now nearly finished with my first application. I've used Tkinter as GUI and there's one thing that's making me nervous: I want …

Software Development gui python tkinter
Member Avatar for TheOneElectroni
0
3K
Member Avatar for Jennifer84

I wonder something. I have a Form with Vertical ScrollBars. When running this code below that are inside a buttoncontrol when the scrollbar is at the top of the Form, the Form Scroll downs a bit, perheps 5-10 cm. This is because I set button1->Enabled = false; [I](I don´t know …

Software Development c++
Member Avatar for Jennifer84
0
437
Member Avatar for joshmo

I am doing a simple program that will add elements to a static stack using structures but Iam failing to implement it. The proram accepts input the first time but then crashes after that. Here is my structure declaration [code=cpp] struct stack{ int top=1; int values[4]; }; [/code] the definition …

Software Development c++
Member Avatar for Sky Diploma
0
90
Member Avatar for 007tron

Hello everyone, I have got some questions and i am really hopping someone could help me out with them. I have a class privately encapsulated in another class. Now, I'm trying to make an object of it in my testDriver but I'm not quite sure how to do that. I've …

Software Development c++
Member Avatar for 007tron
0
119
Member Avatar for theUnspeakable

[code=cplusplus] #include <iostream> #include <string> using namespace std; int findNum () { int num; cout<<"You have 10 chances to guess the number that is generated by this program."<<endl; cout<<"All numbers generated are of positive integers"<<endl<<"Good Luck!!"; cout<<"Enter you guess "; cin>>num; return num; } string start (int guess) { int …

Software Development c++
Member Avatar for Sky Diploma
0
94
Member Avatar for daviddoria

Right now this is my setup: I have these classes Point2 Point3 Vector2 Vector3 Ray2 Ray3 Both Point classes and both Vector are independent. Ray2 contains a Point2 and a Vector2 object, and Ray3 contains a Point3 and a Vector3 object. I have two questions. 1) Should I somehow just …

Software Development c++
Member Avatar for Radical Edward
0
115
Member Avatar for Yourself

hi, I develloping an engine but I have an small error and can't find it... I want the user the say with icon he wants to use for his program : [CODE] WNDCLASSEX wndclass; // ... wndclass.hIcon = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIcon())); wndclass.hIconSm = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIconSmall())); // ... void SetIcon(WORD icon) { m_wIcon = …

Software Development c++
Member Avatar for Yourself
0
345
Member Avatar for kux

Hello, I have a CListCtrl and a button to modify the selected row in the CListCtrl. My problem is that my list has several columns and I want to be able to select a row by clicking on any column of the row that I want selected. Now I can …

Software Development c++
Member Avatar for Aashath
0
1K
Member Avatar for Cybulski

I'm trying to call this function requested times. All functions and variables are members of one class, access is public. So, I'm calling like this: [code] void MultiReader::CreateThreads() { unsigned int nThreadNo; for( nThreadNo = 0; nThreadNo < vDirectories.size(); nThreadNo++) { CreateThread( NULL, 0, &MultiReader::ReaderThread, vDirectories.at(nThreadNo).sDirectoryName, 0, NULL); } } …

Software Development c++
Member Avatar for Cybulski
0
883
Member Avatar for joshmo

I am studying stacks, queues, and heaps at the moment but i dont know how i can apply this in real life. Well my question is how can these may i say operations helpful and when are they really needed as opposed to others. I hope you can get my …

Software Development c++ queue
Member Avatar for Alex Edwards
0
140
Member Avatar for theOneCalledJef

I am working on making my own chat server and client, but have reached a little hiccup. The first line of text that the client send is not displayed by the server. Everything else is, just not the first line. Client [code=python] import socket uname = raw_input('username:> ') uname = …

Software Development client-server python
Member Avatar for tac
0
164
Member Avatar for ahmbil

Hello please can somebody help me to display a listview item to a textbox.

Software Development listview visual-basic
Member Avatar for cometburn
0
104
Member Avatar for Pikachumanson

Hello everyone. This is my first post here. I am only posting here under the most extreme circumstances because I cannot for the life of me figure out how to make my save function for RPG game to work. So for it will only save in the first room. So …

Software Development c++
Member Avatar for Pikachumanson
0
261
Member Avatar for GallantAlex

Hi everyone, I am a just beginning Win32 Application Programming for C++. I really couldnt find any site that didnt confuse the heck out of me. Alrighty, I'm not here to ask you questions about acutally learning Win32, but i would like to know if you could recommned me a …

Software Development c++ visual-studio
Member Avatar for William Hemsworth
0
487
Member Avatar for Software guy

hi , i am tryin to put all the upper case alphabets in an array list and , then i want it to print on screen , but for some particular reason i am getting no result but a strange output. here is the code and result: [code] void buildAlphabet() …

Software Development java
Member Avatar for Ezzaral
0
130
Member Avatar for witternb

Hello Everyone, I am very new to VB and currently using VB Express 2008 to create a simple program. However, I am running into a syntax error on my update code. I have done some research on the web but cannot find a common thread. I am hoping some of …

Software Development vb.net
Member Avatar for witternb
0
146
Member Avatar for linux

Is there any way for someone to, using PyGame or SDL, to do, say: [code]00000000 01222100 01112110 01112110 01111110 00000000[/code] And have it display the 0's as a water tile (10x10), the 1's as a grass tile (10x10), and the 2's as a rock tile (10x10)? As to make maps …

Software Development python
Member Avatar for linux
0
144
Member Avatar for elhallouf

hey all. I am trying to assign unique IDs to a list of strings I get from a file Let's say my list (list.txt) is: [CODE] Shoes from Italy 1 Shirts made in Japan Shoes from Italy 2 Shirts made in France Boots made in United Kingdom Socks [/CODE] I …

Software Development python
Member Avatar for slate
0
248
Member Avatar for eng.N

hello, I need to register a new Employee's Car , In my database , there are two tables ( Car_info , Emp_Info ) and I created a relation between them : (Car_info table) Column [B]Car_no [/B]As [B]Primary Key [/B] and (Emp_info table) Column [B] Car_no [/B]As [B]Foreign Key [/B]. [COLOR="Green"]This …

Software Development open-source vb.net
Member Avatar for eng.N
0
89
Member Avatar for madhavipoudala

please help me. I need help from you all. I enable to excute the servlet program . the deployment process is also correct , i am doing with the tomcat server, i had set the class path also. the compliation of the java file is also complied, only while excuting …

Software Development java java-netbeans web-server xml
Member Avatar for peter_budo
0
133
Member Avatar for Pgmer

Hi all Im loading list box with availabel datetime formats . but it is loading all the date time formats twice... here is my code: Dim dateTime As DateTime = New _ DateTime(Now.Year, Now.Month, Now.Day, Now.Hour, _ Now.Minute, Now.Second) Dim d() As String = Nothing d = dateTime.GetDateTimeFormats() lstdateandtime.Items.AddRange(d) how …

Software Development vb.net
Member Avatar for Pgmer
0
169
Member Avatar for elhallouf

Hey you all I am starting with python (more familiar with shell in general) I am trying to write a script that replaces a column in a text file with numbers (or IDs) from an other file. Let me rephrase it : I have 2 files: ITEMS.txt and IDs.txt Items.txt: …

Software Development python
Member Avatar for elhallouf
0
162
Member Avatar for SirDorius

Hello all! I'm new here I was looking through a program and I was wondering what this instruction is: [CODE]LEA EAX,DWORD PTR SS:[EBP-34][/CODE] I know that LEA moves the offset of the second argument into EAX but I don't understand the segund argument very much: [CODE]DWORD PTR SS:[EBP-34][/CODE] I'm guessing …

Software Development assembly
Member Avatar for SirDorius
0
129
Member Avatar for Software guy

Hi, i have a problem here , i have made a class which has three methods , first method is to get size of the array and assign a random number to every element of array. Second method is to just print the whole array , while the last method …

Software Development java
Member Avatar for Software guy
0
155
Member Avatar for jesouhaite08

I created a program and when I click on it, it launches the server and runs at [url]http://127.0.0.1:8000[/url] This is my code for it: pyweb.py: [ICODE]import os, sys sys.path += [r'c:\dev\incidents'] os.environ['DJANGO_SETTINGS_MODULE'] = 'incidents.settings' from django.core.management import call_command from threading import Thread t = Thread(target=call_command, args=('runserver',), kwargs={'shutdown_message':"done", 'use_reloader':False}) t.start() import …

Software Development python windows-server
0
54
Member Avatar for ronnix

Hi, It is possible to get values from thread , while thread is executing , but not yet complete? if it is possible then how can I realise it in python? with hope to solution

Software Development python
Member Avatar for BearofNH
0
89
Member Avatar for marcux

Hi all! I am all new to shell scripting. I am trying to make a script that searches for a folder and then adds it to PATH First I am serching for the folder: [CODE]find /usr/local -name "jdk1.6*" -type d[/CODE] If version 1.6 of Suns java is installed I get …

Software Development shell-scripting
Member Avatar for eggi
0
125
Member Avatar for Blaine Tuisee

I'm creating a simple application in C# using ASP.NET. I'm trying to give it a sort of login pop-up box. It won't have username and passowrd but instead ask for a program number, name, email address and phone number. Any ideas?

Software Development asp.net
Member Avatar for Ramy Mahrous
0
88
Member Avatar for Utter_iMADNESS

Hi everyone. I'm making a simple text rpg and battle system with C and I was just wondering if it was possible to add sounds to it. I've heard that it's possible with C++ but I'm not sure if it's possible with C as well. Any help is greatly appreciated …

Software Development c
Member Avatar for jantazone
0
162
Member Avatar for bobraj

hi all, i am new to programming, my problem is that after certain data manipulation i will a array which will have only zeros & ones. (example x[5]={0,0,1,0,1} now i would like to store the contents of the array in another variable like A(say)=00101. but the codes which i written …

Software Development c
Member Avatar for bobraj
0
125
Member Avatar for AnjaliAnuradha

Hello, As a part of my program, I have to convert a column of strings in a vector(containing strings of both upper and lower case) to uppercase. The column is accessed as array.at(i).at(2) I have tried to convert character by character using toupper() , but I didnt work for me. …

Software Development c++
Member Avatar for Nick Evan
0
134
Member Avatar for acecombat

I'm trying to have VB open a basic 1 line settings text file but I want it (for first time users) to create the file if it doesn't exist, but I can't open the file without getting an error. How do I go about creating this file if it doesn't …

Software Development file-system visual-basic
Member Avatar for selvaganapathy
0
1K
Member Avatar for c++noobie

Ok, I was trying to write a program that formats a plain text file to the formatting standards of gamefaqs.com (no trailing spaces and no more than 79 characters per line). To my eyes, my code looks perfectly fine and effective. If I run it with anything but a file …

Software Development c++ ios
Member Avatar for c++noobie
0
196
Member Avatar for Sawamura

Hi all... I got problem here.. I want to search how much a certain characters in words in text box. Please help me to solve this...

Software Development vb.net
Member Avatar for Sawamura
0
256
Member Avatar for Derice

Hi, there. I am looking links and sources for studying and understand way to navigate around windows directories. This can be easily seen especially during software installation where user is able to change the installation path. Is it related to the CommonDialogAttach.* ? Please give me a helping hand for …

Software Development visual-basic
Member Avatar for Derice
0
75

The End.