199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vartikachandra

i have made the following code... but i am having problems in accessing it.. [code] //structure for queue struct queue{ int items[MAX]; int front; int rear; }; //decleration of the queues :que_term for the values printed on the terminal struct queue que_mul2,que_mul3,que_mul5,que_sort,que_write,que_term; //initializing the queue void InitQueue(queue &q) { q.front=0; …

Member Avatar for vartikachandra
0
305
Member Avatar for theories

In all of the projects I've created in my college classes I've always declared the variables that will be used in multiple methods (passed by reference) in my main method and then passed as needed, allowing for the main method to be nothing more than a control for what variable …

Member Avatar for ArkM
0
88
Member Avatar for carthous

Ok im a complete noob to PHP. I'm trying to make a contact form. I had it working perfectly before. But now it seems that I have messed sometime up and I dont know what. I'm using this code: NOTE: I put the email address to [email]blank@blank.com[/email] solely to not …

Member Avatar for carthous
0
160
Member Avatar for PhiberOptik

I guys, I am working on a program that does remote desktoping and I am finding the biggest issue is that most people have routers which block most ports. What port do you recommend to create the least amount of difficulties with routers. (This program will be used for technically …

Member Avatar for PhiberOptik
0
94
Member Avatar for Lukezzz

If I have a backgroundWorker that has executed like this: [code] backgroundWorker2->RunWorkerAsync(); [/code] If I now want to cancel this, I have put this line of code at the very last line in the _DoWork event of the backgroundWorker2. I am not sure if that works or if it is …

Member Avatar for Lukezzz
0
139
Member Avatar for ItecKid

Hello, If I have code like such: [code=c++] map <string, map <string, int> > foo; map <string, map <string, int> >::iterator bar; [/code] How to access the value of the nested map? Normally I access a map's value like such: [code=c++] bar->second; [/code] To that end, I tried doing this …

Member Avatar for ItecKid
0
2K
Member Avatar for lllllIllIlllI

Hi I have a sorting applet that implements Bubble Sort and Insertion sort, and i have a couple of classes in my program. I made it using netbeans and i have no main class, and when i run it using this code: [code] <html> <applet code=Sorter.class width=800 height=300> </applet> </html> …

Member Avatar for lllllIllIlllI
0
368
Member Avatar for denniskhor

[CODE]{ String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ]"); jTextArea2.append("Part of Speech Result:\n"); String patternKGN,patternKPF,patternKK,patternKNA,patternKPA, patternKPC,patternKPK,patternKS; for(int i = 0; i < POS.length; i++) { try { File readKGN = new File("KGNLibrary.txt"); FileReader outKGN = new FileReader(readKGN); char[] buf = new char[(int)readKGN.length()]; outKGN.read(buf); patternKGN = new String(buf); …

Member Avatar for denniskhor
0
120
Member Avatar for denniskhor

[CODE] String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ,\n]"); jTextArea2.append("Part of Speech Result:\n"); String patternKGN,patternKPF,patternKK,patternKNA,patternKPA, patternKPC,patternKPK,patternKS,patternKNK; for(int i = 0; i < POS.length; i++) { if (POS[i].equals(POS[i].toUpperCase())) { jTextArea2.append(POS[i].toUpperCase() + "/KNK" + " | "); } }[/CODE] i ady split the input with "[-.!? ,\n]", for example …

Member Avatar for denniskhor
0
99
Member Avatar for cvarcher

Hey Everyone, First post to the forum so go easy on me... So here's the deal... I am writing the php/mysql for a page that updates my database with the values of a member who's membership details have been edited. I am having problems getting the values to update into …

Member Avatar for cvarcher
0
123
Member Avatar for drjay1627

if we use queue from c++ stl, we don't need //void enqueue(struct queue *q, int a) //int dequeue(struct queue *q) functions? my TA has it on the slides but since the c++ queue has push and pop enqueue and dequeue isnt needed, right?

Member Avatar for drjay1627
0
69
Member Avatar for salientknight

