132,726 Archived Topics
Remove Filter ![]() | |
hi, i have a form in which there are two buttons.. i ve written code for the button 1 and button 2 in the click event. now i want to click button 2 programmtically. that is when button1 is clicked it should execute the set of coding also it should … Software Development | |
Hi all, I have created a Windows Forms application in Visual Studio.Net 2008. I have some group boxes on the form in order to section various controls on the page. At the bottom of my form is a group box containing a texbox used for display exception messages. I would … Software Development vb.net visual-studio | |
guys I need to populate all the values of a specific column in each rows of my table from my database. The specific column that i need is the "position",I'm using sqldatareader here's my code. I know that I need to use looping statements and the items.add properties of the … Software Development vb.net | |
![]() | Hey guys, After fixing one of my earlier problems I ran into another one. Basically I'm trying to make an inherited class and add one more parameter to its constructor, but I can't seem to do it properly Here is the masterclass definition [B]Package[/B] [CODE]#ifndef PACKAGE_H #define PACKAGE_H #include <string> … Software Development c++ ![]() |
So I finaly managed to compile HelloWorld, but only by typing out the entire C:\progra~1\java\jdk16.0.2\javac HelloWorld.java, which left me with some serious blisters on my fingers... Is there some way I could be able to just say Javac HelloWorld.java? Thanks if you reply, I'm kinda new to this stuff Software Development java | |
I do not often visit the Java forum, because I know nothing worth posting in the Java forum :) But when I [I]do[/I] visit, I see a lot of posts with code without code-tags. This makes the code nearly unreadable and reduces the overall quality of Daniweb. So I have … Software Development java | |
I am getting unpredictable behaviour from malloc(). Here is the code fragment: [code=c] float **t; t=(float **)malloc(sizeof(float *)*A); perror("\nError status 1:"); for(i=0;i<600;i++) { t[i]=malloc(sizeof(float)*B); } perror("\nError Status 2:"); [/code] The objective here is to have a dynamic 2D float type array. For testing purposes though, I have hard coded the … Software Development c objective-c visual-studio | |
Ok so I am a total newbie, and for our last programing assignment in my class we are going over Binary Search Trees. Out assignment is to take an older program and make it into a binary search tree. I am using Visual Studio and I have gotten past all … Software Development c++ ios open-source visual-studio | |
Hi! I just upgraded to win 7 64 bit. I have tryed it both on cygwin compiler and MinGW compiler (toolchain) Working on eclipse. My code works perfect in Linux/ubuntu environment but running in win 7 environment I have the following problem. My last cin does not work. The input … | |
[CODE] using namespace std; int main(int argc, char *argv[]) { int item_weight; // ITEM WEIGHT IN GRAMS double item_unit_price; //ITEM UNIT PRICE ($) int quantity_required; // QUANTITY REQUIRED //ENTER ITEM WEIGHT IN GRAMS----------------------------------------------------- cout << "ENTER ITEM WEIGHT IN GRAMS: "; // prompt for input item_weight cin >> item_weight; // … | |
Hi, I have another question: ¿is there a method that allows me to capitalize the first letter of EVERY WORD in a given string? I know that something like: [CODE=python]a = "hello world" print(a.capitalize())[/CODE] would print "Hello world" but I need it to print Hello World. It's for a program … Software Development python | |
I'm having difficulties understanding and printing the max value of a size_t type. Apparantly the size_t is typedefed to a unsigned long int on my system. Is this safe to assume its the same on all c++ compilers? The 'sizeof' function returns the number of bytes(size char), used to represent … | |
I am trying to write a racing game but i need some winning conditions. Im not sure where to start, any pointers would help. Im using Visual C++ Software Development c++ | |
I'm trying to convert a row from a matrix of Char's to a String and all I've been able to get is a bunch of memory locations. I was hoping someone can lend me a hand. Here's what I've got: [CODE] for(int c=0; c<tempBoard.length; c++){ String charArray = " "; … Software Development java | |
![]() | |
hi guys, i am doing a final year project regarding the ontology population using information extraction. i am to use Java and GATE. i need some help in the part of information extraction as this is supposed to be coded in java. so please...help me start off my project. all … Software Development java | |
Hi, I'm trying to write a program that asks the user to enter a series of text lines and then stop and write those lines into a text file. I tried to use this: String newFileName; String line; PrintWriter outputStream = new PrintWriter(newFileName); while( line.length()>0){ line = keyboard.next(); outputStream.println(line); } … Software Development java | |
I'm doing some development at school and i have to create an app as follows: Create a Digits of a number app that accepts a two-digit number and displays the digits separately. The instructions give the #32 and the picture of the app separates 3 and 2 in 2 different … Software Development visual-basic | |
I need help with some code for this. I've got the paddle working, but I can't figure out how to get the bricks to disappear. I've attemted to code it, but no matter how i try it it doesn't work. I'll give you my code so far. I reeealy hope … Software Development visual-basic | |
I'm towards the end of my problem. I just need assistance when comparing classes. I'm trying to compare the two Grade point averages, and whoever has the highest, I would like to be announced or displayed. Any help or hint is appreciated... [code] #include<string> #include<iostream> using namespace std; //class of … Software Development c++ | |
- I've Implemented a very simple non repeated random generator and I want to share it for anyone .. - I want Your Opinions Please , and any comments about my code - Anyone notice any fault in the result (any repeated numbers), please report me - Thank You Very … Software Development c++ | |
hey guys, i was wondering if anyone could tell me how to separate individual digits of an integer in order to store those individual digits into an array? I need to create a circular shift method so I was just going to separate the digits of the number, put them … Software Development java | |
Hi, I've read various topics on this particular thing and have got nothing working, I just can't seem to get my head around it. I've got a file with two strings and a decimal, separated by commas. I want to read them in to a linked list so that they … Software Development linked-list | |
[CODE] import java.io.*; import java.util.*; public class array { public static void main(String[] args) throws IOException { FileInputStream in = null; FileOutputStream out = null; try { in = new FileInputStream("input.txt"); BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String line = null; while ((line = reader.readLine()) != null) { String split[]=line.split(","); … Software Development java | |
I am doing a project in college and I am not binding the database. I am connecting to it manually. i got the database to load and display, but can't create a new row or edit the database or delete a row. the code is here and could someone tell … Software Development dataset open-source vb.net | |
![]() | Hi. I'm trying to call a function to convert a decimal integer into a binary number (stored as an array of integers). Before I knew that I couldn't return an array, this is how I thought to implement it. Can anyone help me understand the way I'm actually supposed to … Software Development c ![]() |
Hi, I've just joined this website for help with some C++ problems. I am new to C++ and face the task of reading from a text file and outputing the result in another text file using the[B][COLOR="Red"] istream& operator >>(istream& stream, storage &s)[/COLOR][/B] it looks like something underneath: istream& operator … Software Development c++ file-stream file-system storage | |
Ok so i have to print a table of data like so.. SURNAME LAST NAME ADDRESS POSTCODE right? but the problem is the text won't align to the appropriate heading. so when i try to use tabs if someone has a longer surname or whatever this happens. [CODE]SURNAME\t LAST NAME\t … Software Development c++ | |
hi all, how can i start any application from c sharp i mean for example, if i have an openfiledialog and the user opened it and selected any file and opened it, i need this file to opened in its application whatever its extension and its default start application. i … Software Development | |
I need clues for making a programe suppose there is sample data set in file sp13Input.txt. A 555-1234 B 555-1111 C 555-2222 D 555-3333 E 555-4444 F 555-5555 G 555-4321 z 000-0000 we have to make linear search,by giving the number and it will display the name of the person … Software Development c++ | |
I am trying to get music to loop in the background of a game. However im really not sure how to do this. Can anyone give me a starting point please? I am using Visual C++ btw. Software Development c++ | |
Hey all, thank you for taking time to help me out, I am in need of some help. This is what is required from me: [QUOTE]Develop 3 ordered collection classes each storing a collection of Album objects in a sorted order but implemented in a different way as follows: 1. … Software Development java linked-list | |
Hello, I'm working at a project and I want to add a MP3 song an play it when the program that i made will be started... any ideas? Software Development vb.net | |
this problem contains three classes, WordData, WordDataSet, and WordDataTester. each class already contains the necessary structure. the WordData class creates a unique word. it allows the tracking of the string [U]word[/U] and the integer [U]frequency[/U] of the word's usage. [LIST] [*]public WordData(String w) initializes the word to w and frequency … | |
Hey all I have been writing my own implementation of a BigInt class and I think I have most of it down. I am using a vector<int> container for my number. I'm curious to what you guys think about. This is my first program using 1000+ lines of code. Please … | |
Im having trouble with an assignment that I was given. here is the assignment and the code I have so far. The Telephone Lookup application The task The goal of this assignment is to design and write a program that does a telephone lookup. The program reads a data set … | |
I am trying to have a Macro save an Excel 2007 spreadsheet as a PDF (I have the Save as PDF or XPS installed.) How can I get the file name to save as 2 cells concatenated? I am working with the following code so far. Any help greatly appreciated. … Software Development pdf visual-basic | |
Ok first of all when I was reading a thread on Timers before this guy posted code for a timer and its really good, but only problem with it which I cant figure out is that when I run the program the Msgbox("You have run out of time")..Which is from … Software Development vb.net | |
Hey guys, Im new here so I hope this post is in the right spot. Im trying to get my code to callout to the other functions. When I debug the code, it only executes the Int Main section of my code. Can someone help me out and explain how … Software Development c | |
I am using MS SAPI (5.1 or 5.3) to read a script using a call like this (in MS VC++): [CODE]Voice -> Speak(script.AllocSysString(), SPF_DEFAULT, NULL);[/CODE] I want to be able to limit the total duration of the time spent reading the text to length X (hard limit). Is there a … Software Development c++ | |
I made a program simulating that of the lobby of a hotel, and I have a problem with storing the record variables into the file...for some reason only those variables of type string are saved and those of integer and of array are not, or if they are stored, thay … Software Development data-structure file-system pascal | |
I need help creating a script allowing one file to move to another folder and when moved the date and time should be appended to the end of the file name. Please help thank you FS Software Development shell-scripting | |
Hi, I want to ask you, how can I do a program, which will be read characters from a keyboard in random time. I mean it, that if I write some characters on a keyboard in every time, when I come to the PC, it save it to txt and … Software Development c++ | |
I am battling with this code. I want to open a word document from a button and want the document (attendance register) to be available to resources once compiled and using on CD from another PC. At present having issues getting it right!!! [CODE]Public Class Form2 Private WordApp As New … Software Development microsoft-office vb.net visual-studio | |
So I have this assignment in which I need to use Selection and Projection operators on n-ary relations. The book really doesn't cover it in a way I understand and doesn't explain it in terms of c++, so could someone help me out. Could someone give me a "c++ code … Software Development c++ | |
OK, in reference to my last thread, I finally got PIL installed and set up. I can even successfully import it (from PIL import Image). All that remains to be done is for me to successfully get an image into my GUIs, and I'll be good to go. Can someone … Software Development microsoft-windows python | |
Ok i wrote this function to print as many characters as needed but it doesnt work can anyone help me? It only fails in loops where after every cycle the number of times gets multiplied. [CODE]Function TfrmDeliveries.WriteChar (letter : char; times : Integer): String; var i_count : Integer; s_temp : … Software Development pascal | |
Hi, I've been working on this one problem in C++ for hours, starting last night. I haven't been able to figure it out completely but have been able to complete 3 of the 6 functions required for the program. I'm in the process of completing the fourth and have run … Software Development c++ | |
Hello guys, I've a class with a cpp and .h files. It's a part of a large program. I would like to create an array of structs and use it wherever in the same class, i.e. I want to initialize it in a specific function and use it in other … Software Development c++ | |
In my code my "ndeps" is not being declared in my "setdepends" function and i dont know why. Can anyone help me figure out why? [CODE] #include <iostream> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; class Object{ private: Object **depends; int ndepends; public: Object(); char *id; enum Color … |
The End.