132,726 Archived Topics
Remove Filter ![]() | |
Language : C++ I have had a bit of confusion with overloading the script operator. Not really sure on how to incorporate the operator. I am almost finished coding a program assignment except for this problem with the srcipt operator. The script operator info taken directly from assignment instructions is … Software Development c++ | |
Hi, I need help to make a perl program work. The program accepts an input (reaction) and then search for the input in a file and then displays the reaction on the same line. Input file - file.txt (A large file with no header and in the following format): A1_HTTT24 … Software Development perl | |
i am trying to work on an assignment that asks me to prompt the user for a name of one of three employees, then prompt for the work hours of 6 days. each of these will be stored in a separate array. then i am to implement the following rules … Software Development c++ | |
Hey everyone! I am a newbie to java and I have what is probably a simple question. I have add a program I am working on to randomly display random numbers from 104, 105, 106, and 108. I have gone about this by creating an array and storing the numbers … Software Development java | |
My code is : /* Database.java*/ [code] import java.sql.*; import java.awt.*; import javax.swing.*; public class Database{ private static Connection con = null; public static Statement statement = null; public static void makeConnection() { JOptionPane.showMessageDialog(null, "database"); String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:lib"; String username = ""; String password = … Software Development java java-swing sql | |
Hi, i am doing my mom's c++ for engineering class, and doing a project for her, i noticed something in the extra credit section of her project directions. it says to add graphics to represent what variables the users are entering. in this one, it is about beam deflection, and … Software Development c++ engineering | |
Please help me finish my project. I am a novice and completely new to python and hopelessly lost. I hope somebody will be able to help me. Here is my problem, I am working on a project for class and I am stuck. My program is supposed to be simple, … Software Development python | |
so far the address book is compiling and takes in entries and runs all the other functions but the search and delete methods don't work even though I have the entry entered in a file and the code should use that very same file to display the names etc if … Software Development c | |
Each of the two food stores, A and B, of the same company has a list of products that are available in its stock. We assume that the standard input contains NA records for food store A and NB records for food store B. Each record describes the code of … | |
Can someone guide me how to make menu in python please? [url]http://www.daniweb.com/forums/post693793.html#post693793[/url] This is a previous post of what sort of menu i need. Can someone just give me a start please. Cheers Software Development python | |
[CODE]#include <mega8535.h> #include <delay.h> #define clk DDRA.0 #define dio DDRA.1 #define cs DDRA.2 #define diopin PINA.1 #define clkx PORTA.0 #define diox PORTA.1 #define csx PORTA.2 #define OUTPUT 1 #define INPUT 0 #define LOW 0 #define HIGH 1 // Standard Input/Output functions #include <stdio.h> // Alphanumeric LCD Module functions #asm .equ … Software Development c | |
Hi all! I have an app using pygtk and in a separate thread I have a server responding to specific calls on port 1120. Everything works fine except one thing: When I exit my app, everything shuts own properly but if I start up my app again right after (and … Software Development client-server python | |
i am trying to write this program and i have no clue how to do it. Could someone help me please. thank you! a) The program implements insertion sort, merge sort, quick sort, and counting sort as subprograms or classes; b) The program reads input from a data file specified … | |
Hi all, am working in vb6. I have a situation wherein i have to open many files together and keep it in a folder and then start runnin one by one continously without any break. i have the codes for opening a single file and runnin it... how can i … Software Development visual-basic | |
i need to write a C++ program that reads a sequence of integers and saves it into an array. Your program has to check whether each integer n in the sequence is perfect using a brute force approach. That is, your program should use all possible divisors of n from … Software Development c++ | |
A positive integer number n is said to be perfect if it is equal to the sum of its proper divisors. In other words, n is equal to the sum of its positive divisors excluding itself. For example, 6 and 28 are perfect numbers. Indeed, we have: 6 = 1 … | |
I'm trying to do the following: [code=java] private void butonActionPerformed(java.awt.event.ActionEvent evt) { buton.setLocation(500, 500); } [/code] but it doesn't do anything. Please help. Software Development java | |
Hi all, How to find free physical memory... I am using new operator to allocate memory.. I tried GlobalMemoryStatus (windows api) to analyse the current free memory. new is giving exception still GlobalMemoryStatus shows sufficient free memory.. I am using visual studio 2005 for development. and I want to avoid … Software Development api c++ visual-studio windows-api | |
Hi Friends, I have a small doubt about pointers, One of the Advantage of the Pointers is "FAST ACCESS" comparitively to variables My doubt is How can it be? a Pointer stores a variables address, whenever it accessed it goes to that particular address and retrives the value... Similarly,a variable … Software Development c | |
[code] #include <iostream> using namespace std; template <typename T> T total(T numValues) { } int main() { cin.ignore(); cin.get(); return 0; } [/code] Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total. The argument … Software Development c++ | |
I am a newbie to c++... Today I was handed a assignment on "array"...While working on this...I've met plenty of errors... I wonder where did my steps gone wrong... May anyone out there borrow me a helping hand?? [CODE]#include <iostream> #include <iomanip> using namespace std; float calpricetopay(int[5],float[5]); // function declaration … | |
In c++ pre and post operator are used with variables where one need to just increment or decrement value by 1.For incrementing value ++ operator can be used and for decrementing -- operator can be used. Its use is very simple one can easily say ++i or i++, to increment … Software Development assembly c++ first-post seo storage | |
Hello guys, i am trying to write an insertion sort program with any values entered by any users but im getting some weird numbers. could someone help me see what s wrong with my code. this is my code: [code]#include <iostream> using namespace std; int main() { int a,b,c,d,e,f; int … Software Development c++ | |
Here's my submission to sort a string of characters in numeric, then lowercase, then uppercase. It may be useful, it may be not. [code] Function SortStringUpperLower(ByVal strString As String) As String Try Dim arrString() As Char = Nothing Dim strReturn As String = String.Empty Dim chrPrevious As Char = CChar(String.Empty) … Software Development vb.net | |
I am preparing for a programming competition soon and for one of the sample problems one line of input is the length of the list of numbers and the second line is the actual numbers. this is what i have: void main() { int num; cin >> num; int items[num]; … Software Development c++ | |
Hey I am trying to create a java chat server but I am get an exception: exception in thread main java.lang.arrayindexoutofboundsexception 0 I know it means the index is out of bound but can any please tell me what I am doing wrong, I want to assign the port = … Software Development java | |
Hi, I am still new to C++ and I am having a little trouble compiling the following code, and couldn't figure out what went wrong: [CODE]#include <iostream.h> #include <string.h> using namespace std; float x = 5.0f; int _65Num = 65; int mian() { string str = "Hello World!"; cout << … Software Development c++ first-post | |
Having a problem setting user input to a dynamic array. It worked with a static array, but now I'm having some kind of pointer issue. The user sets the dimensions and enters in a number of characters, which should be set to the array 'gameboard'. it's just setting jibberish though. … Software Development c++ | |
Hi, I've this script that takes care of picking phone number in standard format - xxx-xxxx, further i would like it to pick phonenumber even without hypen - xxxxxxx. How can i do that? [CODE] foreach $number (@numbers) { if ($number =~ m/(^\d{3}-\d{4}$)/) { push @results, $number; } } [/CODE] … Software Development perl | |
So are there any good piping & threading tutorials out there? Software Development c++ | |
Hi Guys I was doing some reading up on data structures to refresh my memory when I came across the following: pmovie->title *pmovie.title source: [url]http://www.cplusplus.com/doc/tutorial/structures/[/url] pmovie is pointing to an instant of a struct. I know the arrow operator is a dereference operator for objects and I thought *pmovie.title was … Software Development c++ | |
Hi all, How to find the free physical memory... actually i want to avoid the exception from new operator.. i have used the [B]GlobalMemoryStatus[/B] a windows api for this but new is giving exception still more memory available than i am allocating. I am using visual studio 2005 Please help … Software Development api c++ visual-studio windows-api | |
This seems simple, but it's not working. There IS a text file in the same directory, but it's not being opened (and with the ios::in | ios::out, it should open even if it doesn't exist). I also ran into trouble trying to use infile.fail, which is why I used !infile. … Software Development c++ file-stream file-system ios | |
I have written a Python program that takes information from the user at the command line, and then saves this data in a PostgreSQL database. Now I want to wrap a GUI around my program. I am just starting with wxPython and have completed a few tutorials, but still can't … Software Development gui postgresql python | |
Hello all, I'm trying for several days to learn how to implement a multicolumn DataGridViewComboColumn into my DataGridView. So I have a DataGridView in witch i have a ComboColumn, i need when i dropdown that ComboColum to have multipe column like a gridview or table. I hope that you understand … Software Development | |
Hello, I am trying to write a function such as: [CODE] printValues(int nInts, int nFloats) ; [/CODE] nInts describes the variable number of int values passed, and nFloats describes the variable number of float values passed. Normally I would think of doing something like: [CODE] printValues(int num1, int num2, float … Software Development c | |
I am trying to delete a file when my program draws itself (Using Visual Studio 2008). Currently using this method [CODE] public frmMainMenu() { InitializeComponent(); File.Delete("\\Program Files\\smartdeviceproject1\\SendXML\\1.txt"); }[/CODE] The path for the file is "\Program Files\smartdeviceproject1\SendXML\1.txt" Yet when the program is executed, breakpointing shows that the line is executed (and … Software Development file-system visual-studio | |
I need to match the content on web. For example consider I have one sample code,if i submit that code it should search on web and display the website url where that code exists. I need the code in asp.net and c#. anyone if knows how to do this Plz … Software Development asp.net | |
can anyone tell how to write in core java using command line arguments : a) to print prime numbers from 1 to n b) to calculate the length of input string c) to find whether the number is odd or even d) to convert dollar in rupees e) to accept … Software Development java | |
I have two tables 1) tblRequests and 2.) tblMainTags. The Fields in tblRequests are Tag_Request_No, Employee_ID , Accepted, Accepted_Date, and Accepted_Time. The Fields in tblMaintags are Tag_Request_No, Tag_ID, Completed, ... The fields 'Accepted' and 'Completed' are set to YES/NO. I want to display in a datagridview the two tables joined … | |
Hi I'm using [B]NetBeans + GCC[/B] in Linux and also [B]NetBeans + MinGW[/B] in Windows. I need to run an OS Command e.g.: [ICODE]java -jar myjar.jar[/ICODE] I prefer [B]not[/B] to have the terminal/cmd window. It works fine in Linux, but in windows, it ends up in opening a [B]cmd[/B] window … Software Development c++ java operating-system | |
i've been having trouble just figuring out the merging part of the code. here's the main. everything works except for the merge part that is at the end of the code. [CODE] main() { HeapSort heap1; HeapSort heap2; int one, two; int x = 0; int number1,number2; cout<< " Enter … Software Development c++ | |
Hello, I'm stuck with this code and I can't figure out how to make it work. I need to get the Sum of Odd numbers from an array. For some reason it returns 0. I'm new to programming, so any help would be appreciated, thanks. Here it is: [CODE]#include <iostream> … Software Development c++ | |
hi! I am quite puzzled here. I have a program inwhich when the user clicks on the command button, a random line should appear but only once. I am storing each line with different variables. Right now i have the random line coming up but it is repeating itself. For … Software Development vb.net | |
This is the code i have for my stack program: public class MyStack { private int top; private int[] store; Stack(int capacity) { if (capacity <= 0) throw new IllegalArgumentException("Stack's capacity must be positive"); store = new int[capacity]; top = -1; } void push(int value) { if (top == store.length) … | |
How would i be able to reference to a file in my resources.. lets say i got a default template.dotx (word 07 template) in my resource folder... how would i be able to point to it when i publish my app? thanx Phoenix911 Software Development | |
Hi everyone, i'm new in c#. Is it possible to express the UI form as a 2D matrix? how can i do it? i have some object which must make moves from commands that user gives. For ex.: commands "d5; r4; u1;" mean: 5 steps down, 4 steps right and … Software Development | |
Dear friends I have some picture stored to SQL Table as Image Field. but I Don't know what is the format of this pictures they may be JPG or BMP format. for retrieving this images I mast know what is the format of each stored Picture. is any method to … Software Development pascal | |
i need to convert this java code to java applet code here in my java code: import java.io.*; import java.util.*; public class fyp { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); static ArrayList<String> seeding = new ArrayList<String>(); static … Software Development java java-swing |
The End.