199,114 Archived Topics
Remove Filter ![]() | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
[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); … | |
[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 … | |
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 … | |
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? | |
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 … | |
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() … | |
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? | |
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 … | |
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> … | |
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"> </td> </tr> … | |
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 … | |
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...... | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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) … | |
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 … | |
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! … | |
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 … | |
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?.. | |
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 … | |
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 = … | |
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 << '^'; … | |
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] … | |
[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" + " … | |
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? | |
Hello people, Whats the use of switch(ch) in c? | |
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? | |
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 … | |
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] … | |
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 … | |
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? | |
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 == … | |
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 … | |
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 … | |
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) … | |
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] … | |
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] … | |
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 … | |
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 … | |
Please how can I write a query to select list of building its building code and number of rooms in each building. |
The End.