199,114 Archived Topics
Remove Filter ![]() | |
OK, here is my dilemma, I am trying to read an input file into 3 arrays. The file must be formatted as such (ie - with each value on a new row): 3 - n value for an n x n matrix 'a' 1 - a11 - Next n^2 terms … | |
Hello, I understand how use the onblur event the following way [CODE]<input name="city" id="city" onblur="myfunction()" />[/CODE] But what if I don't want to insert javascript in html. I need to keep all javacript in a separate file. Can I execute my function without mixing html and javascript? Thanks in advance. | |
sir,i i have two date columns today_date and doj_date.both of them are varchar data type.now i want to update today_date='01/06/2010' to '01/04/2010' where doj_date='01/04/2010'.that means only the month column. ihave used the following code update installment_scheme_customer set substring(today_date,4,2)='04' where substring(today_date,4,2)='06' and substring(doj_date,4,2)='04' . but it is showing error like this … | |
tell me code for designing a simple text editor using C++ with open,save,save as,like other options.. | |
Hi everyone, does anyone know how i might implement a 2D Vote table? Would using a 2D array for it be possible? I'm trying to implement a voting system for the indexes into hash table arrays. Any ideas? | |
Hi guys, I have a file named DrawPanel and this class is supposed to draw different shapes which i declared before by using mousedrag. I am not able to draw more thatn one shape and put them in an array.It seems that i don't know where to change the value … | |
Hi I have a multiple-query issue I'd like some advice and help with. I am trying to create a website, in which users can upload their own images to the site. I am a beginning in PHP (and only solid in html and some sql querying) What I think I … | |
Hi all, bit of a c++ newbie and hoping you might be able to help me with a problem. I'm trying to calculate the elapsed time between two dates using difftime, however I keep getting an elapsed time of 0. Can anyone see where I'm going wrong? Any help greatfully … | |
| |
i get that error when i try and run through my code. Can any one please tell me what is wrong with my insert statement. It looks correct. [code=c] OleDbConnection connect = new OleDbConnection(); connect = new DBconnect().DbConn(""); string insertStatement = "INSERT INTO Restrict " + "([Company ID], [User Type], … | |
hi i need some help with a project i am working on. i basically have a back end site php/mysql with clients addresses etc, i need to be able to send that data to another site where they have login and passord for and it pre populate the forms in … | |
Hello, I have the code below and I'm having a problem checking the returned values from the query i send,i really would like to know how to check each and every row the query return if it contains null values.And if it does contain the null values to update another … | |
why i cant run graphics.h in turbo c++ but i have graphics in my llibrary :( help plss | |
Hello, I have been working on this program for the past four hours and was doing good till I got to this point. I am pretty sure that I probably can't do it this way, but I'm just learning and it isn't becoming apparent to me how to correct it. … | |
Hi, I have to make a script with parameter that limits the character. This is the code snippet So script.pl -teacher [string] where teacher should only be allowed of [A-Za-z0-9_-]# , if not, print error message which is "error". Other thing is that, the parameter -teacher have to follow the … | |
i hav created software in visual studio 2008 window application using C#,now i want to add serial number.how can i do it pls give ur suggestions. | |
Hello, I'm trying to update a dictionary using variable in a class. Something looking like this : [code=python] class testClass(object): def __init__(self): self.data0 = 0 self.data1 = 1 self.data2 = 2 self.data3 = 3 self.d = dict( data0 = self.data0, data1 = self.data1, data2 = self.data2, data3 = self.data3 ) … | |
Hi! I am just a newbie here! I just wanna ask how to do the file handling in java applet? Do I have to do the certain policy/permission to perform it? If so, how would I do it? And another one, how can I close the APPLET WINDOW once I … | |
when i try to use pow with cmath header i get error message pow(int,int)is ambiguous it also gives other possible options i.e pow(double,int) why is int^int ambiguous? how could it be less ambiguous? | |
hi every body>>>> please i am student and this my homework very important to me the question is : how to complete this simple program to make its return 0 ????? the answer is some thing instead of: [CODE] /* some statments */ [/CODE] please i am new here and … | |
I have a page where I need to show a number of form input fields depending on what number is selected in a select menu. I have a sort of solution but is is messy and involves too many fields. I need to show up to 15 text input fields; … | |
sir, I am developing a s/w in asp.net using c#.everything is working fine.but some times i get error like Event code: 3005 Event message: An unhandled exception has occurred. Event time: 9/23/2010 4:00:35 AM Event time (UTC): 9/23/2010 9:00:35 AM Event ID: 4849e4d93324492b9167dcc72751f79a Event sequence: 8 Event occurrence: 1 Event … | |
I have this very easy form to store info in a database table but i would like to be emailed once somebody has entered the details, how would i do this please? Form [code=php]<form action="insert.php" method="post"> <div align="center">Firstname: <input type="text" name="firstname" /> Lastname: <input type="text" name="lastname" /> Email: <input type="text" … | |
hi guys... I am having a hard time figuring out how i could determine the winner of the game and how I can determine if a game is a draw. Any suggestions or code that i should input in my porject? Please help me. Im new in C#. | |
I am reading XML and PHP. I have to import a xml file in mysql database using PHP script. I tried using 'simplexml_load_string()' and 'simplexml_load_file()' functions. It worked. But how the xml parser is used to import XML files into Mysql Database. Please tell me about this, I tried the … | |
I need your help... Again... How can i combine reading from file with [iCODE]std::getline(file, std::string);[/iCODE] and [iCODE]UpdateData(FALSE);[/iCODE] ? UpdateData() accepts only CString and getline only std::string, and then i try to use it like that: [CODE]std::string readbuff; int length; std::ifstream file("file.txt"); while(getline(file, str)) { length = str.length(); for(int i=0; i<length; … | |
hi, beginner question i am planning to write code for different values of a^b. both a and b will vary in the program and both will be long long ints; as my compiler wont allow pow(int,int) as it is ambiguous(dont know why) either while have a as a double and … | |
trying to write a fuction to work out the GCD of two numbers seems to run ok but the return is incorrect any help much appreciated #include <iostream> #include <cmath> using namespace std; int g_c_d(int a,int b); int main() { cout<<g_c_d(2871,4060);/*test example*/ cout<<endl; system("pause");/*been advised not to use this but … | |
Hi there, I'm having a bit of a problem passing a variable from a form to a php script and could use some help. I hope this makes sense: The problem occurs when the script doesn't recognise the name of the text-area (which is a unique name that changes each … | |
[code] how can we check that user [B]inter [/B]an [B]integer[/B] or not? [/code] | |
I'm new to C++ and I'm having trouble understanding how to determine what to put inside a loop. I know it differs from program to program, but a lot of my assignments deal with the user inputting a number of how many numbers they want to input (it can be … | |
Hi there, I'm working on this page, which is built in Wordpress: [url]http://www.rjt-online.com/blog/[/url] As you can see I am displaying recent Twitter posts using Twitter's own JS code, which seems to work fine. Problem is, when you navigate away from the page, and come back to it (using browser back … | |
This is for a tool I have that receives a lot commercial emails and it would only apply to that. It is not for emails that I receive from individuals with yahoo.com, gmail.com, or business accounts. I'm familiar with retrieving and parsing email headers using imap_headerinfo. I found that imap_header … | |
there is a mistake on the code. I would like to write "test" like t e s t but it writes reverse. it is easy but my brain is not enough. [CODE]#include <iostream.h> #include <string.h> #include <conio.h> int main(void) { char *pointer="test"; int index; for(index=(strlen(pointer)-1); index >= 0; index--) /* … | |
Hi, Java has been my choice programming language for many, many years now, and I want to start doing C++. I've written in C++ before, but that was a while back. I'm treating myself as a beginner at the moment. I use Eclipse to write Java, and I recently updated … | |
Hi all! i have a problem. From my database im streaming out a file and will save it with filestream.savetostrem() method into the windows temp directory. thats work correctly. after that i open the file with the shellexecute command. and the question: on forms close event: make a method to … | |
Here the code for get three digit value 'n' and calculate r=2^n+1 then find that value 'r' is a prie or not, here i like store the integer value 'r' without exponential function and big Integer, please make a great help to me. thanks in advance.. import java.*; import java.io.*; … | |
Okay Basically i want to put the contents of array called numbers into a MSSQL database i can connect to it no problem and select and display data so its not a connectivity issue here is what i have so far: [CODE] for (int i = 0; i < numbers.length; … | |
Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to … | |
There's a header class called example.h [CODE] #ifndef __Sample_H__ #define __Sample_H__ namespace example { namespace Samples { class AlgorithmSample { public: virtual void release(void) { delete this; } virtual boolean process(void); }; class AlgorithmDesc { public: virtual String getName(void) const { return "some example program"; } }; }; }; #endif … | |
Hi Am doing my first bit of jQuery and I thought it was all great until I looked closely. I'd really appreciate any help! All I want to do is fade in an absolutely positioned div with a couple of lines of text in it when the page loads. There … | |
// The purpose of this Lab is to start the program used in Lab 1 and modify it // to calculate the average of 4 grades entered by the user and display the results // on the console through the use of the math operators in C++. // Part 2 … | |
Hello. When implementing a KeyListener in my application I have the following code. I have added the KeyListener to a JTextField control using addKeyListener(this) and the current class implements KeyListener. [CODE] @Override public void keyPressed(KeyEvent ev) { System.out.println("Pressed: "+ev.getKeyCode()); } @Override public void keyReleased(KeyEvent ev) { System.out.println("Released: "+ev.getKeyCode()); } @Override … | |
Hi I'm making a game in Python with the use of Soya3d. I can load all the models and textures in Soya3D but the animation that i made for the models doesn't get imported. It keeps asking for a cfg file and is was wondering how I could fix that … | |
like a Picasso's present return to natural memory | |
i am programming a web site for a store and the manager of shop want to display onlinw show via their camera on the store. how can i do it in a php site? what are the requirements for doing this job? should i have a dedicated server for that … |
The End.