64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lynnajoe

Hi, This application does everything but show the circles and rectangles even though visible is set to true. [CODE]package Shapes; import java.awt.*; import javax.swing.*; public class ShapesTest { public static void main (String []args){ String input = JOptionPane.showInputDialog ("Enter 1 to draw rectangles\n" + "Enter 2 to draw ovals" ); …

Member Avatar for lynnajoe
0
154
Member Avatar for salty11

For this code i am inputing one number and trying to see if it is a perfect number [CODE]#include<iostream> #include<cmath> #include<iomanip> #include<conio.h> using namespace std; void perfect(int); int isfactor(int, int); int N, i; int main() { perfect(N); isfactor(N, i); } int isfactor(int number, int divisor) { if(number%divisor==0) return 1; else …

Member Avatar for PathikRaval
0
337
Member Avatar for Tamlyn

Hey everyone :) I'm new to c++ and have just joined this site. Looks great. Hope you guys can help. I'm having trouble with the function calcAllowedPerChild() What I want the function to do: subtract the gifts TOOTHBRUSH, HIGHLIGHTERS, CRAYONS, NOTEBOOK , AND PEN, from the amount left(leftToSpend) while the …

Member Avatar for Tamlyn
0
382
Member Avatar for Katana24

Hi, im trying to create a GUI which will house a BST. When the user enters a number and clicks add, it should display that number as a leaf in a BST. It then adds each consecutive leaf onto the last to create the BST. My problem is actually getting …

Member Avatar for Ezzaral
0
2K
Member Avatar for gspeedtech

Hello, I have a situation where data in a field contains CrLf characters. Code has been in place for a couple of years and many records have been affected. The question is: Should I add code to catch the CrLf characters at the field level? Should I add code to …

Member Avatar for gspeedtech
0
459
Member Avatar for martin11ph

Does VB6 have any feature that allows it to plot points and maybe lines in a 3 dimensional axis? I tried using the MS Charts component but it only allows up to 2D. Any help would be appreciated. Thanks.

Member Avatar for martin11ph
0
409
Member Avatar for leeggodfrey

Hello All, I have a very simple search cursor that is selecting from a table a list of names in order to query a database. It was working fine until I encountered a name with an apostraphe in it. O'Brien for instance. The search cursor is very basic. [CODE] inCur …

Member Avatar for leeggodfrey
0
171
Member Avatar for WolfShield

Hello, I've just recently found out about Python scripting and I am interested in programming an auto login script. However, when looking around, I haven't found any Python web scripting tutorials or guides. If someone could either explain to me how it works, or point me towards a good tutorial …

Member Avatar for WolfShield
0
515
Member Avatar for Mr Programmers

Hi, I am having two issues with making my Maze Game in VB.NET. I want the levels to be difficult to solve so I am making some *sliding* (NOT MOVING) Panels to interrupt the players. These are my problems: 1. I want the Panel to slide (Sliding Up and then …

Member Avatar for codeorder
0
298
Member Avatar for AMADH

Hello, I am trying to learn how to use animation, and i have it working a little but I can't get it to move my box. I was wondering if someone might be able to let me know what I am doing wrong here. [CODE]<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> …

Member Avatar for AMADH
0
239
Member Avatar for opawix

#include<iostream> using namespace std; int main() { int i=119; while(i>=3){ cout<<" "<<i; i--; } system("pause"); return 0; } cout of this is counting 119 decrement til 3 but output should this: 119 94 72 53 37 24 14 7 3 could any1 help? thanks a lot guys!:D

Member Avatar for opawix
0
89
Member Avatar for pharoah85

Could someone give me help on how to simplify this? Trying to write code to solve this equation: Distance = sqrt((x2 - x1)^2 + (y2 - y1)^2 + (z2 - z1)^2) I subbed a,b,c as the second set of coords. Im probably using too many vars as weel but im …

Member Avatar for pharoah85
0
217
Member Avatar for teedoff

Hi I was following a tutorial on sitepoint for creating structs. I must be missing something since I followed the code exactly, but keep getting an error! Here is the code: [CODE]<cfset myBook= structNew()> <cfset a = StructureInsert(myBook, \\"title\\", \\"All About Coldfusion\\", 1)> <cfset a = StructureInsert(myBook, "author", "Teed Younger", …

Member Avatar for teedoff
0
276
Member Avatar for spe_eddy

Sorry - I know this isn't strictly Python, and i'm more asking for a formula than code! Usually Excel functions show how they are calculated but i can't find anything on this one! So given a set of data, predict what the next value will be based on the previous …

Member Avatar for spe_eddy
0
480
Member Avatar for NewOrder

i have a background worker with a sleep method inside a method. (winforms) here is the code that is executed: [CODE] private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; int[] makeSelfMoves = new int[4]; foreach (KeyValuePair<int, int[]> item in replay)// count should be more than …

Member Avatar for NewOrder
0
295
Member Avatar for ibdatx

How can I refresh a window sort of in the combined operations of close and reopen. Thanks.

Member Avatar for ibdatx
0
173
Member Avatar for CorruptionInc

OK, so here's my assignment...ask the user for a sentence, then print each word along with its position in the sentence. Then ask for another sentence... if the sentence is empty, terminate. My code works... but I don't know how to get it to loop back to asking for another …

Member Avatar for CorruptionInc
0
116
Member Avatar for PinoyDev

Good day! I just want to ask on how to setup a site so that when i search the site or business name on any search engine, it will be listed in the search result. Just like in Google. Thank you & God bless!

Member Avatar for PinoyDev
0
322
Member Avatar for EkoX

hi, i try to make a square number but its not limited by 2. number and the square can be any numbers. so its like n^n. please help me.. i confused how to do this.. any help will be appreciated. thanks.

Member Avatar for Wolfgan
0
221
Member Avatar for icehiro

I'm a beginner on MySQL. I tried to run this statement [CODE]SELECT* FROM address WHERE email=a@abc.com[/CODE] but it shown an error message. What's wrong?

Member Avatar for debasisdas
0
79
Member Avatar for rannamaa

Trying to learn c# and dont understand why i cant compare string. [CODE] if (answere == 'j' || answere == 'J') { again = true; } else again = false; [/CODE] How do I do to make this happen in c#?

Member Avatar for rannamaa
0
95
Member Avatar for tomato.pgn

i want a script to upload image and display image in the same page....plus i want another thing that i have many fields in that page...so i want to only refresh image part after uploading to show image.... although i have tried to do so...but i can't do it without …

Member Avatar for tomato.pgn
0
107
Member Avatar for tomato.pgn

plz help me in creating a linked drop down button for date,month and year. means on clicking month like feb it will show date upto 29 and on clicking jan it will show 31. also i need it so that i can made a similar type of linked button for …

Member Avatar for tomato.pgn
0
136
Member Avatar for pito_donje

how to lock the taskbar, control panels & windows task manager on my VB program running time. I do not got a clue about it. help me to code. thank you for your attention

Member Avatar for Jx_Man
0
201
Member Avatar for Skyelher

[CODE]TreeSet goodWords = new TreeSet(); ... Iterator iterGoodWords = goodWords.iterator(); while (iterGoodWords.hasnext()) { String word = iterGoodWords.next(); System.out.println(word); }[/CODE] Tell me, why doesn’t that print anything even if there are some items in the goodWords collection? I know there are items in the set because when I check the size, …

Member Avatar for Skyelher
0
172
Member Avatar for SlyMaelstrom

Hi, I'm doing some work for an Access Database but I caught a snag writing an event. I want the event to (among other things) change the Control Source of an object. This is no problem, except I have to set the control source as a string, and the string …

Member Avatar for kiran2010
0
640
Member Avatar for lobstar

Hi, I am using cURL to grab the contents of a webpage which contains a table. I am trying to make an array out of the table contents, with the column headings as the array keys. Unfortunately the first row of the table, before the headers, has pagination which is …

Member Avatar for lobstar
0
472
Member Avatar for swathys

Hi, I am changing the sql database to database access (.mdb). The problem is when i run my application using sql connection its work well and all the tables are updated but when i use mdb connection it update some of the tables and few other table it does not …

Member Avatar for swathys
0
122
Member Avatar for meensatwork

I have an issue while creating a CSV file using the CSV module [CODE]csvFp = csv.writer(open(fileName,"w"), delimiter=',') csvFp .writerow('1') csvFp .writerow('2') csvFp .writerow('3')[/CODE] When i execute the above code,it creates the CSV file correctly but a blank line is inserted between each row eventhough i have not inserted that in …

Member Avatar for meensatwork
0
131
Member Avatar for JudeV

how come my code is not showing like the one in the picture below. [CODE] static void Main(string[] args) { Console.Title = "ICA18 - Methods"; Console.WriteLine("{0, 40}", "ICA 18 - Methods"); double dvelocity = GetDouble("Enter the velocity: ", 10.0, 200.0); double dangle = GetDouble("Enter the muzzle angle in degrees: ", …

Member Avatar for Xcelled194
0
210
Member Avatar for sariberri

This is my first time making a GUI and we're making a stopwatch...I figured everything out except for how to make the time elapsed have one decimal place ex: 1.1 seconds this is what I have so far [CODE]public void actionPerformed(ActionEvent ae){ stop.setEnabled(true); long endTime; if(ae.getActionCommand().equals("Start")){ display.setText("Start Button was Pressed"); …

Member Avatar for sariberri
0
218
Member Avatar for Silent Storm

Currently working on an application with the following guidelines: The application is supposed to feature a program that calculates and displays a customer's bill using the interface and figures found here: [url]http://books.google.com/books?id=jGvseZN0g7gC&pg=PA468&lpg=PA468&dq=cable+direct+visual+basic&source=bl&ots=z0KhRX9BGS&sig=8zejHyLyd6Vb8kTVuJIrnsM1p4k&hl=en&ei=fLOHTev5EZOXtwf_zYzTBA&sa=X&oi=book_result&ct=result&resnum=3&ved=0CC4Q6AEwAg#v=onepage&q&f=false[/url] In addition, the following features are required: [LIST] [*]The premium channels ListBox (channelsListBox) has the following selection: 1, …

Member Avatar for Unhnd_Exception
0
127
Member Avatar for prince87

Hi can somebody help me. This is my coding for button Next and Previous but when I click on next it just goes to next like from pictures 1 and 2 to pic 3 and 4 but not any more because i have pictures in two imagelist upto 20 but …

Member Avatar for prince87
0
3K
Member Avatar for ak24

Hello... I am learning assembly, and am reading "The Art of Assembly" book. I'm on chapter 4, and I can't figure out where is the error in the following code: "The last problem with pointers is the lack of type-safe access. This can occur because HLA cannot and does not …

Member Avatar for ak24
0
174
Member Avatar for CSWalls

Hey guys.. thanks in advance for whosoever helps and gives their views.. So I am facing some problems with my CS program... which is in c++ and is about heaps.. its pretty basic stuff.. [B]Here's the Heap.cpp (implementation file)[/B] [ICODE]/** @file Heap.cpp */ #include "Heap.h" // header file for class …

Member Avatar for CSWalls
0
252
Member Avatar for Mr.BunyRabit

hey there. =) We are working on a program and are now at the last stages of its development. Now comes the last part.. The reports Now i am very inexperienced when it comes to reports. I have surfed the net in search of the best method to generate reports. …

Member Avatar for Mr.BunyRabit
1
107
Member Avatar for Josef01

can someone help me to write a query that will sum the information across the row and down the column (sum) in ms access table a b sum 1 10 11 2 20 22 total_all I tried the following select a,b, sum as (a+b) from table1 the error i get …

Member Avatar for Josef01
0
102
Member Avatar for sirlink99

I have a little problem with my if statement. I have a code where I am comparing if a sprite has moved far enough for another one to generate behind it. Here it is (the dots are choped out code): [CODE]if (unit > 0) { if (moved > speed + …

0
85
Member Avatar for Eekhoorn

I have this litle problem, which is propably very futile, but still I cant't find the solution. I have this function which scans a directory for all kinds of files and returns all the filenames with the right extention. After that I cut of the directory string, put it into …

Member Avatar for Eekhoorn
0
182
Member Avatar for Xeno86

#include <stdio.h> main() { double fahr,cel; char again; do{ printf("Enter Dgree"); scanf("%lf",&fahr); printf("In Celsius that is %.1lf\n",(fahr-32)*5.0/9.0); printf("agian?"); scanf("%c",&again); } while (again =='y'); } I don't understand why this won't loop any ideas?

Member Avatar for Xeno86
0
174
Member Avatar for Joey_Brown

Hello I need to program two radio buttons for directions [up down] for my simple textbox search. Any help would be appreciated. Im new to c#.

Member Avatar for Mitja Bonca
0
113
Member Avatar for Sevyt

Ok i am having a blond moment(no offense haha). I got on my form textboxes, checboxes but also a groupbox which holds texboxes. The idea is to be able to clear and reset all of these by clicking a reset button. At the moment i got this [CODE] Private Sub …

Member Avatar for Sevyt
0
150
Member Avatar for chintan_1671

I am a newbie, so it might seems a silly question. I have a login form which calls other form where it says .. "please wait while it loads". in form 2 i have a label for that. Now the problem is that the text for that label doesnot appears …

Member Avatar for chintan_1671
0
71
Member Avatar for Huntondoom

hey, for an Application I want to let application Communicate with each other but how would that be done? I know of Commandlinearguments but that is only when starting up. I want them to communicate while they are running. how would I do such a thing?

Member Avatar for Unhnd_Exception
0
67
Member Avatar for jworld2

I'm trying to do a project that uses the trigonometric functions, but I'm having some trouble with them. When I type in this code: [CODE]import math print 0.5+math.cos((2*math.pi)/3)[/CODE] I get the answer 2.22044604925e-016. That's obviously not right. cos((2*pi)/3) is -0.5, so I should get the answer 0. Can anybody help …

Member Avatar for jworld2
0
539
Member Avatar for tukky

I was wondering how i would be able to validate a textbox for the E-MAIL address of a person. For example it cant have anything like "`#[]-=+-></~| etc. it MUST have an @ and a .com or .co.uk at the end of the e-mail. anyway i was wondering how i …

Member Avatar for ndeniche
0
116
Member Avatar for mkab

Hello everyone, I'm programming genetic processes in java for my project and I want simulate the mitosis of a human cell. A human cell contains 23 pairs of chromosome. Mitosis is basically a cell division, or reproduction, in which a cell gives rise to two genetically identical daughter cells. You …

Member Avatar for mkab
0
234
Member Avatar for tunlinaung

When i run the Java's window applications with default settings, theme is automatically changed from Aero theme to Window 7 basic theme. However, I wish to run Java's window applications without changing theme. I want to run this with current theme. How can I do for this? Please help me.... …

Member Avatar for JamesCherrill
0
228
Member Avatar for Kath_Fish

hi..who knows how to append the list box to the exist text file? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write,FileShare.Write);//create text file StreamWriter sw2 = new StreamWriter(fs2, Encoding.Default); string writetext = ListItemCom2.SelectedItems.ToString(); sw2 = File.AppendText(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt"); // write to the text file sw2.Flush(); sw2.Close(); [/CODE] this is my coding.But,it contain …

Member Avatar for Mitja Bonca
0
179
Member Avatar for TommyRay

Hi all... I need your help, there must be something I am not seeing here when trying to update a table of information in a database. Here is the code I am currently using. In my program I have this call... [CODE] if (($_POST['changeAddress'] != "") || ($_POST['changeAddress'] != null)) …

Member Avatar for jrotunda85
0
191

The End.