199,114 Archived Topics
Remove Filter ![]() | |
I trying to create a program that deals with money, and have it all figured out except one portion...I can't get all the decimals to have a monetary look, meaning only two decimal places. I know I can setprecision(2), and that would work for most numbers, but what if the … | |
![]() | Hi guys, I've got a simple bool 2D array that is set to false by default. I'm filling it with random 'true' values. I am then trying to make it symmetrical i.e. array[i][j] = array[j][i] However, this doesnt seem to be working and I was wondering why. I've been trying … |
Im a recent grad working on my first paid project as an aspiring freelance .net developer. I have no idea what to charge for the project description below: Client needs a web app to manage sales leads. Sales reps, managers, and call center will all be able to insert a … | |
Hi I Have a problem in Windows application in .net. I have a PDF file which is stored in my local drive. At run time i need to print that PDF Document using C#. Can you help me out from this problem ? Help appreciated.. thanks in advance.. | |
The clock() function works fine in Visual C++ Version 6. I used it for evaluating how many milliseconds certain functions needed. But with Version 8 it won't let me use time.h the library that holds clock(). Naturally the error is unreadable, but there's hundreds of them and its obviously complaining … | |
this is the simple problem I'm working on. A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period … | |
I had another thread before this one, but I felt that it was getting too long. Current problem: My operator== is not working properly in my program. I have done some things in my function, but I don't think it is "completely right". My program compiles fine and the output … | |
Hi, I've tried to make a program that inputs two 3D vectors and then calculates various norms of the first vector, and the dot product and addition of both vectors. My code is working fine when everything is put into the main, however I wanted to create some functions to … | |
OK I have a search script that suppose to search for information in my database. The problem I having is that I want the user to be able to enter a last name to search. The only part that is giving me problems is this part, I'm stuck on this … | |
Hi all.. I am new to Python and I am here seeking help. Actually, I'd like to run a DOS executable file from Python. The DOS excutable file requires 5 inputs from the users, and I have tried some coding which apparently doesn't work. Can anyone help? Here is my … | |
i am new to PyGtk. i don't know how to get realtime update on gtk. such as downloadmanagers show's every time the speed changes. here is my. in this code the "f='/home/tree.txt'" is a log file .this file regularly updated by another thread. i want to add the file contents … | |
hi, I have a program that compresses a file but for some reason my output file comes up empty every single time ...I dont get it . can some body tell me what i might be overlooking The sample input file looks like this ..GGGGGG...OOOOOOOO...OOOOOOOO...DDDDDD and my function has to … | |
Hi... I want to write a IF Condition as follow: [CODE]set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO Create PROCEDURE [dbo].[abc] AS SET NOCOUNT ON; BEGIN Declare @add = 0 as int Declare @change = 0 as int Declare @remove = 0 as int Select abc.value as 'Name' if (History.OLDSTR == … | |
Can anyone please help me with this assignment. Its due friday and i have no clue how to do. thanks in advance for your help. _____________________________________ Question Design a MIPS assembly language program to implement the multiplication algorithm of the diagram provided in the link below [URL="http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5"]http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5[/URL] Demo the program … | |
Working on a project that is basically a simple bowling program that uses a gui to read in from a given text file a pre-determined amount of names and scores...runs through the standard 10 frame scoring system, prints out the score, and who won. Now I can't seem to get … | |
Assignment Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee … | |
![]() | So...I want to send image source to Crystal Reports document. I'm having a database of maybe 400 members and each one of them is having personal picture...i want to send that picture to Crystal Report document when I click on button for each of my members, is that possible somehow? … |
Ok so im building a level editor for this game. What the code i cant working does is, when the button is clicked it should get the selected cell from the jtable and set a value for it. However, for some reason I cannont get it working. Here is the … | |
How can I get the sum of the numbers of only one textbox? For example text1.text= 1367 How to get the sum of this 4 digit number? I appreciate your assistance in advance. Lida | |
[CODE]public String expandTemplateTopic(String remark) { String random_word = findKeyWord(remark); String str=" "; String kok2=" "; int num1=0; int num2=0; int num3=0; //find a random template int number = generator.nextInt(sentenceList.size()); String argument=sentenceList.get(number).getTemplate(); //split it into words using space as delimiter List ls=new LinkedList(); String[] array =argument.split (" "); //find if there … | |
I have an assignment that states >Research on Microsoft SQL Server, Oracle, and MySQL. Briefly describe each database application. What are their inherent benefits or limitations? Assume a pro or con approach: Based on your research, which would be the most reasonable approach to this solution and why> All i … | |
I was asked "This program asks for a series of five test scores and calculates the average score in a function. The function should receive the total of the five scores as an argument and return the average of the five scores. The program should not accept scores less than … | |
********************************************************************************** Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and 2 y's. Return the distance between the two points. It involves a square root. Write a main function which will ask the user for 2 points (4 numbers), decide … | |
Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? Please note that the numbers arent part of the pattern, they are just a guide for row and column. * * * * * # # # 1 * * … | |
I've just started learning Python but have hit a little issue when instancing a class. I seem to get errors like: AttributeError: type object 'Stuff' has no attribute 'a' or: AttributeError: class 'Stuff' has no attribute 'a' Clearly I'm missing something fairly fundamental :/ A quick test program shows what … | |
Hi all, I am playing around with list and I figure out how to merge two lists and all. But I have no idea how can I integrate one list onto another. For example A = {1,2,3,4,10,11} and B = { 5,6,7} Then my integrated list should be {1,5,2,6,3,7,4,10}. I … | |
How do I access the paramaters entered after param1? Like this: void foo(param1, ...); How do I access the ... part? | |
![]() | Hey All, I have made a program called "Pymailer", I have even made a GUI version... now what I want to do is to convert it to .exe format... how do I do it? I googled for some info, but in vain! ![]() |
I am trying to convert a string "500.00" into float. When I use this it produces a string 50000, why does it produce such a result? [code] atof(bal.c_str()); [/code] | |
I'm a student but I'm not asking anyone to do my work for me, however I would like a little help if possible please. For part of my assignment I have to create a program that will issue a bepp of the value ( frequency and duration ) that the … | |
Hi, I am new to ruby programming. I would like to know how to create a document and add elements like texts and tables. I also need to modify those and then write them into a file. Is it possible to do it with Ruby? Thanks, K | |
hai friends this is yugandhar, i want to learn c language so i want install c setup, wile iam installing the setup file is not installing proprally but right now iam using vista operating system can u help me any one, if u have any c language setup file send … | |
hi i have a program that uses ms access database in [B]vb.net 2003[/B], when i run the program it seems to work fine but if i press a button that uses an openfile dialogbox and try to open again my database the program crashes... it seems that is losing the … | |
![]() | Hi, I have 4 menus with a submit button posting to a results page with 4 recordsets getting correct data from data base and displaying it with an if, elseif, else clause. It works - well almost! If a row exists that has all the criteria a user has selected … ![]() |
You can insert a no. at any pt. in this program. here is the code: #include<stdio.h> #include<conio.h> #include<process.h> #include"goto.c" void line(void); void cross(void); int main() { clrscr(); int a[9][9]={8,6,7,5,4,2,3,9,1, 4,3,2,9,1,8,5,7,6, 9,5,1,7,6,3,4,2,8, 5,2,9,6,8,4,7,1,3, 7,4,8,3,5,1,2,6,9, 6,1,3,2,7,9,8,5,4, 1,8,5,4,2,6,9,3,7, 2,9,6,8,3,7,1,4,5, 3,7,4,1,9,5,6,8,2}, b[9][9]= {8,6,' ',' ',' ',' ',' ',9,' ', 4,' ',2,' ',1,' ',5,' ',' … | |
Can someone help me determine if 2 stacks are the same? I am fairly new to stacks and need help. My header file is also below. Currently I am getting an error message using "==" and "!=" in my if statement. If someone can help, I will appreciate it! Thanks … | |
Hi Frnd's... I'm new to webservice concept.Can anyone tell me how can i access a webservice from one site to another site using asp.net with vb.Please aid me to do this process.Awating for ur reply Experts... the following link contains the schema [url]http://www.laserapp.com/dev/dtd/las9formfeed.xsd[/url] Tks in Adv... Caleb05.... | |
I've bene banging my head against a brick wall trying to work out how to do this. I need to be able to read a text file line by line and to read each character of the line. When the character is a space, anything up to that is added … | |
I have a project with more than one form and I move between them with a button click that hides the current form and shows the one I want. But what is I want to perform some procedure each time the form is shown? I tried this code on my … | |
private bool OpenDbConnection(SqlConnection sql_con_obj) { try { SqlConnection.ClearPool(sql_con_obj); SqlConnection.ClearAllPools(); if (sql_con_obj.State == ConnectionState.Closed || sql_con_obj.State == ConnectionState.Broken) { sql_con_obj.ConnectionString = "Data Source=.;Initial Catalog=Practice;User ID=sa;Password=sa"; sql_con_obj.Open(); return true; } else { return false; } } catch (Exception ex) { ShowMessage(ex.Message); } } I get following error on execution: Error 1 '_Default.OpenDbConnection(System.Data.SqlClient.SqlConnection)': … | |
I'm having Java course and I have to submit the following programs by the coming Wednesday for what I am not skilled enough till now. Please may you code those for me for this time? PART 1 P1. Write a java program to calculate the roots of a quadratic equation … | |
for some reason when i run the program the print method for the array gets called instead of the one for the matrix..but it jus print out "array index out of bound".which is the exemption...the code is attached | |
When I try to compile this: [code] #define NODES_MAX 100000 extern node_t _nodes[NODES_MAX]; [/code] It gives me this error: ------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------ Compiling... main.cpp c:\documents and settings\tom\my documents\visual studio 2008\projects\thealienengine\thealienengine\ae_3d.h(12) : error C2148: total size of array must not exceed 0x7fffffff bytes Generating Code... … | |
I have made a window that has message boxes, menus and dialogs, but can someone tell me what is wrong with this .rc code? It looks ok for me it gives me this error: [Resource error] syntax error on the line 3, the one that starts with style. [CODE] #include … | |
![]() | Hi, I've created a class called [B]MyClass[/B] which just contains some data: [CODE]public class MyClass { #region Private Variables private string _ValueA; private string _ValueB; #endregion public MyClass(string ValueA, string ValueB) { _ValueA= ValueA; _ValueB= ValueB; } public string ValueA { get { return _ValueA; } set { _ValueA= value; … |
Hello Everyone. I want to make query with php combo box items. When the user click on the items of combo box, the following table will generate correspondent data. Now i can display data in one table, but i don't know how to use it with combo box. Does there … | |
Hello guys I want to convert an integer to a hexadecimal string examples lets say i have an integer value 1 i want to convert it to 0001 integer value of 16 => 0010 245 =>00F5 and so on the string must have a length of 4 digits my code … | |
![]() | Hi, I have created a statement using IF, ELSE IFs, ELSE, and it brings up PARSE ERROR UNEXPECTED T_ELSEIF in line... On checking for the solution to this error it often seems that a } has been included or missed, i´ve doubled checked my code and don´t think that this … ![]() |
Hi, Is this valid in C++?? struct A{...}; class B: public A{...}; Thanks! |
The End.