199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sam_13

<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 …

Member Avatar for stultuske
0
199
Member Avatar for Swalih

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 …

Member Avatar for Swalih
0
3K
Member Avatar for jonsan32

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, …

Member Avatar for jonsan32
0
218
Member Avatar for come_again

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 …

0
156
Member Avatar for uws101

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? …

Member Avatar for uws101
0
133
Member Avatar for James E

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 …

Member Avatar for James E
0
164
Member Avatar for vadarfone

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, …

Member Avatar for kplcjl
0
5K
Member Avatar for PerplexedB

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? …

Member Avatar for gusano79
0
2K
Member Avatar for UK-1991

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 …

Member Avatar for JorgeM
0
211
Member Avatar for Orichaicum

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 …

Member Avatar for Orichaicum
0
1K
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
217
Member Avatar for glao

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 * …

Member Avatar for glao
0
109
Member Avatar for Thà nh

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 = …

0
145
Member Avatar for shahera.arafat

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); } }

Member Avatar for JamesCherrill
0
130
Member Avatar for TrustyTony

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 …

Member Avatar for TrustyTony
0
277
Member Avatar for jez9

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 = …

Member Avatar for jez9
0
593
Member Avatar for tatendamiriam.mungombe

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

Member Avatar for Arshad_2
0
124
Member Avatar for loserspearl

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 …

Member Avatar for Arshad_2
0
117
Member Avatar for Mr.M

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 …

0
111
Member Avatar for amvx86

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 …

0
138
Member Avatar for jez9

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 …

Member Avatar for jez9
0
282
Member Avatar for 35nando

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 …

Member Avatar for Abheek88
0
2K
Member Avatar for Sana Qureshi

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 …

Member Avatar for Sana Qureshi
0
305
Member Avatar for jez9

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()

Member Avatar for jez9
0
320
Member Avatar for amogh.max

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 …

Member Avatar for stultuske
0
226
Member Avatar for chukka32

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 …

Member Avatar for chukka32
0
304
Member Avatar for mark261511
Member Avatar for samson.oba.77

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 …

Member Avatar for samson.oba.77
0
23K
Member Avatar for Khan2014

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,

Member Avatar for James E
0
136
Member Avatar for win_1

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 …

Member Avatar for Mr.M
0
215
Member Avatar for Xiao_1

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

Member Avatar for Mr.M
0
176
Member Avatar for uzair_2

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 …

Member Avatar for Mr.M
0
169
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
190
Member Avatar for SpottyBlue

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." ![Slide1.PNG](/attachments/large/4/b16bf4527be258f1bb5c1a405a0f878a.PNG …

Member Avatar for SpottyBlue
0
135
Member Avatar for Xiao_1

in this form the stuednt record the time when login so that when they take attendance know that time they come in this the code : Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick lbltime.Text = "Time:" + TimeString If String.IsNullOrWhiteSpace(txtadmno.Text) Or String.IsNullOrWhiteSpace(txtcard.Text) Then 'MessageBox.Show("Please complete …

Member Avatar for Xiao_1
0
167
Member Avatar for nadiam

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 …

Member Avatar for nadiam
0
202
Member Avatar for haider885

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 …

Member Avatar for mKorbel
0
254
Member Avatar for Boss2008
Member Avatar for Lisa Wayne
0
202
Member Avatar for godzab

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 = …

Member Avatar for noobz32
0
207
Member Avatar for kARTechnology

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 …

Member Avatar for StuXYZ
0
247
Member Avatar for CaffeineCoder

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 …

Member Avatar for CaffeineCoder
0
993
Member Avatar for Papa_Don

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 …

Member Avatar for Papa_Don
0
289
Member Avatar for riwakawd

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 …

Member Avatar for pixelsoul
0
188
Member Avatar for sexycodette

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 …

Member Avatar for Adiel
0
3K
Member Avatar for mattster

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 …

Member Avatar for mattster
0
154
Member Avatar for fugio

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 …

Member Avatar for fugio
0
210
Member Avatar for silent.saqi

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 …

Member Avatar for myaccount
0
8K
Member Avatar for krishom.ray

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 …

Member Avatar for Santanu.Das
0
116
Member Avatar for davy_yg

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 …

Member Avatar for pritaeas
0
120
Member Avatar for Rohit_17

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 …

Member Avatar for Lardmeister
0
216

The End.