43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jrdark13

This is my assignment, before some of you complain, I finished it. It works all I want is something that is in the back of my head bugging me. If a user was to input a letter instead of a number how do I keep the program from crashing and …

Software Development java
Member Avatar for Antenka
0
139
Member Avatar for inked

hi, i need to output the number of sentences in a file. The file looks like this: For the eyeing of my scars, there is a charge, For the hearing of my heart, It really goes. And there is a charge a very large charge, For a word or a …

Software Development perl
Member Avatar for inked
0
195
Member Avatar for ShadyxxLady

I've created my program. I want to open a .txt file and display it in my text box I have named my text box textbox1 and my open file dialog is openfiledialog1 How do I do this?

Software Development display vb.net
Member Avatar for ShadyxxLady
0
4K
Member Avatar for tarekkkkk

plz help and yes submit a direct link if u can and thx for advance plz hurry up i have assignment next week i have to finish it lol

Software Development c++
Member Avatar for jbennet
0
806
Member Avatar for lllllIllIlllI

Hi In one of my programs i use a wx.ToolBar, and this toolbar is meant to show a range of picutes that help the user with doing things quickly and easily. But the thing with mine is that i am using 64x64 images for the toolbar, yet when i set …

Software Development python
Member Avatar for lllllIllIlllI
0
96
Member Avatar for tmoney7566

been working on this for 2 days and can't figure out what I am doing wrong. We are suppose to input a day and the days gifts are to be in the output. When I put in my day it starts with the correct day but then loops through all …

Software Development java
Member Avatar for tmoney7566
0
110
Member Avatar for bh7322

Hi All. I'm new to the forum. I'm having some issues with my program. I seem to be accessing memory that I shouldn't be (surprise, surprise!), but I can't see the problem. Keen eyes are welcome! Any help appreciated. Sample input: [icode] Enter word for retrieval: the[/icode] Sample output: [icode]You …

Software Development c linked-list
Member Avatar for bh7322
0
135
Member Avatar for serkan sendur

Do i need to declare private class member functions in header files? or just the public functions are enough?

Software Development c++
Member Avatar for serkan sendur
0
81
Member Avatar for jdm

I was wondering if it was possible to call a random image in c++. I'm using Dev C++. [code=cplusplus] #include <time.h> #include <stddef.h> #include <iostream> #include <string> #include <ctime> #include <cstdlib> using namespace std; const string password("password"); int main() { string x; cout << "Type the password to gain access …

Software Development c++ image
Member Avatar for Freaky_Chris
0
196
Member Avatar for jsosnowski

I am trying to use a clientdataset without an associated Table. I am attempting to extract and edit data from a Cad program. The Cad program has an interface in which the user selects specific entities within the Cad file (lines, circles, text etc) and provides basic information and attributes …

Member Avatar for mcrosman
0
923
Member Avatar for nagatron

Hallo to all VB programmers. . .I need help in viewing database using list. Please help me. . .I have this list of names in the database and I want to view it using listbox. Thank you for the help. . .God Bless Regards, Neil

Software Development visual-basic
Member Avatar for jireh
0
90
Member Avatar for RahulV

Hi, Im not able to center a child form of a parent MDIForm (MDIForm1) it shows up error message "Invalid property value" while setting the StartUpPosition property to 1-CenterOwner, or 2-CenterScreen, or 3-WindowsDefault of the child form. How can I set all the StartUpPosition property of the child form? Please …

Software Development visual-basic
Member Avatar for jireh
0
691
Member Avatar for skatamatic

