199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xsach

[CODE]import java.io.*; import java.util.*; import java.io.FileWriter; import java.io.IOException; public class Dirtrav { public static void main(String args[]) { // String rootDir="C:\\Projects\\PerfBVT'\\W6_TopicVsQueue_8.2.0.0.74_040110\\"; File directory = new File("C:\\Projects\\PerfBVT'\\W6_TopicVsQueue_8.2.0.0.74_040110"); identifydir(directory); } //File directory = new File("C:\\Projects\\PerfBVT'\\W6_TopicVsQueue_8.2.0.0.74_040110\\"); public static void identifydir(File di) { File[] files = di.listFiles(); if (! di.exists()) { System.out.println("Invalid path"); return; …

Member Avatar for masijade
0
122
Member Avatar for Gaurav@17

Hello, I am using ASP.NET 3.5...I have a text box where I am using the AutoCompleteExtender for search. When user enter the key the serach shows the "ProjectNumber-ProjectName" in the search result....after selecting any of this...only ProjectNumber is entered in the textbox (I am using hidden control to store key …

Member Avatar for reach_yousuf
0
586
Member Avatar for Darkicon

Using the following sub to download a file I receive an "Access to the path 'path' is denied" no matter where I try to download it to even if I run the program as an administrator. Why do I get an access denied error? [CODE=VBNet] Private Sub Button1_Click(ByVal sender As …

Member Avatar for Darkicon
0
1K
Member Avatar for Purnima12

[CODE] while True: try: wd = int(input('How wide would you like your letter to be? (5 - 20)' + ': ')) break except ValueError: print ("Oops! That was no valid number. Try again...")[/CODE] If the user inserts a number that is not 5 - 20, I want the program to …

Member Avatar for TrustyTony
0
544
Member Avatar for agr8lemon

Hello! I'm hoping that you can help me Alter a SQL table to provide a unique constraint over 2 columns. For instance let's say I have a departments table called Dpt_tbl with two columns that I want to be unique Name Location So I want to make sure that you …

Member Avatar for achied
0
208
Member Avatar for NickBomb

Hello there! Recently, I tried deleting some symbolic links in VB, but it turns out their targets were wiped out as well. More specifically, I'm looking for a way to purge an entire directory from all the files/symlinks it contains, without doing anything to the targets. Any help is much …

Member Avatar for NickBomb
0
484
Member Avatar for smokethecheeba

Ok so ive already looked up solutions to my problem and my teacher does not allow me to use a simple iterator for the delete instead this is a hard coded delete function. what this program does is ask the user for 10 numbers and creates a vector of size …

Member Avatar for pecet
0
116
Member Avatar for chequer

Using WindowsXP Pro SP3 Problem with javascrip I have installed Javascrip Ver 6.0.190.4 When I try to email a site to submit a query I enter the question but when I click on [NEXT] I get this error:mJavascrip:Void ( ) can you help

Member Avatar for chequer
0
65
Member Avatar for xcarbonx

Hello, I am trying to input an unknown amount of numbers (exam scores) and output whether they are passed, failed, or invalid scores. Passed is any score greater or equal to 70, and failed is 69 and below. Invalid scores are out of the range between 0-100. Sample Input: 77 …

Member Avatar for WaltP
0
120
Member Avatar for soley

Why would one file, which was made by, oh, I don't know, my teacher, work fine when uploaded to the server I need to store it on for my grade but when I try opening it on my local lamp server, it completely breaks? Here's a picture of what it …

Member Avatar for soley
0
104
Member Avatar for philipB

I'm working with 2d arrays (which I kinda understand) and a bubbleSort, which I sorta but don't really understand and perhaps those * and & which I'm totally lost on, especially the * which can mean what it means or the opposite of what it means? I don't get that. …

Member Avatar for WaltP
0
232
Member Avatar for Lee21

Guyz, I want to know about the Form Disposed Event. I want that everytime I click the close button ("red X button located at the top right of the form") there will be a message box that asking if I want to exit, then if I click yes the programs …

Member Avatar for Lee21
0
132
Member Avatar for kokiwi

[CODE]#include <iostream> #include <conio> using namespace std; int main() { int MyArray[ 3 ] = { 12, 23, 34 }; //Note 1 int* ptrMyArray = MyArray; //Note 2 int* ptrMyArray2 = &MyArray[ 0 ]; //Note 3 int* ptrMyArray3 = &MyArray[ 0 ]; //Note 4 for ( …

Member Avatar for thomas_naveen
0
102
Member Avatar for jonniebl

I am new to programming with vb2008 and I am trying to fill out a form on line. The form looks for keystrokes and keeps track of the number of characters typed. There are two elements on the form that use this method. The first area will allow me to …

Member Avatar for Oxiegen
0
382
Member Avatar for dougancil

I'm trying to write code for a page using VB and as I'm new to this, I'm needing some assistance. I have a button on a web page for uploading a .csv file but I also want that button to function as taking people to a destination page as well. …

Member Avatar for jbrock31
0
81
Member Avatar for pinsickle

[CODE]class BTreeNode : public LinkedNode { public: BTreeNode (BTreeNode* child0, int key0, BTreeNode* child1); BTreeNode (const BTreeNode& sibling); bool isNotLeaf (void) const; BTreeNode* findChild (int newKey) const; BTreeNode* addKey (int newKey, BTreeNode* newChild = 0); BTreeNode* getChild (int i) const; void write (ostream& outfile) const; private: void setChild (int i, …

Member Avatar for pinsickle
0
99
Member Avatar for sunlitdays

Hi there, I'm trying to write code for an assignment that asks me to read a string and convert all uppercase letters in it to lowercase without using tolower(), since we haven't covered it yet. This is what I have so far: [code] #include <iostream> using namespace std; int main …

Member Avatar for chiwawa10
0
240
Member Avatar for rohitmanhas_12

cud anyone tell me what is session in asp.net and how to use it in login pages.... iam working on ASP.NET using C#....

Member Avatar for kvprajapati
0
142
Member Avatar for kalamku99

I have to write a c++ coding for my assigment... the question is write a program to validate a time.. user neeed to enter hour, minute, and second and the time must be checked either valid or not.. if not valid, the program must show in the correct format.. example... …

Member Avatar for chiwawa10
0
92
Member Avatar for dragonstar4681

Hello everyone. This is my first post on here so please forgive if there are mistakes. I have been searching the forum and other sites to get some answer, but not luck yet. Below is a program that basically asks for names, ids, alias, etc of agents and then writes …

Member Avatar for daviddoria
0
102
Member Avatar for andii_sfx

[B][COLOR="Green"]hey, im in year 11 at school and im just about to go into 6th form and study computer science ( hopefully if theres enough interest ¬.¬). any way, im not sure what computer is all about. If any of you could send me any links to usfull websites i …

Member Avatar for DemarioBolden
0
176
Member Avatar for ryandavid

Hi I have a Javascript drop down menu that has a Javascript scrolling ticker below it. The drop down menu is appearing on top of the scrolling ticker (as I want it to) in Firefox. The drop down menu is appearing "behind" the scrolling ticker (not what I want!) in …

Member Avatar for almostbob
0
243
Member Avatar for neosonic

I got a textbox within the picturebox. I want to be able to rotate it. So all the writings inside it can be rotated as well. what is the best way to do it? thanks

Member Avatar for hkdani
0
87
Member Avatar for jozz3

How would you define a recursive function that asks the user for a string and prints it from the outside in. For example, 123456 would print as 162534. Any help would be appreciated.

Member Avatar for jozz3
0
575
Member Avatar for octavia

Hi everyone, i'm new in VB.NET. I tried some sample program using Visual Studio .NET 2005. I just add new data source (which is MS Access file) to my VB Windows program. I used Data Source Windows to create database objects on the form. But after i debug, i can't …

Member Avatar for y2_sub
0
176
Member Avatar for dottomm

hello and thank you in advance to anyone who can help me with this problem. I've scoured the internetz for a while trying to find a solution to what must be a common question, but I can't find anything that relates to what I am trying to do. I have …

Member Avatar for dottomm
0
167
Member Avatar for sob_andizzle

please please please help me this is my last program i have to write and i am having difficulty, this could mean a pass or fail. Thank you for your patience and help. I need a very simple code that asks the user, #input the minutes that are allowed how …

Member Avatar for sob_andizzle
0
104
Member Avatar for simbomatic

Hello, I could really use some help with a project I am working on. The project will basically need to track changes that occur within a string so they can be highlighted. Ideally the application would spot that change in the string and prehaps inside a new word at the …

Member Avatar for simbomatic
0
150
Member Avatar for loving gaze

i have an assignment and i do not no how i complete solve it the problem is "An airplane has 15 rows (numbered 1 through 15), with six seats (labeled A, B, C, D, E, and F) in each row. Write a program to display the seating chart in a …

Member Avatar for y2_sub
0
104
Member Avatar for blazinhieu

How can i make the program to tell the user what letter of the alphabet it is: ex: " k is the 11th letter in the alphabet" here is the code that i got so far [CODE]import javax.swing.*; public class Ncom{ String Inputnum; char num; public static void main(String[] args){ …

Member Avatar for mckrm
0
123
Member Avatar for PSP1202

Hey all, I have an array in which the user inputs a series of numbers and when "-1" is entered the program is stopped and the average, max, and min of the numbers entered is displayed. I am able to get the average and max but for some reason the …

Member Avatar for PSP1202
0
117
Member Avatar for theflashjg

[B]The page:[/B] [URL="http://www.edutecher.net/links.php"]http://www.edutecher.net/links.php[/URL] [B]The problem:[/B] Using the selection on the left side loads the results on the right using a JQuery AJAX post shown here: [CODE] function updateLinks(){ $("#linkBody").fadeOut(500); $.post( 'ajax/linksfilter.php', $("#updateForm").serialize(), function(data){ $('#linkBody').html(data); } ); $("#linkBody").fadeIn(500); return false; } [/CODE] After the request displays the results there will be …

0
107
Member Avatar for Vandithar

Hi, I have 2 arrays and i have to compute the difference between arrays in perl. Here is the code. [code] @a=qw(20095053 19947571 19933274 19910458 19875498 19863670 19747485 19699809 19609242 19602509 19400988 19260844 19190289 19067769 19064710 19056771 19036087 18698092 18692784 18687424 18570886 18562159 18478156 18462614 18425777 18292846 18292840 18390561 18381856 …

Member Avatar for d5e5
0
606
Member Avatar for deanus

Hi, Are 2D arrays positioned in memory the same way as normal arrays? ex.: char names[2][5] = {"Dean", "Viky"}; If 'names' is memory location 3000, are the letters necessarily stored like this? 3000 = 'D' 3001 = 'e' 3002 = 'a' 3003 = 'n' 3004 = '\0' 3005 = 'V' …

Member Avatar for deanus
0
148
Member Avatar for AndrewT55

Hi, i've been working on this simple homework assignment and the only thing stopping me from finishing it is passing a c++ variable to a mysql query using mysql_query. I've searched around for about an hour and every potential solution I have found hasn't worked, so I figured maybe if …

Member Avatar for AndrewT55
0
4K
Member Avatar for zyaday

Following me everywhere? why do I get those exceptions very much??? why are they raised?? My classes are always in the same package as the class they accesses them.. I know they are there. Why doesn't the compiler find them???? thanks for your help ppl...please help :@

Member Avatar for zyaday
0
94
Member Avatar for miskeen

Hi, I have different variables and I want to have a final variable that represents the concatenation of those variables by taking a specific number of bits from each variable. For example, if I have 3 variables var1, var2 and var3 and I want to take 3, 2 and 1 …

Member Avatar for miskeen
0
109
Member Avatar for nimareq

Hi, imagine table with 15 rows and 3 columns. If I move mouse over any cell I want some other specific cells to change their borders like with pseudo-class :hover. I have tried many combinations and I am still having problems, so if you see, where am I making a …

Member Avatar for Airshow
0
128
Member Avatar for summey

Use the program, Passing-by-value, on the bottom of pp. 248–249 and the program, Passing-by-reference, on pp. 255–256 as a starting point for this assignment. Write a similar program, but change the code to pass two variables to the function call rather than one. that's my assignment and i have tried …

Member Avatar for summey
0
351
Member Avatar for BigFormat

Hi all, I'd like to filter an input string with a list of commas separated numeric ids to understand if it matches the pattern (only digits and commas allowed, i.e. "112,5,16,4578,ecc"). I'm trying to perform a regular expression match using preg_match. [code=PHP] $ids_list = '112,5,16,4578'; if (preg_match('/[0-9,]*/', $ids_list)) echo'OK!'; else …

Member Avatar for BigFormat
0
170
Member Avatar for PTRMAN1

First time using void functions. Apologies again for the noobish thread. I have a few questions on this problem. 1) Since the variables miles, gallons and milesPerGallon are used in both main and void, do I need to initialize them in each place? Or if they're initialized in main do …

Member Avatar for PTRMAN1
0
103
Member Avatar for tones1986

Hey all - I have to create a basic client browser that creates a socket with a webpage and then uses a command similar to : GET index.html\r\nHTTP/1.1\r\nHost: [url]www.mysite.com\r\n\r\n[/url] To get the source code for the website. I will store each line recieved from the server into an arrayList, which …

Member Avatar for Ezzaral
0
102
Member Avatar for losh177

Hi, I'm having some problems with an infinite loop. For some reason, the process 112 is not being send anywhere. What i'm suppose to to do is to mimic a CPU. Each line represents a process which the first number is the machine time that it suppose to be send …

0
133
Member Avatar for handrews3583

I'm working on a program in which I am using the BorderLayout Manager. However, I'm having a difficult time changing the size of the window. I want to make it longer and more narrow, with only one or two text fields per row and want to make the text field …

Member Avatar for Ezzaral
0
141
Member Avatar for ashkash

I need to figure out the execution time of the following algorithm in terms of n. x=2 while (x < n) { x=2^x } I think it is O(log n) but just wanted to get some confirmation to make sure I am approaching this correctly. Thanks.

Member Avatar for invisal
0
95
Member Avatar for rast1940

Hello, I need to read in objects from a binary file and place those objects into an ArrayList. Not sure on how to go about adding the objects - this is what I have so far: [CODE]ArrayList<MailingLabel> arrayOfMailingLabels = new ArrayList<MailingLabel>(); try { ObjectInputStream in = new ObjectInputStream(new FileInputStream("labels.dat")); while …

Member Avatar for jwenting
0
107
Member Avatar for ana_eht

Hello again Thank u for your kind helps again i have a question my problem is this i have a program with 3 list boxes when user choose an Item in one list box that item in parallel list boxes must also be chosen here is an example Quantity..... Name......Price …

Member Avatar for ana_eht
0
98
Member Avatar for deadliest

Can you tell me how can i increase the font of my output for particular portions of myy program on the output screen in visual studio.net 2003... for example if i want to give a heading or a title in bigger font.. how can i do so???

Member Avatar for Salem
0
152
Member Avatar for mados

Hi All members i need helping in creating content slider look like this; [URL="http://wpclassipress.com/demo/"]ClassiPress Demo[/URL] note; I ask for creating slider look like this (Thumbnail imge and Title under it) plz any tips to do that, My new WP site depends on this part...plz help

Member Avatar for Airshow
0
106
Member Avatar for miguelms19

Just need a few pointers with the code below. I have the below class to complete but I am stuck on the isAllValidDigits() method where i have to create a loop to check and return true if all the int values of the authorId array and the programId array are …

Member Avatar for vchandra
0
91

The End.