199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kyriacos1986

I have been asked to design a method splitMid that can be added to the LinkedList<E> class. This method should have the following header: public void splitMid(LinkedList<E> sublist) and should split the given list into two sub-lists of (almost) equal sizes. Suppose myList points to the with elements 34,65,27,89 and …

Member Avatar for NormR1
0
6K
Member Avatar for adil.h

After figuring out my past problem (no instance of an overloaded function), I've come across another problem. [IMG]http://i.imgur.com/SvX1l.png[/IMG] I've pinpointed the code where I know the error is originating from: [code] static int Decode_VL64(const std::string &data){ char* chars = (char*)data.c_str(); return Decode_VL64(data); } [/code] What I'm trying to do here …

Member Avatar for Moschops
0
803
Member Avatar for mohan_198505

hi, can anyone provide me the C code for login in screen.I m using C(borland)compiler and working on xp. The requirments are following- 1.Should accept user name as user-1,user-2 2.Accept password(should not displyed on the screen) 3.A case insenstive coparison is to be done for usname and password. 4.Login name …

Member Avatar for dij_0983
0
507
Member Avatar for Ismatus3

Hello everybody This is all my test code : [CODE]#!/usr/bin/env python #-*- coding:Utf-8 -*- from Tkinter import * import Tkinter as tk import tkFileDialog import os import ttk import tkMessageBox import psycopg2 from PIL import Image, ImageTk import Image import ImageTk import os.path chaine1 = "Bureau" chaine2 = "Téléchargement" listtest …

Member Avatar for Ismatus3
0
2K
Member Avatar for theakshay

Hey guys, i have a javascript code for the "state-city" selection dropdown in my form. Now i have to provide an option for the user to add a state or add a city if it is not already present in the dropdown. I'm using php and mysql. Please help. Thanks …

Member Avatar for cereal
0
192
Member Avatar for leechyeah

Dear, I am making an ordering form and all of the products' data are stored in a MySQL database. The menu form to select products are all [B]working with plain HTML[/B] not php echo's. But now I can change products' info via a separate web page by updating the MySQL …

Member Avatar for leechyeah
0
393
Member Avatar for peterpa

HI , CAN ANY ONE TELL ME HOW CAN I UPLOAD A FILE TO MY WEB SERVER WITH OUT USING <INPUT TYPE="FILE"/> , I JUST WANNA USE I BUTTON TO UPLOAD A FILE , AND WHENEVER I CLICKED ON THAT BUTTON I WANNA A FILE WHICH IS ON MY SYSTEM …

Member Avatar for diafol
0
237
Member Avatar for Srinivas0

create a menu driven application that accepts the salaries for ten employees and display the following information: 1)max salary 2)min salary 3)avg salary 4)number of employees whos salary is greater than 1000 5)the salaries in ascending and descending orders. [CODE]#include <iostream> using namespace std; class Max { int marks[10]; public: …

Member Avatar for Srinivas0
0
217
Member Avatar for kurakar

I am newbie in VB.Net.. Please help me in this how can we view the selected row's data from datagrid in textboxes in vb.net 2003?

Member Avatar for M.Waqas Aslam
0
1K
Member Avatar for dineshdelhiswam

i ve tried all possible solutions for solving this error , but couldnt fix it.please fix it [CODE] <?php session_start(); include('databaseconnect.php'); $qno=''; $todisplay=''; $uploadedfile=''; $filename=''; $answer=''; $toolspec=''; //$uploadvar=''; $qno=isset($_REQUEST['qno'])?$_REQUEST['qno']:""; if(isset($_SESSION['username'])&&(isset($_SESSION['id']))) { $username=$_SESSION['username']; $idno=$_SESSION['id']; $mquery2=mysql_query("SELECT * FROM student WHERE id ='$idno'"); $row2=mysql_fetch_array($mquery2); $year=$row2['year']; $mquery=mysql_query("SELECT * FROM questiontable WHERE qno='$qno'"); $numrows=mysql_num_rows($mquery); if($numrows==0) …

Member Avatar for diafol
0
163
Member Avatar for ajkva

