199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shouvik

Hi people. well after I started learning C++ I thought why not try out my skills in some programming so I made my first programme. It is a very basic game commonly known as "HANGMAN" to many. It still might have some errors but it works. Hope you can modify …

Member Avatar for raptr_dflo
0
555
Member Avatar for pote86

The following is my code for login function. I save the password as MD5 but inside the url after logged in it shows the full word instead of showing MD5. I'm still very new to Java EE and any help I can get will be very much appreciated. [CODE]<%@ page …

Member Avatar for pote86
0
2K
Member Avatar for az.rathore

hi i am new to c++ i have problem to solve kindly help me Start with any positive number n. If n is even divide it by 2, if n is odd multiply by 3 and add 1. Repeat until n becomes 1.For example sequence that starts at n = …

Member Avatar for raptr_dflo
0
212
Member Avatar for MRoman

I recently received an assignment in class and I need help really bad. The idea behind this assignment is to create a Network Backup Routine that that has a selection menu (New Backup Item, Remove Backup Item, Exit), I have been trying to create this program but with a sub …

Member Avatar for MRoman
0
202
Member Avatar for FALL3N

[CODE]public class Example { private static void createAndShowGUI() { JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame("Window"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel emptyLabel = new JLabel(""); emptyLabel.setPreferredSize(new Dimension(175, 100)); frame.getContentPane().add(emptyLabel, BorderLayout.CENTER); frame.pack(); frame.setVisible(true); } public static void main(String[] args) { javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); } }[/CODE] In The above …

Member Avatar for FALL3N
0
203
Member Avatar for vishwanath.m

Guys, i have a problem in insert a string in to a vector.To be clear enough i have insert "vishwanath" into a vector can any1 help...

Member Avatar for raptr_dflo
0
177
Member Avatar for aneeka

Good day! Anyone knows how to select latest record of an item..here's the scenario. I have records with the same data except for the date. Example: product_code productname item_code date PR-123 abc TY-01 2011-10-11 PR-123 abc TY-02 2011-10-11 PR-123 abc TY-01 2011-10-13 PR-123 abc TY-02 2011-10-13 PR-123 abc TY-01 2011-10-16 …

Member Avatar for BitBlt
0
121
Member Avatar for phorce

Hello, I'm doing some work on Frequency Analysis and decrypting text.. Basically, this is how I think it works... You take the alphabet (as a char) [code] alphabet[26] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; [/code] Then you read in the string you want to analyse [code] crypt[26] = {'c', 'a', 'b', 'e', 'f', 'f', …

Member Avatar for mrnutty
0
100
Member Avatar for Daigan

Hi, so my problem is that I need a method that does the calculation for my program and return it. Here's what I have so far. It keeps saying that the method needs to return a double value. Can someone help me? Thanks in advance. [CODE]private double spoonConvert (double answer) …

Member Avatar for Daigan
0
71
Member Avatar for simplyhuman

Getting error as parse error-unexpected at line x and error message headers already sent..what does that mean?

Member Avatar for diafol
0
105
Member Avatar for nick6987

