199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mtech91

/*Hello, I am to create a program that gets a character and if it is uppercase, convert it to lowercase, if it is numeric print an error. I wrote the following code but my problem is that when I ask the user if he/she would like to quit, and I …

Member Avatar for Fbody
0
260
Member Avatar for 88omar

Hey guys does anyone knows how to generate a 4-1 dual multiplexer truth table i know how a single 4-1 looks but can't seem to get the dual one asked my lecturer and its wrong . I attached the diagram i derived

Member Avatar for 88omar
0
100
Member Avatar for stangn99

I'm trying to build a room booking web application with php+mysql. I'm close, but something keeps going wrong. The way it works is this: 1. User logs in 2. User redirects to "booking" page, where they can choose from 1 of 2 rooms to book 3. there are drop downs …

Member Avatar for stangn99
0
123
Member Avatar for bondgirl21

Hi , I have created a submit button "sbutton" that should take all totals from 3 boxes and if that total is greater than 1, then it should be subtracted from 1 and the remainder is suppose to be displayed as change...this is what i have [CODE]public void actionPerformed(ActionEvent evt) …

Member Avatar for bondgirl21
0
122
Member Avatar for ryan8806

hi guys, i'm having a bit of a prolem with C++, i've been programming c# for quite a while now, so i am not a novice lol. problem -- i've created the following ofstream in my main method: [CODE]ofstream out1("array1.txt");[/CODE] however later on in the code i call [CODE]out1 << …

Member Avatar for ryan8806
0
2K
Member Avatar for Joonhwa Yang

help me~~~ what's wrong with it?![code]#include <iostream> #include <iomanip> #include <cmath> #include <fstream> using namespace std; void minMax(const double, int, double&, double&); void numMeasures(const double, int, double&, double&); void getData(fstream&, double, int&); int main() { double count, min, max, mean, var; double data[400]; count = 25; /* how can I …

Member Avatar for Fbody
0
288
Member Avatar for farsen

Hi. Quite a simple question I guess. I have this xml file: [CODE] <?xml version="1.0" encoding="utf-8" standalone="yes"?> <tasks> <subject> <id>123</id> <headline>a big headline</headline> <content>important stuff</content> </subject> <subject> <id>222</id> <headline>even bigger headline</headline> <content>important stuff 2</content> </subject> <subject> <id>333</id> <headline>a small one</headline> <content>important stuff333</content> </subject> </tasks> [/CODE] With C# I have loaded …

Member Avatar for PierlucSS
0
3K
Member Avatar for eggberto

Hi, first post here. I've just taught myself C++ by reading a couple of books. Even though I haven't really created any of my own programs yet, I feel that I 'get' C++ and programming. I want to my first program to be a video game, or something that just …

Member Avatar for eggberto
0
150
Member Avatar for summey

Add a third box to the calculation. Calculate length (L), width (W), and height (H) for the third box. Calculate the total volume for all three boxes in question. I have gotten this far but i am unable to fig out how the proper syntax should be for this. Here …

Member Avatar for summey
0
425
Member Avatar for whiteyoh

Hi all, taking the following function, id like to know how to get a single value out of the array (assuming 1 record is returned). i know my syntax is wrong for the function, im just typing fast....... [code] function user($id){ //connect DB SQL = "username, password, name age" // …

Member Avatar for colweb
0
91
Member Avatar for mckrm

i am tired of opening my java applications through IDE s i wouuld like to know all the possible ways of opening my applications without having to write any thing in command prompt i found two i can make a .jar file or a .bat file are there other ways …

Member Avatar for mckrm
0
82
Member Avatar for mandi009

Hi! To all members I have a grid view with five data bound fields.In the sixth cell, i want a check box to be displayed .Note there are multiple values in one cell of a row and for multiple cell in a row,a checkbox is to be displayed. Table looks …

Member Avatar for mandi009
0
75
Member Avatar for camigirl4k3

these are my instructions: [url]http://tinman.cs.gsu.edu/~raj/2010/sp10/lab6.html[/url] this is what I have so far: [CODE] from myro import * from random import * def moveCell(pic1,cell1,pic2,cell2): x1 = 240*((cell1-1)%3) y1 = 240*((cell1-1)/3) x2 = 240*((cell2-1)%3) y2 = 240*((cell2-1)/3) for i in range(240): for j in range(240): pix1 = getPixel(pic1,x1+i,y1+j) r,g,b = getRGB(pix1) color …

Member Avatar for jcao219
0
203
Member Avatar for VilePlecenta

[CODE]class C_Class { public: struct _Get { void foo( void ) { m_Var = 0; } }Get; struct _Set { }Set; long m_Var; };[/CODE] I like to organize my functions with get and set structures [CODE] Get.ThisThing(); Set.ThisThing();[/CODE] But my structure's functions cant access the classes members unless I make …

Member Avatar for Banfa
0
132
Member Avatar for john10

Hi, I'm new to C++. I'm having trouble detecting space bar as an input. I'm unfamiliar with using the char data type. I've tried using ASCII decimal numbers but only detects the '.' . And I'm unsure how to go about this without using string or anything advanced. [CODE] char …

Member Avatar for john10
0
2K
Member Avatar for surya_nar

I have a table from which I populate a list box. I need to display/edit the details of the particular record which I click on, which has to be retrieved from the same table from which the list box is populated. I need the correct coding for both the events. …

Member Avatar for saiprem
0
157
Member Avatar for NinjaLink

Hello, I am having a difficult time getting my Binary Search Tree class to compile. I added 2 functions "add" and "search". Before I added the 2 functions. It compiled successfully. If someone can help me in the right direction. I will definitely appreciate it! [B]2 Functions:[/B] [CODE=Java] public BTNode<E> …

Member Avatar for NinjaLink
0
118
Member Avatar for johankotze

I know that this topic, sending sms for MS Access, is very widely discussed and believe me for its very confusing. My question is the following. I use a MS Access Application and want to send sms messages directly from within MS Access to clients. I also use Outlook 2007 …

Member Avatar for AndreRet
0
602
Member Avatar for alexgv14

I have this array below. [CODE]$LOGIN_INFORMATION = array( 'user1' => 'user1password', 'user2' => 'user2password' );[/CODE] And I want to make the array so that it loads all the username and passwords from a datbase instead. How could I do that? Any help is appreciated.

Member Avatar for rajarajan2017
0
68
Member Avatar for mariosbikos

[CODE]#include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_ROWS 10 #define MAX_COLS 10 void sin1(char *map); int main(void) { system("chcp 1253 >nul "); FILE *fileptr; char myColchar,apantisi,map[MAX_ROWS][MAX_COLS]; int apotelesma,myColnum=1,myrow=1,k,a,l,c,row, col; char r,fileRow[MAX_COLS + 2]; // account for newline and NULL printf("dose tin diataksi me ton arithmo pou epithymeis(1/2): \n"); scanf("%d",&k);//edo tha …

Member Avatar for mariosbikos
0
269
Member Avatar for MDanz

[code]<?php mysql_connect("localhost", "Master", "pword"); mysql_select_db("db"); $official2 = mysql_query("SELECT * FROM Contribute WHERE stack LIKE '%comic%' ORDER BY points DESC")or die (mysql_error()); while($row = mysql_fetch_array($official2)) { $officaluser = $row['username']; $officalpoints = $row['points']; echo "<table><tr><td align='center'><font face='Arial' size='3px' color='#D99C29'><strong><a href='ustack.php?search=$officialuser' style='text-decoration: none'>$officialuser</a></strong></font></td><td align='center'><font face='Arial' size='3px' color='#FFFFFF'><strong>$officialpoints</strong></font></td></tr></table>"; } ?>[/code] the page is coming …

Member Avatar for colweb
0
67
Member Avatar for guptaalok12

I have Column named 'Price' in a table.I want to update the 'Price' Column by adding 5 .But i have some Null values in 'Price' Column.Whenever i update the 'Price' Column.All Values Updated Except the Null Values Column.So how can i update the null Column.Pls Help Alok

Member Avatar for smitha86
0
123
Member Avatar for ans2007kumar

How to know what is last index number in a drop down list if it is populated by using database??

Member Avatar for Ramesh S
0
67
Member Avatar for python.noob

Hello Friends, I'm using PyQt 4.9... I want to have an IDE with code completion to work with Python and PyQt (since we are storing both the codes in a single file with .py extension).. Once i've tested eclipse and pydev plugin.. It was pretty good to work with.. Shall …

Member Avatar for MikaelHalen
0
1K
Member Avatar for oggiemc

Hi people, I want to have an if statement in my servlet that if no results are found from database i print out an error to a html page. Im not to sure how to do this though..See my attempt in code below, can someone tell me what im doing …

Member Avatar for javaAddict
0
106
Member Avatar for Stefano Mtangoo

How do I truncate double like 99.998765 to something like 99.99 instead of 100.00? If some printf("%.2f", myDouble); gives 100 That is not what I want. Any help is appreciated

Member Avatar for Stefano Mtangoo
0
199
Member Avatar for jordanhagen

Hey I'm having trouble with this program, for some reason im stuck and dont know what to do. If you could help me out that woud be great. What i have to do it this. Using classes, arrays, sorting and searching write a java program to manage an online address …

Member Avatar for javaAddict
0
1K
Member Avatar for gunjannigam

I have a class which extends JPanel and implements ActionListener. I am having 2 menuItem. When I implemented the abstract method actionPerformed(ActionEvent e) and used repaint if the event source are the menuItem paint method is not called. What can be the possible reasons? This is what I am doing …

Member Avatar for JamesCherrill
0
114
Member Avatar for neethub3@gmail

code to link database selected through dropdownlist with corresponding database in mysql.Plz reply as soon as possible. Dropdownlist will list all database names inserted in a particular table

Member Avatar for saiprem
0
222
Member Avatar for smoothkiller

Dear forum member, I am conducting a survey on current software development practices as a part of my Capstone Project. In this survey I want to find out how the software development approaches are used in current scenario. I would greatly appreciate you participating in this survey. This survey will …

Member Avatar for Nick Evan
0
259
Member Avatar for D4n1sD

So for example I want to create a list of inputs and the user is able to choose from that list 1 option. And if that option is checked without pressing any button the image reloads or whatever.

Member Avatar for rajarajan2017
0
88
Member Avatar for lisles

i cannot pass the result of mysql_fetch_object to another function. [code=php] function sessionStartCase($challenge,$user,$pass){ global $conn; $ipaddress = $_SERVER['REMOTE_ADDR']; $url = $_SERVER['PHP_SELF']; if (isset($challenge) && isset($user) && isset($pass)) { $password = getPasswordForCase($user); echo $result->case_user_id; //if( @mysql_num_rows($row) ) { //$result = @mysql_fetch_object($row); if (validate($challenge, $pass, $password)) { echo "valid"; $result->case_user_pass; echo $result->case_user_id; …

Member Avatar for whiteyoh
0
120
Member Avatar for Mz3g

Hi guys, When I run this code, I got segmentation fault and i can't figure out where the mistake is? I'd really appreciate any help. thanks [code] #include <fstream> #include <iostream> #include <string> #include <sstream> using namespace std; int main () { ifstream file, dest; file.open ("arp.txt"); if (!file) { …

Member Avatar for Mz3g
0
174
Member Avatar for padmaanand

[CODE]import java.io.*; class ArrayGet { int[] a = new int[20]; void FindMin(int[] a) { int min=a[0]; for(i=0;i<=10;i++) { if(a[i]<min) min=a[i]; } System.out.println("Thr smallest element in the array"+min); } void Display() { for(int i=0;i<10;i++) { System.out.println("The elements in array are "+ a[i]); } } void GetMethod() { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for javaAddict
0
144
Member Avatar for tonymuilenburg

Hi all, I'm trying to capture an event when tab is pressed in a textbox using visual studio.net, and am having a hard time. I can capture anything else, inluding the keys that are difficult like instert, alt, and the arrow keys. Here is the MSDN page that did not …

Member Avatar for tonymuilenburg
0
306
Member Avatar for Prat123

Hello, How to get information about type of file which does not have extension. If I have folder named as [ABC] and also file name same as [ABC] without any extension. I am using FindFirstFile() function to get folder information. [CODE]char path[3] ="C:\ABC" HANDLE hFind; WIN32_FIND_DATA FindFileData; hFind = FindFirstFile(path, …

Member Avatar for Nick Evan
0
165
Member Avatar for SHENGTON

Good day DaniWeb experts. This is my first post here and hope you can help me with my problem. I'm a noob with Borand C++. I see a tutorial here "[url=http://www.dreamincode.net/forums/showtopic37428.htm]Converting and Evaluating Infix, Postfix and Prefix Expressions in C[/url]". I copied the code and run it in my Borland …

Member Avatar for vsiddharthv
0
924
Member Avatar for Gordon209816

Im having a few problems with completeing a adress book program in c (not c++ jus regular c), it requires a minimun of 5 functions so i have decided to use add, search, veiw now in order to complete i wud like to keep the add function but make a …

Member Avatar for Adak
0
120
Member Avatar for motinade

Please help, as I do not know what I have done wrong. Error: illegal start of expression, and ; expected. [code] import java.util.ArrayList; import java.util.List; public class Employee { public static void main ( String args []) { //unique identifier int empID; String firstName; String lastName; double salary; //not sure …

Member Avatar for stultuske
0
1K
Member Avatar for ninadg

I am new to JSP and am having trouble comparing string with the value in a form field submitted. The following is the code that I am executing through Tomcat and is not giving me the desired result: [CODE=java]<% String myvar = request.getParameter("var1"); boolean first = false; if (myvar == …

Member Avatar for javaAddict
0
373
Member Avatar for jprogram

I need to get characters one at a time from an ofstream because I need to pass the characters into a function. This is what I was trying but it says "ofstream has no member named get". Here is the code I am using. [CODE] ofstream outFile("source.txt", ios::out); a1.prepare(inFile2, outFile); …

Member Avatar for vidit_X
0
194
Member Avatar for k2k

would anyone please take a quick look? this always return false for some reason... the database connection is fine and the query is fine... it actually returned the right password from the database. please see below [code] public boolean passCheck(String login, String pass) { String realPass=""; try { String query …

Member Avatar for stultuske
0
150
Member Avatar for nickles

Hi, I was wondering how to write code that allowed a user to input a mathematical expression for evaluation. For example, I've written a simple method that calculates Riemann sums. [CODE]def riemann(hgLoc, a, b, intervals): sums = 0.0 size = float(b - a) / intervals for i in range(0, intervals): …

Member Avatar for TrustyTony
0
222
Member Avatar for Hidden_mistakes

I am making a racing game and am trying to find a way to let some one 'win' the game. in order to do this I am trying to display and image on the background at a certain position. This image isn't visable on the screen though until the racer …

Member Avatar for strmstn
0
80
Member Avatar for softx

I would like to make a tree menu with category and sub category in Php. When i click on category then display subcategory with link that subcategory page. it is with mysql database. I m tiered to make this but i can't. Please help me. I m providing a Example....... …

Member Avatar for vitana
0
324
Member Avatar for rukshilag

working on a form to update particular user details if required. as you can see there is also a print button. i want to know how i can print out the div=formData if print button is clicked. according to my current code when print is pressed the whole form itself …

Member Avatar for vitana
0
160
Member Avatar for dre-logics

I use visual studio 8.0 Two forms: windows form => form1.vb windows dialog form => ProcesDialog.vb On the procesDiaglog are five label fields: label1 label2 label3 label4 label5 Two picture fields picture1 picture2 I want to show the progress of building a Windows form1 I would always show the progress …

Member Avatar for dre-logics
0
101
Member Avatar for maria_mj

I have a problem. I want to display data from database using drop down list and radio button in the grid view. The idea is, from the grid view user can select value from drop down list and radio button to update their record. So, they didn't need to type …

Member Avatar for kvprajapati
0
307
Member Avatar for tsachin1

Hi all, I need to know this one. I have web application and i need functionality like client have certain pdf file on his/her local system. I want to use html/javascrpit to print these pdf files without opening. Thanks in advance.

Member Avatar for vitana
0
168
Member Avatar for sanbal

I am using a LDAP system to check the user cridential access control [CODE] string LDAPUserID = ConfigurationSettings.AppSettings["LDAPUSERID"]; string LDAPPassword = ConfigurationSettings.AppSettings["LDAPUSERPASS"]; string domainAndUsername = domain + @"\" + LDAPUserID; string CN = ConfigurationSettings.AppSettings["CN"]; string SID = ConfigurationSettings.AppSettings["SID"]; string MAIL = ConfigurationSettings.AppSettings["MAIL"]; string SAMACCOUNTNAME = ConfigurationSettings.AppSettings["SAMACCOUNTNAME"]; string SN = ConfigurationSettings.AppSettings["SN"]; …

Member Avatar for kvprajapati
0
358

The End.