I am creating a small application using vb.net 2008 and sql server.I want to create a search form .When i click in the SearchToolStripButton in all forms the 'Search' form will be loaded with the data from the header table into a grid.How to write code for the following 1)When …

Member Avatar for M.Waqas Aslam
0
132
Member Avatar for ogsirus

Hi guys. I am making a program in c# which uses several forms. It my first time doing this so im a bit clueless. I have a main form and a second one. The main asks the user to enter a number between 1- 25. When they press enter It …

0
92
Member Avatar for Majestics

Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a = { 100,200 }; B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; } C. static final int[] a = new int[2]{ 100,200 }; D. static final …

Member Avatar for Majestics
0
251
Member Avatar for n0de

Hi, not so much into software design patterns [further - SDP], so while learning this "thing" i have some issues with trying to combine multiple SDP. I think that there are some logical issues.. Thank you for your time! :) [CODE] #include <iostream> using namespace std; /*the Command interface*/ class …

Member Avatar for n0de
0
153
Member Avatar for burcinerek

problem: five students pick five balls, but they must not choose the same ball this program does not work i dont know what is wrong. [CODE]#include <cstdlib> #include <iostream> #include <stdio.h> #include <conio.h> using namespace std; int main(int argc, char *argv[]) { int i; int student[5] = {0}; int ball[6] …

Member Avatar for vijayan121
0
292
Member Avatar for madmhan84

Hope someone could help me on this one, thanks in advanced! My objective is to repeat an input until the user hit/press the letter 'N' But the problem is when it comes to the part of answering the question: "Add Another Number? [Y/N]" the program stops! Here's my faulty code: …

Member Avatar for madmhan84
0
165
Member Avatar for shay_inter

hi, is someone can give me a code example of insert data from datagrid to sql table? thank's, shay.

Member Avatar for shay_inter
0
99
Member Avatar for Gaiety

Hi, I just started unix programming . below are the two files i am using for reading/ writing from/to a named pipe called RNP. read.c is run on one terminal and write.c is run on other terminal. write.c is accepting the input , but read.c is not reading the input …

Member Avatar for Gaiety
0
146
Member Avatar for Lunar Savage

Okay, so I've been working on this Inventory Program non-stop all day long. I've made massive changes to it several times and feel like I'm banging my head against the wall. And finally, I managed to make it do everything I need it to do like cycle through an inventory …

Member Avatar for Lunar Savage
0
193
Member Avatar for moonL!ght

hi im implimenting a gui applicaion so i have a list of shapes =>array of objects and i want to select a shape from the list im stuck in implimenting the listener class how do i know the selected object that is in my list it wont work with me …

Member Avatar for moonL!ght
0
111
Member Avatar for bflack

I want to display the images on the php page. Can anybody help? heres the code. Thanks in advance. [CODE] <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)"> <meta name="created" content="Sat, 17 Dec 2011 01:37:35 GMT"> <meta name="description" content=""> <meta name="keywords" content=""> <title></title> <!--[if IE]> …

Member Avatar for bflack
0
202
Member Avatar for nakresimin

hi, i looked all the codes but i could not really see it - i dont really understand coding-. after registration this website send an activation code but i want to make the user active when they actually register. when they register their status is set to A but for …

Member Avatar for nakresimin
0
116
Member Avatar for fabiocrj

Hi all, I'm new to vb.net and Sql server... So it may be a newbie question, but i've searched many places and did't find the answer.. so, here i go: I've just installed sql server, and i want to databind some textboxes in a form... but i dont really know …

Member Avatar for fabiocrj
0
279
Member Avatar for anand01

hi all, I have doubt on Index,I know Index are used to increase the performance of table but my question is where to create Index whether primary key table or foreign key tables ?

Member Avatar for anand01
0
88
Member Avatar for Dmiller071

My main problem: In my JApplet, my actionPerformed method should open a website when a certain item is selected in a JComboBox. The problem, is that the desktop.browse(uri); statement will not work. I've tried this outside of an applet in just a small program and it ran fine. So there's …

Member Avatar for Dmiller071
0
190
Member Avatar for moneypro

Hi, I want to create a database like Dmoz(dmoz.org). I have a problem with creating parent child relation. I want to create parent child relation. This parent child relation will be assigned to a 'links' table. In the links table I will insert data whether in root category or subcategory …

