132,726 Archived Topics
Remove Filter ![]() | |
my code should accept 5 numbers, sum them up , average them.. and print the numbers that are below the average it doesnt appear to be working..why? [CODE]import java.io.*; class Pra1 { public static void main(String[] args) { Console console=System.console(); int size=5; int number=0; String allNumbers=""; String Snumber=""; int sum=0; … Software Development java | |
I have a JComboBox that is set to editable and has a keylistener attached. The input comes from a scan gun. What I am trying to do is if there are more than one item in the JComboBox, I need to scan a barcode that represents the # sign and … Software Development java | |
Dear all, Q.No.1 1. I want to make a crystal report 2. It should have two datatimepicker 3. User select two diiferent dates and report must be run Q.No.2 1. How can i run a report when i pass a perametor from textbox. Please give me some Code thanks in … Software Development vb.net | |
I have an scrolling side dhtml 9 menu anchored in a cell. The starting coordinates are offset x and y. What I am trying to achieve is that when the page starts scrolling, the offset changes to a different x,y coordinate closer to the top so my menu doesn't end … Software Development java | |
Hi everyone, can someone help to solved this question I have attach the question.....please help me Thank you Software Development java | |
Hi all I am newbie in python. I have a csv file with two columns first as source and second as target. There are multiple values assigned to keys in successive rows such as follows 1 -->4 1 -->5 1 -->8 1 -->12 2 -->4 2 -->17 2 -->14 2 … Software Development python | |
Hello, I have created an application that passes a Handle of a panel to a DLL which is then used for creating a DirectX or OpenGL render window, all of which works fine. I wish to duplicate what is rendered in the panel elsewhere (basically multiple render windows all rendering … | |
Hi , I am trying to call c++ exe from java applet.For this purpose am using processbuilder.My code is as follows ProcessBuilder pb = new ProcessBuilder(s); Process process = pb.start(); final InputStream is = process.getInputStream(); OutputStream out = process.getOutputStream(); PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out))); pw.println(1); pw.println(1 +"" +2); … | |
Hi, This is my 1st post on daniWeb. First i want to mention that i am complete Ametuer(noob) in programming. just trying to work around with C# and need some help. Ok my problem is that i have a LISTBOX on my page with Selection mode = MULTI, A label … Software Development | |
im trying to learn c++, so i stumble upon this programming exercise that asks the user to make a program that asks for 2 numbers, assuming that the second number is always the biggest in value, and adds all of the numbers in between the numbers entered including the entered … | |
Guys, Please explain what is happening here? [code=perl] #!/usr/bin/perl $line="abcd"; @arr=split("",$line); print $arr[$0]; $x="x"; if ($arr[0]==$x) { print "Hello"; } [/code] The output is: aHello Am I dreaming this? Software Development perl | |
Just recently, I have upgraded from gcc 3 to gcc 4.5.0. However, when I try to compile a basic "hello world" example in c++, I get the following warning: Info: resolving std::cout by linking to __imp___ZSt4cout (auto-import) c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a uto-importing has been activated without --enable-auto-import specified on the c … Software Development c++ | |
Hello all! I am trying to create a simple app that takes something from an mysql database and prints it, I had some problems with the libraries at first, but now it compiles and shows me the black console window, but then suddenly it gives me some errors and in … | |
I just downloaded and installed C sharp for 2010 The connection to the database via the DataAdapter and then to the DataSet does not work. I am trying to tie the db to the textboxs on the form and then navigate the db with buttons like next prev etc. [CODE] … Software Development dataset objective-c open-source | |
I have a 150 page word file for work that i need to go through. What i would like to do is automate this since i rather not copy and paste all 150 pages. There are headings 1 2 and 3 in this file. Both Headings 2 and 3 may … Software Development vb.net | |
Can i set margins if so then please tell me how? I am using this code but pagesetup dilog does not effect the print. [CODE]With PageSetupDialog1 .PageSettings = PrintDocument1.DefaultPageSettings End With If PageSetupDialog1.ShowDialog = DialogResult.OK Then PrintDocument1.DefaultPageSettings = PageSetupDialog1.PageSettings PrintForm1.Print()[/CODE] Software Development vb.net | |
Hi thanks in advance to anyone who can help as i urgently need some, im trying to return Context.Request.UserHostAddress.ToString(); from my class file so that my web service can display it. But i am unsure how to do it. I have been told about HttpRequest and HttpContext but have no … Software Development | |
hello everyone i have a problem in writing in word document the proble is that i want to append a string after a table i made in that document but it overides it the code is:- [code=csharp]//Text to word file StringBuilder strBuilder = newStringBuilder(); strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using … | |
Hey, i have read "Accelerated C++" and i am "soon" done with "The C++ Standard Library". I would like to learn about Windows Forms Applications or something similiar where i can start creating more useful programs. Can anyone recommend anything? Is it too early for me to jump to this? | |
I am learning stacks, and I am trying to get this program to work. I have to be able to add large integers such as 9999999999999999999999999 by pushing all the numbers on the stack and then adding them up. Currently it works with small numbers but large numbers it crashes. … Software Development c++ user-interface | |
I am new to C++ and have a problem in a class I am taking.I am having trouble trying to create this the way my professor wants. this is what is required from the program: Write a complete program that prints out a “tree” of asterisks with the number of … Software Development c++ | |
Hello friends, I know that on the Layout options of the DataGridView control that you can set the AutoSizeColumnsMode to "Fill". I noticed that the "Fill" setting is not available for the AutoSizeRowsMode. Does anybody know a workaround so that I can have all the rows automatically "fill" in the … Software Development vb.net | |
I know this is a horrible way to do this, but I'm trying to test out several things that I've learned at once in this code. It's meant to ask you how many numbers you want to add using dynamic memory, then push them on to the stack, and add … Software Development c++ motherboards-cpu-ram | |
Hi Guys, I need some help in accessing elements from a list. I am using Visual Studio 2008 (c++). Here's my code: [CODE] using namespace System::Collections::Generic; public ref class Cord { public: int numCord; public: int x, y, z; }; public ref class Poly { public: Cord c1, c2, c3; … Software Development c++ visual-studio | |
Hi all I have written code there are two definition functions but the only way I can get the whole thing to work is to put some code outside the definitions. Does anyone know how to fix the code so that I can call it from another module. Please help … | |
[CODE] index no.student room 2 3 D/BARU 2 9 D/BARU 2 1 D/BARU 4 44 A005 4 1 A002 4 1 A002 4 19 A002 4 19 A002 4 35 A001 4 29 BSK 2/3 4 25 A106/107 4 10 A005 4 0 B202 4 10 B208/209 4 20 D/BARU … Software Development java | |
Hi, I am filling a datagridview with multiple columns from my oracle database. It has become necessary that I add a column with a checkbox. I figured this out. [icode] Dim cbPart As New DataGridViewCheckBoxColumn DataGridView1.Columns.Insert(1, cbPart) With cbPart .HeaderText = "PART" .Name = "Part" .DisplayIndex = 0 .Frozen = … | |
I have alot of tables in database in one of this contains owner_id and another one have relation many to many with that,and that table have dissent_type how i can select dissent_type where owner_id = "" | |
Hi all, lets say for example I have the following code [CODE]char *fname = "John"; char *lname = "Doe"; char *query = "SELECT fname, lname FROM table_name;"[/CODE] The last statement won't work, so my question is how to pass the fname and lname variables to the query? | |
Is there a simple way to just be able to add milliseconds to my timestamp function? [code]char stamp[100]; time_t mytime; struct tm *mytm; mytime=time(NULL); mytm=localtime(&mytime); strftime(stamp,sizeof stamp,"%a, %d %b %Y %H:%M:%S %z",mytm); printf("%s\n" , stamp);[/code] Software Development c++ | |
I'm trying to write a gui which will continually update values obtained from a data measurement device. Orginally this was accomplished using a TKinter .after loop with a specified refresh time of 500ms. This snippet of code is called from the mainloop and updates the values once when it is … | |
I am really confused by this problem. PLEASE HELP Write a program that reads a set of floating point data values from the input. When the user indicates the end of the input, print out the count if the values, the average, and the standard deviation. The average of a … Software Development java | |
So, I've wrote a program awhile ago that prints barcode labels. The old version needed the font to be installed in the fonts folder, but that made it a pain for people using the program for the first time, as the program would print the barcode label with a default … Software Development vb.net | |
Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. I have no probleming traversing and locating it. My problem is if the number isn't there … Software Development c | |
Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. I have no probleming traversing and locating it. My problem is if the number isn't there … | |
Hey, I'm writing a program that takes files and renames them to include a timestamp of the current time on them in c++. I'm pretty new to c++ (and programming in general) and any help or advice would be greatly appreciated. So far I have this: When I compile it … Software Development c | |
Hi Guys! Is it possible to change the color of a button when you move your mouse onto the button? Like say before it was red and it can be changed to yellow? Anyone can help me with the code? Thank you! Software Development vb.net | |
hi this is abhinav i am a newbie to this world ... i very urgently need a project on library management in vb...... is there any one who can help me in this ....... thanks Software Development visual-basic | |
so i have a little issue here. i have a program that creates a list of random numbers, for sake of example here it is: [CODE] public class RandomSeq { public static void main(String[] args) { int n = Integer.parseInt(args[0]); for (int i = 0; i < n; i++) System.out.println(Math.random()); … Software Development java | |
Hi guys I am a new IT guy.my task is to manipulate time and date.I use two separate classes for time and date. Now i need to integarate them, so which one is best Inheritance or containment Software Development c++ | |
Hi All, I hope you all would be fine i want to print 1. Only text 2. No controls should be appear in the print like textboxes etc. Thanks in advance. Software Development vb.net | |
Hey, I was wondering if any one could help me with several problems I am having. 1st problem: Can anyone tell me how to combine two int's and put a ':' in between. Bascially I want the user to enter the hour and minutes separately, then combine them both together … Software Development c++ | |
well i use bootime function to get and store time in my bios but i want to enter time in my system . what should i use for time and what to do for date well i am using time.h header files for that also i need to know about … Software Development c++ | |
Hi, I am relatively new in ASM, so I need some help. I found this code on the internet and made some modifications. [code] ;************************************************** ; Hello World OS Boot loader ; Designed by Arnav ; http://pendorasoft.byethost15.com/ ;************************************************** [BITS 16] [ORG 0x0000] ; code located at 0000:7C00, adjust segment registers … Software Development assembly | |
Hi, I am having an small application which is running in a thread and it is waiting for an event initially. As soon as if i clicked the START button, event will be enabled. From then onwards my entire application is running in WHILE (TRUE) loop. That means that i … Software Development | |
HOW DO I COMPARA CHAR INTO A INTGER STRING? ----------------------------------------------------- #include<string.h> #include<conio.h> #include<iostream.h> #include<stdio.h> #include<ctype.h> #define g gotoxy //*design void design() { int ctr; for (ctr=0;ctr<9;ctr++) { textcolor(LIGHTBLUE); cprintf("--"); } } //------------------------------------------------- void maine() { clrscr(); g(8,3);design(); g(8,5);design(); g(27,4);cout<<"DATA STRUCT COMPANY INVENTORY SYSTEM"; int total=0,totalprice=0; int count,ctr=9; struct { char … Software Development c++ | |
Hi!, i have 48 errors with following code.Plzzzzzzz.......can anyone tell me the mistake that i had done. thanks in advance. this is my code [CODE] import java.lang.String; import java.lang.Integer; import java.lang.Float; import java.util.Hashtable; import java.util.Enumeration; import java.sql.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class testM{ public static void main(String[] … Software Development java | |
The startup of my application is the main form then it has login.showdialog for login. I already finish this but I want to have a form appear when the user successfully logged in. I tried putting this in my log in form form = new form(); form.Showdialog(); this.Close(); yes, the … Software Development | |
Assuming that I have text in JTextArea where the characters are presented in different Font and colors since the class has a method :setFont(Font f), setForeground(Color fg). I wonder if there is a way to save it on MS Word. Software Development java |
The End.