132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hszforu

what does an array contain when it is declared? For example, when i declare an int array numbers like: int[] numbers=new int[5]; now without intializing any values, i tried to print that array.So it showed me that all elements inside that array were 0. Now if 0 means empty, then …

Software Development
Member Avatar for hszforu
0
138
Member Avatar for Zssffssz

I was going through all of the tags gettn' used to my fresh DM compiler (love it) and in optimization there was a rather long tag called 'expensive optimization' Th DM website didn't have anything and google just brought up car engines. What does it do?

Software Development c++
Member Avatar for mzimmers
0
124
Member Avatar for avani20391

Hello Friends... I'm writing a C program to print pattern of swastik using *. I want to set my pattern in the center of the screen. Can anyone tell me how can I do this ???? Below is the C program for swastik, but it do not print swastik in …

Software Development c
Member Avatar for avani20391
0
868
Member Avatar for teenshee_rosean

Hi there.! I've been working on our Software Analysis Development project for how many days and sleepless nights, the application is an Online Shopping. I'm using Microsoft Visual Studio 2010 as my environment, then I used C# as language for the site. I used Microsoft SQL 2008 R2 as my …

Member Avatar for teenshee_rosean
0
559
Member Avatar for Se7Olutionyg

I am trying to write the string to text file after heap sort.... it works correctly, just don't know why there's some weird charracter in the output file.. Any help with be appreciated. Content of input file in1 is abc efg ghi q w Thanks [CODE]#include <stdio.h> #include <ctype.h> #include …

Software Development c file-system
Member Avatar for Smeagel13
0
189
Member Avatar for sujan.dasmahapa

Dear Friends I have a mfc application which I already converted to a dll. now I want to launch that application from another win32 client application. So how I can achieve this. Any h elp would be highly appreciated. check my code snippet. [CODE]//in App.h header extern "C" __declspec(dllexport) void …

Software Development c++ client-server windows-api
Member Avatar for sujan.dasmahapa
0
347
Member Avatar for ckwolfe

Hey, I'm a beginner at compiling (or interpreting) Haskell and some of the basic things are hard to do especially when theres not a lot of info out there for me to use. My question is, how do I run a test file after I have compiled? I compiler with: …

Software Development
Member Avatar for ckwolfe
0
131
Member Avatar for Zssffssz

Ok here it is: I want to read a file backwards, the catch is that I want to do this in binary mode to make a, really lame, data encryption program. Is there any easy way (<10 lines) To do this?

Software Development c++ encryption
Member Avatar for vijayan121
0
704
Member Avatar for Lendaanx

Im new to java and trying to get buttons to work. My next button works as intended however the first and last do not and the previous one only takes me back one space if i'm on the second item. I need the prev button to rotate backwards through the …

Software Development gui java java-swing
Member Avatar for hiddepolen
0
184
Member Avatar for xiangzhuang

Hey guys I keep getting the "no return statement error in two places, I have commented them for you [CODE] /** * A WordsCompare object stores Strings. It is used to determine if the first word * should be placed before or after the second word in the dictionary */ …

Software Development java
Member Avatar for JamesCherrill
0
292
Member Avatar for c++_fem