I'm trying to right a red-eye reduction algorithm for an assignment at school. The user is asked to click on 2 eyes in an image, then the algorithm takes over and corrects the redness. The algorithm works just dandy, but I'm having a hard time capturing the actual location (in …

Software Development algorithm image
Member Avatar for skatamatic
0
163
Member Avatar for Avaviel

This is for a class. Two of the files are provided, and I need to write the third. I'm having trouble with a constructor in a class. The constructor is called with 'Logbook testLog(month,year)' and it saves the month and year correctly. The daysInMonth function works fine. My problem is …

Software Development c++
Member Avatar for Avaviel
0
175
Member Avatar for Dendei

Hi i got an problem i need to read from an text file that i got from an excel file at start. so i want each block in the excel file to have one space at the array i saved it so it got seperated by ; example: [code] 4 …

Software Development c++ file-system ios
Member Avatar for Dendei
0
231
Member Avatar for adam291086

I have this script and it was working a couple of weeks ago. Now when i run it nothing is printed out other than white space. WHY??? [CODE]#!/usr/bin/env python from xml.etree import ElementTree as ET import os import urllib def find_text(element): if element.text is None: for subelement in element: for …

Software Development python xml
Member Avatar for adam291086
0
106
Member Avatar for TobbeK

Hi I am completely new to C#, so please bare with me .... What I am like to do is to pass variable values between the methods below, and finally print the results in the last method. I have commented the code with explanation. This is for test purposes and …

Software Development c c# c++
Member Avatar for ddanbe
0
163
Member Avatar for jake88

Hey, I have a template xml file that i am passing a pointer to into a function. In that function i need to read and write into the template and pass it as the output file. What is the best way to go about reading and writing in the template? …

Software Development c++ xml
Member Avatar for jake88
0
289
Member Avatar for navinlearns

I have been working on a program that Should Scan a small Subnet i.e for eg 10.1.1.1 to 10.1.1.255 with the subnet mask 255.255.255.0 I am attaching screenshots of the main screen of my project as "Screenshot 1" source code :jMenu.java I am posting the code here: [code=java] package projectpack; …

Software Development java java-swing open-source
Member Avatar for masijade
0
177
Member Avatar for tzushky

Hello , I have had a little surprise and maybe because I haven't read the manual well enough or can't understand all the underlying details. Imagine a small class and another file's main using an instance of that class. If I try to modify (not define !) an INEXISTANT attribute …

Software Development python
Member Avatar for Gribouillis
0
227
Member Avatar for ezkonekgal

When you put an item on a queue, how do you show the items inside the queue? do you use peek method? the situation is a linked queue...

Software Development java queue
Member Avatar for ezkonekgal
0
139
Member Avatar for homeryansta

[CODE=C++]/************************************************* Student: xxxxx ID number: xxxxx Instructor: Dr. Julstrom Class: CSCI 301 Project 1 *************************************************/ #include <iostream> #include <cmath> #include <cctype> using namespace std; const int SIZE = 61; int getinput(char []); void compare(char [], char [], int, int); /************************************************* The purpose of this program is to have a user …

Software Development c++
Member Avatar for homeryansta
0
208
Member Avatar for arun_lisieux

QUESTION : 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20? While trying to solve this problem, i came up …

Software Development c++
Member Avatar for arun_lisieux
0
495
Member Avatar for ashishchoure

can anyone tell is there any utility like glib-mkenum for windows

Software Development c c# c++
Member Avatar for ashishchoure
0
74
Member Avatar for anu123d

Hello all! I am trying to write a program in C , which works as an efficient Login function. It is expected to have following properties: 1.Should accept the username( valid usernames are : '11user1', '12user2' & '13user3' ). The usernames are hardcoded in the program and not stored in …

Software Development c
Member Avatar for anu123d
0
11K
Member Avatar for SoulMazer

For reference, I am using Python 3.0. So, I have a small script I am working on trying to improve. I am now trying to create it with only dictionaries and loops. My problem is that I keep getting a Key Error at one of my lines. The line with …

Software Development python
Member Avatar for SoulMazer
0
161
Member Avatar for FrancisC07

i am using an two dimensional arrays... and i inputed five names on it.. anyone can help me on how to output the five names?? i dont need the whole program.. i just need the code... thnx... ^_^

Software Development c++
Member Avatar for Agni
0
104
Member Avatar for Ole Raptor

I have a Stored Procedure that is called through VB6 for a report. The Reports were working great until yesterday. Now all of the reports that use that sp are timing out. The default time is set to 60. I have adjusted this to 1000 and the report finally displays. …

Software Development visual-basic
Member Avatar for Ole Raptor
0
169
Member Avatar for DemonGal711

I'm working on this program for a new professor and he wants us to write out what are program is going to do before we work on it. So, I've been thinking about the program and I think I'm making it more complicated. Basically, I'm going to be given permutations …

Software Development c++
Member Avatar for DemonGal711
0
124
Member Avatar for kenji

Hi, Im having some trouble with the function and I hope some one can help. The function is supposed to go through an class array and loop for an empty spot. If it finds one its copies data to the data members. Otherwise it creates a temporary array and copies …

Software Development c++
Member Avatar for StuXYZ
0
285
Member Avatar for Coyboss

Hello everybody, I know what I want to do with the code, but I am not sure where exaclty to put the "if" statements. I am working on a weekly payroll program and I need to put in an if statement so it throws an error if the weekly hours …

Software Development java
Member Avatar for Coyboss
0
274
Member Avatar for orwell84

I'm getting into bash shell scripting with Ubuntu 8.10, and the tutorial I'm using is telling me to open the file .bash_profile which is allegedly in the home directory. However, I cannot find this file, except in /usr/share/doc/adduser/examples/adduser.local.config.examples/skel and it's called "dot.bash_profile". Plus, the whole thing is just comments. The …

Software Development file-system shell-scripting ubuntu
Member Avatar for Aia
0
207
Member Avatar for wheatontrue

Hello - my Python 2.5 IDLE used to start up, but now it won't. I tried looking at the preferences - those don't have any glaring mistakes. When I try to start it command line I get the following error: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. …

Software Development microsoft-windows python
Member Avatar for wheatontrue
0
320
Member Avatar for rock9449

[code=cplusplus] #include <iostream> using namespace std; int main () { int choice,num1,num2,answer; cout<<"This is a caculator program which will do math for you\n"; cout<<"Please Choose From one of 4 math operators\n"; cout<<"1 +\n"; cout<<"2 *\n"; cout<<"3 -\n"; cout<<"4 \\n"; cin>>choice; if (choice==1) { cout<<"please enter in two numbers to add" …

Software Development c++
Member Avatar for shasha821110
0
94
Member Avatar for samtan

Was wondering about Null pointers , do they really point to location zero in memory and does that location got all the bits zero. Does this mean a NULL pointer points to itself? [CODE] Node<Type> *A = 0; A = Find_Node(Position-1)->R_Link; [/CODE] I have this code , where "Find_Node" function …

Software Development c++
Member Avatar for samtan
0
116
Member Avatar for starzstar

Hi, I am new to Python and have a requirement to develop a simple requirement to design a login screen, and then a screen which will have two parts in it one will show local files and other files on server I am planning to use tkinter for this is …

Software Development python tkinter
Member Avatar for jlm699
0
115
Member Avatar for leegeorg07

hi again i have been looking at the bacon cipher and i have made this [ICODE]import re dictionaryofcodes = {'A': '11111', 'B': '11110', 'C': '11101', 'D': '11100', 'E': '110111', 'F': '11010', 'G': '11001', 'H': '11000', 'I': '10111', 'J': '10110', 'K': '10101', 'L': '10100', 'M': '10011', 'N': '10010', 'O': '10001', 'P': …

Software Development python regex
Member Avatar for leegeorg07
0
125
Member Avatar for Gribouillis

What do you think would be the best way to write this structure [code=python] if testA: actionA() if testB: actionB() if textC: actionC() else: actionDefault() else: actionDefault() else: actionDefault() [/code] if I want to write only one call to actionDefault() ?

Software Development python
Member Avatar for Gribouillis
0
139
Member Avatar for daviddoria

I put together this little example to test my sanity, and it failed! [code] #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> using namespace std; /* Example.txt 23 test 4.5 */ int main(int argc, char *argv[]) { string Filename = argv[1]; cout << "Filename: " << Filename << …

Software Development c++
Member Avatar for Freaky_Chris
0
780
Member Avatar for mjsmikey

I have been trying to process some text about 10000 lines to upwards of 26000 lines of text. I wrote a program to search for text strings and copy the lines around them if they are found. It searches Line by Line. I need to improve this code speed so …

Software Development audio vb.net
Member Avatar for mjsmikey
0
268
Member Avatar for AdRock

I have an inheritance heirarchy and I need to use polymorphism. I have some questions because i don't really understand it fully. What i have to do is create a vector of pointers (account) to 2 of my derived class objects, SavingsAccount and CheckingAccount. Then for each account in my …

Software Development c++
Member Avatar for AdRock
0
2K
Member Avatar for harryoma

hi, i have one question: does anybody know how to end program. i have one function in whom i calculate two numbers. i want to end program if my number is to big for example 12345 + 91111=103456 but i don't want that my has 6 digits so i want …

Software Development c++
Member Avatar for harryoma
0
195
Member Avatar for brothertse2008

Im having trouble with my internet linking. I have a picture boc named [I][B]picq[/B][/I] that i want the user to be able to click to take them to a web page. i tried the following: picq.picture =(url) im new to this so bear with me

Software Development visual-basic
Member Avatar for brothertse2008
0
192
Member Avatar for slimjimmer

I'm having a bit of trouble with this random number generation function. It's going to be part of a much larger program which requires lots of random numbers so I decided to use time as a seed. However I can't seem to get this to work. This code is virtually …

Software Development c
Member Avatar for slimjimmer
0
179
Member Avatar for serkan sendur

is there any performance benefit of using constant pointer to constant variable like the following? [CODE]void doSome(const int * const param) { //do something ; }[/CODE] i know that making param constant is good for performance, how about making both constant?

Software Development c++
Member Avatar for skatamatic
0
69
Member Avatar for kevinchkin

Hi Guys, I was wondering if you guys could please give me some good project ideas. Projects should be real world problems related and should be of the level of a Masters Student (latter is not that important). Please let me know if you guys have any great project ideas.

Software Development c++
Member Avatar for skatamatic
0
108
Member Avatar for eitan

hello everyone =) can someone help me please to solve somthing..? I have difficulties in my calculator program. I am using the 2005/2008 edition of vb express. I created a calculator with only one textbox, and i can't figure it out how to insert 2 values and make the arithmetic …

Software Development vb.net
Member Avatar for eitan
0
295
Member Avatar for Aue
Member Avatar for serkan sendur

to make the programs more efficient, do i need to free variables which are declared locally in the functions? Are they not disposed when the function ends?

Software Development c
Member Avatar for Narue
0
104
Member Avatar for majesticmanish

Hi all, I have little problem when reading a file char by char and when i tried to make a check at the end of file. I am making a check through '\n' but its not working. Please have a look in the following Program and let me know yours …

Software Development c++ file-system
Member Avatar for majesticmanish
0
170

The End.