i am having trouble with lets say i do not have any test scores and enter -1 there is an error of dividing by zero. [CODE]import java.util.Scanner; public class myarray { public static void main(String args[ ]) { Scanner kbd = new Scanner(System.in); //total number of quiz scores possible in …

Member Avatar for nick6987
0
2K
Member Avatar for Coderunner

Hello, I hope somebody can help me out here ... I'm having a problem with error code while searching a word in a flat file. My flat file[CODE]|~|20091105213652|~|05 november 2011 - 21:36|~|John|~|18 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|John.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105213929|~|05 november 2011 - 21:39|~|Jeff|~|45 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|Jeff.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105220916|~|05 november 2011 - 22:09|~|Paul|~|15 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|Paul.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105221959|~|05 november …

Member Avatar for diafol
0
232
Member Avatar for just_starting

I am trying to write a program that 1. Lets the user write new students and there overall grade to the file, 2. Opens the file to view course info(student and their grade) 3. Shows course stats(mean and range for the class). Here is what I have so far, can …

Member Avatar for just_starting
0
189
Member Avatar for whoatommy

Hi everyone, I am trying to implement pagination in my search engine and am getting an error. Can anyone point out what is wrong in my code? Any help would be greatly appreciated. Thanks. Here is the code, error is: ( ! ) Parse error: syntax error, unexpected ';' in …

Member Avatar for diafol
0
229
Member Avatar for justlearnin

Okay, I am trying to extract text from a text box and redisplay it into labels. Specifically, when the user types in an address, say 123 W Elm, I want to click a button and have the "123" print in one label, the "W" to display in a second label, …

Member Avatar for justlearnin
0
126
Member Avatar for sirlink99

I have an error when I shorten 3 lines of code to one. How come this code works [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Vector; public class Draw extends JPanel implements KeyListener, Runnable, ActionListener{ Vector<Wall> walls = new Vector<Wall>(); Vector<Enemy> enemy = new Vector<Enemy>(); Player p = new …

Member Avatar for sirlink99
0
222
Member Avatar for samymcdonnell

These are the original instructions: "Design and write a python program that emulates a Magic Eight Ball. Your program should continually prompt the user to enter a question and then display the answer as long as the user wishes to continue. Store eight Magic Eight Ball answers in an array. …

Member Avatar for woooee
0
513
Member Avatar for slpefanis

Hi All I am writing an import program to import data from an access database to a SQL database. The table structure in the SQL and Access are the exact same with the same field names. I was wondering if there was a quick way to get the data into …

Member Avatar for lolafuertes
0
702
Member Avatar for bluehangook629

I have a stored procedure that creates temporary table to populate return table. It works perfectly fine when I execute it on SQL management studio but when I try to import this sttored procedure, it give me an error Invalid object name '#TOTAL' which #TOTAL is the temp table that …

Member Avatar for bluehangook629
0
222
Member Avatar for sita12345

Having assertion failure while deleting an element from a vector.What are the causes of assertion failure?

Member Avatar for sita12345
0
367
Member Avatar for Dersev

Hello I have a small problem with Drag and Drop images. Class GridImage creates small thumbnails of images to 100 x 100px Image drag and drop is defined by mouseListener and mousePressed event. I know that actually I am copying component JLabel to class DrawImage with these settings. What should …

Member Avatar for NormR1
0
221
Member Avatar for newvbnetuser

I am trying to write a windows application in vb.net to import data from excel to sql server. I got "object not set to an instance of an object" error. The data actually have been inserted into the sql. The following is my code. I have a button when the …

Member Avatar for bluehangook629
0
330
Member Avatar for bluehangook629

I am trying to create keypress handler that will execute a line of code when Tab, Space, or Enter key is pressed or passed by the scanner gun while the control is in focus. I got it to work with space and enter key but with tab key, the cursor …

Member Avatar for bluehangook629
0
256
Member Avatar for sofia85

Hi, I'm trying to create a new file. In this file I want to add some results I have received from my code. Unfortunately I get a error message saying I can't combine str with list. So then I tried to make a string out of the list and ended …

Member Avatar for sofia85
0
99
Member Avatar for jetlife76

Hi guys, i was watching a video on youtube and noticed that the program the guy was using had a feature where it would pretty much suggest code as he typed. I remember something like this in visual basics and thought it would be cool to help me with PHP …

Member Avatar for jetlife76
0
121
Member Avatar for hughesadam_87

Hey everyone, I have a set of classes which, when instantiated, take up a lot of memory. I'm trying to write a program which can inspect class attributes and methods given a list of classes, without actually instantiating them. Let's say I wanted to see if the following class had …

Member Avatar for hughesadam_87
0
222
Member Avatar for Joey7

Hello, Ok so this is a fun assignment, but I just can't figure it out. My Python program should ask the user for a series of words, then fill in the proper places in the story using the user’s answers. We will use the [...] notation for placeholders. For example, …

Member Avatar for TrustyTony
0
138
Member Avatar for applejax77

I am working on the payroll calculation program below and would like some help with the JTextField area. I would like the program to respond with a GUI window letting the user know that the JTextField is blank and must enter First name, last name, and so on. Any help …

Member Avatar for applejax77
0
1K
Member Avatar for zeus god

can an1 plz :)help me to write a program to reverse the individual words present in a string ?? exampe:- my name is raju ym eman si ujar

Member Avatar for YAMNA MIDHAT
0
240
Member Avatar for hypno2000

allow HTML in text area - PHP Postby hypno » Sun Nov 13, 2011 9:56 pm I am working on php based site.( :( and I am a newbie in PHP) . A upload form is part of the site. When tested submiting the form, whatever HTML tag I input …

Member Avatar for diafol
0
161
Member Avatar for Joey7

Hello! I need to: 1. Prompt user for text file 2.Analyze file and graph (with bar plot)the 25 most frequent words with length greater than 4 3.The x axis needs to show the word. The a axis is the frequency. I've built the bulk of the program so far, but …

Member Avatar for woooee
0
155
Member Avatar for Start4me

Color custom cursor appears to be black when I run the program. The color custom cursor is imported from desktop by using Resources in vb.net. When I run the program the cursor turns out to be black. HOW DO I FIX IT? [CODE]Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1) Button1.Cursor = New …

Member Avatar for Start4me
0
867
Member Avatar for ThisBoy

Hi there, This is my first time posting so I am sorry if its not perfect I am working on a FreeCell game right now where I need to deal a deck of cards into 7 separate piles. This is the code I have right now for dealing it into …

Member Avatar for woooee
0
124
Member Avatar for sethii

Hi everyone! This is my first post and i'm also a newbie so don't be harsh on me! I have this exercise to do which asks pretty much what the title says. I have a function that reads strings from a file and puts them in an array. Then I …

Member Avatar for YAMNA MIDHAT
0
229
Member Avatar for swetha.y

Hi, I'm writing Java program to map two files.How can string input be given in Java? Thanks in advance.

Member Avatar for swetha.y
0
132
Member Avatar for fsefsef23

I'm trying to figure out where a proper place to put a comparison counter to count the number of 'comparisons' made in a quick sort is. This is my code so far, I have one counter where I think it should go, but I'm not sure if it should place …

Member Avatar for mzimmers
0
7K
Member Avatar for Drugsxxx

Hi i have a code that shows me some repitnig data from .txt file. Code looks like: [CODE]$getText = file_get_contents("Kier.txt", true); $Poln = substr_count($getText ,"Polnoc"); $PolnW = substr_count($getText ,"Polnocny-Wschod"); $Wsch = substr_count($getText ,"Wschod"); $PoldW = substr_count($getText ,"Poludniowy-Wschod"); $Pold = substr_count($getText ,"Poludnie"); $PoldZ = substr_count($getText ,"Poludniowy-Zachod"); $Zach = substr_count($getText ,"Zachod"); $PolnZ …

Member Avatar for diafol
0
131
Member Avatar for YAMNA MIDHAT

i have made a program with this algorithm but its not working properly my code is given below can you help me to remove the errors [CODE] #include<stdio.h> #include<conio.h> void main() { FILE *f; char ch; int nalpha=0,nword=0,nno=0,nsc=0; f=fopen("abc.txt","r"); if(f!='NULL') { while(ch=getch(f)!=EOF) { printf("%c",ch); if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')) nalpha++; else if((ch==' ')||(ch=='.')) nword++; …

Member Avatar for YAMNA MIDHAT
0
166
Member Avatar for Vicky288

Hi, Below is the source file and make file I 'm using. while building I'm getting the below error in the console. From the error its evident that its unable to find function definition .Can anybody help me to fix this. Console output:- **** Build of configuration Debug for project …

Member Avatar for gusano79
0
2K
Member Avatar for yznk

I am writing code for reading a matrix from a file and deciding which type of relations it has. ie. Reflexive relation. However i am getting this error: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'Binary' (or there is no acceptable conversion) …

Member Avatar for gusano79
0
725
Member Avatar for sidra 100

i m making a BMI calculator GUI which calcuates weight in corresponding to height shown on slider but there is some error in program. problem lies in following line [CODE] int value = slider.getValue(); int weight=0; if (if buttonGroup.getSelected()=="Male") { weight=value/28; } else if (buttonGroup.getSelected()==Female) { weight=value/30; } System.out.println("weight");[/CODE]

Member Avatar for javaNooblet
0
97
Member Avatar for powerdink

Hello all, I'm trying to inherit a "CarPanel" I created using arrays to draw various shapes in order to make a car. Now I am trying to essentially create a subclass that inherits that class, but add a Timer Action to move the car across the screen. I got it …

Member Avatar for JamesCherrill
0
509
Member Avatar for Griff0527

I would like to start this post off with, I am not looking for someone to do my homework for me. If I was looking for someone to "do it for me", I would go to one of the sites where you can pay someone to do your work for …

Member Avatar for Griff0527
0
1K
Member Avatar for smmcfarl

I am working on a binary search tree and have came across a few problems that I can not figure out how to correct and was wondering how to fix them. In my program I am adding, deleting, printing, updating, and counting the total number of nodes. The only things …

Member Avatar for smmcfarl
0
317
Member Avatar for hindu times

Hi there, This is following on from a previous solved thread. Basically, I have this code: [CODE]<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ? 'Error: The captcha was entered incorrectly. Please try again.' : '') . ' </td>[/CODE] I've now been told that the "Error: The …

Member Avatar for jpdeleon
0
340
Member Avatar for csckid

hi, I want to start developing android apps. The problem I faced is that the emulator is kinda slow when it starts. Moreover, it needs a high configure pc. My friend told me to look into other option such as [URL="http://www.openplug.com/"]Openplug[/URL]. The code looks like actionscript and you could deploy …

Member Avatar for peter_budo
0
103
Member Avatar for zing14

I am having trouble finding out how to code this. I understand what each one is and know how to tell by looking but cannot figure out how to create functions to check whether it is either reflexive, symmetric, anti-symmetric, and/or transitive (it can be more than one). Here is …

Member Avatar for zing14
0
4K
Member Avatar for bad_dreams99

Hey All, Here is a really simple piece of code that works as a magic 8-ball program where the user types in a yes/no question and a random response is returned. This could be a good read for new C++ programmers (like me), as it covers a lot of basics: …

Member Avatar for samymcdonnell
0
6K
Member Avatar for poopoo_pp

Hi all Not sure if im posting in the right section so sorry if i am. I have been looking for an open source asset/inventory solution for a friend. I came across Free CMMS on sourceforge.net and for ease of installation and testing installed the latest version of XAMPP as …

Member Avatar for pritaeas
0
405
Member Avatar for pfm200586

hello every one I have a problem that drove me crazy last couple days I know I have to use loop structures but I can't figure out how to put the right pieces together. I'm not asking for a complete answer because I want to learn so please help me …

Member Avatar for L7Sqr
0
917

The End.