199,114 Archived Topics
Remove Filter ![]() | |
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.text.DecimalFormat; import java.util.Scanner; public class BookBillSystem { public static void main(String[] args) { //create the Scanner instance for taking input from console Scanner scanner = new Scanner(System.in); //take input customer name System.out.print("Customer Name: "); String customerName = scanner.nextLine(); //take input noOfBooks purchased System.out.print("No of books … | |
I'm trying to write 2 dimensional array of int type to a binary type file. int array[3][3]={Some data}; ofstream f; f.open("nameoffile.dat",ios::binary||ios::out); for(i=0;i<=3;i++) { for(j=0;j<=3;j++) { f.write((char *)&array[i][j],sizeof(array)); } } f.close(); Above code is not complete. I only wrote a part of the code where I need help. Is this code … | |
This seems simple enough, but I can't find how to do this anywhere on any forum. I have a table of cells that have a schedule of classes. There are 8 buttons above the table that when pressed I want the cells to highlight in a corresponding fashion. For instance, … | |
I am making a multiple choice question bank where users can create tests from a much larger set of questions (e.g., create a test of 50 questions out of 500 lets say). My question is what is the best way to store this information? I would like to be able … | |
int subroutine (char *input, float *buffer) { *buffer = malloc(...) buffer is calculated from input } or flot subroutine (char *input) { *output = malloc(...) buffer is calculated from input return(buffer); } int main(int argc, char *argv[]) { float *data; subroutine(argv[] ...) ... free(data) } 1) which subroutine is recommended? … | |
For many years, I have been a server-side/database developer. I want to start doing more client-side development. But I can't seem to find much information concerning the overlap between ASP.Net and JavaScript. Can someone point me to any books/videos about how to do this? I know that using some constructs … | |
Hi guys, New to this place, so hi to all! OK, I am also new to C# so please excuse my n00b like questions. So, my first question; I am writing a kind of Notepad alternative. I want to have the ability to have the Textbox opacity set to 0, … | |
I'm using Excel interop and it seems that this functionality needs to run in the User Interface thread. So I execute that from the ProgressChanged backgroundworker event. Is there a way to have the dowork event (that invoked the progress changed event) interrupt execution until the ProgressChanged event is finished? … | |
Hello Guyz I have a question for you all hope you guyz will help me out. Here I have created a form with dynamic values if the user select the radio button of no then a text box echo's here are the code which i created please correct me how … | |
When I try to type in a set user to add to the friends list, it shows up blank via [[]]. I know I'm missing something or it's the way I set up the input, but I can't figure it out. Main Driver import java.util.*; public class main { public … | |
my image class can read animated gif's. using a timer i can change the menu item image. but when the menu item is showed, how can i refresh it? (i have tryied the DrawMenuBar() and SetMenu() without sucess. the image is, only, updated when i move the mouse from 1 … | |
Hello , I wanted to ask why this works? int *p = new int[ 1 ]; for ( int i = 0; i < 5; i++ ) { p[i] = i; } for ( int i = 0; i < 5; i++ ) { p[ i ] = 2 * … | |
I have a server chat use socket and multithreading but i can't show data of client to my textbox, I only see that data when i use "Msgbox", I only take a warning about cross-thread...blah...blah but i think it's not my problem so i dismiss it by code: System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = … | |
I want to ask >>what is the use of (string args[])??? and how can I use system.exit >>without intially import the package (java.lang) ? thanks ^^ import javax.swing.JoptionPane; public welcome1 { public static void main (stirng args[]){ JoptionPane.showMessageDialoge(null,"welcome to java"); system.exit(0); } } | |
Python helps in real life situation to automate things. This program helps you to prep up your kids ability to go over/under ten, which is essential not only by itself, but also when calculating with bigger numbers. Program is not any special, but shows how useful Python can be in … | |
QTY-QUANTITY The Price is not increasing. I want to multiply the QTY to PRICE , when QTY is Increasing The PRICE need to increase to depends on the QTY. Private Sub clickMe(sendr As Object, ByVal e As EventArgs) Dim btn As Button = CType(sendr, Button) Dim ProdMatch As Boolean = … | |
how to write a c program that allows the user to input grade and get the mark range using the switch statement,and the program only terminates when the user presses the esc key | |
![]() | I am trying to read a file and follow instructions based on its contents, add them to a linked list. I have the all the file handling written but am still having trouble with pointers and linked lists. The instructions from the input file would go like this i n … |
Hi, I'm conducting a research in web hosting and I've just found a sample online which is a simple web server, its works fine but the only problem is that the browser only display texts and the images are not loaded I don't know what could be the problem, I … | |
Hey what's up everyone? I'm about 3 days into hitting an extreme amount of brick walls and I'm about punch drunk. Currently I've spent 4 hours on this alone and I'm still not getting anywhere. Does anyone have some code samples that I might be able to use to put … | |
ms access[tblmonthly - month, total] month = lbldate [actually my date format is ` lbldate.Text = Date.Now.ToString("MMMMMMMMMM dd, yyyy")` , im using this format for my daily sales and i can save and update at the same time, but in Monthly sales i want to use the same format but … | |
Hi, I'm looking for a library which provides edge detecion on color image. For example i have an 200x200 color image and i need to a table form it: bool is_edge [200][200]; Where is_edge[x][y] == true when there is edge in pixel [x,y] Sorry form my english, waiting for some … | |
Ok so i have been trying and trying to solve this issue, but to no avail. Therefore, i am posting here. Please note that i am a self learner and don't really know things in depth, just trying to learn.. So please be gentle. Here is my aspx code: <div … | |
here's my code Dim sql As String = "INSERT INTO tbldailysales(date, totalprice)VALUES(@date, @totalprice)" cmd = New OleDbCommand(sql.ToString, con) cmd.Parameters.AddWithValue("@date", lblday.Text) cmd.Parameters.AddWithValue("@totalprice", lblstotal.Text) cmd.ExecuteNonQuery() | |
![]() | i am using eclipse to write code that allows me to take a text file containing data (in my case it looks something like this :20 30 40 50 etc).i want to write the code in java and i am using eclipse as my IDE.i need the database to be … |
I trying to build a web app using html5 which has a user profile page and I am having an issue with input type="file" when testing it on an Android browser. When selected it gives me the option to open camera or gallery, when an file is selected, it populates … | |
How to copy Table1 data from client to server database in LAN connection? | |
Hi! I want to put a html file into another html file . I tried iframe and object tag, which works but the problem is i also get scrolling frames. How can i insert a html file into another html file as it is without anything added to it like … | |
Hi, I have some experience in c# and would like to get more experience of C# with sql, because alot of jobs look for databases. Can anyone me recommend any good books or online tutorials for begineers. Thanks alot, | |
I have a xml document with 2 protection order numbers. I want to get the information for one of them which is **protectionOrderNumber="1400042"**. I would like to add strPoNumber variable to the object objXmlCaseDoc. Inside this object is the xml that was read and put inside the object. I want … | |
Y could not move the listbox admin no to another leistox Private Sub btnAssign_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAssign.Click 'If ListBoxassign.SelectedItem IsNot Nothing Then ListBoxall.Items.Add(ListBoxassign.SelectedItem) 'End If End Sub Private Sub btnUnassign_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUnassign.Click ListBoxassign.Items.Remove(ListBoxassign.SelectedItem) End Sub End Class | |
how to show different forms on different identification? sory friend i'm new in vb.net. working on School Management System project. and dont now how to show different forms on different identification. i have no any idea releated to this. need your help! i have 3 main forms for 3 different … | |
Hi Dw I'm new in C++ and I'm trying to develop an interactive app. I want for instance to run the app and have options printed then I choose one option then the app load relevant screen. Suppose it an ATM app where you chose what transaction you want to … | |
Can help? When in debugging mode of the database page (Database.aspx), I try to update the details by modifying the fields in the EditItem template. But then, when I click "Update", the data cannot be updated and shows the error message: "Data could not be updated. Please try again."  Handles Timer1.Tick lbltime.Text = "Time:" + TimeString If String.IsNullOrWhiteSpace(txtadmno.Text) Or String.IsNullOrWhiteSpace(txtcard.Text) Then 'MessageBox.Show("Please complete … | |
i have this code that creates a div, adds id and appends the div. I am trying to drag that div but its not working like it should. $("<div class='twin_seat' style='width:120px;display:table-row;'></div>") .attr('id', twinseatsid) .appendTo(cinema) .draggable({ containment: cinema, snap: true, helper: 'clone' }); im using `helpe: clone` because i just want … | |
Here my code. package formsign; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import javax.swing.*; public class textF extends JFrame{ private JTextField fname; private JTextField lname; private JPasswordField pass; private JTextField country; private JTextField zip; private JTextField month; private JTextField day; private JTextField year; private JTextField phone; private … | |
I have idea of the project. Please, advise the good company:) ok? | |
Hello all, I am trying to take input from user using scanner. The problem is, when the loop starts, it skips taking input for the first iteration. Here is the code: import java.util.Scanner; public class TrigTriangles{ public static void main(String[] args){ int N; double a,b,c; double A,B,C; Scanner s = … | |
Hi, I'm new here :) the problem is if i increment one member, for eg --------------------------------------- struct day { int hour[40]; int min[40]; int mins[40]; int rec; int totmins; int totsal; char status; int temp; }; struct month { struct day *da;}; struct year { struct month *mn;}; struct roll … | |
OK, here's a question for anyone willing to step up and answer or point to solution: I have some HTML forms for site visitors to request product information. Some of these forms send data to SalesForce. There has been an issue of spam coming through, so I have implemented CAPTCHA's … | |
Hi group, I've written some VBA code behind an Excel spreadsheet to check to see if another workbook is open. If it isn't open, I'm having the code open it for me. This works fine the first time the macro runs. However this same spreadsheet has a cell where a … | |
I have made a library class in php which can get data from my database table settings. I can get information if it is not serialized. But I would like to know on my get function what would be best method to be able to return unserialise information just incase … | |
hello all; scratching my head because I have no clue why this query doesn't work. php5, mysql 5.1 [code]INSERT INTO cats (title,type,cat_parent,cat_descr) VALUES ('Category Name', '0','0','Category Description')[/code] BASIC insert query. and the error I get ad infinitum is this: [CODE]Error: You have an error in your SQL syntax; check the … | |
Hi All, I've used CakePHP for ages and as a framework I really like it and it works nicely. However, it has a nasty snag. Say you wan't CakePHP to be your main application in the website root (`/`), and you wanted a Wordpress blog in a subdirectory (`/blog/`). In … | |
I created a datagridview and Added number of rows from 1 to 7 summation to results 1 2 3 4 5 6 7 => results 1 3 6 10 15 21 28 (1+2=3; 3+3=6; 6+4=10; 10+5=15; 15+6=21; 21+7=28) write simple way DataGridView1.RowCount = 9 For i As Integer = 1 … | |
please help i am confused plz plz plz [CODE] using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class handler : System.Web.UI.Page { protected void Page_Load(object sender, System.EventArgs e) { if … | |
Dear Senior, I want to make a small application for inventory Management for my store keeper into he will enter stockout/Expiry/Return detail and through which he can find detail of present available stock and can cross check their all report with actual available stock. i can use VB through VS2013 … | |
index.php <div style="margin: 123px 0 0 310px; position: absolute; z-index: 3;"> <form action="login_portal.php" method="POST"> <input type="text" class="form" name="username"><br> <input type="password" class="form2" name="password"> <div style="margin: 15px 0 0 330px; position: absolute;"> <input type="hidden" name="submit" /> <input type="image" src="images/login.jpg" alt="submit" width="200px"></div> </div> login_portal.php echo "test"; if (@$_POST['submit']) { echo "enter"; I wonder … | |
Hi, I don't know that this discussion is relevant or no in this community, if not I am really very sorry. I work in a software company from past 1 year. From last few days I start learning python. I know little bit of unix & shell scripting. My quesions … |
The End.