43,549 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" ); …

Software Development java java-swing
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 …

Software Development c++ mathematics
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 …

Software Development c++ ios
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 …

Software Development gui java
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 …

Software Development vb.net
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.

Software Development visual-basic
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 …

Software Development python seo
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 …

Software Development python
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 …

Software Development vb.net
Member Avatar for codeorder
0
298
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

Software Development c++
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 …

Software Development c++
Member Avatar for pharoah85
0
217
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 …

Software Development microsoft-office python
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 …

Software Development multithreading
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.

Software Development c#
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 …

Software Development java
Member Avatar for CorruptionInc
0
116
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.

Software Development pascal
Member Avatar for Wolfgan
0
221
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#?

Software Development
Member Avatar for rannamaa
0
95
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

Software Development visual-basic
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, …

Software Development java
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 …

Software Development visual-basic
Member Avatar for kiran2010
0
640
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 …

Software Development microsoft-access open-source sql vb.net
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 …

Software Development python
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: ", …

Software Development
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"); …

Software Development gui java
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, …

Software Development vb.net visual-basic
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 …

Software Development vb.net
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 …

Software Development assembly
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 …

Software Development c++
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. …

Software Development pdf
Member Avatar for Mr.BunyRabit
1
107
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 + …

Software Development gaming java programming-construct
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 …

Software Development dataset open-source pdf vb.net xml
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?

Software Development c
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#.

Software Development c c# 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 …

Software Development vb.net
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 …

Software Development
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?

Software Development vb.net
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 …

Software Development python
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 …

Software Development vb.net
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 …

Software Development java
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.... …

Software Development java
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 …

Software Development file-system
Member Avatar for Mitja Bonca
0
179
Member Avatar for Nitin Daphale

I use following code to get all existing sql servers. [CODE] using Microsoft.SqlServer.Management.Smo; DataTable dt = SmoApplication.EnumAvailableSqlServers(false); if (dt.Rows.Count > 0) { cmb_servers.Items.Clear(); foreach (DataRow dr in dt.Rows) { cmb_servers.Items.Add(dr["Name"]); } }[/CODE] In first attempt it's not loading any servers at all but in second it is. I know it's …

Software Development sql
Member Avatar for Nitin Daphale
0
133
Member Avatar for shack99

Hi everyone, I'm new to c# ( I've done java before) and I'm having a problem with one of our tutorials. We have to read some data from an XML file. When doing it with a console application it turned out fine, but when doing it with a Windows forms …

Software Development xml
Member Avatar for shack99
0
125
Member Avatar for TheWhite

"ps aux" outputs the following as the first line: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND how can I preserve this line if I do a "ps aux | grep <someuser>" so that I can still see the header for each column? In essence, I want …

Software Development shell-scripting
Member Avatar for thekashyap
0
119
Member Avatar for rajeevpareek

Hi, I am trying to pass a string to a MACRO using -D option in gcc. I am not getting desired output, below is snippet, please let me know what I am missing. $ gcc -o finame -D CORE="op1_log.txt" finame.c [CODE] #define STR(x) x int main() { FILE *fp; char …

Software Development c c++
Member Avatar for thekashyap
0
7K
Member Avatar for Kapilxcb

I have to add 2 polynomial equations. Each are stored in linked lists. eq_1 and eq_2 linklists are added and the total is stored in eq_1 linklist. But the problem is when im trying to add both equations, the 2nd for loop(eq_2) is looping once only. I mean when eq_1 …

Software Development c linked-list
Member Avatar for jonsca
0
147
Member Avatar for bunnyali2011

Well I have a combobox with 3 items namely: Product Size and Cost. I have also a maskedtextbox. If I select "Product" and "Size" on the combobox, I want to disable the maskedtextbox from filling, how must I do it?

Software Development visual-basic
Member Avatar for AndreRet
0
183
Member Avatar for aplee

hi Everyone, My program is doing good when I suddenly bumped into this problem. I dont know how to do the next functionality that I need to accomplish. I am done with inserting values, showing the gridview etc and it works great. Now my problem is the update command. I …

Software Development asp.net sql vb.net
0
104
Member Avatar for opawix

heres my code: [CODE]#include<iostream> using namespace std; int main() { int x; for(x=3; x<=47; x++) { cout<<x; } system("pause"); return 0; } [/CODE] i just want a little help with this problem: this code cout counts from 3 to 47 but i want to cout 3 then adding 2 to …

Software Development c++
Member Avatar for opawix
0
92
Member Avatar for salty11

this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream …

Software Development c++ file-stream
Member Avatar for WaltP
0
639

The End.