43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 2hop260

Now before you give me a knee-jerk "do your OWN homework we-won't-help-you-cheat" reaction, please read this all the way through. My homework assignment is to write a Caeser Cipher (from my understanding its very common for professors to give this assignment) and I have that done (with some help from …

Software Development c++
Member Avatar for 2hop260
0
757
Member Avatar for MrEARTHSHAcKER

Hi, I have made some sorting function based on finding largest element and swapping its place with last element of array and then searching largest element of rest of array and putting it on one place before last one and so on. I am curious about is there a name …

Software Development c++
Member Avatar for MrEARTHSHAcKER
0
428
Member Avatar for A_Dubbs

Hello everyone! I am taking a python course at my college and I have recieved a question for my homework that I am having trouble with. [I]14) Write a program that finds the average of a series of numbers entered by the user. As in the previous problem, the program …

Software Development python
Member Avatar for B dawg
0
941
Member Avatar for butler273

So, I'm back once again. This week I'm having issues with efficiency in a Radix Sort Algorithm. From what I understand this is the foundation of this algorithm. What operations might be costing me? For the basics I suppose I do understand push_ back being costly having to copy the …

Software Development algorithm c++
Member Avatar for butler273
0
313
Member Avatar for ThomsonGB

I am getting an access violation. Can anyone see why this might occur in the following code fragment from a GUID generator? [CODE] // here is a code fragment fro a GUID creation routine. // it is crashing with an Access violation #include <iostream> #include <fstream> #include <string> #include <stdio.h> …

Software Development c++ visual-studio
Member Avatar for rubberman
0
630
Member Avatar for Sunciti

Hi - I'm a rookie programmer. Could somebody explain how I can append a nested list of the form: List = [[Name1,[Detail-1,Counter-1],[Detail-2,Counter-2].....] [Name2,[Detail-1,Counter-2],[Detail-2,Counter-2].....] ................................................. ] My code is : def program(List, Name, Detail): for entry in List: if entry[0] == Name: entry[1].append([Detail,Counter]) return [B][I] List.append ([Name,[Detail]]) for entry in index: …

Software Development python
Member Avatar for misokolsky
0
8K
Member Avatar for TheNewKid

Hello guys! I am new to this forum and would like to start off by saying hello to all of you! I have wanted to start learning C++ for a while now but I have never found a way to get on my feet when programming C++. I need to …

Software Development c++
Member Avatar for TheNewKid
0
93
Member Avatar for LdaXy

I know that the colon is used for inheritance. [CODE] class x { public: long y; } class Z : X { public: virtual void ret_value(y); }[/CODE] but what does this mean? [CODE]int offset:16;[/CODE] i cannot find he answer to this anywhere.

Software Development c c# c++
Member Avatar for LdaXy
0
215
Member Avatar for huskarit

Hi everyone! How to disable a textbox and combo box by coding not by changing their properties?

Software Development vb.net
Member Avatar for huskarit
0
243
Member Avatar for rob211

Hi @all! I have a array with three numbers: num[0] = 5 num[1] = 2 num[2] = 5 I need to find out which of these numbers are the largest ones, it could be one, two or all of them, and need the index. Here for example "0 and 2". …

Software Development java
Member Avatar for rob211
0
181
Member Avatar for coroll

Hi all, Im new to java. I get this error. Non-static variable this cannot be referenced from a static context myClass c=new myClass() ^ this is my code [CODE] public class MyOwnBm{ private Hashtable myHash=new Hashtable(); public static void main(String[] args) { myClass c=new myClass(); c.match(); } public class myClass{....} …

Software Development java
Member Avatar for JamesCherrill
0
491
Member Avatar for alapeh

hello. currently i am doing a project and i am stuck with this compile error, can any1 help me with this? is there any cure for this compile error ? [URL="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc7/304749_10150467265314408_808639407_11280088_80875314_n.jpg"]http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc7/304749_10150467265314408_808639407_11280088_80875314_n.jpg[/URL] thanks :)

Software Development visual-basic
Member Avatar for alapeh
0
123
Member Avatar for NOVICE3

