64,152 Solved Topics
Remove Filter ![]() | |
Can anyone help me with this one? I have the following code and produces an output, but the Probability stays at 1 regardless of how many students I input....Any ideas? [code] #include <iostream> #include <fstream> #include <cmath> using namespace std; void main() { int numStudents, DayOfBirth, cnt; double Probability, Power; … | |
Hello everyone! I have a button on my main form that allows me to get the visitInfo Table. The data are displayed inside a JTable. What I would like to know is how do I edit or delete a row from that Jtable by the click of a save button … | |
Hi All, This follow script does exactly what it says on the tin, except 1 thing, the "show next 10 results" wont show the next ten. any ideas anybody? [code] <?php // Get the search variable from URL $var = $_GET['q'] ; $trimmed = trim($var); //trim whitespace from the stored … | |
I'm looking to find out a way to drag and drop table rows between two tables. I reused jQuery example for[URL="http://jqueryui.com/demos/sortable/#portlets"] portlets[/URL], but that did not work to full satisfaction. [attach]13597[/attach] In above screen shot I added border, but that is just for illustration of the issue. Problems: [LIST=1] [*]As … | |
Hi, Thanks for opening. I'm writing a "fill-out" form in Delphi, with each section enclosed in its own tab, using TPageControl and TTabControl. When the info on each tab has passed validation rules (all working fine), the next button is enabled and the tab can be moved on. When the … | |
what is the difference between httppathrequest and server.mappath. i mean r they return different path ? i uploading file use httppahrequest and it works fine in my pc iis7, but when i run in server it didnt work. but server.mappath work in both | |
Hi all need a little help please. i'm using VB (but very very rusty) and i need to write a simple macro to cut and paste in excel. the macro so far is: [CODE]Sub populate() ' ' populate Macro ' Macro recorded 09/02/2010 by ' ' 'select correct cell Range("D6").Select … | |
Ive been working on a Game of Life simulator in C for my programming class. Essentially, it needs to take a single line of input and print out a nice grid of x's and o's (representing live cells and dead cells, respectively). I need to input the grid size, the … | |
so im trying to make a game for school that i have to have done by friday at the max my source for the main class is [CODE]//shooter game //main class import javax.swing.*; //frame import java.awt.*; //color import java.util.*; import java.awt.event.*; public class Shooter extends JFrame implements KeyListener{ Image img; … | |
Hi all. :) I'm having trouble with pygame, images and transparency. Lets say I have an image...a circle to keep it simple (for example only). What I want is to be able to draw the image, but with only the circle showing (ie. not a white box around it). Oh … | |
Hi ppl, I have a form with a drop down box and a calendar picker. I want to check if both these fields have been filled to proceed to the next page. [CODE]echo "<select name=Project value =' '>ProjectName</option>"; echo "<option>Select Project</option>"; while ($row=mysql_fetch_array($result)) { echo "<OPTION VALUE=$row[Project_Id]>$row[ProjectName]</option>"; } echo"</select>"; ?></td> … | |
I need visual basic code for inputing name and address to 2 separate text box then display in address label.... | |
Please help me correcting my program.The question requires me to offer a repeating MENU with 3 choices. 1. Displays all students 2. choose one by entering the ID and also making changes to it. 3.exit. My error so far is "cannot convert to `int*' for argument `1' to `in".I don't … | |
This is what Im gonna do: In a class called UsefulMethods : a) Write a method public static int maxOfTwo( int tal1, int tal2) {} . As you can see this method will accept two integers as parameters and returns the larger of this two. [B]This one I rly need … | |
I am running into problem on getting this program done. Its suppose to quiz you on your 2 powers ie(2^2 = 4, 2^22 = 2m, 2^46 = 32t) I've programmed in python for a couple years but a lot of the tricks python lets us have C++ doesn't or I … | |
Create a computer application to maintain the product inventory of a T-shirt distributor using a database. Each record will contain a T-shirt name, a price, and the quantity on hand. The inventory can manage a maximum of 30 different shirts. The database you implement should allow a user to add … | |
Hi, I'm using WebSphere WebFacing tool to convert an old 5250 application and I am getting this error when I try to convert a particular application. I've tried increasing the java heap but this does not make any difference. Would anyone know how to allocate more memory within websphere? Thanks. … | |
Okay, so you know whenever you send an e-mail from your website to either test something or notify you, you sometimes get that signature that says "scanned by blah blah". Like in Gmail, it says "scanned by blah blah blah". I was wondering if there was a way to remove … | |
Hey guys, been to the forum a couple times but never posted. Thought I'd give it a try. So my problem is basically this. I'm to create a program which reads a line in this form "-6 1 2 3 6" "-10 1 2 5 10" -6 being a perfect … | |
I'm making a framework for what will eventually be a game. All objects in game are derived from game_object. I store everything in vectors; The _objects_ vector contains pointers to objects. The problem is when I call update the default update() function from game object is ran instead of the … | |
Hey Guys, It's me again....I thought everything would work but when I tried making a donation on my donation.php form I received the following error in my process_transaction.php file: Here is the error: Parse error: syntax error, unexpected $end in \\nawinfs02\home\users\web\b885\rh.mysite\orderform\process_transaction.php on line 224 My webhost is lame and does … | |
Hello everyone! If I try to Assemble the following with MASM, I get this error: Code: [CODE] .model small .stack .data message db "Hello world!", "$" .code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main [/CODE] And … | |
What is the keycode of "Escape" while using curses.h???? is it KEY_EXIT?? I hv used this bellow but when i press escape, it prints "^[" instead of stopping the loop! and when i press "g", it does what i want the code to do when "escape" is pressed!!...Help! I am … | |
Okay I have a textarea that edits a text div. When the user edits the text and submits, paragraphs and line breaks are passed to the div. [B]i.e[/B] (not the browser)[B]text div[/B] after submit.... [I]'WARNING - This email and any attachments may be private & confidential. If received in error, … | |
I would like to specify a file for manipulation from the command line. I am new to python so I'm not really sure how to begin this. I am guessing that I need some options? | |
I have a script which looks at multiple values within a large database, and draws coordinates on a floatcanvas. I also have some thresehold variables attached to a slider widget. As the slider changes the thresehold value, the canvas is redrawn...well...sort of. It draws the new objects over the old, … | |
Ok, having some serious trouble here. My proffesor told us to write a progrm (what it does really doesnt matter here) however he wants a FULL color menu in the console. He showed us an example of what he wants, it was very cool, it had a red backround, then … | |
Hi I am new to Java GUI development I installed the NetBeans IDE I have not used anything other than Visual Studio in my life I have studied Java in school and college and am familiar with it So i was able to create a basic application but don't know … | |
I have a quick question. How do I get only the last 4 digits of the cc_number? Will the following work? Or should I try something different.. Oh and I am emailing to myself that's why it has $message. Here's the code I think will work: [CODE] $message .= "<td>{$_GET['cc_number'] … | |
This is possibly not the ideal place to post this; but I'm hoping someone with a good idea of 3D math can help me a bit. I'm planning something for a project, and am trying to find out how to implement some of the more neccessary parts. One of these … | |
Hey, I have a strange problem. I added an image as the background image for a form in VB.net. When I run the program, after approx. 5-6 seconds, the image partially overlays itself, as in an offset overlay of the underlying image. I never had this problem in VB6, but … | |
Hi - it's me again. I have the following code but don't exactly know what it means or how to make the opposite code. The code I currently have is [CODE]#define rotateleft(x,n) ((x<<n) | (x>>(32-n))) #define rotateright(x,n) ((x>>n) | (x<<(32-n))) [/CODE] Then can be used like the following [CODE]a = … | |
How do i go about making these multiple scripts work on a single page? [CODE] $(document).ready(function() { var str = ""; $("select option:selected").each(function () { str += $(this).text() + " "; }); $(".display_text_here").text(str); }) .change();[/CODE] This one i would like an IE conditional [CODE]$(document).ready(function() { $(".select") .mouseover(function(){ $(this) .data("origWidth", $(this).css("width")) … | |
Hi All, The form below is set to pass data to paypal, however I cant seem to get it to work when using variables recieved from a $_POST. I get an error from paypal stating........ "The link you have used to enter the PayPal system contains an incorrectly formatted item … | |
Ok so here's what I'm trying to do: 1. You press submit on my php donation form page, and when you press submit it goes to a process.php but within the IF statement I have it to where it sends my client an HTML email. 2. What I want my … | |
Hi All, Good day to everyone! I'm new to Python (and relatively new to scripting, at that), and really benefited from looking at examples on this site, you guys are great! I'm trying to do the following, and need help please: 1. Read an input file, each line formatted as … | |
what is eclipse? well i am a beginner in java n i am learning the basics will u plzz explain about eclipse in a clear way | |
Hi, I'm very much a beginner to C++, but I've been assigned a project outside of my programming class that is starting to get tricky. I'm modelling a layered optical system and I need to create N two-dimensional arrays (2x2 matrices to be used in matrix multiplication), where N is … | |
Hi I'm writing a client/server remote viewer application where screenshots of the desktop are sent across the network over a socket. I'd like to reduce the size of the transfer by getting [I]the difference between the two images and then sending the difference[/I]. The difference would be at least a … | |
Hi!!! I have made a database application and I am unable to delete the record in it.There is one comboobx, a textbox and a listview.For each item selected in combobox I am adding corresponding item entered in textbox . And each combobox and textbox item are displaying in listview.In database … | |
Hi, I have a asp.net form that uses form authentication. I want to now implement a role base security buy don't how. Please could someone help me with a sample code on how to do this . Thanks. | |
hi guys, just wanna ask, is it possible to have a function using tables in html wherein if a user selects a row, the program will get the value of the entire selected row? and this value will be passed to php without reloading the page itself..thanks thanks in advance,^_^ | |
hi! am a final year student and i need u to help me wit some project topics in vb.net. and the source codes. thanks | |
Hi, I'm trying to send an e-mail from a managed application. I found the following example: [code] MailAddress ^From = gcnew MailAddress("xxx@zzz.com"); MailAddress ^To = gcnew MailAddress("ttt@zzz.com"); MailMessage ^message = gcnew MailMessage(From, To); message->Subject = "Testing sending mail"; message->Body = "Body of message"; SmtpClient^ client = gcnew SmtpClient( "smtp.foo.com" ); … | |
Hi, I have a problem, I have written a class, inside another class. No problem with that, but I have now come to develop a unit test for the outer class. The JUnit must be able to test the methods of the inner class as well as all other class … | |
Hi all I'm having trouble displaying special characters. I have a database that has a number of characters from different languages and I've managed to display almost all of them. But I still have some characters showing up as a question mark inside a diamond. The code I'm using in … | |
Hi all I have a form where a user can upload a file. I do a check to see if it's a zip file. If it isn't then its supposed to stop the file from being uploaded. Only thing is, the file still uploads regardless of getting the error or … | |
Hi, I'm trying to display certain links if user is logged in, else display other links. Everything works great except for log out link. I have a php script inside a php script and its not working. I was wondering if anyone has a solution. Here is the else part … | |
Hi friends, I have a form to create a company details.. which will insert the details into a table. For this table, I need to have a auto increment field as character.. when we have autoincreament as Integer... whenever the new company is created..the number will increase from 0, 1, … | |
![]() | Dear Folks, I am trying to use python-idiom to reverse a list of lists so that, for example, a = [[1, 2], ['apple', 'orange']] becomes b = [['orange', 'apple'], [2, 1]] My code for this at present is: [CODE] import copy a = [[1, 2], ["apple", "orange"]] if type(a) is … |
The End.