64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gizmo7008

I'm making a student database using array based lists. I'm having trouble with making the list size created by the user. I have a for loop there now but once I put it there, I get an error saying aStudent is an undeclared variable and I don't understand why. There …

Member Avatar for gizmo7008
0
442
Member Avatar for minimi

Here is my code: [url]http://pastebin.com/KTR86nzD[/url] This is input.csv: name,age Fred,88 Stella,11 Nellie,99 George,22 Violet,33 Rose,77 Bob,66 Lena,55 Billy,44 It should print the above in this format - Fred is 88 years old Stella is 11 years old Nellie is 99 years old ... Billy is 44 years old. Afterwards, it …

Member Avatar for apines
0
244
Member Avatar for LianaN

Hi! If I run the code shown below from my local machine, where the FTP server is installed, then everything works correctly. However, if I try to run it from some other machine, then the message "Cannot connect to the FTP server!" appears. Settings of my FTP Server are shown …

Member Avatar for LianaN
0
124
Member Avatar for Daocsm

i am making a 2d side scroller and have got the enemy's and the player and the controls all working but i am trying to make a array of my ammo class for the enemy class to use, i have made 10 separate enemy's and i made 10 separate ammo …

Member Avatar for SgtMe
0
119
Member Avatar for Joey_Brown

