199,114 Archived Topics
Remove Filter ![]() | |
not sure if this is a right place.....but what exactly does it mean if a programming language is portable? | |
For example , As i registered in daniweb.com , a mail was sent to my email id and after clicking on that link , i could complete my registration . i want to develop a similar module in php , where the users after signing in , i sent this … ![]() | |
any particular reason why r=p(3,1); cout<<r; spits out 1? note ive tested z m and t only r gives one even though its the exact same code ? what gives ? [CODE] #include <iostream> using namespace std; int p(int x,int y){ //supposed to be a power operation if anyone knows … | |
[QUOTE]Hi; I have developed a MCQ based learning game. A user has to play the game repeatedly to improve his learning. For each session of game, player gets score. I want to write the score in a single file for every session. e.g. I want to print user name and … | |
I know, this is really a noob question and I don't really know what went wrong. The code is very simple. I have a web page that contains the following: [CODE] <div id="mydiv"> <p>first</p> </div> [/CODE] The <p> tags are created by the following js code: [CODE] paragraph = document.createElement("p"); … | |
This is the error I'm getting. Exception in thread "main" java.lang.StackOverflowError at knapsack.knap.knap(knap.java:16) I would really apprciate the help. Thanks in advance. [CODE] package knapsack; import javax.swing.JOptionPane; public class knap { static int N; // Number of items static int [] size; static int [] val; static int [] maxKnown; … | |
OK I am new to C++ so I decided I'd toy around with what I know and try and do some neat stuff. I'm trying to make a program that will try and make you guess the number it's thinking of. But every time I run the program it always … | |
want this code in C# ,[code]void sort(int *a, int size) { int i,j, swapped=0; for (j=size-1; j>0; j--) { swapped=0; for (i=0; i<j; i++) { if (a[i+1] < a[i]) { swap(a[i], a[i+1]); swapped=1 } } if ( swapped == 0 ) break; } }[/code] | |
I made this program during forum discussion for accessing configuration relative to module directory, not main program's position (which can be accessed by sys.argv[0]'s directoryname). As the thread is closed I post my proves as code snippet. | |
Hello all, Anytime I write a header file in VS 2008, it doesn't compile... it tells me that "unexpected end of file found"..any help on this? Thanks!! | |
Hi, I'm taking a class on C++ and we just went over classes and objects. We have a homework assignment due and I was wondering if someone could check over my work because some of this class stuff is hard to wrap my head around. Here's the homework assignment (it's … | |
Hi, I have got the following requirement: In a file that has many lines, i need to search for a particular line that has the word DTP. The line may be like this in the file: src 172.23.1.23 dst 192.14.2.34 DTP 0 - 65000 If the line with the word … | |
Good day, everyone. I am refreshing my c++ skills from a year break or so :$ I am having some troubles remembering on how to write to a file. I have the general idea down, but I am not sure what I am doing wrong. I would be much appreciative … | |
The lines of code below are borrowed from the print media. My focus is on the assembly; so by making use of these lines, iam trying to understand certain features of the assembly that are unclear to me. I was able to follow a few lines of code, and then … | |
hi Everyone, I'm working with a Text file. Somewhere in my code a function returns the current position of the file pointer. But i want it to go to the next line or 2 lines after to do a string search there. Anybody knows how i can do that? Bests, | |
![]() | I am trying to use a digraph to read in airline flight information from a file and then ask the user for the source and destination then print out the path to get there. the text file contains source, destination, miles, cost. I am having problems making it use the … |
I could use some help getting my code to work. The user inputs the time in digits (ex: 7 35) and then the time is output in text (ex: seven thirty-five). I have populated an array but i can't get anything to print from the array. Here is what I … | |
The code below is my insert statement to get values into my database. However, I now have an update page where users can update their information. I thus have a form in which their initial info is inserted and now they can change it and submit again thereby updating the … | |
Hi, I'm having a very large string which as below -------------------------------------------------------------------------------- EQD+CN+SAMPLE18767+2200+++5' NAD+CA+FIR:172:20' DGS+IMD+3.2+2346+55:CEL' FTX+AAA+++GOOD' FTX+AAA+++ONE' .... .... EQD+CN+SAMPLE18795+2200+++5' NAD+CA+TIR:172:20' DGS+IMD+3.2+2346+55:CEL' FTX+AAA+++SECOND' FTX+AAA+++IS FAIR' .... ... similarly FTX+AAA as above and it goes on -------------------------------------------------------------------------------- i tokenized each segment with delimiter as ' and able to read each segment. Now … | |
I know that certain functions will check the script's or module's current directory for the file if no path is specified. [code=PYTHON]open('test.txt')[/code] If that script is run and test.txt is in the same directory that will open the correct file. However, if I try to import that module it doesn't … | |
I am looking for a good C++ example of a simple MySQL client program written in C++ and runs on Linux, using MySQL++ libraries that does the following (no threading): Accessing Option File Contents, ~/.my.cnf, in user home folder to read settings (load_defaults). Constructing and sending the sql statement that … | |
Hello there! I need a little help with a key detection program, i only need to watch for 1 key just -like the method to start recording with fraps-. I'm trying to use WH_KEYBOARD hook(not the WH_KEYBOARD_LL because i need the program to do stuff while "hooking"). In the dll … | |
I want to create a button with the time updating. | |
I need help with the following query, i will be so thankful if anyone can help me please. I have two tables in database: Table1: [CODE] Column1 Column2 Status smith john 1 jack smith 0 julia rob 1[/CODE] Table 2: [CODE] Column1 Column2 thomas lewis scott smith john evans lopez … | |
I am converting a xls to web form. THere are 4 fields and XX # of lines per form entry. Since the number of lines are variable I want to have an "+Add Line" Button to add a line of txt boxes to the form. I have gotten it to … | |
Hi, I am doing my undergraduate in computer science and wish to do MS at US, with specialisation in Operating Systems. So can anyone help me with doing some projects related to OS. Please suggest at UnderGraduate level. Thank you | |
[CODE]var myarray=new Array(4) for (i=3; i <7; i++) myarray[i]=new Array(8); for (i=3;i<7;i++) { for (j=1;j<9;j++) { if (document.getElementById('mytable').rows[i].cells[j]!=null) { myarray[i][j]=document.getElementsById('mytable').rows[i].cells[j].innerHTML;} else myarray[i][j]=0; } }[/CODE] Here is my code and i want to check if the cell exist and if it is true to take the content of the cell. But … | |
I have a web application that links to Microsoft Access and opens one of five databases depending on which button is clicked. I coded it on my machine in Visual Web Developer 2008 and it works exactly as expected when ran on my machine, but when I move the files … | |
Hi, I having problem to fix this problem. Already search for related thread, but cannot find a solution. The case is like this. I have 2 system that intergrate each other. Let assume as system A and B. User need to login from system A and can use system B … | |
my task is to use a loop,, i need the loop to go till 77777 the problem is that the numbers need to be octagon type.. 1-8 instead of 1-10. i have no idea how to make that conversion. i created 2 loops... i tried to come up with a … | |
Does anyone know how to use a prompt on java applet? I was to create a very simple calculator. Two prompts will appear asking for inputs. Then the sum, product, difference, and quotient will appear on java applet. | |
hello world. I dont can finish my project. can you solves the problems? I use code:blocks and every funktion and header is on a own file. [code=c] #include <stdio.h> #include <time.h> #include <stdlib.h> int main(void); void field(int paiOpen[][18], int iBig); int summe(int iGroesse, int paiFeld[][18]); int inputf(int *piFeld); void randgen(int … | |
Hi, I have got a utility "sock" which is C executable (under linux) on my machine. It acts like a server or client based on the arguments passed at the command line. I want to run it through a python script. I am using the subprocess call function to execute … | |
The code bellow is a sql querry, made in code. I would like to know how to do such stored procedure: [CODE] string[] NameSeperated = FullName.Split(' '); string querryName = @"SELECT StudentID FROM Students WHERE Name = @name"; if (NameSeperated.Length > 1) querryName += " AND LastName = @lastName"; using … | |
Hi, I am trying to call a MouseUp event. I usually do this with button events wich is my first example that works fine but I have compile error for the MouseUp event like shown below. I dont know if there perheps is a difference here that I am missing … | |
Hi all... Someone give me the difference between typed dataset and untyped dataset.. Regards, Balagurunathan S | |
Hello Friends, I am learning to code in ASP.Net (so forgive silly errors!)... Presetnly trying to perform the functions of edit and delete using Repeater. The Code is: Libraries that I am using [CODE] using System; using System.Collections; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Security; … | |
how i can develop my own programming language that will fullfills all the requirements of the present industry, | |
hi all.. I just want to ask,is it correct,in a class that we have built,PHP will first execute the constructor function before the others?? to make it clear is this is example : [CODE] <?php class database { public function __construct() { $this->open_connection(); } public $connection; public function open_connection() { … | |
We use vb.NET windows form program to pass parameters to crystal report wich execute sql commands I use .NET 2003, crystal 9, windows server 2000 and SQL server 2000 at the above enviroment the reports application work very well when migrate to SQL server 2005 , and windows 2003 the … | |
Hi developing a video application which is almost complete and just getting rid of a few bugs, one i am stuck on is an auto updating list box i use filesystemwatcher to update contents of listbox and added a bit of code with a textbox to allow me to change … | |
![]() | Hi I need a help in choosing a combo box event for placing this code. I have tried with Lostfocus,leave,mousefocuschanged,displaymemberchanged like this but nothing works and Lable26(Default I set Visible:false ) is visible even after I select an Item. [CODE] If combotype.SelectedIndex = -1 Then Label26.Visible = True Label26.ForeColor = … ![]() |
Hello, I have this part of php code... [CODE] <?php $dom = new DomDocument(); $dom->load("anna.xml"); $xp = new domxpath($dom); $unitid = $xp->query("/ead/archdesc/dsc/c01/did/unitid"); foreach ($unitid as $check) { print '<a href="#" onClick="displayResult2(' . $check->textContent . ')">' . $check->textContent . ' </a>'; // I presented the unitid's of a xml file and … | |
Hello, I am downloading live data from bloomberg and am attempting to write a macro that loops through several different stock symbols and saves the corresponding data for each symbol to its own invididual workbook. My problem is that I need to add a delay to my code in order … | |
Could someone please make me understand a line in the code? Ive commented it [code] class Circle { protected: double radius; public: Circle(double r = 1.0) : radius(r) {} //this part is what i dont understand double calVal(); }; [/code] | |
hi, im trying to compare the md5 key of a file selected with the md5 key of known files stored in a text file. i can get the md5 key of the file selected and all & also read the text file line by line however, i cant seem to … | |
Hi guys... Thanks for viewing my thread and hopefully u could reply a thing. i have this: input: -i 2,3,4,5 [CODE] public class Main { public static void main (String [] args) { static int value[]; static no_of_parameter; for (int i=0;i<args.length;i++) { if (args[i].equals ("-i")) { String value_str = new … | |
Hy. I am trying to encode a ASN1 structure with DER , but i get a parse error. My in text is : 304913214D617374657220646520736563757269746174656120696E666F726D6174696569301E170D3039313030313030303030305A170D3130303331353030303030305A020103010101 and the code is this: [CODE]include <openssl/asn1.h> #include <stdio.h> #include<conio.h> #include <string.h> #include <iostream> #include <fstream> #pragma comment( lib, "libeay32.lib" ) using namespace std; int main() … | |
I m making a website in which I hav an admin and members .. I want to define rights of users who can access a certain page.. For this purpose I m using an array of String along with a Session object. I m storing URLs of pages which a … | |
Hello there, i got a problem uploading Mp3 files, i use this Form: [code=html]<form enctype="multipart/form-data" method="post" name="carica" action="car1.php"><tr> <td><font color="#990000">Nome Canzone: </td><td><input type="text" name="use"></td></tr> <tr><td><font color="#990000">Nome Artista: </td><td><input type="text" name="art"></td> <tr> <td> <input name="uploaded" type="file" /></td><td><input type="submit" value="Caricare canzone" name="car"></td></tr> </form> [/code] and this Php : [code=php]$target = ""; $target … |
The End.