132,726 Archived Topics
Remove Filter ![]() | |
Here is the code static void Main(string[] args) { int qty, prodNum; double totalRetail; Console.WriteLine("Enter product number 1, 2, or 3. "); prodNum = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter in quantity sold of this product or enter -1 to quit: "); qty = Convert.ToInt32(Console.ReadLine()); totalRetail = 0; while (qty != -1) { switch … Software Development | |
I'm using documentation on sun.com to try and learn Java. I was trying a simple Notepad type program but cannot get the menus to display. I'm receiving no errors and cannot figure out what I've done wrong and/or left out. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class NotepadInJava … Software Development java java-swing | |
Hi I have created a project using C# and SQL SERVER 2005. I want to deploy the project so that I can create .msi file. Can anyone help me with the steps I should follow to create the setup file? Also in which editor I should add then database and … | |
#include <iostream> using namespace std; class Fraction { public: Fraction() : num(0), denom(1) {} Fraction(int num, int denom) { setNum(num); setDenom(denom); } int getNum() const { return num; } int getDenom() const { return denom; } void setNum(int num) { this->num = num; } void setDenom(int denom) { if (denom) … | |
This is a method I used for adding a object, flightnode, into a linked list. Basically it takes in the value in and puts it in order based on the int flightno in the flightnode object. It works fine until a value needs to go at the end of the … Software Development c++ linked-list | |
Hy there, I'm a newbie so be patient pls. I have a small but useful class (let's call it Class1), and another class, more complex (let's call it Class2). I need to use in the Class2 instances of the Class1. I need to declare objects of Class1 both in private … Software Development c++ | |
I'm kind of stumped on a project. The purpose of the project is to decode a floating point number to find it's sign, exponent, and significand, etc... So far I've been able to get a user input float number into binary32 format using few lines of assembly code(professor told us … | |
I have a native code snippet that I am going to write in managed code instead. The native snippet code look like this: [code] std::string RClammer = "]"; std::string BigLine = "aaaaaaaa]aaaa"; int pos = 0; while(std::string::npos != (pos = BigLine.find(RClammer, pos))) { BigLine.insert(pos + 1, " "); pos = … Software Development c++ | |
What are some good Unix application developer books? Thanks. | |
Hello everyone.. I'm a new user of python.. I have encountered a problem while trying to find the inverse of a matrix even after importing numpy and scipy. The error is: >>> a=[[[1, 2, 3], [2, 3, 4], [3, 4, 5]], float] >>> print a [[[1, 2, 3], [2, 3, … Software Development python | |
I'm having trouble figuring out what exactly I'm missing in this Byte reversal method. For example is should take 0x01020304 and flip the bits to 0x04030201. I've attached my output giving the errors and here is my code: [CODE]/* * reverseBytes - reverse the bytes of x * Example: reverseBytes(0x01020304) … | |
This is an example of how to create your own custom button control with a specified visual style. It is intended for beginners and can be used at any discretion. [URL="http://rapidshare.com/files/279748515/CustomButton_Tutorial_C_.zip"]http://rapidshare.com/files/279748515/CustomButton_Tutorial_C_.zip[/URL] MD5: 663925296845ACF99AE1107FC18CA7B4 Software Development video | |
ok so i have used ShellExecute() before but with a specific value eg. "http://www.facebook.com" but now i want this program to be more flexible and allow the user to put the website he wants to. the thing is i made a string like this [CODE]String ^URL; ShellExecute(NULL,"open",URL,NULL,NULL,SW_SHOWDEFAULT)[/CODE] this gives me … Software Development c++ | |
ok so i read about file I/O and the that only allows me to edit files... let's say i have a program that needs login info. the user creates his username and password and can then login with it. but when he closes the program, obviously the info. is lost.. … Software Development c++ | |
Windows: 98 2000 XP Home Vista Windows 7 -Thanks Software Development windows-vista | |
Hi everybody, i was writing a small c++ class that uses a list as a data member , i then wrote a small print function to print the numbers in the list [code] #include <iostream> #include <string> #include <sstream> #include <list> using namespace std; class A { private: list<int> number; … Software Development c++ | |
I am about to convert this 2D vector to managed code where I instead will use a List<String>. The problem is that I dont know how to do that, I would be happy to see how that could be done. [code] std::vector<std::vector<string> > vector1(1000, std::vector<string>()); [/code] Software Development c++ | |
Its been awhile since I have toyed around with java, so I'm a bit rusty. But decided to mess with it today. I have a jPanel that I will be adding objects to, but I want to add the in a new row each time a button is clicked. Anyways … Software Development java | |
Hello, I need to create a function which takes parameters for a circle and checks if a given point(x,y) lies within the circle (or on the edge). Like this: [CODE]public static bool PointExistsInCircle(Double CircleX,Double CircleY,Double CircleRadius,Double PointX,Double PointY) { needs to return 'true' if the point is in the circle, … Software Development mathematics | |
I need to build a program - hotel, which has from 1 to XXX rooms. It is ok, when I have only the: [CODE=JAVA]private static int[] array_of_rooms; <... CLASS CONSTRUCTOR ...> array_of_rooms = new int[size]; // Size is defined size, of rooms in the hotel. // Fill default room status … Software Development java | |
I am having trouble understanding how to implement these problems in C using bit operators. I understand the basic logic gates and when I work them out on paper they work just not code wise. Any insight/help would be great. [code=c] /* * bitXor - x^y using only ~ and … | |
hi guys, Is there any tool for C# that shows the running fragments of source code at runtime or at least facilitate the navigation into source code I mean reading the source code. | |
I want to trigger an event when ever an item is changed in a combo box...how can i do it? what is the listener & action? thnkx in advance..... Software Development java | |
Hi, everyone! I'm writing a program in C# that needs to know opened files in a Photoshop CS4 window. The old versions of Photoshop have a MDIClient window in the program that can be getted with GetWindow() and GetClassName() calls. So, I can get the name from the window title … Software Development adobe | |
Hi everyone, I'm new here and I was really confused where to post this question but since I'm also confused about which programming language (C/C#) to use for image processing, I chose the C# section as I'm inclined to this option. However, I know a guy (experienced in this field) … Software Development image | |
Hi, I am new to programming and am having trouble with this homework assignment. I am confused about how to implement the histogram and frequency. Any help will be greatly appreciated. :) [CODE] // Frequency distribution and bar graph program. User inputs 10 #s that range from 5-15 and is … Software Development c++ | |
Hey guys need some help with this. I m kinda new to c++. I m trying to insert a structure into a set. and when i compile this i m a gettin an error. i guess i need to add a comparator function please let me how do i do … Software Development algorithm c++ data-structure | |
When you know that a value will be very small (single digit), wouldn't it make sense to use Int16 instead of Int32? It seems that the least amount of memory required for every variable would be preferable. Software Development | |
Info :Compiling C:\tmp\lab2.cpp Warn : lab2.cpp(56,16):Possible use of 'choice' before definition Error: lab2.cpp(60,5):Type mismatch in redeclaration of 'mainProgram()' Error: lab2.cpp(60,5):Declaration syntax error Hi everone, I am new to C++, please help. After I compile (using borland V5.02), I got these above prolem, please let me know what's wrong and this … | |
Hi everybody I have've been asked to do something but I can get only to a point and I am now stuck. Please help. I have written a Sub in VBA for Excel 2003 (see below) in which the top cell of a range (WorkRange) is initially set at Cells(1,2), … Software Development microsoft-office visual-basic | |
hi, i'm using the code below to insert data into an access db but keep gettin the error "Datatype mismatch in criteria expression" [code] total = Integer.Parse(txtMonth.Text) * Integer.Parse(rent.Text) Com.CommandText = "Insert into Report Values (?,?,?,?,?,?,?,?,?, NOW())" With Com.Parameters .Add("@ID", OleDbType.Integer).Value = CID .Add("@Tenant", OleDbType.VarChar).Value = cboTenant.Text .Add("@type", OleDbType.VarChar).Value = … Software Development vb.net | |
so here is what my program does Please enter a number: (lets say I enter 5 store in $01) Please enter a another number: lets say I enter 3 (store in $s02 next condition is beq $s01,$s02, end bne $s01,$s02, loop and loop needs to provide user upto five opportunites … Software Development assembly | |
[code]set::set() { cardinality = 0; setlist.resize(DEFAULTSIZE, false); } set::set(int n) { cardinality = 0; setlist.resize(50000, false); } bool set::empty() const { if ( setlist.empty() ) { return true; } return false; } void set::insert(int x) { if (x >= 0 && x <= DEFAULTSIZE) { setlist.insert(setlist.end(), 1, x); cardinality++; } … Software Development c++ | |
kindly let me know the coding in vb6 to get the serial numbers / id numbers of the processor and hard disk of the personal computer using xp operating system, under use. Software Development operating-system visual-basic | |
So I've got a code in VB that will download a txt file from a website. The problem is I want this file to be downloaded into whatever folder that my program is in. for example, if my program was in C:\random_folder\ then I would want this txt file downloaded … Software Development file-system visual-basic | |
hi. I need to make one setup file .exe to install many programs. eg : i wanna to include the sql server in the setup of my application that i developed . so the user don't need to setup the two programs separatly . thansx Software Development vb.net | |
hi friends... i have a doubt in insert query... how to write the insert query to insert the value from textfield into database table....... Software Development java | |
I have a listbox and a datagrid. When the form is loaded the listbox is filled with a list of tables from a selected database (SQL 2008). [CODE] sqlstr = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' ORDER BY TABLE_NAME" [/CODE] Then I have a SelectedIndexChanged that populates … | |
How can I extract repeated paragraphs of data from an html document. Every paragrahp is preceded by the line: <p><i>Summary as passed House:</i> <br> Thanks. | |
Hi all! Well, the name isn't entirely accurate but since I have found it very hard to find some actual useful information on the topic I decided to name it as such. Purely as a programming practice I would like to make a calendar application. Something along the lines of … Software Development | |
So I've been coding for a few months now and I have a pretty good grasp of most things but I can't wrap my head around getting info from loops. So here is my problem. I have a text file containing text similar to this: [CODE]<domain name="proxies"> <section name="proxy0"> <setting … Software Development vb.net | |
This is really frustrating. Whenever I run this, a blank window frame appears The components only appear when I click the edge of the frame. Please check if I did something wrong: [CODE] import javax.swing.*; import java.awt.*; /** * */ public class FFGen{ public void First(){ /** * @param args … Software Development gui java java-swing | |
hey guys, I'm looking for a program that was posted few months ago on a website, but i can't seem to find it, i tried Google, 1 result came up, but the link was broken ... if you have the program with its source could you plz post it here, … Software Development visual-basic | |
Hi, I'm trying to make a program in python that solves word puzzles like this: "nj" (the answer to that is "ok") where each letter is off by one, for example a or c instead of b. the program is supposed to generate a list of possible words which will … Software Development python | |
I have datagridview which display 3 columns. i would like to show icon in each rows with different by if column 3 = "OFFLINE" then the icon offline show else online show. the above is my code but not working. it is creating other column. please help me. Chantra. Public … Software Development vb.net | |
I m creating an sms based application , so how to connect to GSM MODEM using VB.net , do any one have code snippet of this appl Software Development vb.net | |
How would I make the background of a form (which is usually one boring color) a dynamic gradient, measuring by size of the form and creating the gradient from there? Thanks Software Development | |
Hey kind people! How do I remove duplicate Rectangles from my List<Rectangle> in C#? Thank you Software Development c# | |
Hello, sorry if this is a stupid one, I recently started learning assembly and I have read many different tutorials, most of them start with " cpu has 8 main purpose registers... " bla bla you all know that. Ok so cpu has a few registers for programs to use, … Software Development assembly | |
I need some help on this, it is due by 11 PM tonight and I'm not quite sure where to go. In a C++ program, we are supposed to take in four data points of a quadrilateral (in order, so no jumping across the figure) and find the area in … Software Development c++ |
The End.