Hi, Is there a way to stop a function from returning a value if a condition evaluates to true. For example my function returns the sum of two integers. How can I stop it from returning anything if one of the integers is negative [CODE] Class C1 { ... public …

Software Development c c# c++
Member Avatar for c++_fem
0
234
Member Avatar for dilansankalpa

Hi, i need to validate some text in a text box and restrict entering invalid characters. So i thought to use Key_Pressed event. But this event doesn't fire when i paste some text directly in the text box. what event can be used for paste text in a text box …

Software Development
Member Avatar for dilansankalpa
0
105
Member Avatar for superjj

hi I want to write a program where I can load files into, for example XML. When the file is uploaded, I want to use the data that is in the file. can someone help me please. Thanks

Software Development
Member Avatar for superjj
0
185
Member Avatar for deepak1331

Help Me i have created a program to take password from user while accessing a small project, but while user is inputting password it is displayed, i don't want it, i have created all other functions for deleting, editing password. e.g enter password : india001 //i am getting that enter …

Software Development c++
Member Avatar for Narue
0
10K
Member Avatar for Ayavan

i am just developing a library management system as one of my project. i using vb.net 2010 and the MS Access 2007 as back end. when i save some records into my database through my application it is correctly saved and i confirmed it through opening the relevant table in …

Software Development microsoft-access vb.net
Member Avatar for Mitja Bonca
0
111
Member Avatar for soham.m17

I want to add a Lable in a JComponent when a button will be clicked. I have added a actionlistner on that button. I've added this.add(label) in the JComponent. but the location, which is set by label.setLocation(...) is not maintained in the JComponent. If i use FlowLayout() in the JComponent …

Software Development java
Member Avatar for JamesCherrill
0
122
Member Avatar for fishman6

Hey, I've been trying to get this to work for most of the day. Basically I have an array of strings and I'm adding to them using strcat in a loop. It works fine for the first few loops but then the strings start to go all out of whack. …

Software Development c
Member Avatar for Narue
0
166
Member Avatar for techyworld

i need to modify the following code so that the parent thread can pass to the created thread a number (from 1 to 10) and the child thread should display that number of values. The number passed to each created thread can be a different one. Note: In this case …

Software Development c
Member Avatar for gerard4143
0
128
Member Avatar for rahulrulez

Hey there. I'm planning to develop a software for my father's business. The software is very simple, it has two tables. 1. Stock 2. Sale Whenever stock arrives, the quantity and content will be added to Stock table.. Structure is something like 1. Stock Table | Brand | Quantity | …

Software Development gui java java-swing storage
Member Avatar for peter_budo
0
212
Member Avatar for dandeliondream

Hi, I wish to display the homepage of 3 websites (e.g. [url]www.msn.com[/url], [url]www.google.com[/url], [url]www.apple.com[/url]) on screen. What should i use? Is there a tutorial somewhere?

Software Development apple display java
Member Avatar for Anyday
0
138
Member Avatar for zack_falcon

I've created a class called Piece, which I used to create a 2D array in my main program. This is the class: [CODE]namespace GG { class Piece { public int rank; public int player; } }[/CODE] And is instantiated in my main program like so: [CODE] namespace GG { public …

Software Development
Member Avatar for Mitja Bonca
0
135
Member Avatar for jklasd

I have a problem with getting an input from class A to class B. I already created a method which gets the value but when I call it in class b it returns empty. These are my codes: [B]CLASS A[/B] [CODE] public class log extends javax.swing.JFrame { public String name; …

Software Development gui java java-swing
Member Avatar for Anyday
0
3K
Member Avatar for gahhon

[CODE]import java.util.Scanner; public class Bakery { private static String flavors; private static String weight; private static int quantity; public Bakery(){ this("Chocolate Moist", "1(KG)", 1); } public Bakery(String flavors, String weight, int quantity) { this.flavors = flavors; this.weight = weight; this.quantity = quantity; } public void setFlavors(String flavors){ this.flavors = flavors; …

Software Development java
Member Avatar for gahhon
0
123
Member Avatar for gahhon

[CODE]import java.util.Scanner; public class Course { private String courseTitle; private double feesPerStudent; private int noOfStudents; private String[] studentName = new String[100]; private int courseCount; public Course(String courseTitle, double feesPerStudent) { this.courseTitle = courseTitle; this.feesPerStudent = feesPerStudent; } public void setCourseTitle(String courseTitle){ this.courseTitle = courseTitle; } public String getCourseTitle(){ return courseTitle; …

Software Development java
Member Avatar for gahhon
0
202
Member Avatar for x69chen

MY bad this should below to C#... ignore this one please, sorry about that... --------------------------------------------------------------------------------------------- Hi people I found I can only reset the values in the array but I can resize it in a new method and return it back to main method, [CODE] static void Main() { int[] …

Software Development c++
Member Avatar for stereomatching
0
163
Member Avatar for amras123

I am having a hard time figuring out how to delete a row from the datagridview using a datasource that will also delete the row in SQL Database. [CODE] public partial class Form1 : Form { const String sStr = "Server= ************;Database=***; Integrated Security=SSPI"; SqlConnection sConn; SqlDataAdapter daCourse; DataSet ds; …

Software Development dataset mssql sql
Member Avatar for Mitja Bonca
0
237
Member Avatar for djmonster

Hello All, Can everyone help me to solve this problem ? Im doing an assignment about downloading a file and write it to a new file. My problem is the file that I was trying to download is very large, so everytime I compile my Download class and the main …

Software Development java regex
Member Avatar for Anyday
0
198
Member Avatar for gahhon

is that any good ideas to fixed the aligment of the output instead of using \t, due to some of the output words have more or less. :)

Software Development java
Member Avatar for stevanity
0
86
Member Avatar for melkai

Hello, Working on my final project for a Java Class and have become stumped on the final leg of the code. We are supposed to create a program to add a record, remove a record, display a record, and list all records. The records must be written to a file. …

Software Development file-system java
Member Avatar for stevanity
0
404
Member Avatar for MrNo

Hey guys, I'm having a little trouble putting this together. I believe I have the formula correct on the bottom, but I can't seem get the program to work. The idea is that it needs to be able to run like this: ./sdev < input.file I have a simple understanding …

Software Development c
Member Avatar for D33wakar
0
1K
Member Avatar for random12

Hi, im new here and also new to C++ (pretty much new to programming anyways) I have been working in an assignment and got stuck trying to store information into a 3x3 array, and then retrieving the data. [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float …

Software Development c++
Member Avatar for random12
0
134
Member Avatar for terry_bogart

Not sure how to do this I tried googling it but to no avail. I want to print out a specific line in my while loop [CODE]450 42.5 16625.0 460 42.0 16820.0 470 41.5 17005.0 480 41.0 17180.0 490 40.5 17345.0 500 40.0 17500.0 [/CODE] example of part of my …

Software Development python
Member Avatar for JoshuaBurleson
0
149
Member Avatar for effBlam

I am making a program that analyzes text from a user After inputting several line and using the keyword "DONE", the program will ask for one of 8 possible options which is the menu() function where the user will enter the number. How would i be able to run my …

Software Development programming-construct python
Member Avatar for JoshuaBurleson
0
214
Member Avatar for x69chen

Hi people I found I can only reset the values in the array but I can resize it in a new method and return it back to main method, [CODE] static void Main() { int[] myArray = new int[4]; setLength(myArray, 8); } static void setLength(int[] myArray, int length) { Array.Resize(ref …

Software Development
Member Avatar for Mitja Bonca
0
172
Member Avatar for Alex Starkov

Hi! I have to write the programm, which will receive any number (at sec) and calculate it to weeks, days, hours, minutes and sec; for e.x. 4102 sec ---> 1h 8m and 22s The problem is that it's forbidden to use atoi(), scanf() and simmilar functions. Insead of them, I …

Software Development c
Member Avatar for Alex Starkov
0
252
Member Avatar for jgat2011

Hi every one! I would like to know if it's possible to have differents items in a combo box in each row. It there is way. Please help!!! Thanks

Software Development vb.net
Member Avatar for Mitja Bonca
0
126
Member Avatar for vaironl

I had quiz today in my IB CS course, and I had a question I could not understand, I will try to stated as closed as possible. "There is an array of integers which holds an unknown amount of integers but it's not bigger than a 100. if a = …

Software Development java
Member Avatar for Akill10
0
194
Member Avatar for Behseini

Hi, Can you please take a look at following code and let me know how I can restrict the "txtColor.Text" in a way that if user insert a wrong hex sting(value) like "KKKKKK" the exception handler handle the issue and pops a warning message to correct the input? [CODE] using …

Software Development
Member Avatar for Mitja Bonca
0
3K
Member Avatar for Dwillich87

Alright I think I'm getting closer but now my program skips by my System.in feature so the radius is never enter and just runs to completion any help would be greatly appreciated [CODE]import java.util.Scanner; public class Square { static class Circle { float radius; public double CircleInfo() { Scanner in; …

Software Development java
Member Avatar for Akill10
0
138
Member Avatar for moonL!ght

hi evry one ,im not used to java and i hate its bad compiler can any one tell me whay it give me this running time error:array index out of bound! this is the code were it have the erorr: [CODE] public class RotatingBieChart extends JApplet { int diamter,radius; int …

Software Development java
Member Avatar for hiddepolen
0
209
Member Avatar for pikalife

How to find the slope of a point on a parabola with loops?

Software Development java
Member Avatar for hiddepolen
0
752
Member Avatar for biggnlarge

I am currently creating a queue ADT for one of my classes in college. We are using a linux ssh server for compiling our programs, but i am writing the code in windows. When i compile i get no errors, but when i run it goes fine until it hits …

Software Development c++ oop queue
0
124
Member Avatar for bikashdas

Can anyone help me out pls Unable to display data in datagridview : vb 2010 express + mysql server 5 + odbc connector 1. I am able to connect database successfully. I am using arraylist to set data. & also i m getting till it set to dataview (Object name …

Software Development vb.net
Member Avatar for bikashdas
0
227
Member Avatar for ShaRp codeR

Hello, I am a first year Comp Sci student and i am trying to finish this program. I am almost done with it but i just can't figure out one thing which is that, how do i show the initial principal amount under Principal heading in loop? the initial amount …

Software Development c++
Member Avatar for Nathaniel10
0
168
Member Avatar for lbgladson

I have an assignment to take the functions and use array subscripting and pointer arithmetic to write the functions. int stringLength(const char* s); char* stringCopy(char* s1, const char* s2); char* stringConcatenate(char* s1, const char* s2); and use the following tester driver: but I have no idea where to start when …

Software Development c++
Member Avatar for WaltP
0
137
Member Avatar for Syrne

Hi again guys. I currently have a class named [B]ElementSet[/B] which houses an array of objects as well as an array of boolean values which pertain to two function tasked with flagging or unflagging an individual object. I also have an abstract class, [B]Element[/B], and two inheriting classes named [B]Subscriber[/B] …

Software Development java
Member Avatar for Syrne
0
229
Member Avatar for mightyjoe77

I have a CSV textfile that contains "Student" and "Grades". I need to find the average of the grades but my array has a string data type and I keep getting an error message b/c I need to someread read the grades without reading the Students. Any Help?

Software Development visual-basic
Member Avatar for hkdani
0
104
Member Avatar for gahhon

[CODE]public class Fan { final int SLOW = 1; final int MEDIUM = 2; final int FAST = 3; private int speed; private boolean on; private double radius; private String color; public Fan(){ speed = SLOW; on = false; radius = 5; color = "Blue"; } public Fan(int speed, boolean …

Software Development java
Member Avatar for gahhon
0
229
Member Avatar for Mona..

Hi .. I have this program, its reding correctly but its not doing what i want i.e. it suppose to read the input file and call the functions according to the action saved in the file this is the problem : [CODE] #include <iostream> #include <Fstream> using namespace std; void …

Software Development c++ file-system ios
Member Avatar for Mona..
0
360
Member Avatar for aadi_capri

hello friends, i have a windows project in vb.net, in which i have to connect my project with an excel database i have microsoft office 2007 installed on my lappy.. please help me with the code. thanks in advance..

Software Development microsoft microsoft-office vb.net
Member Avatar for Reverend Jim
0
227

The End.