I have my code in a .CS file. I've writen a ton of methods, which work fine and had lots of seccess including code in this file. I have also been able to declair sql objects at the class scope with no problem. My problem is that everytime I try …

Member Avatar for salientknight
0
73
Member Avatar for theighost

Hello, I have this script for an ajax slideshow. I made the functions and they are working perfect in Firefox, but in IE they are not working? could the error be when I call the functions, or might it be the functions themselves here are the functions [CODE] function isIE() …

Member Avatar for theighost
0
97
Member Avatar for stewie griffin

This is my code: [code]public boolean SetYear (String year) { if (year.matches("[0-9]{4}")) { _year=year; return true; } return false; }[/code] Instead of return false I want to make a runtime error with my massage. Something like "the value must be 4 digits" How can I do it?

Member Avatar for Ezzaral
0
171
Member Avatar for stevehart808

Hi all, I've got this problem where I'm using one "include header" for my website. It has in it the navigation and because my site is spread out in and out of folders I need to use absolute links to connect all the various pages. i.e [code] <a href="<?php echo …

Member Avatar for chrishea
0
109
Member Avatar for 88omar

Hello there am having a little problem i am trying to add some validations to this from i made the form using tables however its not being color coded and when submitted its not checking the appropriate validations? any body can spear to look at it please. [code=Javascript] <html> <head> …

Member Avatar for 88omar
0
92
Member Avatar for veledrom

Hi, Code below doesn't add new innerHTML into table cell. When it adds it should run other (slideOther.js) file but, doesn't work. Thanks [code] <html> <head> <script type="text/javascript"> function startSlide() { el=document.getElementById('productsBigCell'); el.innerHTML='<script>var slide1foldername="";</script><script src="slideOther.js" type="text/javascript"></script>'; } <script> </head> <body onLoad="startSlide();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td id="productsBigCell" colspan="5">&nbsp;</td> </tr> …

Member Avatar for veledrom
0
111
Member Avatar for orchids

Need help!!! Please I am new to PHP so please bear with me. I have a page that I display several questions retrieving from the DB along with its answers. I do not have any problems displayed them. Each question have 4 checkboxes. Users can check as many boxes as …

Member Avatar for orchids
0
86
Member Avatar for shevy24

hi there,I'm stucked in trying to right the correct code for this assembly program, when i try to run it on DOS it's saying "EXTRA characters on line", i can send u the code if u wish to check......

Member Avatar for rahul8590
0
545
Member Avatar for artemis_f

I have the following code (this is just an example that I thought of for the concept I am having trouble with) [CODE]String fileName = "example3.txt"; Reader reader = new Reader(); ArrayList<String> vertices = reader.getVertices(fileName); Matrix m = new Matrix(vertices); Matrix m2 = m; m.setEdges(fileName); m2.print(); m.print();[/CODE] what I want …

Member Avatar for artemis_f
0
117
Member Avatar for heysebas

Hi guys, I'm writing a Java programme, one with GUI for a project in college. We separated the work into a few guys doing a few standalone Java classes. These standalone Java classes are run by doing the usual: java -jar XXX.jar through the console. The functions of the class …

Member Avatar for JamesCherrill
0
1K
Member Avatar for kunal123

