43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nachon

Hi Everyone. I'm kind of new. For some weeks I've been studying cpp using devcpp and it worked just fine. I changed my PC and now I am trying to program in Builder c++. I am reading a Builer tutorial and Im doing OK with the frames and all of …

Software Development c c# c++
Member Avatar for nachon
0
145
Member Avatar for dnmoore

I have to create a program to calculate the number of years it will take to become a millionaire if i invest a certain amount and receive interest on it. I need a little help on how to start it, the only thing i have so far is we have …

Software Development java
Member Avatar for stultuske
0
527
Member Avatar for adiel224

public void update(....){ //complete here .....

Software Development java
Member Avatar for stultuske
1
85
Member Avatar for emilio

my class has an enum definition as property, and an enums type array as property like this: [CODE=java]public class GameBoard implements Serializable , Cloneable { private final int N = 8; public State[][] Board = new State[N][N]; public enum State { empty,player1,player2; }[/CODE] i want to write a clone method …

Software Development java
Member Avatar for emilio
0
96
Member Avatar for Kidd87

When I excute my program and open up the text file, it only reads me the 1234 then junk below it. I have no clue what do. Anything is welcome. Below is my .cpp file my text file looks something like this 1234 jack hammer 75.00 .45 10 5678 Daffy …

Software Development c++ file-system flash linked-list
Member Avatar for Ancient Dragon
0
96
Member Avatar for lllllIllIlllI

Hi everyone What i am doing now is creating a program that the user can change the way buttons look half way through. My problem is i couldnt work out how to update the wx.Button's style while the program is running. I was wondering if anyone could help me for …

Software Development python
Member Avatar for lllllIllIlllI
0
156
Member Avatar for ahamed101

Hi everyone, Need a small help. I need to read the data from stdin (standard input) without hitting enter. Need to read the data as in and when they are typed in until EOF (CTRL + D as I am using UNIX) is encountered. I tried, getc() - requires ENTER …

Software Development c unix
Member Avatar for ahamed101
0
491
Member Avatar for dickersonka

I am determining what method to call by using the runtime class. My problem is whenever I pass in a null object, obviously it will throw a null reference exception. How are you able to determine at runtime the class of a null object. Although its null i need to …

Software Development java
Member Avatar for dickersonka
0
1K
Member Avatar for DemonGal711

I'm trying to read a line from a text document so I can move it into an array. So I've tried to get this to work out and it stops when it sees the "while" line. [CODE]void input (ifstream& file, int& end, string word[]) { int x = 0; string …

Software Development c++
Member Avatar for DemonGal711
0
105
Member Avatar for DemonGal711

Okay, I have this program I have to write. I think I get the basis of the idea, but I'm a little confused about parts of the instructions. Here's the instructions. [B]Write a C++ program that uses bit strings to represent sets, and finds A^B, AUB, A-B, where A and …

Software Development c++
Member Avatar for DemonGal711
0
119
Member Avatar for acoxia

Hello i have a quick question working on a hangman project and have most of it done but i was wondering how to count how many letters a word has in order to have the right amount of spaces wondering if a function or something exists or a link to …

Software Development c++
Member Avatar for acoxia
0
115
Member Avatar for phynias

i have a modsecurity log that i want to pull a couple things from. here is an example line [05/Mar/2008:12:50:07 --0800] [[url]www.mydomain.com/sid#1ef44178][/url][rid#2042fa58][//member/index.php][2] Warning. Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required. [file "/usr/local/apache2/modsec/modsecurity_crs_21_protocol_anomalies.conf"] [line "41"] [id "960015"] [msg "Request Missing an Accept Header"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER"] so i want to …

Software Development shell-scripting
Member Avatar for manik007
0
129
Member Avatar for BlackNinja

hi im new to java and just need a little help in the right direction. I am trying to display an input of int on number at a time. So for example the user would enter 1998 and the output would be: 1 9 9 8 and we have to …

Software Development java
Member Avatar for Ezzaral
0
135
Member Avatar for renoss

Hi, My problem is that I need to tell class A to repaint, but from class B. Class B will be a thread that updates components of class A and will eventually tell A to repaint. The basic idea of my code is as follows: [CODE] class A extends JPanel{ …

Software Development java java-swing
Member Avatar for Ezzaral
0
122
Member Avatar for c++ prog

hi, im creating a simple game here...its a shooting game...so how can I make my program read the keyboard to control the player's movement around?tnx in advance

Software Development c++
Member Avatar for Duoas
0
264
Member Avatar for shxrainz

Hi, I have created a login form that has adminid and password.. I use visual studio 2005,database access. login form work smoothly when i enter the correct adminid and password but never display an error message if wrong data was entered or no data was entered. I need a help …

Member Avatar for shxrainz
0
150
Member Avatar for asifjavaid

hi guys, i have declared a char pointer. i am using this in itoa() function to convert integer data into hex data e.g [code] char * hexData= NULL; itoa(1484820,hexData,16);[/code] this results in equalent of 1484820 in hex decimal and store it in hexData. now when I want to some process …

Software Development c++
Member Avatar for ArkM
0
173
Member Avatar for matejkralik

Hey professionals, I use DataGridView that allows me to add new rows in table. But when I want to delete it by clicking on my deleting button with following code: DataGridView.Rows.RemoveAt(DataGridView.CurrentCell.RowIndex); ...it makes problems, others rows aren't problematic to delete but this is. But not on purpose I want to …

Software Development dataset xml
Member Avatar for Renukavani
0
101
Member Avatar for dinilkarun

Hi friends, I have a custom tree control(Tree control) and a check list box placed next to each other on a frame.i.e., tree control on the left side of the frame and check list box on the right. I need to place sizers such that on exapnsion of the frame, …

Software Development python
Member Avatar for lllllIllIlllI
0
114
Member Avatar for plike922

I need help with program i cant find a way to get rid of the error and if i think a little bit more my head will explode this is a 2day program for me [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include "string.h" using namespace std; …

Software Development c visual-studio
Member Avatar for rpiper138
0
83
Member Avatar for dinilkarun

Hi friends... I have a frame with a panel which contains a static bitmap. On resizing or expansion of frame, I want the bit map to be at the centre position with refernece to the frame always irrespective of the size of the frame. Please help!!! Regards, Dinil

Software Development python
Member Avatar for dinilkarun
0
81
Member Avatar for smile4evr

hi every1... i hv a doubt in updating my date... i hv a textbox asking for the number of days(days1).... n a dtpicker1 that should show the date after the number of days(days1) from the date the form is run and submitted.... there is a lable today that takes the …

Software Development visual-basic
Member Avatar for smile4evr
0
112
Member Avatar for MylesDBaker

Hello everyone. I am trying to create a program that reads these values / strings from a file: 170 Lipstick 250 Orange Crush 350 Chickadee 450 Green Grass 550 Monaco 750 Toffee Crunch Then I am supposed to create a menu that prompts the user to provide either the number …

Software Development c++ unix
Member Avatar for MylesDBaker
0
152
Member Avatar for bpacheco1227

I need to average the numbers in the array and display and also detemine the letter grade and display. I've managed to average the numbers but I am unable to display the lettergrade, (won't compile) I think it has to do with "Average Grade" being a constant string This is …

Software Development vb.net
Member Avatar for bpacheco1227
0
156
Member Avatar for Tekito

I have created a class module, and my program creates many instances of the class. Each object has a lot of data, and I want to be able to create a new instance that is a copy of an existing instance. I can't figure out a automatic way to do …

Software Development visual-basic
Member Avatar for Tekito
0
711
Member Avatar for predator78

Hey all, still working on my lil program. But now that I'm getting into loops I'm pretty confused on this one. Needless to say I think this is the first while loop I have used since I started python about a week ago. What I'm trying to do at this …

Software Development python
Member Avatar for predator78
0
117
Member Avatar for monkey_king

I've been overloading some methods for a template class. This means I can write my code in this way. [CODE=c++] myClass var3=var2+4; [/CODE] Is it possible to do it the otherway around like [CODE=c++] myClass var3=4+var2; [/CODE] I know that the end result will be the same, I was just …

Software Development c++
Member Avatar for monkey_king
0
149
Member Avatar for bmead

Howdy, I'm a total newbie to scripting and I can't figure out the proper syntax to shell script a for loop for the following scenario: I have a directory of symbolic links to backup log files. I want to loop through the dir to cat the last 21 lines of …

Software Development shell-scripting
Member Avatar for bmead
0
107
Member Avatar for SoulMazer

I started programming in Python as a hobby a few weeks ago, and I have run into a little problem. I am currently making a script to give me a sort of Vocabulary Test. It is kind of hard to explain so I will just show you the code. [code=python] …

Software Development python
Member Avatar for Dunganb
0
2K
Member Avatar for intelli

i have to write a simple java program write an application that determines the value of coins in a jar and prints the total in dollars and cents. Read integer values that represent the number of quarters, dimes, nickels and pennies so i did it i don't know where to …

Software Development java
Member Avatar for intelli
0
2K
Member Avatar for bonnie1702

Hi there! I am just starting out in c++ and so far, its going ok. I have a small problem in a simple program that is frustrating me, so I am hoping someone will point me in the right direction of where I've gone wrong. The program basically prompts the …

Software Development c++
Member Avatar for bonnie1702
1
221
Member Avatar for ravikiran032

i would like to how a host name is stored and it's structure in dns (domain name service) along with ipaddress.by which name a normal client computer is given it's hostname in the dns. here the client availing particular host name does not pay for it. in my computer i …

Software Development dns java
Member Avatar for ravikiran032
0
127
Member Avatar for kux

Compile this code with MSVC2005 [CODE] unsigned short x = 20; unsigned short y = 20; for ( unsigned long i = 0; i < x * y ; i++ ) { cout<<i<<endl; } [/CODE] and u get warning C4018: '<' : signed/unsigned mismatch why? i mean, it all runs …

Software Development c++
Member Avatar for kux
0
133
Member Avatar for ninwa

Howdy. I am very new to C# so I please forgive my ignorance. I was reading about jagged arrays and multidimensional arrays. I am trying to understand why the following code will work as I would expect it to. [code=c#]int[][] intJaggedArray = new int[5][]; intJaggedArray[0] = new int[5]; Console.WriteLine(intJaggedArray[0].Length); [/code] …

Software Development
Member Avatar for LizR
0
128
Member Avatar for cutedipti

what dose the error " Null pointer assignment" means and what causes this error?:idea:

Software Development c
Member Avatar for Ancient Dragon
0
68
Member Avatar for Hinche4

Hi guys, I'm new to this but I have no idea what is wrong with my code and I'm going insane trying to figure it out and its due very soon! I would appreciate any help you can give me! Here's my code: [code=cplusplus] #include <iostream> #include <iomanip> #define ROWS …

Software Development c++
Member Avatar for ArkM
0
311
Member Avatar for defychaos

Hi friends :P I'm needing some help on an assignment. I'm really not sure about all the argument-passing and structure references I have been assigned for my C++ class. Any help is greatly appreciated. I'll continue to work on it in the meantime, but I cannot get it to compile …

Software Development c++ data-structure
Member Avatar for skatamatic
0
120
Member Avatar for vadan

Hi I want to create an array as shown in the class below everything is working fine, but at the end of execution of the program, there is a memory fault Please help me in finding out the problem [code=cplusplus] class a { int i; int arr[]; public: a(); ~a(); …

Software Development c++
Member Avatar for vadan
0
138
Member Avatar for JackDurden

How do I use a pointer with a 2-dim array? I am converting string to char array. char x[25][100]; const char* A= x; A= x.c_str();

Software Development c++
Member Avatar for Ancient Dragon
0
105
Member Avatar for predator78

Hey guys, I been working on a small project I found on another forum. It's supposed to decode scrambled word from a word list in 30 sec or less. Well I'm pretty noobish so my method might not be all that great, but I'm giving it a go and learning …

Software Development python
Member Avatar for predator78
0
164
Member Avatar for Jennifer84

I have put values into 6 elements of the vector Numbers like below. What I wonder is if there is any function to check for the Highest value for a given range of the vector. Say I want to find the highest value from elements [3] to [5] wich in …

Software Development c++
Member Avatar for stilllearning
0
141
Member Avatar for shinta13

I'm completely new to C & need some help =( I want to make this clear.... This is a homework project that I'm stuck on so if you feel this is "cheating" then sorry for "offending" you. How can I change the tax rate in the executable file? This is …

Software Development c
Member Avatar for stilllearning
0
102
Member Avatar for zwench

I have 3 applets like this one that have walkers. What I need help with is adding an action listener to the buttons. I have tried several times and keep getting this error. I did have oneWalkerButton.addActionListener(this); [B]in java.awt.Button cannot be applied to walking[/B] What is supposed to happen is …

Software Development java java-swing
Member Avatar for zwench
0
161
Member Avatar for leegeorg07

hi again i help with my carnival clubs fundraising and being lazy like i am, i wanted to make a program that would tell you how much to ask for after inputting information and would then save it into a text file. using griboullis' help from my other thread about …

Software Development python
Member Avatar for leegeorg07
0
113
Member Avatar for tanha
Member Avatar for tanha
0
115
Member Avatar for CelestialDog

I'm trying to instaniate (not sure if thats correct spelling lol) one of my classes but even though i've spelt the name correctly i keep getting a NameError: main: [code] import os import os.path import shutil print "#######################################################################" print "# FOLDER SORTER - VERSION 0.1 Beta #" print "# This …

Software Development python
Member Avatar for CelestialDog
0
232
Member Avatar for Easter Bunny

i have a small app that reads a forecourt program's database. i want to get the current shift's info from that and display/print it out. SELECT name, liters, amount FROM salemast ORDER BY name the above statement was my first idea, but that didn't add them. just got a long …

Software Development java mysql
Member Avatar for Easter Bunny
0
103
Member Avatar for klactose

Hello, I am writing some testing scripts. At the end of each test I may have to return my environment back to it's default state using various subroutines in various modules. I realize that using the END block I can run these subroutines, however I have hundreds of these test …

Software Development perl
Member Avatar for klactose
0
121
Member Avatar for gp04lch

hi people, I'm supposed to be creating something like a dynamic item number generator. for example: FROM: A 1 0 111 TO: B 2 0 112 should produce: A 1 0 111 A 1 0 112 B 1 0 111 B 1 0 112 this would be quite easy using …

Software Development
Member Avatar for gp04lch
0
107
Member Avatar for waldchr

This goes out to only the users of Dev C++ (or people knowledgeable with this compiler). I am trying to consolidate all of the files needed to run Dev C++ onto a flash drive so I can use it on multiple computers. I have been having problems getting the app …

Software Development c++ flash
Member Avatar for waldchr
0
173

The End.