Member Avatar for ChrisPadgham
0
157
Member Avatar for nakresimin

what would cause this error, it seems that database can be connected but i cannot do it with the below code to this specific database on this server but i can connect to some other host database with below code, can you please help? [ICODE]Warning: mysql_query() [function.mysql-query]: Can't connect to …

Member Avatar for diafol
0
589
Member Avatar for sammrat23

I have a website built in .php but we have converted it to .html by using "mod rewrite". the mod rewrite code used in .htaccess is "RewriteEngine on RewriteRule ^(.*)\.html$ $1.php" Now the problem is my website shows up in both .php and .html. for example: [url]www.mydomain.com/index.html[/url] and also [url]www.mydomain.com/index.php[/url]. …

Member Avatar for diafol
0
177
Member Avatar for FirstProgrammer

hi [CODE]<asp:ListView ID="lvTabs" runat="server"> <LayoutTemplate> <table> <thead> <tr> <th>Icons</th> <th>Tabs</th> <th>Discription</th> </tr> </thead> <tr id="itemPlaceholder" runat="server"></tr> </table> </LayoutTemplate> <ItemTemplate> <tr> <td class="ListViewIcon"><asp:Label runat="server" ID="lblId"></asp:Label></td> <td class="ListView"><asp:LinkButton Font-Underline="false" runat="server" ID="Tabs"><%# Eval("Tabs")%></asp:LinkButton></td> <td class="ListView"><asp:Label runat="server" ID="lblType"><%# Eval("Dis")%></asp:Label></td> <td></td> </tr> </ItemTemplate> </asp:ListView>[/CODE] and on click event Code is [CODE]Protected Sub lvTabs_ItemCommand(ByVal sender As …

Member Avatar for postonoh
0
221
Member Avatar for jhellr13

Hey guys, Working on a project to calculate the standard deviation of an array. Instructions call for a program that will allow the user to enter a list of test scores with 999 as a sentinel value. Then a method calcStDev is invoked with the scores array as a parameter …

Member Avatar for NormR1
0
367
Member Avatar for STiwari0130

I'm new to C#. Trying to learn and implement an RFID application. I'm reading a RFID using serial port and the data is available in rtbDisplay. 11 01 B0 00 01 03 01 E0 04 01 00 0C E0 10 88 7B 61 How do I extract certain data (RFID …

Member Avatar for STiwari0130
0
313
Member Avatar for SimpleMan78

I've used SQL authentication and windows authentication in my connection strings to SQL server just fine. I've got a login form that the user has to put their username/password in and it verifies to AD to ensure that is who it is and then logs in. Currently it is set …

Member Avatar for SimpleMan78
0
121
Member Avatar for rad1964

I have a form, EWMS.php, that is a score sheet for a dart league. In this form I first have a user choose a division. Ajax returns that choice via MySQL database and PHP. Upon choosing a division that also fills in the next drop down choices of team, which …

Member Avatar for rad1964
0
183
Member Avatar for virendra_sharma

Hi, i want to write a query for employee's who's name start with "a" and end with "b". Thnks in advance :)

Member Avatar for pritaeas
0
553
Member Avatar for champmanking

Hello all, I am looking for help on how to code this: I would like to have a page where there is a box where registered users can type something then on pressing the button a new page is created displaying the text they entered and boxes for other people …

Member Avatar for champmanking
0
1K
Member Avatar for nakresimin

hi, my client side files are in one server and server side codes and the mysql in one on my client side files config i see the below [ICODE]$config["db_host"] = "mysevercodessideIP"; $config["db_user"] = "myuser"; $config["db_pass"] = "mypassword"; $config["db_name"] = "myDBName";[/ICODE] i get the error [ICODE]MySQL Error:Can't connect to local MySQL …

Member Avatar for nakresimin
0
722
Member Avatar for huntaz556

I'm learning php and my dad told me to make somthing where you login and if the person has a certain permission can see somthing diffrent then a diffrent user how would i go about this?

Member Avatar for diafol
0
107
Member Avatar for karthik.datt

