199,114 Archived Topics
Remove Filter ![]() | |
hi pls gelp me with my assignment.. i supposed to create a cash register program that will calculate customer's payment and change.. here's what i have so far.. [CODE]#include<stdio.h> #include<conio.h> int main(void) { printf("Welcome to Reddish Bar&Cafe"); printf("\n\n\Choose from the items below:"); printf("\n\n\n\Margarita= 25 bucks"); printf("\n\Beer= 10 bucks"); printf("\n\Martini= 35 … | |
How do you use a variable originally from a def function? | |
How can I code to restrict the users input to 5 numbers and no more or less....I can't think of a good way to do it. [code] import java.io.*; public class Palindrome { public static void main(String [] args){ try{ BufferedReader object = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter number"); int … | |
I have 2 forms shown below. Form1 has a button that opens Form2. Form2 has a button that (I wish) puts text in a textbox on Form1 This is about as bare bones as it gets. No one I've talked to knows what to do. It appears that everytime you … | |
Hello: I tried to create the jar of a project on C drive I have these command with the error. Could someone help with the creation of the jar? [b][/b] [b]command[/b] f [code] C:\Program Files\Java\jdk1.6.0_11\bin>jar -cvmf [/code] [b]path to manifest.txt[/b] [code] C:\Users\depot\Documents\ceyesumma\java_cache\my_projects\guitar_master_project\target_guitar_master\guitar_master\guitar_master\build\classes\view myManifest.txt [/code] [b]intended gm.jar denied on c: and … | |
Hi. I'm having a problem getting the per values or per digits entered in a textbox? and I need to sum it up that shows the answer in another textbox. like for example I've enter 123 in textbox1 and textbox2 should display the answer as 6 which the sum when … | |
Hey, I have a generator but it works dependently on time, so it makes new values only every second. Is there a way to make it work faster? I want to be able to generate new numbers every millisecond if possible. [code=C++] srand((unsigned)time(0)); int a; int b; int c; int … | |
I'd like a code in which a raw_input function will end and move to a print function after 35 seconds. So something like: [code=syntax]var = raw_input() # put time limit of 35 secs here print "Time's up!" # prints this only if time runs out in the raw_input[/code] | |
I'm working on a basic CMS for a club at my school. But I'm having trouble with the log in. The log in works but after entering the user name and password and submitting it, the form comes back up and you have to do it a second time before … | |
I'm trying to quickly learn C# in Microsoft Visual Studio 2008, as I need to show some proficiency for my new job. Previously I have worked mostly with Linux (PHP/MySQL). I not having any trouble with C# itself (variables, loops, etc.), but what I do need is to learn as … | |
Hey, i need to make app that should take 10 chars from list. I tried it with range command but it's not working. [CODE] list = 'abcdefghijklmnopqrstuvxyzo' for list in range(10): print list [/CODE] And this code just prints numbers 0 to 10. So, is there some other command that … | |
Is there a way to display text from selecting checkboxes such that different combinations have different texts? | |
Hello Daniwebber's, I am developing a web browser. When the user clicks "Go" or "Enter" it will navigate to the website, however if it doesn't contain popular website keywords such as "http://" then I know they didn't actually want to go to a website. Then I would have it perform … | |
Hi all. I want to ask about storing the photos in a MySql database. I am developing a Software for Tours & Traveling company in that i need to store the photos of the customer. The further requirement is to export the database to an Excel sheet including the photo. … | |
Hi, I'm new to pointers. i got some requirements...... Following is my requirement.........i want to use a double and triple pointer array [2D,3D] and in that double pointer i want to get data from the user.how can i achieve that using malloc and free for assigning and deallocating memory. im … | |
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup … | |
Hi everyone, I'm a moderately experienced C coder trying to figure out the [B]execve()[/B] command. Here's the basic problem: My program takes a command from the user, loaded into the string UsrCmd. The string is tokenized and each token is loaded into ParaArray[]. Then ParaArray[] is used as arguments to … | |
Hello, I started c++, and I recently got an assignment, which is supposed to calculate the sum, variance, mean deviation, and mean in a set. The user can input any number positive or negative for the set. Because it is a set, the person may enter as many numbers as … | |
Hi guys, Would it be possible to remove the phone company and website from this contact form? The code is at: [url]http://pastebin.com/YnNG7RrL[/url] Any help would be great | |
Hi friends, What is the correct method of uploading files using php ? Now I am using a simple file upload script and that will upload that file to a directory in my ftp server. And I will make that directory's CHMOD to 777. Is this is the correct way … | |
Need help from u all am a newbie here!!! making a 2D project, snap link is given below [url]http://i238.photobucket.com/albums/ff224/umairqureshi_6/back.png[/url] here i have to blast the ship which is moving downward on x-axis with a cannon ball ,on the mountain the function i am using for projectile trajectory is ---------------------------------------------------- void … | |
Need help with this project 1. Declare two integers, one for row number entered one for the number of columns entered 2. Declare a string variable named dummy it will be used for the ending prompt. 3. Display the title [item #1] using Console.Writeline() 4. Display a blank line [2] … | |
i would like to write a program regarding the give character is vovel or consants but i am able to input the character can any one tell with full netbeans program including jTextField and all........... | |
[B]Hello sir... I want to know that if we can make a function that exactly works as clrscr() if yes then please give me some idea to implement that..I will try that...[/B] | |
my desired output is this: Input number of process to simulate SJF: 4 Input burst time for each process: P1 = 7 P2 = 4 P3 = 1 P4 = 4 Input Arrival Time for each process: P1 = 0 P2 = 2 P3 = 4 P4 = 5 Now … | |
in my application i have JSP and a Java class(not servlet) ,if user clicks on the JSP it has to pass the value to the Java class , how to get the values from JSP ? | |
hi I want create a login page in asp.net using c#.. and am using sql server-2005.. name and password should be valid which store in DB then only page redirect to next. so plz help me quickly to do my task. plz give from basic level thank you | |
Hi I'm creating a application where there are different users like admin and others. I want to log in as admin and hav all the previlages to it and when login as others it should have only minimum previlage. I'm doing it C#.net. can any one give me the code … | |
I don't know why my compiler didn't like my for loop [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; cin>> intege; cin.ignore(); cout<<"Please enter it again." for ( int inte = 1; inte = 1; ) { cin>> integ; if (intege==integ) { inte=0 cout<<"Thank … | |
hi everyone, i'm looking for some help please! i'm in an intro to java class and i cant figure out what i'm doing wrong.i am getting an error message that says: Ch3_PrExercise1.java:29: ';' expected String inData.; like i said i just starting out so any help or advice is greatly … | |
Hello, I have this code that supposedly imitate a DTR for a homework. I've made the preliminary code, but I'm kinda surprised at the output since it's not what I had expected. Here's the code: [CODE] int login() { int id; char* name, log_time; time_t lt; lt = time(NULL); printf("\nPlease … | |
hi, please help me nice guys ;) mysql column: `userid` contains: donny `friends_userid` contains: cherry linda jackson michael mika // each word means one different person then... how to: ----------------- add more friends delete a friend edit a friend ------------------ in the `friends_userid` using php without breaking another "friends"?? thanx … | |
Here's what Im trying to do... Write a program that asks the user to guess the next roll of a six sided die. Each guess costs $ 1. If they guess correctly, they get $ 100.00. The player will start out with a $10.00 bank. Each time he (or she) … | |
i got this! [CODE]Option Explicit Public con As New ADODB.Connection Public rsTally As New ADODB.Recordset Public Sub Connect() con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Aianski\Desktop\Cliente ko\SGO_Tally.mdb;Persist Security Info=False" rsTally.Open "select * from tbl_Tally ", con, 3, 2 End Sub [/CODE] i think its right. but when i run it i get "syntax … | |
Dear Programmer i am having problem developing simple reading and sending data via rs232.. can anyone help me by sending me a very simple module with comments with regards to reading and sending data.... Thanks in advance good friend!!! Danilo Mayo Jr., Philippines | |
:) Hi Masters, I m creating a project of VB to Access conectivity. I need that i want store data in server, there is 5 PC server-client networking.[B]How can i write Program in VB to STORE DATA IN SERVER[/B].I m totaly blank for this problem. :'( Please Help me to … | |
Hi Pals could anyone show me how to code an active clock window Thanks in advance fourty | |
Hi all! Sorry for my bad english (if it is bad). How is on site jango.com made that, when song plays and when we click on a button e.g.Home, or Music..., site changed, but the song still plays, it doesn't stop playing? (Which program they used to make that!) Thanks! | |
I am trying to pass a two dimensional array to a function and modify it. I understand that two dimensional arrays are automatically pass-by-reference parameters so that solves half of the problem. However, when I try to compile the code: [code=c] #include <cstdlib> #include <iostream> using namespace std; int x, … | |
i have a login page, where i check login name and password if it matches i create a session.and redrect it to other page, now the problem is in localhost(WAMP Server)it works fine but in server when i host it it does not redirect it shows an error like this … | |
Hey guys i have a real issue I want to do these 3 things from an applet: ________ 1) Load an URL into a frame inside the browser and 2) Insert data into a form which is inside a frame in the users browser, and then submit the form using … | |
I've writen a simple calculator code it is pasted below. What do I need to change in order to make it loop using a "while" statement until, the user inputs the letter ("Q" upper or lower), casuing it to exit the program instead of a function such as(/,*,-,+).. please help... … | |
I'm working on this project and I'm REALLY close, I'm just gettin a C2059 error and I have no idea why? [CODE] #include <iostream> using namespace std; int main() { int guess; int die; float total = 10; char ans; cout << "Welcome to Dice Roll!" << endl; cout << … | |
#Hi friends I want to shorten these codes I must control at least 100 space and delete please help[CODE] for i in range(mylist.count('')): mylist.remove('') for i in range(mylist.count(' ')): #delete 1 space mylist.remove(' ') for i in range(mylist.count(' ')): #delete 2 space mylist.remove(' ') for i in range(mylist.count(' ')): #delete … | |
i have a div tag named <div id="div1" runat="server"></div> i wrote a javascript which adds content like 0,1,2,3, in this div tag as its content. Now i want a script which will delete some of the content of div1. as like 0,2,3, how can i remove content from div tag. | |
how can i make a basic calculator on turbo c++ that the result is can be used again and again to any operation | |
i can see the light at the end of the tunnel after working on this thing for 6 hours strait but i am faced with a last few errors. First here is the code: it is really long. the error statements are: 'seriesParallel' : undeclared identifier seriesParallel' : undeclared identifier … | |
Hi, Iam in the process of creating a program for converting words in a file to numbers. Am struck at the input file selection gui script. i want to create a GUI to open a file from the open file dialog box and to read the words in the file … | |
i have declared [CODE] char arr[10][10]; [/CODE] and did this: [CODE] for(i=1;i<=n;i++){ arr[i] = (char)i; } [/CODE] but it wouldn't work.. i want to put the number inside the array.. y does this error? | |
I have this list of object: [CODE]public List<XHTMLError> Report = new List<XHTMLError>(); [/CODE] Which is defined this way: [CODE] public class XHTMLError { public List<string> Errors = new List<string>(); private string _errorType; public string ErrorType { get { return _errorType; } set { _errorType = value; } } }[/CODE] I … |
The End.