199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SJP99

not sure if this is a right place.....but what exactly does it mean if a programming language is portable?

Member Avatar for 0x69
0
139
Member Avatar for rahul8590

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 …

Member Avatar for diafol
0
330
Member Avatar for avarionist

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 …

Member Avatar for avarionist
0
130
Member Avatar for Learning78

[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 …

Member Avatar for Legjendat
0
1K
Member Avatar for beanryu

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"); …

Member Avatar for Ezzaral
0
5K
Member Avatar for SimpleIntellect

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; …

Member Avatar for NormR1
0
162
Member Avatar for FudgeCoder

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 …

Member Avatar for nbaztec
0
84
Member Avatar for virendra_sharma

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]

Member Avatar for bbman
0
177
Member Avatar for TrustyTony

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.

0
1K
Member Avatar for tkud

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!!

Member Avatar for tkud
0
91
Member Avatar for gomezfx

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 …

Member Avatar for nbaztec
0
92
Member Avatar for prashanth s j

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 …

Member Avatar for Beat_Slayer
0
1K
Member Avatar for strwbry.coder

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 …

Member Avatar for mrnutty
0
202
Member Avatar for eniwe

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 …

Member Avatar for Mattye134
0
213
Member Avatar for YasaminKh

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,

Member Avatar for mrnutty
0
112
Member Avatar for Jbvo

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 …

Member Avatar for nbaztec
0
95
Member Avatar for jsw24ua

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 …

Member Avatar for jsw24ua
0
175
Member Avatar for sastudent

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 …

Member Avatar for sastudent
0
127
Member Avatar for j_kathiresan

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 …

Member Avatar for nbaztec
0
168
Member Avatar for lrh9

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 …

Member Avatar for lrh9
0
2K
Member Avatar for jobs

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 …

Member Avatar for Stefano Mtangoo
0
466
Member Avatar for andrewll2

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 …

Member Avatar for andrewll2
0
221
Member Avatar for ryufire
Member Avatar for kaash1

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 …

Member Avatar for Manuz
0
108
Member Avatar for MichaelWClark

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 …

Member Avatar for MichaelWClark
0
104
Member Avatar for newtonsri

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

Member Avatar for rahul8590
0
94
Member Avatar for theheretic1984

[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 …

Member Avatar for theheretic1984
0
319
Member Avatar for leverin4

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 …

Member Avatar for Oxiegen
0
162
Member Avatar for red_ruewei

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 …

Member Avatar for Manuz
0
131
Member Avatar for NewOrder

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 …

Member Avatar for NewOrder
0
163
Member Avatar for aladar04

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.

Member Avatar for aladar04
0
83
Member Avatar for god_like

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 …

Member Avatar for god_like
0
129
Member Avatar for prashanth s j

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 …

Member Avatar for prashanth s j
0
205
Member Avatar for Mitja Bonca

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 …

Member Avatar for pritesh2010
0
164
Member Avatar for Jennifer84

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 …

Member Avatar for jonsca
0
82
Member Avatar for BalagurunathanS

Hi all... Someone give me the difference between typed dataset and untyped dataset.. Regards, Balagurunathan S

Member Avatar for vinod991
0
169
Member Avatar for eartherian

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; …

0
113
Member Avatar for gajapathi10

how i can develop my own programming language that will fullfills all the requirements of the present industry,

Member Avatar for AuburnMathTutor
0
116
Member Avatar for samsons17

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() { …

Member Avatar for samsons17
0
104
Member Avatar for Ali.M.Habib

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 …

Member Avatar for Ali.M.Habib
0
111
Member Avatar for kenny22

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 …

Member Avatar for kenny22
0
131
Member Avatar for b1izzard

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 = …

Member Avatar for b1izzard
0
176
Member Avatar for renoua

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 …

Member Avatar for renoua
0
249
Member Avatar for diegostix

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 …

Member Avatar for diegostix
0
147
Member Avatar for Roses89

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]

Member Avatar for Roses89
0
108
Member Avatar for bryan69

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 …

Member Avatar for NormR1
0
1K
Member Avatar for ubi_ct83

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 …

Member Avatar for ubi_ct83
0
105
Member Avatar for flaviusilaghi

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() …

Member Avatar for flaviusilaghi
0
277
Member Avatar for sara khan

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 …

Member Avatar for sara khan
0
230
Member Avatar for bynor

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 …

Member Avatar for shubhamjain1
0
110

The End.