I need to split the below string: line.long 0x0 " MIDR, Identity Code Register" I have used space , as the delimiters. the code should give output in such a way that Command Name: line Size: long Offset : 0x0 short name: MIDR Long name=Identity code register. The problem is …

Member Avatar for stultuske
0
142
Member Avatar for nuclear

I'm using SDL to make a game and I'm using frame independent movement, everything works fine with no gravity or acceleration: [CODE]boxOffsetY += yVel * ( DELTA.get_ticks() / 1000.f );[/CODE] The box moves accordingly, no matter what frame rate i use. But when i try to add gravity: [CODE]yVel += …

Member Avatar for mike_2000_17
0
152
Member Avatar for bildersturmer

Hello, everyone, I'm new to wxPython I want to write a small program that link the menu in one frame with another frame that I created after. I've tried to use like EVT_BUTTON, but it won't work. How am I supposed to do this? Thx for any help

Member Avatar for vegaseat
0
105
Member Avatar for programing

in this code i have logical error its give me wrong output [CODE]import java.util.Scanner; public class OneFile { static final int MAX = 100; static final int READ = 10, WRITE = 11, LOAD = 20, STORE = 21; static final int ADD = 30, SUBTRACT = 31, MULTIPLY = …

Member Avatar for NormR1
0
178
Member Avatar for jhellr13

I have to do this project for school that finds the Standard Deviation. The first part of it, which has to build an array from scanner with a while loop, has been killing me today. The problem is that my teacher wants a program that will allow a user to …

Member Avatar for NormR1
0
1K
Member Avatar for -==Zero==-

hello iam have some trouble in my page code this is the profile page code i started the session in the first row of page and this is the code that have a problem [CODE]<? if ($_SESSION['username'] || $_SESSION['password']) { $query = "SELECT * FROM users WHERE username='$_SESSION[username]'"; $result = …

Member Avatar for -==Zero==-
0
532
Member Avatar for lxXTaCoXxl

I'm developing a calculator, it will give all of the functionality of calc.exe; however it will have a few of my own adjustments that I use constantly and have to do on paper or with different methods on calc. I need help with subtraction, multiplication, and division the most. I'm …

Member Avatar for lxXTaCoXxl
0
245
Member Avatar for RLS0812

While correcting errors in someone else's code, I decided to completely rewrite the original script, and improve upon it. This is the basic code for making 3D arrays using dictionaries. [code] ar = { (x,y,z):0 # creating the array for x in range(3) for y in range (3) for z …

Member Avatar for vegaseat
0
270
Member Avatar for sergent

I know that by default member functions of a class are inlined [CODE] class d { public: int a() { return 1545435; } }; [/CODE] And I also know that it's not allowed to declare functions in headers unless they are inlined. Is there a way to declare a function …

Member Avatar for mike_2000_17
0
220
Member Avatar for accra

[ICODE]Can any one help with a simple php code to get time difference this is what i did, don't be mad at my effort, i tryed other ways and failed.[/ICODE] [CODE]$tf_con =time(st$_POST['time_out'] - $_POST['time_in']);[/CODE]

Member Avatar for accra
0
136
Member Avatar for SeniorAlexandro

Alright, I have Textbox where I want only Numbers and Letters and backspace allowed. I don't want copy and paste, or spacebar or other ascii charachters. Can anybody help me?

Member Avatar for SeniorAlexandro
0
333
Member Avatar for Tcll

anyone mind lending a hand :/ basically, what I have is a code containing 2 iframes inside a div. what I'd like to do is refresh one of the iframes when it's page recieves an update from another user. perhapse I could load the page on the document load, and …

Member Avatar for Tcll
0
166
Member Avatar for davy_yg

style.css [CODE] #header { background-color: #999999; height: 200px; } #login { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; height: 50px; background-color: #FFFF00; background-image: none; } #searchwrapper { width:310px; /*follow your image's size*/ height:40px;/*follow your image's size*/ background-image:url(Images/search_box.jpg); background-repeat:no-repeat; /*important*/ padding:0px; margin:-40px; position:relative; /*important*/ left:800px; } [/CODE] index.php [CODE] <div …

Member Avatar for pritaeas
0
148

The End.