199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ultrAslan

Hi, all I am trying to write a code for root test. I'm trying to do it recursively. For instance, If n = 25 and r = 2 then.. the domain is from 1 to 25 first it will add first number and last number which is 26 and divide …

Member Avatar for mrnutty
0
95
Member Avatar for vbozzelle

I wrote a small program in php for a website this code allows a user to upload a file and it emails it to whomever we declare as the recipient. This code works great on my windows server but when I put it on the Linux based server in fails …

Member Avatar for cwarn23
0
164
Member Avatar for XStrong

Here's my code: [CODE]#include <iostream> using namespace std; int Factorial(int n) { int total = 1; while(n!=0) { total = total * n; n--; } return total; } int Combinations(int n, int k) { int count = 1; for(int i=0; i<n; i++) { for(int y=0; y<(k-i); y++) { cout << …

Member Avatar for VernonDozier
0
129
Member Avatar for tarheelfan_08

Can someone please advise me as to why my assignment is not working? I am doing the exact same thing I did on another assignment and for some reason it wont work. Assignment 1. You are a programmer that works for a local bank. You are creating classes to be …

Member Avatar for thomas_naveen
0
204
Member Avatar for ksaihat

its java assignment i dont know how to do this part allow user to determine whether a given (whole ) number is a Fibonacci number or not print massage on the screen with the result of your option: either the number is a fibonacci number or the number is not …

Member Avatar for kvass
0
129
Member Avatar for sid78669

