199,114 Archived Topics
Remove Filter ![]() | |
Hi i need a little help. i want to read a multi array from a file but code blocks said a lots of error and i dont know whats the problem. can u help me? [ICODE]#include <iostream> #include <cstdlib> #include <math.h> #include <fstream> #include <sstream> using namespace std; int maxn=100; … | |
I'm create a program using java and MySql (jdbc) my problem where I'm start up the program in my customer computer , i must set up MySql program or not | |
i have an assigment to fork the main program to 4 sons each will sort an array in a different way [ICODE] for (sonID=0;sonID<4;sonID++) { status=fork(); if (status<0) error("Can't Fork!"); if (status==0) { checkFiles(argc,argv,&in,&out,sonID);// opening the files for use readFromFile(&nameList,&sizeOfList,&numOfStrings,in); sortArray(numOfStrings,&nameList,sonID); outputToFile(nameList,numOfStrings,out); //output the array to out file freeArray(sizeOfList,nameList); //freeing … | |
Hi. In my web site I have a jquery tab. When clicked a tab I want to show a div which writes loading [ <div class="loading"><p>Loading...</p></div> ] and hide it when the clicked tab content is shown. Is there a way to do this? Thanks. My code is below. <script> … ![]() | |
Hi php geeks, I'm just looking for PHP exercise online. If anyone knows websites that offer hands-on PHP exercise, Please send me a link or something that redirects me to useful exercises. Your help will be appreciated. Cheers, | |
hye everyone..i just want to share my problem using php..:$ i have data for field [B]total[/B] i.e total = (2,3,4,5,62,45,67,89,10,23,11,23,98,12) from all data i want 5 max values only. please help me to meet the solution.:) | |
I looked around quite a bit on how to solve this but i couldn't find a lot .. can anyone help me? The capitalized variables are constants [CODE] case '4': { bubbleSort(aList); string strKey; cout << " Input: "; cin >> strKey; binarySearch(aList, strKey); int binarySearchResult = binarySearch(aList, strKey); if … | |
Hey, I dont know much about macros or about scripting, but I've got a project to do for work and I looked up some codes and spliced them togeather to fit my specific purpose. I'm pulling pictures out of folders and sticking them in an excel file. You'll understand what … | |
Hello This year I am taking OOP as a core course and I am starting with C#.. So my first code to accomplish is to make an array of information about different types of cars.. In a brief.. It consists of 2 forms, The first form is where the user … | |
Hi thr, I'm trying to host a web application from netbeans. I've added app engine server. but i could not start it. can any one give me an idea for it. it is giving me some class path error what should i do now? | |
Hey there :) So, I'm making a small program for my school, and I need to get the names of the printers on the network. If you go to the control panel in windows, it can list the printers on the network, but how would I do that in my … | |
Working on a simple banking program and it doesn't compile. Worked perfectly when everything was in main, then i was told to divide into methods( where everything went wrong ). The errors im getting are: C:\Users\DJ3\Desktop\School\Minilab5.java:30: illegal start of expression } ^ C:\Users\DJ3\Desktop\School\Minilab5.java:67: illegal start of type switch (userChoice) ^ … | |
Hello everyone, i thought of this question and i would greatly appreciate some pointers on it. I have 2 simple Java Projects which are GUI based. One writes some information to a text file. The other reads the text field and displays it on the GUI. My question: Is it … | |
[U]Table's name: grandTotal[/U] (have two fields :defect_code and total) defect_code total LM 23 FM 15 DF 5 How this data can be an array like this array("LM" >=23, "FM">=15,"DF">=5) using query? please help me..:S | |
Hi, I want to append the content of an already defined "old div" tag to the "new div" tag dynamically but as I'm new to javascript i don't have any idea that how to do this. The code i tried is attached below. And one more question, how to remove … | |
Situation: i have a bitmap loadedImage1 which the user is able to resize, and move around inside picturebox1. objective: this loadedImage1 is then to be added to a pdf document (which is working) but needs to be using the current size and location(as the user can move it around) atm: … | |
Hello all, I'm having a bit of trouble logically figuring out what to do in this case for my cs150 class. I have to create a linked list from a while loop, but I can't figure out how to link the list successively at the end of each line so … | |
Hello! I just made an program, but now i have problem with sorting output in the asc. order (int datum) thats date in our language :) [CODE] #include <iostream.h> #include <stdlib.h> struct datum { char dan [32]; char mesec [13]; char leto [5]; void vnosDatum(); void izpisDatum(); }; void datum::vnosDatum() … | |
I just want to create a file where I can test code idea's in. Basically I want to save a test.jsp file to my file system then open that up with a browser and have it execute the jsp code contained. Is that possible? Here's a simple test that I'm … | |
hi there) guys, please tell me - is it any way to make associative array in php without assignment values to the arrays elements? in my situation i need to read indexes names from txt-file -so i can't immediatly give them values.....what will you advice in this situation? Is there … | |
Ok, so I am working a project where one of the last parts is to have a hidden field in the form to pass the product id with everything else in the url parameters. As of right now I have it setup to grab product info for an external file … | |
I want to open some files using my program. and I decided to use a shell command. but when i use shell it gives "file not found error" for example Shell("C:\Documents and Settings\ÖnerYavuz\Desktop\aa.txt") ==> it gives error but Shell("C:\Documents and Settings\ÖnerYavuz\Desktop\warkey.exe")==> its work and i thought it opens only exes. … | |
i try to run this code but it returned this error : Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\removeproducts.php on line 31 could u please help me........ <html> <head> <title>removeproducts</title> <meta http.equiv="Content-Type" content="text/html; charset=iso-8859-5"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p> </p> <table width="37%" border="0" align="center" cellpadding="0" cellspacing="0" height="66"> <tr> <td bgcolor="#000000" … | |
Hello Friends, I need a hint to auto complete the combobox. I have two table SpeciesMaster and BreedMaster (Access Database) In the java code on the action Listener of the Species combo Box the breed details gets populated in the breed combobox. But now I want to filter the breed … | |
Hi friends i am having n number check box, if i checked one check box it has to select all the similar values of the check box and the other check box should be disable. can any one help me to solve the issue i am having a java script … | |
I have a couple of questions, regarding my program: ----------------------------------------------------------- #1: Is it possible to have my table centered? The table is located towards the bottom of my console output and, as you can see, the data is sort of off center. #2: Instead of having the user input five … | |
Hello all, First and foremost I would like to thank anyone who will end up contributing to this thread. I'm relatively new to PHP/MySQL and did a site migration for a client to a different server. The website was working perfectly fine before, however now I am getting these errors. … | |
[CODE]class Fraction { public: Fraction(); Fraction(int numerator, int denominator); void divide(int& num, int& denom) const; void multiply(int& num, int& denom) const; void add(int& num, int& denom) const; void substract(int& num, int& denom) const; int getNum() const; int getDenom() const; bool operator > (const Fraction& otherFraction) const; bool operator < (const … | |
Is there any way that i can create a gui which contains an excel diagram sheet?not a jtable.. | |
hi freinds,, In my application i have to send email to a specified email, I have done this and its working fine , Now I want to send some word attachment in the same email id. The word attachment will select the user through the application as browse option just … | |
I am trying to create a program that creates a loop to enter different values in an array. but the program is skipping values of i. I can't understand why.. [CODE] #include<stdio.h> int main (void) { char s[10]; int i; for (i=1;i<=10;i++) { printf("enter %d'th value of the array 's'\n",i); … | |
Hello, I am having trouble inserting data from a XML file into a table in a SQL data base. The worst thing is it isn't coming up with an error but nothing is being inserted into the database Here is the condensed version of the XML code I am using … | |
I have one field of the student in database and I have to pass two rules in it i.e Classes 1-9 will only have 1 book for 1 week and Classes 10-12 will have 2 books for 2 weeks. How can I do that? | |
On my form I've got a picturebox, radio buttons and check boxes. The check boxes relates to a Square/triangle, in which a square/triangle will be displayed on the picturebox. And the radio boxes relate to rectangle/circle which are displayed when either radio button is selected. I have been told to … | |
Im still learning C and I have a few questions about making a array of strings. Im doing an assignment for school, and I'm a little stuck with my program. Here is my code so far: [CODE] #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]){ FILE* fin; int a; … | |
![]() | I don't know how to do this for Javascript, but I can explain in PHP as I have further experience in it. maybe someone can translate. A textbox's value is "username", and it needs a onclick javascript code that makes it 'this.value = ""' When users click the textbox that … ![]() |
Hello, I need to sort the following by ID as I enter them into a linked list by while loop. So far I can build through the list, but I'm not sure how to sort by ID as they are entered: Albert 1000 55.5 150 Babs 3000 60 110 Freida … | |
how to use password recovery control in my .net application using C#. | |
What I am trying to do is have a user enter a word into a text box and retrieve the information from a SQL database where the 'entered word' eqauls that a column. I have this working perfectly but now I would like the user to be able to enter … | |
Objective: User enters a score then clicks Add button. Everytime Add button is clicked a Score is added to previous score to display total, averaged,counter. Issue: I enter first scores then click add. The first score displays but the second score overwrites the first. It is not accumulating. I believe … | |
I have the registration form and everything seems to work good except when I try to insert the data into the table from the query in the php code. It will submit, but when i check the database the data is not in there. I tried multiple ways, but none … | |
Hello there. I am sooo despared since I cant make this work here is what I have in my logged_in.php file. <html> <?php echo "Welcome: "."<b>".$_SESSION["username"]."<b/>"; ?> <head> <div id="ajax"></div> <script type="text/javascript"> function createXMLHttpRequest(){ var XMLHttpRequestObject=false; if(window.XMLHttpRequest) { XMLHttpRequestObject=new XMLHttpRequest(); return XMLHttpRequestObject; } // else{ if(window.ActiveXObject) { XMLHttpRequestObject=ActiveXObject("Microsoft.XMLHTTP"); return XMLHttpRequestObject; … ![]() | |
This has really been frustrating me for hours. I have included useful comments in the program. All the descent examples i've come across were using char instead of string. :icon_cry: [CODE]#include <iostream> #include <string> using namespace std; class Celeb { private: string name; //Name of celebrity folowed by decade they … | |
Hi I have a php page, in which I would like users to be able to 'renew' a product by clicking on a button 'renew' There are no form fields to post though, as information is just shown to the user via a recordset. So basically they see their product … ![]() | |
I searched all over the net trying to find the reason behind why numbers are illegal as first characters in naming identifiers in C++, they say its illegal but they don't say why its illegal Id be glad if someone could tell me why :) , just curious | |
I am trying to use C++ (in Visual Studio 2008) to create a program that I first made using Visual Logic. The program is supposed to check the users input with an external text file. The external text file just has the username's and passwords... https://sites.google.com/site/sharearea404/ I tried using arrays … | |
I'm trying to use the Fb PHP SDK to execute different Js document.getElementById innerHTML functions, depending on whether the user is logged in to Fb or not. For some reason the function won't work for me. I know my API connection is successful, and Javascript can be inserted here, as … ![]() | |
Hi! I have some forms that i have used to send to my e-mail using the php mail() function. I have had som issues with it because the mailservice i am using is not on the same server as the domain, so now i am forced to change the way … | |
I need help understanding the following Machine A runs a program in 10s at 400MHZ We want machineB to run the same program in 6s. Machine B will require 1.2 * clock cycle than machine A. Why is it 1.2? I can't figure it out. | |
[CODE]import java.util.Scanner; public class Sales { private String salespersonName; public Sales( String name ) { salespersonName = name; } public void setSalesPersonName( String name ) { salespersonName = name; } public String getSalesPersonName() { return salespersonName; } public void displayMessage() { System.out.printf( "Welcome to the sales calculator for\n%s\n\n", getSalesPersonName() ); … |
The End.