199,123 Archived Topics
Remove Filter ![]() | |
I am trying to pass the OleDbDataReader to table that I can pass out of a function. | |
I can can use a BufferedReader to open a Streamat the command line, like this: [Code] BufferedReader br = new BufferedReader(new InpuStreamReader(URL.openStream())); [/Code] Once I try to use this same statement inside of my applet, I get an AccessControlException. I know it's something to do with security, but how do … | |
I would like to design a program to implement a string of operation, such as: 1+3/4+5*5-(454*23-34) Then, it returns a correct answer. And what's the exact algorithms? | |
Hello, I am new here looking for some advice. I belong to a programming group that intends to simulate hearing loss via software that we are creating. At the moment, we are looking to see how are we able to obtain sound from sound cards. What we intend to do … | |
Hello, I am having a members search page, where you can look up members by searching on e.g. age, interests, country etc. If the user does not specify e.g. an age range, then all ages should be included in the search. But if a specific age range is specified, then … | |
hi guys, i need some help. i need one c program about a file called segy. hve to extract some information from its header(trace header) & stored it in another file to view.The information i have to extract from the trace header are inline,crossline,x coordinate & y coordinate. i wanna … | |
here is the sequence i'm using for my arrow keys [code]#include<stdio.h> unsigned char keyin main() { if(square==1) {//start square putimage(285,440,ste,COPY_PUT); while((keyin=getch())!='\r') {//up arrow key if(keyin==72) {//hit up arrow keyin=getch(); square=2; }//hit up arrow }//up arrow key }//start square do {//game from start square on if(square==2) {//on square 2 putimage(285,400,ste,COPY_PUT); }//on … | |
hi, I need to find a way to get a list of all of the files in the current folder, so i thought i could have my program execute the 'dir' command into the command prompt and then parse what is returened. would anyone have any ideas on how I … | |
Hi everyone, I have a JTextPane with an embedded JLabel and i am trying to print the contents of the JTextPane. When i print it an exception gets thrown saying that there is an error in the views. This only happens if i have an embedded jcomponent in the jTextPane … | |
I declare a array of pointers: [CODE]char *a[13];[/CODE] And how can I allocate memory for it using "new"? (I'm a Chinese student,so my expression may be not so exact~) | |
1, who can tell me the defference between "cerr" and "cout"? 2, if I will handle these operations, how can I do? [CODE]cout << 7/2 << " " << 7/0<<" " << 7/3;[/CODE] 7/0 is wrong,but I will let the codes continue, that is , let the result of 7/3 … | |
Warning: what you are about to read is from a complete novice who is trying to install software on a linux server. I apologise in advance if this is not in the right forum. My problem is that the install program shows the following during its checklist: Disabled functions list … | |
Ok, I'm working with some Strings, and these Strings will get remade up to an infinite number of times, and I know that a new object is created each time. So, which is worse.. Keep using the String, and have the value continously change, or Use a StringBuffer, and continously … | |
This was a question in a previous topic but I didn't quite understand the answer. I display radio buttons from a Array I built in ASP (radioArray) which contains a code/short desc/long desc. When someone clicks a radio button I want to invoke a Javascript function to display the short … | |
please help...when case 2, 3, or 4 are chosen the program goes into an infinite loop except for case 1 which works fine.... [code] //this program performs addition (grades 1,2,3,4), subtraction (grades 2,3,4), multiplication (grades 3,4), and division(grade 4) #include <cstdlib> #include <ctime> #include <iostream> using namespace std; int main() … | |
At runtime I obtain an instance of descendant of TObject (for example its name is TGoodForm). The definition of TGoodForm is unknown at compile time (I know that it is TGoodForm from TObject::ClassName()). [B]The question: how to create new instance of TGoodForm ?[/B] In another words, can I get address … | |
Please help, I am writing a program to take in 3 values and return the shape of a triangle. The program runs, but not quite right. Instead of returning the shape of a triangle, it returns a smiley face....which really surprised me. Can anybody help? The code I have is: … | |
Hi I'm writing a program that is designed to have a user input the degree and coefficients for a polynomial with two variables, x and y, and i'm having trouble figureing out how to output the degree for the y, and tryin to ignore the term if the coefficient is … | |
Can anyone tell me the format for reading information into a program and if I want to save information out of the prgram into a txt file. I understand it to be Assign (file name, path) reset (filename) close (file name) and to write information out assign (filename, path); rewrite(filename, … | |
It's easy enough in Java. How is it done in C++? for e.g. I have a class called Relation, that has a name field (just a string) and then a vector of strings. I want to specify that wherever I type (for example): Relation* r = new Relation(...); cout << … | |
Dear friends I am asking anybody to please provide me with a round robin scheduler in C programming. I have a non preemption program, but i need a preempted one. Please help. | |
please help me to write this program Ihave make one closed to it but I could not do it as what it says here is the problem and my solution: This is the program Write a program that outputs a telephone bill, given information on telephone calls made by the … | |
Hi, Im having a slight problem with fgets and ssl. [CODE] <?php function monkey($method,$protocal,$port,$domain,$path,$data,$query){ if($method=="POST"){ $fp = fsockopen($protocal."://".$domain, $port, $errno, $errstr, 30); if (!$fp) { echo $errstr." (".$errno.")<br />\n"; } else { $out .= "POST /".$path."?".$query." HTTP/1.1\r\n"; $out .= "Host: ".$domain."\r\n"; $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; $out .= "Content-Length: " . … | |
Is it possible to use MS Access as a db with PHP? If so, how? If not, is there a way to convert (for free without buying a program) MS Access file to MySQL? Thanks for your efforts | |
hey ppl, can anyone tell me which is the ideal database backend that i can use with php :confused: ...i thought about using access but i dont think it would be good enough...please help me.Thanx a lot.Ciao. -geek. | |
Hello everyone, I am looking for open source gateway written in Java. It is better a light-weighted and easy-to-configure gateway, which could be used in J2EE/J2SE/J2ME applications. Thanks in advance, George | |
Here soon, I was hoping to buy an IDE for C++. However, I'm not sure which is the best to buy. I only know of Borland and Microsoft's as popular IDEs. Are there any other popular IDE's that are worth purchasing. I'll be heading off to college here soon, and … | |
[code]//final.cpp //Creates an array with 2 players' batting avg //Read in hits and atbats for each player //1) one player get data in main //2) other get data in battingavg function //battingavg function figures out battingavg for both players // and puts them in array (not hits & abats), print … | |
I'm trying to overload my 'Log' class so that I can pass 'endl' to it. Given the obscure nature of the compiler errors for template classes, I'm not sure what to put on the 'right hand side'. For example, these work fine. .. [code]Log & operator << (ostringstream & a) … | |
I've been working on this webcrawler and I've ran into a problem. I can read the first URL and get all the URLs out of the HTML code, but I can't seem to set up a looping structure that will work. This is basically what it does: Searches through html … | |
can yall help me-i need to be able to output in preorder (root, left, right) and in post order (left, right, root)- when i output now it is in order (left, root, right)- how come it does this automatically, just wondering about that-but i need help with preorder and postorder, … | |
[code] int hangman::checkstatus() { for ( int i = 0; i < 5; i++ ) { if (encryption[i] == '*' ) { return i; cout << i; break; } } if ( i == 4 ) { cout<<"You win!"<<endl; } return 0; } [/code] Hello guys, this function always returns … | |
Hey people! Ive had to right a simulation to the game buzz-fizz..this is what the game is... One person starts of by calling out '1' then each player adds one to the previous players number and calls out that number unless it divides excatly by three or five.. If it … | |
Hi Friends, I want to write a MP3 player with minimum GUI for Linux (Fedora) I dont know where to start with I have knowledge of C/C++ programming, but not much knowledge of creating a GUI. I use Eclipse. I want to write for KDE. Can you please guide me … | |
[CODE]if(cmd=="new"){ string name,desc; cout<<"Name? "; cin>>name; Setcursor(Conloc); cout<<"Desc? "; cin>>desc; Setcursor(Bodyloc); Invitem Item(name,desc);[/CODE] When the values of the string desc is set through cin, if a space is used, all text after that space isn't used. Also, If two words are used when setting name, it will give the second … | |
Hi, I'm trying to use the STL map class to be able to store keys and associated values. I started out using it with keys of pre-existing data types like int, string, etc. and was working fine. I was also able to use it with values of custom classes. I'm … | |
hey everyone. first time poster here. i've been having trouble with my search feature on a website that i designed (well i helped design). it works fine when i'm in the indexing service but on the site it wont. if i search for random letters, it will say "No search … | |
Does anyone know how or have any type program to input comma-delimited data into qb programs? I have written a unique program, I want say what but it is good. grissomdl :rolleyes: | |
.................a script for event booking with that uses PHP and Mysql and links to a third party such as worldpay or paypal for payments? I've had a look and I can't find anything specific to my needs. What I'm really after is something like the track day booking at [url]www.bookatrack.co.uk[/url]. … | |
Hi, I have the following interface for a 35 day month calander script that I am writing. The interface is called for use with an html page. I am supposed to collect user input which includes day, month and their event. blankEventsJan = [ ['<br>','<br>','<br>','<br>','<br>','<br>','<br>'], ['<br>','<br>','<br>','<br>','<br>','<br>','<br>'], ['<br>','<br>','<br>','<br>','<br>','<br>','<br>'], ['<br>','<br>','<br>','<br>','<br>','<br>','<br>'], ['<br>','<br>','<br>','<br>','<br>','<br>','<br>'] ] … | |
Hello, I've created a table web server control that does what I want (imagine that!!). But my problem now is I would like to send this to a file anyone know how I can do that? KG | |
I have generate a ASP.NET page with a Codebehind but i want to create a file with common method that i must make in many page of my website. I create a new file class .vb, but how can I using the public function that I have insert in?? Thanks … | |
Error publishing Asp pages on WinME, personal webserver I am using Personal web server on Windows Milleniuum Edition ,but when I tried to publish my .asp file ,it is not getting published .What is the reason for this ?Will you please help me to find the solution to this problem … | |
[code]//project.cpp compiles //Need to create an input file of recently shipped music CD's. //The file should consist of the name of the album, quantity shipped and price. // Since we do not know how many CD's have been shipped, keep reading the file //until all CD's have been read in. … | |
Hello everyone, my code is finally complete thanks to all of your help. One questions I have is regarding the reslts. I thought that Merge was faster than a heap sort. In my results however (when run on Borland c++) Heap comes out with a faster sorting time. The functions … | |
Let's see if I can completely strike-out, with a third unanswered post: I would like to know how to store binary data in the app.config file for a C# application. These are basically text strings, but they do include one or two "binary" characters, such as decimal 12. I need … | |
Hi! I'm building a login system for my application, but I'm having a little problem... It really needs top security, so I'm using both MySQL backend and cookies. Example: [B]LOGIN FORM[/B] > [B]VALIDATION[/B] > [B]INSERT SECURE SESSION ID INTO DATABASE[/B] > [B]STORE COOKIE WITH INFORMATION[/B] That's for the login. For … | |
Does anyone know if Microsoft will be offering [B]Visual Basic .Net 2005[/B] as a standalone product? I can't imagine that they would not, but I can't find anything on their site that mentions anything but Visual Studio 2005, which contains a host of things I don't want. I have a … | |
I have a search code from Database. i want to display queries from Database with multiple option. how do i assign variable on both. for example String jsql= "Select * from UserList WHERE '"+abu+ "' = '"+userSearch+ "'"; the full code: <%@ page contentType="text/html; charset=utf-8" import="java.sql.*, java.util.*" errorPage="error.jsp"%> <html> <head> … | |
hello all anybody could please tell me how to change this code to make it read from a file that has unknown no of students in it. now this [I]part[/I] of the programe read only 5 students. could you please help me to solve this problem as soon as you … |
The End.