public void ByteData_TextChanged(object sender, EventArgs e) { DataString.Append(ByteData.Text); //here I do some logic on the character just received } I am using a single textbox (ByteData) to input some ASCII characters. The character strings vary from one character to about five. I would like to terminate the data entry with …

Software Development
Member Avatar for Mitja Bonca
0
2K
Member Avatar for coreyhughes

I have a question for a homework assignment. This is C, not C++ (sorry! i didn't know where else to go). I have 2 character arrays, declared as char s1[100] and s2[100] in my main function. The part of this assignment I am having trouble with is the readString function. …

Software Development c
Member Avatar for coreyhughes
0
130
Member Avatar for jonajonlee

I've been racking my brain on this for hours. The goal of the program is to estimate the value of pi using three different formulas. My arithmetic is fine, I've tested it, and if it is wrong, I can correct that easy. The problem is that my if statements don't …

Software Development c++
Member Avatar for jonajonlee
0
164
Member Avatar for alapeh

hello guys, can any1 help with this error? i searh through all the website and i still cannot find a cure to it. i have a picture and this is a form_load of it [CODE]Private Sub Form_Load() Picture1.FillColor = Form1.BackColor Picture1.FillStyle = 0 prevX = 0 End Sub[/CODE] and a …

Software Development visual-basic
Member Avatar for Jx_Man
0
767
Member Avatar for C0ding

Hi everyone, I would like to merge few text documents into one, For example, i have 12 text documents in a folder, then needed to merge their text into one. 12 = 1. any help will be very appreciate, thanks in advance. if is not much to ask, if i …

Software Development visual-basic
Member Avatar for C0ding
0
1K
Member Avatar for Farhan_B

ok what i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code i am using doesnt seem to be doing anything could anyone spot it and tell me why it is not working for …

Software Development vb.net visual-basic
Member Avatar for Farhan_B
0
237
Member Avatar for greatman05

Hello. First, here is my code: [CODE] class BankAccount { private: int accountNum; double balance; public: bool setAccountNum(int num); int getAccountNum() const; double getBalance() const; void depositMoney(double money); bool withdrawMoney(double money); void displayAccount() const; BankAccount(); }; class SavingsAccount: public BankAccount { private: int accountNum; double sBalance, rate; public: void setInterest(double …

Software Development c++
Member Avatar for ravenous
0
216
Member Avatar for Na'Vi

Hi, I'm having some problems with my program and I'm not sure how to fix them. I have a main method that starts out with a frame. [CODE]public class Cryptography { public static void main(String[] args) { CryptoMainMenu mainMenu = new CryptoMainMenu(); JFrame frame = new JFrame("Cryptography"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(mainMenu); frame.pack(); …

Software Development algorithm gui java
Member Avatar for Na'Vi
0
123
Member Avatar for Farhan_B

Currently i am working and using a filter function for my search however i not sure how to do it using a query the sql statement is [CODE]cmd.CommandText = select * from tblcustomer where customerName like "'& textbox1.text &'"[/CODE] I no there is some bits missing but i am not …

Software Development seo sql vb.net visual-basic
Member Avatar for Farhan_B
0
214
Member Avatar for shean1488

Hi everybody, Tryed to make this program: Simple browser: you type the URL at the top and then get a new window with this web page. But my output is just JFrame(Even color did not get changed) help me please to find the problem. [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Software Development java java-swing web-browser
Member Avatar for 117
0
203
Member Avatar for 117

Hello, I'm trying to make a JPanel with JFrame capabilities, such as resizing, and moving, Everything seems to work fine, altough there are minor flickering inside the JPanel, I have numeral repaints and I have a method called update(), which uses absolute position to arrange Containers and Components. Whenever the …

Software Development java java-swing
Member Avatar for 117
0
4K
Member Avatar for coroll

Hi all, Im trying to remove from a HashTable by providing key and to get by proving key. And i tried as follows for removing, Caharcter ch=p.charAt(i); but gives these errors. myOwnBm.java:60: cannot find symbol symbol : method Remove(char) location: class java.util.Hashtable myHash.Remove(p.charAt(i)); ^ myOwnBm.java:77: inconvertible types found : java.lang.Object …

Software Development java
Member Avatar for JamesCherrill
0
157
Member Avatar for huskarit

hello everyone! how to make radio button and combo box has default value?

Software Development vb.net
Member Avatar for huskarit
0
114
Member Avatar for gagirl1105

Hi! I'm working on a school project and ran into a problem. We're creating an ArrayList of basketball games where each game is set up as: [CODE] public Game (String homeTeam, int htScore, String opponent, int oppScore) { this.homeTeam = homeTeam; this.htScore = htScore; this.opponent = opponent; this.oppScore = oppScore; …

Software Development java
Member Avatar for gagirl1105
0
115
Member Avatar for CriticalError

[CODE] Private Sub TimerZoominOut_Tick(sender As System.Object, e As System.EventArgs) Handles TimerZoominOut.Tick Dim zoom = Document.ZoomFactor Select Case zoom Case zoom = 63 toolBar_zoomin.Enabled = False Case zoom < 63 toolBar_zoomin.Enabled = True Case zoom = 1 toolBar_zoomOut.Enabled = False Case zoom > 1 toolBar_zoomOut.Enabled = True End Select End Sub[/CODE] …

Software Development vb.net
Member Avatar for CriticalError
0
118
Member Avatar for bhallarahul

hello everyone i have wrote a code but it shows [B]"org.apache.tomcat.dbcp.dbcp.SQLNestedException:"[/B] error org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at listener.MyContextListener.contextInitialized(Unknown Source) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at …

Software Development apache java
Member Avatar for bhallarahul
0
367
Member Avatar for bhallarahul

hello frnd i am wriing program on in which i try to connect mysql with servlet but it gives error here is my code [CODE] [B]Test.java[/B] package my; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; …

Software Development apache java
Member Avatar for bhallarahul
0
1K
Member Avatar for P.manidas

Dear Sir/Madam, I have two form in my application form1 and form2. Here, i want to show the form2 from form1 by using a button. And i want to reverse back to my form1 from form2 using same technique. But i want to close form1 (Not visible=false or hide) after …

Software Development vb.net
Member Avatar for P.manidas
0
862
Member Avatar for darthswift00

Hi, I'm having a problem with my forms. Basically I have one form that adds,deletes,updates transactions that are made when a registered member makes a request. Doing this then gets saved in the database under a transaction table. I then have another form which then calculates my transactions based on …

Software Development pay-per-click vb.net
Member Avatar for darthswift00
0
146
Member Avatar for chirag_mittal

Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making …

Software Development c
Member Avatar for chirag_mittal
0
469
Member Avatar for begame

Hey there! So I have am writing a multi-chat client for my college course. I have completed most of it, however there is a problem which I am unable to identify. When I conect multiple clients to the server only the the last client to connect is able to send …

Software Development c client-server socket-programming
Member Avatar for begame
0
189
Member Avatar for CodeMonkeyJunk

I have a school project and what is needed is to Write a program that prompts the instructor to enter the 10 grades of midterm 1 and store these numbers in an array. Next prompt for the 10 grades of midterm 2 and store these numbers in a different array. …

Software Development java mathematics
Member Avatar for CodeMonkeyJunk
0
185
Member Avatar for FALL3N

hey, so I am just starting java3D, and I am running into some pretty basic problems... I started a tutorial online (from [url]www.java3d.org[/url]) and the first sample program is: [CODE]import com.sun.j3d.utils.universe.SimpleUniverse; import com.sun.j3d.utils.geometry.ColorCube; import javax.media.j3d.BranchGroup; public class Hello3d { public Hello3d() { SimpleUniverse universe = new SimpleUniverse(); BranchGroup group = …

Software Development java
Member Avatar for FALL3N
0
987
Member Avatar for Valiantangel

hi below code is an example.I hav couple of questions 1)The highlighted bold red code(myParrot[0]...)can it be simplifyed? 2)Can i use random to generate a given set of numbers?How? [CODE]public class Bird{ public static void main(String[] args) { int[] myParrot = new int[3]; [B][COLOR="Red"]myParrot[0]=1; myParrot[1]=2; myParrot[2]=3;[/COLOR][/B] for (int feature=0; i<myParrot.length; …

Software Development java
Member Avatar for NormR1
0
257
Member Avatar for gowans07

Hi, i'm fairly new to .NET after getting tired of using VB6 due to the lack of functionality. I'm trying to create a log on method for a system which will involve users selecting a colour from a paint panel and then placing/drawing the colour in 1 or more tiles …

Software Development vb.net
Member Avatar for gowans07
0
195
Member Avatar for shean1488

Hi everybody. I'm trying to display web page that located in my computer or just (google web page). But everytime I'mgetting nullpointer exception. Please help me to figure out the problem. here is the absolute path that I'm using: [CODE]serg@serg-PORTEGE-Z835:~$ find $PWD -type f -name test1.html /home/serg/Projects/java/GUI/src/its/TestData/test1.html [/CODE] But the …

Software Development gui java java-swing
Member Avatar for NormR1
0
159
Member Avatar for FALL3N

what I'm pretty sure I learned in school and what like every website said when I tried to look this up online was that the C++ code for generating a random number with floor: 1 and ceiling 100 (err I guess 101) is: [CODE]int number = rand() % 100 + …

Software Development c++
Member Avatar for FALL3N
0
280
Member Avatar for michael10024

A black-hat cracker attacked to your computer and he took a very important sequence from it. Also, he replaced this sequence with five mutations of the sequence. The sequence has length of N and it's content are numbers between 1 and N (all the numbers one time) in a random …

Software Development c++
0
49
Member Avatar for butler273

This function of this find the median of three values inside an array. I was wondering if there's a more elegant solution to finding the median value between 3 values. [CODE] int mid =((p+r)/ 2); if(V[p]<V[r]){ if(V[p]<V[mid]){ if(V[mid]<V[r]) swapfunc(V[mid],V[r]); } else swapfunc(V[p],V[r]); } else{ if(V[r]<V[mid]){ if(V[p]<V[mid]) swapfunc(V[p],V[r]); else swapfunc(V[mid],V[r]); } …

Software Development c++
Member Avatar for butler273
0
258
Member Avatar for Sevyt

Probably a simple answer to a stupid question. But i cannot figure it out myself. I am using [CODE]Date.Now().ToString("D")[/CODE] on a label. Now i was wondering how you could use a similar string. But to add 1,2,3 ect... to that. So that i can have a label for each day …

Software Development vb.net
0
97
Member Avatar for NinjaTwinkie13

So I've currently been studying C++ independently for a couple weeks with the help of good old books. One of the exercises was to make a "games library" where you can see your list of games, add a title, or delete it (has nothing to do with games). The catch …

Software Development algorithm c++
Member Avatar for NinjaTwinkie13
0
156
Member Avatar for Traps

I'm making a website and of course want to incorporate memberships and logins, etc and while I understand the theoretical application of salting and hashing a user-inputted password to save the encrypted pass in my database, I'm not sure on the approach... What I would do is get the hashCode …

Software Development java
Member Avatar for Traps
0
105
Member Avatar for luislupe

I programmed some functions that use a dynamic array of [CODE=c] double ** array [/CODE]. But know, I want to test the results with a small array of 5 x 5 elements and use this array in the functions I coded. My problem is that I can find no way …

Software Development c
Member Avatar for luislupe
0
250
Member Avatar for TreeBranches

My program begins by opening a dictionary file, the first line of which contains the number of words in the dictionary. If I print the words immediately after scanning them into the arrays, they appear fine, but if I later examine a previous entry, I can see it has been …

Software Development c
Member Avatar for TreeBranches
0
219
Member Avatar for ringo_tech

hi there, i have this server code that send the received message from one client to all the other clients, including the one how send the message [CODE]public class Chat extends Thread{ static LinkedList<PrintStream> sll; Socket cs; PrintStream ps; public Chat(Socket cs){ this.cs=cs; try{ ps=new PrintStream(cs.getOutputStream()); sll.add(ps); this.start(); } catch …

Software Development client-server java
Member Avatar for NormR1
0
163
Member Avatar for radu_brasov

When the code below is executed if sometimes it performs a "TAB" sometimes does nothing and sometimes gets my PC hung so I have to do CTR-ALT-DEL & Cancel which moves the execution of the program to the next line ("End IF"). Any idea what is missing to make it …

Software Development vb.net
Member Avatar for radu_brasov
0
611
Member Avatar for thiemebr

Hi, I'm new in asp and c# and I've being looking everywhere on how to dynamically create multiple html tables based on a user input: e.g.: user enter 3 in a text box and right below 3 tables are created with other text boxes for more user input. Thanks

Software Development c c# c++ html-css
Member Avatar for thiemebr
0
175
Member Avatar for SpokaneDude

This is my code: [CODE]//++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - (void)viewDidLoad { [super viewDidLoad]; NSString *indexPath = [NSBundle pathForResource:@"iHelp" ofType:@"html" inDirectory:nil]; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:indexPath]]]; [/CODE] The app is crashing because 'nil' for directory name is invalid (DUH!). So for an imbedded html file, what should go there?

Software Development html-css objective-c
0
91

The End.