hii all, im trying to connect remote sq server using in c++ using CDatabase class. im getting an sql error Connection Failed SQL State '01000' SQL Server Error 14: [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Invalid Instance()). SQL State '08001' Connection Failed SQL Server Error 14: [Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection the …

Member Avatar for MrSpigot
0
164
Member Avatar for rahul8590

i am working on image processing , which intially i used to do using MATLAB . but now i have been told to do using using JAVA or C++ programming ,. Since i know the fundamentals of C++ i guess i would be the right choice But the problem is …

Member Avatar for Nick Evan
0
242
Member Avatar for jessica2009

[code=python]def main(): print (" PC : Hi there.whats your name?") userit = raw_input (" user :") print (" Pc : Nice to meet you " ) , userit , userit = raw_input(" Do you like python? (A=its Great, B=its Ok, C=its Rotten)") if userit == A: userit = userit.upper() print …

Member Avatar for woooee
0
139
Member Avatar for Khushi2$

I have created image button at run time. But I want to know when I will click on this button then its click function will get call.How to create click event of this image button. I have tried [code]Function bindgrid() { Buttonname.click+-new ImageClickEventHandler(Buttonname_click); } Protected void Buttonname_click(object sender, ImageClickEventArgs e) …

Member Avatar for tybalt88
0
765
Member Avatar for ChimpusDupus

Hi, I am creating a page in which thumnails, in the form of Image Buttons (System.Web.UI.WebControls.ImageButton), are dynamically created based on which LinkButton is clicked out of a group of several links. I need each thumbnail to generate a full-size image on the page when clicked. I would use the …

Member Avatar for tybalt88
0
299
Member Avatar for 1baxter1

Hi Ive wrote a upload script for a photo website im making and ive cam across a unusual problem. The script inserts all the values into the databse correctly and displays "file upload successfull" but the photos are not copying onto the server. any help will be appreciated, thank you! …

Member Avatar for 1baxter1
0
120
Member Avatar for Miyuki Suzuki

Hello again, today is just not my day :( I had a problem with speed this morning and got help that totally solved it, so here goes hoping for some more help. [B]background:[/B] I have an ejb that picks up a file, copies it and the has to process the …

Member Avatar for Miyuki Suzuki
0
147
Member Avatar for kerek2

Hi alls, I need help from u all regarding this matter... I need to create simple program where the text can be display into cursor are piointed...it mean when i open notepad or wordpad...the text automaticly display when the cursor r there....anyony can help me?..

Member Avatar for Teme64
0
68
Member Avatar for K?!

Hi all We have to create a program that will require a lot of database interaction. I would like to create a JList with all events where a user can select an event he would like to edit. Is there a good way to store ID's into the list and …

Member Avatar for K?!
0
116
Member Avatar for csharplearner

Hi I want to display results which are retrieved from the database in the following format: 1 2 3 4 5 6 7 8 9 ........ ....... ..... based on the mysql_row_count() dividing the results into 3 columns and n rows. [code=php] $result1 = mysql_query("SELECT * FROM table2"); $row = …

Member Avatar for csharplearner
0
318
Member Avatar for RoselineM

can anyone help me with this output: ^^^^^#^^^^^ ^^^^###^^^^ ^^^#####^^^ ^^#######^^ ^#########^ ########### i have done the following so far & am struggling to continue: #include <iostream> using namespace std; //Function draw shape void displayRow(int sizeP) { for(int i = 1; sizeP - i + 1; i++) cout << '^'; …

Member Avatar for DangerDuke
0
128
Member Avatar for prawin@123

Hi Can any One Help me in Sending e mail . I am creating code for Forget password where iam sending the password to those eho forget based on their Email iD. It Partially works but Sends Error as [QUOTE]Cannot send password to your e-mail address ie error 3 [/QUOTE] …

Member Avatar for prawin@123
0
96
Member Avatar for denniskhor

[CODE] private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ]"); jTextArea2.append("Part of Speech Result:\n"); for(int i = 0; i < POS.length; i++) { if (POS[i].equals("makan")||POS[i].equals("kerja")) { jTextArea2.append((POS[i] + "/KK" + " | ")); } else if (POS[i].equals("sakit")||POS[i].equals("cantik")) { jTextArea2.append((POS[i] + "/KS" + " …

Member Avatar for denniskhor
0
99
Member Avatar for tomtetlaw

idk why i get this error i just do here is the code i have: [code=c++] #include "includes.h" int main() { } [/code] here is the error: c:\documents and settings\tom\my documents\visual studio 2008\projects\c++ tutorial\c++ tutorial\main.cpp(3) : error C2143: syntax error : missing ';' before 'int' any ideas?

Member Avatar for tomtetlaw
0
155
Member Avatar for PRATS 1990
Member Avatar for debeginin

I just got started with ms sql server2000,and I need a big favor from the the house,which is:please what softwares do I really need to install to get started?

Member Avatar for debeginin
0
72
Member Avatar for PinoyDev

Good day! I want to check all txtbox and combox(style=2) in a form when the user click save. If one textbox or one combobox is not fill in then i will show a message that cannot submit. One or more fields requires entry.I dont know whats wrong with my code …

Member Avatar for koolsid
0
87
Member Avatar for shadwickman

Hello, I've loved Python ever since I picked it up a couple years ago, but I have a question about the proper way to do something. There's a way of condensing an if/else conditional that has 2 options (True, False), for simple things. Assume that [icode]playerWins[/icode] is a boolean: [code=python] …

Member Avatar for shadwickman
0
116
Member Avatar for add4

Hi there, i am trying to create multiple clients connecting to the server. But the problem is that I can't set the Socket() constructor time.i.e by default the constructor waits to listen for 20 sec. My clients are many so that the time taking for those is hi. So that …

Member Avatar for JamesCherrill
0
109
Member Avatar for turbomen

To design a program that works out the powers of numbers. For example 3^5 = 3*3*3*3*3 = 243 2^3 = 2*2*2 = 8 Please help me again?

Member Avatar for m610
0
91
Member Avatar for jschri4

string rating(bool ozone, bool no2, bool so2) { string result; int count = 0; if(ozone == true) { count++; } if(no2 == true) count++; if(so2 == true) count++; if(count == 3) result = "Gold Star"; if(count == 2) result = "Silver Star"; if(count == 1) result = "Ok"; if(count == …

Member Avatar for Zhujy
0
81
Member Avatar for choudhuryshouvi

Hello all folks... I have an asp.net web application which uses Microsoft Sql Server 2000 as its backend....Our application is a Payroll Management System.. The system is fully completed and uploaded to the local server in our client offices....The system is build on WinXp platform...the apps is running in the …

Member Avatar for choudhuryshouvi
0
145
Member Avatar for javaman2

hello again, i hate to be a bother but this is the third day im working on this assignment and i need a little help ill point out the 2 lines im having trouble with in my driver program(driver1) but ill supply you with the class definition and the driver …

Member Avatar for javaAddict
0
225
Member Avatar for Miyuki Suzuki

Hello everyone, I am having some difficulty with file handling, I hope someone can help. Here is the background: 1) I have to read a .dat file, file size varies from 692kb to 109.742kb with the following format of data: eg : ID|flag 1|y 2|y 3|y 4|y 4.37777451|y 5.52625317|y 2) …

Member Avatar for Miyuki Suzuki
0
106
Member Avatar for crumpet

Hi, I'm trying to create a "command line" in Python, which makes a user input a certain command and its associated data, without the use of brackets. So the user would input: >>> test 1 2 3 So it would carry out a command: [CODE=python] def test(firstnum,secondnum,thirdnum): return firstnum,secondnum,thirdnum [/CODE] …

Member Avatar for crumpet
0
154
Member Avatar for PinoyDev

I have created a flash system manual which is located relative in my program path at folder named manual. When the user click [I]play[/I] i will play the flashmanual.swf in a folder named manual relative to my program. I have coded it below but it returns error: Please help. [code=vb] …

Member Avatar for PinoyDev
0
86
Member Avatar for ckillackey

Ok, I have a homework problem that I'm needing some help with. The program has to Allow the user to specify the number of integers to be inputted into the array read a data set of number of integers into the array Determine the sum find the largest integer and …

Member Avatar for sillyboy
0
119
Member Avatar for letlet_pogs

Hello everyone. I am just now starting PHP. It is my first time actually. I dont know how to run the PHP. I saved the file as "HelloWorld.php", but when i opened it in firefox, no any words appear. I want that the "Hello World" will appear, can anybody help …

Member Avatar for cwarn23
0
62
Member Avatar for achiman

Please how can I write a query to select list of building its building code and number of rooms in each building.

Member Avatar for debasisdas
0
148

The End.