Hello. I have a question regarding a task I was given. It goes : Fill the array with random numbers and then print out how many times theyve appeared like so : [CODE] /* ARRAY : 0 0 0 0 1 1 1 2 2 2 2 2 6 6 …

Member Avatar for Joey_Brown
0
109
Member Avatar for ceyesuma

Hello. Can anyone bring me up to speed to use XML to manage adding and removing tabs from a JTabbedPane? I am adding tabs and I Would like some code or links that could show me how to serialize any changes I make to a JTabbedPane. Thanks

Member Avatar for ceyesuma
0
138
Member Avatar for NewOrder

i am trying to build an interface array for my checker class. i have 3 classes: main class, checker class and king class. my interface: [CODE] interface IchecherMove{ bool isMoveValid(IchecherMove[,] checker, int columnStart, int rowStart, int columnEnd, int rowEnd); string FindPiece(); string print(); bool pieceDevour(IchecherMove[,] checker, int columnStart, int rowStart, …

Member Avatar for NewOrder
0
1K
Member Avatar for eltonpiko

hi does anybody know a good sitebuilder script pay or free to provide my client with something like [url]http://www.weebly.com/[/url] or sitereptile.i really need this any suggestion will be much appreciated.or those any body no ahosting company that offers sitereptile in the package all the hosting company offer rvsitebuilder with which …

Member Avatar for diafol
0
173
Member Avatar for 84hd0ns

Hi, I am trying to make a simple php photo gallery, I have this code, but the only problem is that the photos appear in a random order. How can I get the photos to appear alphabetically or numerically? [CODE]<?php if ($handle = opendir('photos/')) { while (false !== ($file = …

Member Avatar for 84hd0ns
0
168
Member Avatar for nssltd

Hello, During development of one of my projects i have a tool strip bar when the user clicks a button the tool strip button = a URL of a website. but if the URL is a Google search page the text would be very long and you would only be …

Member Avatar for nssltd
0
131
Member Avatar for MarounMaroun

Hello guys.. I have this makefile: [CODE=c] MyMatrix‬‬: MyMatrix.o gcc MyMatrix.o -o MyMatrix MyMatrix.o: MyMatrix.c gcc -c MyMatrix.c MyStringMain: MyString.o MyStringMain.o gcc MyString.o MyStringMain.o -o MyString -o MyStringRun MyStringMain.o: MyStringMain.c MyString.c MyString.h gcc -c MyStringMain.c MyString.o: MyString.c MyString.h gcc -c MyString.c .PHONY:clean clean: rm -f *.o test.out [/CODE] For some …

Member Avatar for MarounMaroun
0
315
Member Avatar for computerbear

Hello, Having trouble with a program for school. Prof gave a shell that has color declared as static. Here is what I have so far. [CODE]class MyRectangle { private double width = 1; //private class instance fields private double height = 1; private static String color = "white"; public MyRectangle(){ …

Member Avatar for Antenka
0
116
Member Avatar for GaBack

this comes when i try to open the php files. Don't know what happen here is my code: function verifyAlphaNum ($teststring) { return (eregi ("^([[:alnum:]]| - |\.| |')+$", $teststring)); } $valid = verifyAlphaNum ($username) if (!$valid){ <<<<<<<<<<<<<< here come the error $error_msg[] ="Username must be letters and number"; } thx

Member Avatar for GaBack
0
128
Member Avatar for zozanthonyzoz

Hi all, I need to have a program to word count remove punctuation and sort it in alphabetical order. I had done the word count portion but i am lost in removing punctuation and sorting in alphabetical order portion. Hoping to get some help. [code] #include <fstream> #include <iterator> #include …

0
257
Member Avatar for MasterMic

First I'd like to say how much I appreciate these forums. They have helped me before, but this is the first time I've posted a question myself. My problem is that I use a different IDE than my teacher does (probably not the best idea) so I want the program …

Member Avatar for MasterMic
0
226
Member Avatar for vedro-compota

Greetings. Tell please function PHP5 which defines presence of the end of a line (like !feof - for the file end). Thanks in advance!)

Member Avatar for vedro-compota
0
87
Member Avatar for anupam.j2ee

Hello Everybody, I am a beginner, I am got stuck with following error at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) …

0
100
Member Avatar for keb_polboron

anyone here can help me to make and sample codes for class variable and class methods using the static keyword in vb.net.. thanks

0
57
Member Avatar for murtazamzk

Below is the program for swapping variables without any extra variable. [CODE] #include "stdio.h" #include "conio.h" void main() { int a=7;b=5; clrscr(); a=a+b; b=a-b; a=a-b; getch(); }[/CODE]

Member Avatar for Kamatari
0
177
Member Avatar for shanker86

Hi all, I have a silly question regarding how to translate this command in CMakeLists.txt g++ x04.cc -o demo -lplplotcxxd x04.cc is c++ file , information about lplplotcxxd can be found here [url]http://ubuntuforums.org/showthread.php?p=8538977[/url] since the command " g++ x04.cc -o demo -lplplotcxxd" is working on my computer so I think …

Member Avatar for shanker86
0
172
Member Avatar for CEVGames

I have a registration page and I want to validate the e-mail address. I'm having an issue with line 14 in particular. (I used a combination of several tutorials to make this). [CODE]<?php include("db.php"); if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['email'])) { $username = mysql_real_escape_string($_POST['username']); $email = mysql_real_escape_string($_POST['email']); $result=ereg("^[^@ ]+@[^@ ]+\.[^@ …

Member Avatar for P0lT10n
0
200
Member Avatar for geojia

Hi, this is my first time posting and I would like thank everyone in advance. I'm doing a homework assignment that requires me to design a teller application which simulates a bank. I'm currently getting a segment fault, after I call one of my getBranch(). I've tried to do this …

Member Avatar for geojia
0
181
Member Avatar for artemis_f

I normally program in Java and Haskell to me seems completely alien and weird. All I want to do is read the contents of a file into a big string then be able to do stuff with that string like split it on newline and store it in a list …

Member Avatar for sweetypie
1
1,000
Member Avatar for Unhnd_Exception

A short semi fast flood fill. If anyone has trouble with this, please post. I'm about to run it on 10+ million shapes. There always seem to be a few unique situations where something doesn't work. Public Sub Fill(ByVal bmp As Bitmap, ByVal pos As Point, ByVal color As Color) …

Member Avatar for Unhnd_Exception
0
191
Member Avatar for jtaylor1120

Can someone look at this code and tell me why I am getting errors and warnings. I have everything just like the book says but it doesn't work. Here is the code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Class-level declarations …

Member Avatar for Unhnd_Exception
0
1K
Member Avatar for kchadek

Wrote this program to find if 2 phrases are Anagrams of one another. Works except that I need to make it ignore any other character than letters(including spaces) As is now I get 4 errors, all in that last boolean 1&2: cannot find symbols for phrase1/2.length (tried anag.phrase and didnt …

Member Avatar for kchadek
0
172
Member Avatar for adanaz

Hi guys I'm trying to take a user input (name) and replicate the input in other methods. Can anybody help? Here is the code: [CODE]import javax.swing.JOptionPane; public class example { public static void main (String[]args) { entername(); } public static void entername() { String a=""; a = JOptionPane.showInputDialog("Welcome. Enter name …

Member Avatar for adanaz
0
964
Member Avatar for MikeG0930

I have a macro that uses "If Then" to choose what macro to run based on the ActiveCell. I would like to use the Select Case method instead, but need help to do it. How would I change this code? Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) …

Member Avatar for Unhnd_Exception
0
138
Member Avatar for youlichika

I need a jqeury animate effection. when I click img1.jpg, img2.jpg will animate right 200px, but I have too many divs and other html elements, I tried many times, it also failed. How to write correctly? Thanks. PS: h1, the font is on the top of image, and b class="effect" …

Member Avatar for Airshow
0
140
Member Avatar for anthonys1mom

Hi. I am writing a program to read user input numbers until '0' is entered. I then figure out if each number is even or odd and find the average of all the evens and all the odds (even average is one number, odd average is another.) I have it …

Member Avatar for anthonys1mom
0
917
Member Avatar for mbarandao

hello: I'm working on this code that receives a variable via url and performs a mysql search for records using the value of the variable as the key word. I'm using the following code --which I'm currently using successfully on another section of my project, but experiencing problems in a …

Member Avatar for mbarandao
0
331
Member Avatar for SaaDwTk

I need an code to go this page: [url]http://steamcommunity.com/groups/KiFFERSTUEBCHEN/members[/url] And grab the data beetwen: [url]http://steamcommunity.com/id/[/url] and " [CODE]href="http://steamcommunity.com/id/otti">threeD</a><br />[/CODE] so it will grab in this case the word "otti" Theres a lot of lines like that, so i need a code that grab all the specified words of the page …

Member Avatar for thomas49th
0
189
Member Avatar for LianaN

Hi! How could I create/delete a directory on the remote machine using FTPClient of org.apache.commons.net.ftp.*; ? The code used to save a file on the remote machine is shown below. But I would like to update it for creating/deleting directories. Thanks! [CODE] private void saveAttachedFileToRemoteMachine(String pathToFile, DefaultMutableTreeNode selectedNode) { FTPClient …

Member Avatar for LianaN
0
940
Member Avatar for LianaN

Hi! I would like to get an advise about the following question. There is a set of text fields. The task is to generate a new JFrame and align text fields based on the information given, i.e. a row and column of each text field. Let's say there is a …

Member Avatar for LianaN
0
188
Member Avatar for jaylou

Hi all, I am adding code to a SharePoint 2007 list where I want a calculated field to be a colored square based on a status column. I have all the code I need to create a colored round bullet, but I would like the bullet to be square or …

Member Avatar for jaylou
0
104
Member Avatar for Finki

So im putting together a program that decompositions numbers on prefactors. Example: 252=2^2 3^2 7^1 and 1944=2^3 3^5 Put this into tuples: (wont use split, just for example) >>> split(252) [(2, 2), (3, 2), (7, 1)] >>> split(1944) [(2, 3), (3, 5)] This is the code that determines whether a …

Member Avatar for Finki
0
207
Member Avatar for murtazamzk

[B]<html> <head> <title>New Page 11</title> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <script language="JavaScript1.2"> if (document.layers) document.captureEvents(Event.KEYPRESS) function backhome(e){ var targeturl="index.htm" if (document.layers){ if (e.which==104||e.which==72) window.location=targeturl } else if (document.all){ if (event.keyCode==104||event.keyCode==72) window.location=targeturl } } document.onkeypress=backhome </script> </head> <body> <p align="center">Hit The(H) key on your keyboard to send you to a home …

Member Avatar for hielo
0
102
Member Avatar for genzoman

Can someone please tell me why this code isn't working? I'm fiddling around with designing a site and trying to get my JS bearings down. I'm wondering why the second option isn't making the drop down list disappear. Thanks in advance! [CODE]<html> <head> </head> <script language="JavaScript"> function fncShow() { document.getElementById('box').style.visibility …

Member Avatar for genzoman
0
158
Member Avatar for libathos

I want to make a button in a root window.My question is should i draw it or shoud i make a new window in my root window?

0
101
Member Avatar for fahadyousaf

program is working fine on YES option but on NO option it does not return ? any one give me hint ?? this.addWindowListener(new WinAdapter(){ public void windowClosing(WindowEvent e){ String cnic1 = (String)cnic.getValue(); String name1 = name.getText(); String fname1 = fname.getText(); String age1 = (String)age.getValue(); String add1 = add.getText(); String pro1 …

Member Avatar for JamesCherrill
0
129
Member Avatar for Buffalo101

Hey guys, I'm trying to code a testing app which will display questions on a JForm for a period of time. I need a way of keeping track of time so I know when the user's time is up. What should I use? So far, I've found these: [B]javax.swing.Timer[/B] [B]java.util.Timer …

Member Avatar for Buffalo101
0
1K
Member Avatar for LianaN
Member Avatar for LianaN
0
120
Member Avatar for jpknoob

Hi all, i decided to try and make a php shopping cart with sessions and manged to do so with the help of online turorials and references. However, i decided to try and pass over multiple items form a table, but i must have gone wrong somewhere, as some of …

Member Avatar for jpknoob
0
78
Member Avatar for Azurit

This is part of my code. I want to declare an array of List, and I want to be able to pass this array to the functions listed below, so that I can do work on the array (i.e. add/delete nodes). But I have problems getting my head around pointers …

Member Avatar for Azurit
0
1K
Member Avatar for musikluver4

I have been able to successfully load another java program (Calculator) within a java program with the following code: [CODE]Calculator.main(null)[/CODE] The program loads successfully but both programs have the code: [CODE]addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } );[/CODE] So once I close the Calculator program …

Member Avatar for JamesCherrill
0
129
Member Avatar for tariqi

am using sql 2005 and vb 2008.i need to compare dates and select matching records betweem a selected date range.say records between 11/13/2010 and 11/20/2010.e.thing is working ok except when it comes to selecting dates between 11/1/2010 and 11/9/2010.this is happening because when am retrieving the dates from database,its being …

Member Avatar for tariqi
0
591
Member Avatar for bob3

I'm just trying to make a cash till and something is wrong because when i try to execute it it just freezes. I think something is wrong with my loop, also i don't know how to refresh my sale total when i click clear order. It clears it but when …

Member Avatar for Netcode
0
161
Member Avatar for shredder2794

Hello all, In lots of applications there are copy,cut,and paste buttons where the user can highlight some text and click "Copy" or "Cut" or "Paste" and then the program would do the corresponding actions. I was just wondering how to code such a button in Visual Basic 2010? Thanks in …

Member Avatar for Netcode
0
2K
Member Avatar for fahadyousaf

Please any one guide me or give me some hint ... can i run my java application directly from batch file or any other way from which i can directly access GUI of application. Regards,

Member Avatar for apines
0
104
Member Avatar for vedro-compota

Hello programmers ! Can anyone tell me - how to delete an initialized reference-type element, which suggest some links? Is there for this in C # the special function? Thank you for your answers))

Member Avatar for vedro-compota
0
178

The End.