199,114 Archived Topics
Remove Filter ![]() | |
import java.util.Scanner; public class sfera { public static void main(String[] args) { //Langkah 1:Baca input dari pengguna System.out.print("Masukkan nilai jejari: "); Scanner input = new Scanner(System.in); final double PI = 3.14159; double jejari = input.nextDouble(); double luas; double isipadu; //Langkah 2: kira luas luas = 4 * PI * jejari … | |
Hello, When I run the following program, the applet window displays nothing. I will be grateful for any help. [CODE] import javax.swing.*; import java.awt.*; public class BoxPanel extends JPanel { private JTextField label1, label2; public BoxPanel() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); label1 = new JTextField(20); label2 = new JTextField(20); add(label1); add(label2); … | |
Hi Team, I am new to shell script. Do kindly help me remove junk character from a file having a million records.. As it is production setup do kindly advice Thanks ... Whizkidash | |
Hey I have an assignment to get a number from the user and print it as a string with commas in the correct space. For example if the number is 13904 it should read 13,904 or 1005 should read 1,005. I have to do this recursively. Working on my pseudo-code … | |
Hello overyone, I have a question about web forms. I've set up a web service and i'm now trying to make a registration page. The one thing I couldn't figure out is how to handle events. For example, I have a simple button with id="Register", how can I handle that … | |
how can i calculate float value? eg it is 32/10 3.2 in calculator in python 32/10 is 3.0 help me out | |
Hi all, How can i know an active/default printer? Thank you in advance | |
Is there any way to get the token so i can continue to POST on the Vbulletin forum when logged in? As login security Token = Guest but when logged in its a long code. I need this to POST string If it saves it to the cookies how can … | |
what does i##j mean in macro definition of a program | |
Hi gurus, kindly help me in tracking these errors. The purpose of the program is to calculate the area and circumference of a circle using struct. the details stored are its name, radius, area and circumference. thank you [CODE]#include <iostream> #include <iomanip> #include<cmath> using namespace std; struct circle { int … | |
I was playing with some code again [CODE]#include <iostream> #include <cstdlib> using namespace std; int main () { int seed; cout << "Enter a seed: "; //enter 8 cin >> seed; srand (seed); cout <<"A is " << rand () << endl; //64 cout <<"B is "<<rand () << endl; … | |
I'm getting xmlHttp.readyState 1 when sending these parameters and it only happens when parameter 'text' is very big. [CODE] var url="replaceText4.jsp"; url=url+"version="+version+"&work="+actualWork+"&secName="+secName+"&text="+text; xmlHttp.open("POST",url,true); xmlHttp.send(url); [/CODE] Could you help me on this? | |
I have seen this code that draws an outline circle and its center point to the ball detected. [CODE]// draws all detected circle and their center points. for (int i = 0; i < circles->total; i++) { // round the floats to an int float* p = (float*)cvGetSeqElem(circles, i); cv::Point … | |
Many people are searching for this code, and not all codes are working for them :) So, this is a bit easyer, ussualy a .js and/or .css file are required, but this one is simple! [B]STEP 1[/B] Paste this into your page header: [CODE]<script type="text/javascript"><!-- function setFirstChildImgDisplay(el,vis) { if(!el || … | |
Hi! I'm creating a feature for my software that bans the user for 10 minutes if he/she has failed to login thrice. The problem is, I don't know how to code that. I got ideas on how to do it but I don't know what predefined classes or functions to … | |
Hi All, I have 1 combo box and 1 textbox and an excel file. I need to populate the combo box through the data from my excel file which is EMP_ID and I managed to do that via OleDb. This is the content of my excel file: [CODE]EMP_ID SPIDOM Password … | |
Is it possible to transform a label's ellipsis text based on the text displayed on the screen? For example, if the labels text is constructed from multiple strings and only 2 of the 5 are displayed, can the ellipsis text display "...and 3 others" or something like that? I have … | |
[CODE]#include <stdio.h> #include <stdlib.h> int add(int i, int j , int k) { while ( i != 0) { j = i % 10; k = k * j; i = i / 10; } return k; } int main () { int num, num2=1, r; int ret=1; int i=0; … ![]() | |
i have a class like [code] class abc{ struct { string name; float [] marks; } .... . . . . . } [/code] after implementing my all logic i want to save marks array on to a file,,,,,how can i achieve this,,,,please need urgent help | |
I will love to be a good programmer, but how do i go by it. | |
Firstly I will say im a complete and total novice when it comes to XSLT and XML so this could be a very obvious mistake on my behalf. [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="TestNode"> <RenamedNode> <xsl:copy-of select="."/> </RenamedNode> </xsl:template> </xsl:stylesheet> [/CODE] When … | |
Hi all, I want to send big amounts of data, like a very big text with 3 Mb from an iframe to a database. For this I send the text from javascript side to JSP and from here to MySQL. When the text is big like this the text is … | |
hello. I'm doing a program in c++ and I need to use a system call to "clear" my screen. for linux I use system("clear") but in windows the same is system("clr"). is there some way to find which OS is being used at the moment of execution so the program … | |
I am trying to start a daemon on a server with Ajax PHP and JQuery. The following code executes without any errors an opens all the html files in separate browser windows like it's supposed to. I receive the alert message . However, the daemon never starts. Can anyone see … | |
hey Has the name entered in the name TextBox at least one char?. If yes, return true. The out parameter will have a valid value returning to the caller. If no show a message box with a friendly error message Set the focus to the textbox return false this is … | |
When i make a [COLOR="Green"]login for vb forum[/COLOR], the post string i get back on real login is : [CODE]vb_login_username=the_legend&vb_login_password=&vb_login_password_hint=Password&s=&securitytoken=1329916133-7066266c7073fe1bf6b02ad340d25fa9a55513ca&do=login&vb_login_md5password=a033848a48e9e12b9cef05d31e7d991b&vb_login_md5password_utf=a033848a48e9e12b9cef05d31e7d991b[/CODE] But the real string to login successfully by application POST is the following [CODE]raw_login_password=" & TextBox2.Text & "&do=login&url=%2Fforum%2Fusercp.php&vb_login_md5password=" & MD5(TextBox2.Text) & "&vb_login_md5password_utf=" & MD5(TextBox2.Text) & "&s=&securitytoken=guest&vb_login_username=" & TextBox1.Text & "&vb_login_password=&cookieuser=1[/CODE] … | |
Evening all, My assignment is as follows: Consider a program that administers multiple-choice quizzes. The student needs to provide a response such as A or D. Your job will be to check for input errors in the student response string. Check that the string has length 1, and that it … | |
i've already searched but i got more confused when new codes appears in my sight again (cuz im just a newbie) So, what I want to is, when the user successfully uploads the image(upload.php), it will be viewed before continuing into the next step (view.php). [B]index.php[/B] [CODE=php] <html> <body bgcolor="black" … | |
Hey everyone, can anyone help me out with a code that creates a program where a user can key in 3 coordinate points and when the click "Generate Triangle" button. the program automatically creates the program. Please help. Cheerz | |
how can I solve this kind of error: "a number, currency amount, boolean, date, time, date-time, or string is expected here" here is my code: [CODE]Dim oDoc As New ReportDocument oDoc.Load("D:\updated 2-21-cla-12-57\WAIS SYSTEM\WAIS SYSTEM\GUIDANCE-dropRpt.rpt") Dim myDS As New DataSet oDoc.SetDataSource(myDS.Tables("drop_student")) Select Case GUIREP_drop.Search.SelectedItem Case "Date" strsql = "{drop_student.date_drop} = '" … | |
hi, does anyone would help me fixing my code, i got a problem in my search bar, when i want to click the add to cart button of the product searched or the items there's nothing happened, all i want is to add the product search in my cart. hope … | |
can someone explain me where is problem in this code it need to send this data to database table called anketa [CODE]<html> <head><title>Anketa</title></head> <body> <form action="insert.php" method="post"> Mesna zajednica <select name="mesto"> <option value="donji_grad">Donji Grad</option> <option value="karadjordjev_dud">Karadjordjev Dud</option> <option value="plavinac">Plavinac</option> <option value="seone">Seone</option> <option value="ladna_voda">Ladna Voda</option> <option value="lestar">Lestar</option> <option value="zlatno_brdo">Zlatno Brdo</option> <option … | |
How to host a asp.net c# web project in a windows service. Please give some step by step instruction. . Please note that it is Not a webservice | |
Hello Guys, I'm new here and I would like to ask help from you in making circular queue. I'm solving these for days but I can't have any idea anymore to solve for it's algorithm... I made this code so far... [CODE]#include <iostream> #define SIZE 5 using namespace std; int … | |
Daft subject header, but its early and brain not awake yet! One for the SQL gurus (either that i've missed something here....lol) I want to select rows where there are duplicates of data in some columns, but not others. Where a duplication IS found, i want to return all rows … | |
Hi, My products (records) are selected with a number of pages. Then I use navigationbuttons like first | next | previous | last, to the next or the previous. like [CODE]<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>"> <input name="faktura_datum" type="text" id="faktura_datum" value="<? echo $date; ?>" /> First</a></strong></span></span> | <a href="<?php … | |
I have some native C++ code that I want to use in C# and after doing some research I decided to create a C++/CLI wrapper for the native code. So far, so good. When running the program that contains the C++/CLI class, it works perfectly, but when I try to … | |
What is the difference between standard, int main(int nargs,....); and [CODE]int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd ); [/CODE] I am making a cross-platform program, for windows and linux, and until this point, I used main, without WinMain, for windows and linux. My app calls windows … ![]() | |
I want to add a progressBar (just to show that something is happening) when the database rows are fed into a table. First I tried to create a frame, where I added progressBar. I called frame.visible in the while loop which populates the table with database datas. But the frame … | |
I really dunno wats wrong here. the firts query works but the second does not . please help... There a these connected files: save.php [CODE]<?php include_once("classes/jewelry/item.class.php"); $inum = $_POST['ItemNo']; $i=new item(); $i->ItemNo = $inum; $i->ItemName= $_POST['ItemName']; $i->CapitalPrice=$_POST['CapitalPrice']; $i->SalePrice=$_POST['SalePrice']; $i->Category=$_POST['Category']; $i->Description=$_POST['Description']; $i->save(); include_once("classes/jewelry/stock.class.php"); $j=new stock(); $j->ItemNo = $inum; $j->NumStored= $_POST['Nload']; $j->NumSold= … | |
I have a simple program with a potential complicated output (see below). I am asked to make a simple for loop that displays results in GUI. Can I do this without with showmessagedialog instead of doing a JTextbox/label ect? I need this: sample gui output: After year 1 $11000 After … | |
hi guys am trying create a multiple reports using a single report viewer. can this be done, if yes can u give me a clue on hw to go on about it. i have done everything its just the part of having multiple reports | |
i want to use use javamail Api and i am not able to understand which server i use or is there is any other api available which is better then javamail Api.please suggest me | |
I need a custom dialog. I've been playing around for hours trying to create one and simply don't get it! All I need is the standard wx.TextEntryDialog but with 2 text fields. Can anyone please help? Thanks. | |
Hello! I don´t understand how to use a condition " if i == predmet: " i is an objet type of subject In my code I need to reach the condition: [ICODE]def add_mark(self,predmet,mark): for i in self.predmety: if i == predmet: print True[/ICODE] but I don´t know how to make … | |
Hello guys, I'm currently trying to rework an older project. It uses the Dao interface to connect to a MS-Access database. It now needs to connect to a SQL CE Database using the ADO driver. However, I keep getting the IDispatch error, see below. CJapRecordsets is a class with membervariables … | |
I have 18 text boxes named 'txtmybox' with indexes set as 0 to 17. To change the back color I currently use a for..next loop ie: for x = 0 to 17 txtmybox(x).backcolor=red next x The question is - is there a quicker way to perform this task, ie change … | |
Hi, I m currently working in VB.NET with asp.net I have the following string: sBIG = LTC16CS#PBF I need to find whether the above word contains any word say "#" How to get it? i need to capture "#" to do if else statement I could not find a method … | |
Im planning on creating a program that stores & retrieves data (names and addr. 4 now)which lang will do this (gui too) and will give room to make d program more complex (as i get better)i already know a little java and python your suggestions,advise will be appreciated(ive got roughly … | |
I have the following code which allows a user to play Rock, Paper, Scissors with the computer. The code allows for 10 rounds and counts the number of wins and ties. I need to allow for user misspelling by allowing the input to be accepted if the user types the … |
The End.