I have been working on a template class for linked list and sometimes I come across this member function: [CODE=C++] template <class T> bool DLList<T>::deleteData(T data) { ListNode<T> *temp = head; while(temp != NULL && temp->data != data) temp = temp->next; if(temp == NULL) return false; else{ temp->previous->next = temp->next; …

Member Avatar for sid78669
0
96
Member Avatar for jino

Hi, I had changed an image to string using base64_encode() function. In now want to convert this string back to an image for saving it into a folder. Please help.... Jino

Member Avatar for jino
0
184
Member Avatar for tryphy

I have four forms one --> two ---> threee -----> four I used session here... when i go from one --- > the code works good then when i go from two ----> three also works good.. but in the third page, when i click back <----- and then from …

Member Avatar for cwarn23
0
134
Member Avatar for dumbncool

Inside a C function, if I declare something like [icode]char *s = "Hello";[/icode] Where will the memory for the "Hello" string be allocated? Will it be on the stack or the heap? If it is on the heap, will there be any problem if I return the address of that …

Member Avatar for dumbncool
0
169
Member Avatar for alfroad

hello guys.... can you help me with this one.....? can you give me a syntax for this ....? 1(2)+2(2)+3(2)+4(2)=36

Member Avatar for abhimanipal
0
86
Member Avatar for mrcniceguy

i have a web in which after member login, is able to publish blog post and only logged in members can comment. Now my problem comes in notification. 1.I need after someone comment then to send notification to the owner of the post. 2.Also if other members commented on the …

Member Avatar for mrcniceguy
0
106
Member Avatar for Manolo310

Hi, i need to search all cells inside a dataviewgrid in VB.net starting with "www" , once i found one cell apply a background color to the complete row and get the next cell with the same String. Part of my code: *********************** [code] Protected Sub Page_Load(ByVal sender As Object, …

Member Avatar for kvprajapati
0
117
Member Avatar for jonniebl

I am new to visual basic 2008 and am trying to navigate to a web site and automatically enter my username and password from within a visual basic program. Then I want to navigate to another page and fill data in various fields on the page. I can navigate using …

Member Avatar for kvprajapati
0
153
Member Avatar for technogeek17

Ok, I am relatively new to Vb.net, but I am getting along. I have an application that I wish to make an updater for. The updater needs to be able to read Visual Basic code files and insert the code into the application. Is there any way to do this? …

Member Avatar for kvprajapati
0
105
Member Avatar for OldQBasicer

I thought you couldn't run an EXE from a web page, you had to download it. How can it be that ClickOnce lets you choose online-only? Does it temporarily install the EXE on the users computer? If I want my application to run online only and I use the publishing …

Member Avatar for kvprajapati
0
96
Member Avatar for student21

Hi i have written my code to to insert data that has been entered into my textboxes n my form into my access database. i am gettin an error message saying: OLEDBEXEPTION OCCURED...Syntax error in INSERT INTO statement. i was wondering if someone could look over my code and tell …

Member Avatar for kvprajapati
0
163
Member Avatar for joelRam90

Hi everyone, I'm developing a new program. ;) My "dilema" is as follows: :S Let's say that I have a Java component, a calendar, shown in the GUI and I want to cover it with and invisible label or something so it can't be modified by the user. I don't …

Member Avatar for joelRam90
0
194
Member Avatar for Tris1

I have an assignment that involves steganography. We have to read in a header of the picture file and all of its binary content and then modify certain parts of it. I'm having issues with reading in the header of a .ppm files which is written like this: P6 #comment …

Member Avatar for Tris1
0
158
Member Avatar for Bobon

I'm having a problem completing the question below. I am a Java noob so be gentle ;0. The problem is in relation to the equals() method. I have to use this method to check dates to see whether they match. Please see code below. [CODE]public boolean equals(){ if(date1==date2){ return true; …

Member Avatar for kvass
0
101
Member Avatar for Andy_Ballard

Hello, I would like to import and call a c++ library from python. The library is the freely available (c++) LAMMPS Molecular dynamics code, and on the website, the following advice is given: "[one can]...build LAMMPS as a library. Once this is done, you can interface with LAMMPS either via …

Member Avatar for Andy_Ballard
0
3K
Member Avatar for OS_dev

I see this question come through here quite frequently and I just happened to finish another login script so I figured I would post it and you can take what you want from it. If you have any questions, feel free to ask. [CODE=php] <?php session_start(); //include pdo mysql db …

Member Avatar for OS_dev
0
126
Member Avatar for David22

Hi guys. I am having issues with a program I am writing. Basically, I have a JList that stores toString() references of "Location" type objects. I want to be able to remove these. However, the "Location" type objects are stored in an ArrayList, hence requiring an overriding toString() method to …

Member Avatar for BestJewSinceJC
0
119
Member Avatar for word.smith

Hello, I have wrote a program that reads in words from a text file stored on my hard drive and converts each word into a corresponding code depending on the combination of letters of each word. Now I have two text files that I want to code, one is the …

Member Avatar for apegram
0
155
Member Avatar for gurinder16

[code] <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } /* // Create database if (mysql_query("CREATE DATABASE admin",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); } */ /* CREATE TABLE `admin`.`payment_invoice` ( `CompanyName` VARCHAR( 100 ) NOT NULL …

Member Avatar for diafol
0
217
Member Avatar for dola91raw

I know that im not supposed to write like this but i just want to know how to sort 4 random chosen numbers (chosen by pc) in ascending order. Just the basic insert. Imstill abeginnerand cant use arrays!

Member Avatar for WaltP
0
69
Member Avatar for danturn

Hey Guys, Quick n00b question... i have the following XML: [CODE]<row> <UDPName>10014535-Test</UDPName> <SpeedDialIndex>2</SpeedDialIndex> <Label>mobile</Label> <SpeedDialNumber>907********</SpeedDialNumber> </row> − <row> <UDPName>10014535-Test</UDPName> <SpeedDialIndex>1</SpeedDialIndex> <Label>talking clock</Label> <SpeedDialNumber>9123</SpeedDialNumber> </row> - <row> <UDPName>10014573-Test</UDPName> <SpeedDialIndex>1</SpeedDialIndex> <Label>Work</Label> <SpeedDialNumber>90203********</SpeedDialNumber> </row> [/CODE] (this is a cut down version of the XML.. there would be several hundred rows in the actual …

Member Avatar for apegram
0
258
Member Avatar for elijahmangwe

<?php function list_cart($cart) { if (isset($cart)) { print("<table border='1'><thead><th>Foodlist_ID</th><th>Description</th><th>Price</th> foreach ($cart as $idx=>$num) $item=get_stock_item($idx); extract($item); print("<tr><td>$indx</td><td>$title</td><td>$price</td><td>$num</td></tr>"); { print("</tbody></table>"); { else print("<p>The cart is currently empty</p>"); } function generate_order($cart) { if (isset($cart)) { print("<table border='1'><thead><th>foodlist_id</th><th>description</th><th>Price</th> $total=0; foreach ($cart as $idx=>$num) { //Obtain details of cart item $item=get_stock_item($idx); extract($item); //Check that enough …

Member Avatar for Will Gresham
0
79
Member Avatar for AnnetteM

Hello, I am in the process of importing and reading data, reshaping the data, adding a header file on top (of the new data array or matrix), and writing a new file. I do this in a loop for many files. I'm using python 2.5 since that is the version …

Member Avatar for AnnetteM
0
187
Member Avatar for ElegantElephant

I am having trouble with a certain query. The problem is that I am using an INNER JOIN with two tables that both have a column called "id". I want the query to return ALL the column names but in addition I also want table1.id to be returned as id1 …

Member Avatar for jmo
0
136
Member Avatar for phil750

I'm having trouble building in a pipe, i have program reads in from argv using fgets spilts up using strtok into command,cmd and cmd2. then i have a if statement [code] if(strcmp(cmd, "|")==0) [/code] then i open the file for writing [code] strcmp(filename, cmd2); file2=open(filename, O_WRONLY); [/code] now im confussed …

Member Avatar for phil750
0
114
Member Avatar for sid78669

I am trying to compile a code that utilises an array of 5 'hotel' objects as below: [CODE=C++] #include "Hotel.h" using namespace std; int main() { Hotel *hotels = new Hotel[5]; hotels[0] = new Hotel("Hershey"); hotels[1] = new Hotel("Milton"); hotels[2] = new Hotel("Sheraton"); hotels[3] = new Hotel("BestWestern"); hotels[4] = new …

Member Avatar for sid78669
0
158
Member Avatar for Alex_

Hello, i made a basic java desktop application. After building the interface in the form, i compiled it and it worked perfectly. But after i added an event to a button (on click) my app won't close. I use the X button from the title bar, or ctrl+q from the …

Member Avatar for Alex_
0
2K
Member Avatar for silvert122

Hello guys, i am trying to write an insertion sort program with any values entered by any users but im getting some weird numbers. could someone help me see what s wrong with my code. this is my code: [code]#include <iostream> using namespace std; int main() { int a,b,c,d,e,f; int …

Member Avatar for silvert122
0
163
Member Avatar for niessen

I am trying to upgrade a number of older VB3 and VB4 projects to VB6. While there are no .dll calls in the form code, I assume that there are some associated with the old controls. I can get the projects to run in the VB6 development environment but when …

Member Avatar for niessen
0
247
Member Avatar for davidjennings

Hi all, if anyone can assist I have a query which just will not resolve it self no matter what I have tried. I am testing this PHPmyadmin before I apply to the website if this helps Thanks in advance DJ The query that is being run produces duplicate row …

Member Avatar for davidjennings
0
126
Member Avatar for Galf

Hi guys, I'm writing a simple function to return the file portion of a path. Strangely, the results I'm trying to duplicate accept something like a/b/c\d\e\file as a valid path, so I'm really just searching for the last occurrence of a slash or backslash. Anyhow, I'm curious what your thoughts …

Member Avatar for Galf
0
167
Member Avatar for Flow2

Hey I've been studying c++ for about a week and I do find myself with most codes to be a quick learner and I know pretty much all there is to cout so I decided to move on to the real stuff. But I wanted to use writeProcessMemory to edit …

Member Avatar for Fbody
0
91
Member Avatar for Christoph928

Need help with my code its not stopping once the correct answer is given i don't know why please help...I'm using 25 as the seed and the answer is 62 but my code says 62 is too high ... thank you.[CODE]#include <iostream> #include <cstdlib> using namespace std; int testTheGuess(int ,int); …

Member Avatar for Lerner
0
117
Member Avatar for gpx

IO::Tty is a pre-req for expect.pm IO::Tty install reports that "Configuration looks good!" (See below) but the makefile fails with missing Tty.so Any suggestions? ------------------ # perl Makefile.PL Now let's see what we can find out about your system (logfiles of failing tests are available in the conf/ dir)... Looking …

Member Avatar for rdxblast
0
503
Member Avatar for tryphy

How to remember a radio button selection in the multi form ..? [CODE] <input type="radio" name="yesrno" id="radio" value="yes"<?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> /> <input type="radio" name="yesrno" id="radio" value="no" <?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> /> [/CODE] It keeps on appear the selection "NO". Any Help ? Thanks

Member Avatar for tryphy
0
174
Member Avatar for VDivya

Hi all... I am trying to embed Java into Perl. I am a newbie in Perl and I am facing a lot of problems. I used Inline::Java to embed Java into Perl. The details of the modules are as follows: Pojo.pm contains the Perl module with Java embedded in it. …

Member Avatar for rdxblast
0
116
Member Avatar for rockiesmagicnum

Here is my issue. I'm attempting to create a daily mailing using a console app. Well, when I started, I for some brilliant reason made a web app. So I'm trying to translate it into a console app, and while I THINK this should work, I keep getting a "type …

Member Avatar for sinnerFA
0
185
Member Avatar for Soileau

Hey DaniWeb. I am getting stuck in an infinite loop when I input a character instead of an integer during a scanf("%d"....); I know this is because C doesn't provide any built in error checking. I know I can fix this by using getchar() in place of scanf, and changing …

Member Avatar for Dave Sinkula
0
4K
Member Avatar for edgias

I want to enter details of a client into a database.If the details already exists the application must inform the user and they don't then save the details here is my code [code=c#] private void btnCreate_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(); conn.ConnectionString="Data Source=MyComputer\\SQLEXPRESS;Initial Catalog=TIP;Integrated Security=True;Pooling=False"; conn.Open(); …

Member Avatar for Geekitygeek
0
302
Member Avatar for xcarbonx

I'm making a program which outputs the min, max and average for any specified user input of numbers, for example a sample output would be: Enter a choice (0 for max, 1 for min, 2 for avg, 3 to quit): 1 How many numbers?: n numbers Enter n numbers: 1 …

Member Avatar for strmstn
0
113
Member Avatar for nccsbim071

Hi everybody I am developing an application in asp.net mvc where i need to have Chat application intergrated in the web page. The chat application should be able to support group chat, private chat, simple file transfer and user should be able to create their own rooms. Can u people …

Member Avatar for nccsbim071
0
514
Member Avatar for dj118

Hi viewers, I'm in dire need of some help. I'm currently doing a program for my studies and I have successfully compiled it and tested it. However when I try to execute the program it comes up with the error java.lang.NoSuchMethodError: Main. I've identified the problem which is the fact …

Member Avatar for dj118
0
195
Member Avatar for mbrinkley

Hello. I am an IT major at Arkansas Tech University. I just began programming this semester. I have been given an assignment to give a bank customer certain information about their account and charges. So here is a shortened version of the question: There are two types of accounts: Checking …

Member Avatar for mbrinkley
0
157
Member Avatar for matharoo

I am making a project of Railway reservation system. I want to input time of Train arrival and departure as hours and minutes. Now i want both of them to be entered in same line, first hours and then minutes but in same line i.e the cin should not go …

Member Avatar for WaltP
0
227
Member Avatar for elijahmangwe

I am failing to connect to my database , also i cant update items into my database, below is the code i am using HELP

Member Avatar for elijahmangwe
0
56

The End.