199,114 Archived Topics
Remove Filter ![]() | |
I have a C#.NET Website that stores status logs from hardware installations. A report is stored in a report_info table and it's data entries are stored in report_data. I first insert into the report_info table and retrieve the insert ID using: [CODE] cmd.CommandText = "SELECT @@IDENTITY"; // Get the last … | |
• Enter a do-while loop and generate a random, byte-sized, value in the range of 0 to 255. Store the random value in a variable of type byte. Display the value in hex as shown below. • The user will input a string containing 1's and 0's. Use a do-while … | |
I am creating a scrolled frame object within Tkinter. My current approach is to have a frame embedded within a scrolling canvas. I have seen numerous examples of this technique but they have one common 'flaw'--the frame's contents are loaded and then the controlling canvas's scrollregion is set. In my … | |
i nedd to change the color to white im now just learning event handlers. | |
Hello all, I'm new to programming and I came across the practice problems thread and tried one of the beginner ones: "Make a program that allows the user to input either the radius, diameter, or area of the circle. The program should then calculate the other 2 based on the … | |
First off: I am not looking for somebody to do my homework. Although it would make it easier for me in the short term, please don't "help" me by writing my code for me. I would rather lose points for being late and understanding the code than get the grade … | |
hi .. i am new to jsp coding - i hav created a database using mysql workbench - it is a Graphical Interface to creating databases and tables... but the problem is that i dont know how to access my tables through jsp coding .. where should i put my … | |
I am trying to make a program for class which is circular so it can be used until the user is done. the idea is choose an option then it calls the function, but for some reason it calls the estimate screen even when main_input does not equal 2. I … | |
Hello all , Is there an algorithm for computing Very large numbers (Max 9^1000000) without BigNum ??? Thanks in advanced. | |
a apart fro SQL injection what are risks to comsider when querying database? What are risks when uploading files other than limiting some extensions (like exe's)? | |
Hi People, When creating this program, I am trying to add a while loop so that I can continue to pull in input from the user until they put a -1 for the input. This is the error I get. java:46: cannot find symbol symbol : variable input location: class … | |
hi i was making calendar for my website some how using different tutorials i made it but i want to makes some changes but cant figer out can some one plz help me ... i am also comparing emp date of leave if thats true then it will change the … ![]() | |
Hello! I need a little more help. I have managed to convert all my chars input from a text file into digits. Example: Input from file: $1,9,56#%34,9 !4.23#$4,983 Output: 1956 349 423 4983 Now, I need to take those individual digits the 1 9 5 6 and make it read … | |
Here is my code: #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; float additionalTime; while(choice=='Y'||choice=='y') { cout << "\nThis program will calculate a single, couple, or group … | |
Hi I am having trouble trying to normalise my tables, I would really appreciate some help! So far I have: [B][U]Customer Table[/U][/B] CustId(pk) Cust Name Cust Address Cust Postcode Cust Email [B][U]Order Table [/U][/B] OrderID (pk) Order Date_Time CustID(fk) [B][U]OrderDetails[/U][/B] DetailsID(pk) Quantity OrderNo(fk) DeliveryID(fk) [B][U]Product[/U][/B] ProductID(pk) ProductType ProductDescription DetailsID(fk) PartID(fk) … | |
Hello everyone, I have successfully WRITTEN an array of complex numbers into .txt file using fprintf and scanf(). However, I have no idea how to READ this file. Please see the attached code and reply with your suggestions. Thank you in advance!! Joelem [CODE] #include<stdio.h> #include<stdlib.h> #include<math.h> #include<complex.h> int main() … | |
hey everyone this is my situation. i am taking a programing course that introduces you to a few languages. the first one is C now im a java guy (not very good with it yet) im still learning but i understand the basic concepts so im not totally in the … | |
I need immediate help here. Please help me! :) I just can't figure out why my program is crashing while executing it. The compiling of the program is fine. (no syntax errors) I used Dev C++ 4.9 for this version. [QUOTE][CODE] #include <iostream> #include <conio.h> #include <iomanip> #include <string> using … | |
i would never ask for debugging help usually but i am totally lost and have wasted far too much time on this. both peices of code compile correctly. the original function works fine with my program and the second one crashes. the original code checks a textfile in the root … | |
Hello, I am writing a section of c++. Here is the section that does not work: [code=c] int a, escape; double temp1,temp2; escape = 0; a = 0; while(escape < 2){ Complex c[a]; cout << "Please input a complex number, the real part follwed by the imaginary part.\n"; if(!(cin >> … | |
<?php $connect=mysql_connect("localhost","root","") or die(mysql_error()."Cannot find Database"); mysql_select_db("cubicle",$connect); $insert_query='insert into registry(username,password,firstname,lastname,eid) values ("'.$_POST['uname']'","'.$_POST['pass']'","'.$_POST['fname']'","'.$_POST['lname']'","'.$_POST['email']'")'; mysql_query($insert_query); ?> | |
1) Is there any way to split ['a', 'b c'] into ['a', 'b', 'c']? 2) db = [["a", "b", "c"], ["apple", "bean", "cat"]] lines = sys.stdin.readlines() for i in range(len(lines)): lines[i] = lines[i][:-1] for i in range(len(lines)): for j in range(len(db[0])): if lines[i] == db[0][j]: print db[1][j] else: print lines[i] … | |
Hi, I'm putting an autocomplete textbox on my website to help users type in a location. I want users to be able to type a city or just a state (ex. Seattle, WA or Washington) kind of like what you see on Indeed ([url]http://www.indeed.com[/url]). How do I get the states … | |
Okey now the problem is that if the previewFrame is set to the default layout the buttons show but since it is using a layout manager the setBounds,setLocation,setSize commands dont work. So I used the code previewFrame.setLoayout(null) which would let me set my own position of the buttons on the … | |
Hi, I wrote this code for C++ Primer Plus, but I don't really get why it doesn't work. [CODE]#include <iostream> #include <cctype> using namespace std; int main() { char ch; string str; int vowels = 0; int consonants = 0; int others = 0; cout << "Enter words (q to … | |
Greetings all DaniWeb people, long time no see. I have a (hopefully) easy question. Let's jump into the code. My test harness: [CODE] cout << "--------------------------------------------------------" << endl; cout << "Begin Copy Constructor Testing" << endl; cout << "--------------------------------------------------------" << endl << endl; dlSL = new DLSortedList(); for (int i … | |
I have two text boxes and I want them both to submit the same data, such as if the user changes one text box, the other changes to the same value [U]and vise versa[/U]. I am easily able to make one textbox update the second with javascript, but not the … | |
Hey guys and gals I need alittle help. i have an assignment that needs to print a certian number of stairs according to a user input. Example program run (user input is in bold): Please enter the number of rows: 4 Please enter the number of stars in row 1: … | |
Are static variables allocated in the heap or on a thread specific stack. Thanks | |
hi i have a project to do for school and im not sure if im on the right track i would like some opinions here is the description of what i have to do [U]INSTRUCTIONS Part A 1. Start a new C# project named SalespersonDemo.cs, as shown in Exercise 9 … | |
Hello, I'm new to c++ and we're just starting classes and objects in class. I've done a bit of programming in Java and I'm struggling to initialize an object using a variable. I must be missing something fundamental but I can't for the life of me figure it out. Here's … | |
Hi, I wana to make keygen that not randomly codes, and with 2 text boxes, Like i need to add "username" and "password" to gen for me I need the code please help :) | |
I have a form that has two text boxes. The first is visible, and the second one is not. How do I go about having the second text box become visible if the user tabs out of the first text box? I wrote a KeyDown event handler to check for … | |
I am trying to see the restrictions of $_GET global variable and when I use the URL localhost/test/test.php?abc.def I am getting the variable abc_def in the global variable $_GET, any ideas? Any other restrictions? | |
Hello, As this forum has been so helpful before, this time it's a JS question: I have a list of checkboxes from which the user can select 1 or more to check and perform an action upon. Thus, all checkboxes have the same "name" (in ASP code, since it's DB-related): … | |
I am creating a C# forms application, a gradebook in particular everything is fine except I keep getting this error : [COLOR="Red"]cannot convert type string into int[/COLOR] Here is my code [CODE] // Fig. 18.9: CreateFileForm.cs // Creating a sequential-access file. using System; using System.Windows.Forms; using System.IO; using GradeBook; public … | |
[B]I'm new to C++ and I need help in writing code:[/B] Lucy likes to jog in the morning. As she jogs, she counts the number of strides, she makes during the first minute and then again during the last minute of her jogging. She then averages these two numbers together … | |
I have a piece of code as follows: [CODE] $query = preg_replace('/\<a href=\"(.*)\"\>\<img height=\"(\d+)\" border=\"0\" width=\"(\d+)\" alt=\"(.*)\" src=\"(.*)\" \/\>\<\/a\>/',"INSERT INTO newproducts (productName,supplierName,productLink,imageLink,groupCode,currency,price,updated) VALUES ('$4','supplier','$1','$5',",$ad); $query .= "'$group','\$',$price,CURRENT_DATE)";[/CODE] which works fine. But I would like somehow to amend it so that the field productName ($4) can have slashes added to it … | |
Send email from a website to a specified email. I am using user@puruinvestech as an email (Google Email Apps is setup). Email contains fields like Name, Mobile, Email of the user in feedback form. | |
Hi we are supposed to modify this class for my school project to create a code that will print out a rectangle made of asterisks * something like ********* * * * * * * * * * * ********* here is my code [CODE] // Exercise 7.21: TurtleGraphics.java // … | |
I started developing an HTML editor using Java. After spending a lot of time I am now stuck in between. Most of the things are done but now I don't find any way to implement some of very important features. [B]I think[/B] java is too weak too support these features. … | |
Hello.. I'm new with java and have some problem with my assignment. I want to write a class named phoneBookEntry that has field for a person name and phone number. The class should have a constructor and appropriate accessor and mutator method. Then, write a main class that create five … | |
Ok, I'm just starting to learn C#. It will be my first language I am learning. I start my degree in Software Engineering on the 22nd. I'm required to take two Java courses and two VB courses. I don't really want to develop in either of them. I've played with … | |
![]() | ..Hi to all...just want to ask.. ..I have already created an ideal layout for my calculator..my problem is...I dont know how to insert a value into a field everytime I press a button(0 to 9)..without deleting the previous integer after I press my operator.. ..how shall I do so..??.. ![]() |
anybody i need the codes to display image. im stucked with it. Im already done doing the codes for uploading. see it below.. i badly need it <?php // Create MySQL login values and // set them to your login information. $username = "root"; $password = ""; $host = "localhost"; … | |
kind of directed towards adatapost... in most of my applications, i have a public function called DBUpdate() [CODE] Public Sub DB_Update(ByVal strQuery As String) Dim ADOCmd As New ADODB.Command Try If ADOConnect.State = ConnectionState.Open Then Call CloseConnection() ADOConnect.Open(dsn, user, pass) ADOCmd.ActiveConnection = ADOConnect ADOCmd.CommandText = strQuery ADOCmd.Execute() Catch ex As … | |
Hey guys, need your help once again. I want to create a global variable in one form and then use it in another form. I need to know of it is possible. If yes, then how do we do it. Thanks And regards | |
Hello , The following function takes a number x and returns the sum of all numbers before n. For ex. when x = 5 the function should return 4+3+2+1. [CODE] unsigned long long rep(int x) { if(x==1)return 1; return x + (rep(x-1)%314159); } [/CODE] I'm getting a segmentation fault with … | |
Dear All, I am struggling to write my first "useful" python script, which is a backup tool. After hours and hours of trial and error, I finally got it to create two different lists. The first list is that of the files to be copied: [CODE]['C:\\Folder\\Foo.txt', 'C:\\Folder\\Folder1\\Foo1.txt', 'C:\\Folder\\Folder1\\Folder2\\Foo2.txt', 'C:\\FolderB\\FooB.txt', 'C:\\FolderB\\FolderB1\\FooB2.txt'][/CODE] … | |
After deploying my project, I tried to install it on other pc , it installs well but whenever i run the .exe application my database file which is MS Access cannot be found. Well obviously the path is the problem. How would i make my path flexible and so that … |
The End.