132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for grafas7

Hi i'm new here ,and i'm still rookie at working with C++ Builder 6 I have a task ,which i don't understand. My task is like that :.. Number array E (m,n) and i need to replace all the line and column even(oddly) numbers to 0(zero). Please im praying you …

Software Development c++
Member Avatar for grafas7
0
137
Member Avatar for Xav123

Hey. I have been trying to do a drafts board, but i am having major problems with adding the pieces. Heres my Board. Any Suggestions?? [code] import java.awt.*; import javax.swing.*; public class Board { protected JPanel[][] squares; protected JFrame boardFrame; protected Container container; public void paint (Graphics g) { } …

Software Development java java-swing
Member Avatar for .11
0
101
Member Avatar for vsagarmb

i am not able to figure out why python throws an error when i call this function. In the code snippet below when i call set_greyLevel() python throws an error. If i comment the function call it works fine. Please help. Thanks in advance. [code=python] def set_greyLevel(self, grayScale): if grayScale …

Software Development python
Member Avatar for willygstyle
0
166
Member Avatar for mrnutty

I use netbeans but was wondering if anyone knew how to add a Java compiler to visual studio 2008?

Software Development java java-netbeans visual-studio
Member Avatar for mrnutty
0
150
Member Avatar for roshini.johri

hey i am a beginner as far as python is concerned..i am having diff in understanding this code..i am supp to do it in python..if anyone can tell me wht it does it wud be really helpful [code] for qid,query in "as2.qrys": for word in query: docs = set(index[word]) for …

Software Development python
Member Avatar for Ene Uran
0
134
Member Avatar for AndrewYY

I've got a large array of coordinates (a struct containing x and y, among other things) and for each pair of coordinates, I'm trying to find another pair that's closest to it from that array. [code] int i, j, d = 0, cd = 0, closest; for(i=0;i<size;i++){ closest = 0; …

Software Development c
Member Avatar for mrnutty
0
114
Member Avatar for ENCHTERP

Hello: If I have a 2d Vector and I want to convert it to a 2d Array what would be the best way to accomplish that. I know that I can go through a for loop to do it element by element but I would prefer to use the copy …

Software Development c++
Member Avatar for mrnutty
0
129
Member Avatar for Phil++

If you were asked to describe the techniques to C++ would you talk about like, Inheritence, Re-use etc or something else? I don't understand :( Help please!

Software Development c++
Member Avatar for mrnutty
0
91
Member Avatar for scriptkiddy

Hi, how is the system function done? Atm I am doing it like this: invoke ShellExecute, NULL, addr szopen, addr cmdexe, addr szparams, NULL, SW_SHOW But it requires the program to know the persons homedrive. Is there a system(); function that can be used in assembly? If so, what library …

Software Development assembly
Member Avatar for functionalCode
0
259
Member Avatar for functionalCode

Hey everyone I am trying to read a hexadecimal registry value from a registry key, I am opening the key and then calling RegQueryEx, but I can't seem to get it right. Can someone post an example. Thanks.

Software Development assembly
Member Avatar for functionalCode
0
102
Member Avatar for lashatt2

Is there a command that change's server's file's inside buffer? Change file's inside text? I hope you understand me

Software Development visual-basic
Member Avatar for Nick Evan
0
83
Member Avatar for mikesr

Hello! I am new one here. Firstly I would like to say that I'm really poor in english, so be patient with me.. In the school we had a new task. So let me explain: we have a 2d array with numbers.. like this: 0 1 2 4 5 6 …

Software Development c++
Member Avatar for mikesr
0
287
Member Avatar for Kennych

Example of what im trying to do: [U]Definition: test.txt[/U] Apples //line1 Coke //line2 Money/line3 [CODE] #include <fstream> using namespace std; fstream teststream; teststream.open("test.txt"); string line1; string line2; string line3; [/CODE] //I want it so line1 = apples //I wan tit so line2 = coke //I want it so line3 = …

Software Development c++
Member Avatar for Ancient Dragon
0
278
Member Avatar for Pd123

Hey. Im having problems adding my Jmenubar to my board. It compiles fine just wont display. Any advice really appreciated. Thanks, Pd [CODE] import java.awt.*; import javax.swing.*; import javax.swing.KeyStroke; import java.awt.event.KeyEvent; import java.awt.event.ActionEvent; import java.awt.Font; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JTextField; import …

Software Development java java-swing
Member Avatar for .11
0
597
Member Avatar for kevinn

So here is the problem. This won't compile. It always gives an error like : d.cpp:24: error: ‘string’ was not declared in this scope d.cpp:24: error: expected ‘,’ or ‘;’ before ‘{’ token Compilatie failed. [CODE=C]#include <iostream> #include <string> #include <stdlib.h> #include <time.h> int d(int amount, int dots){ // d(X,Y) …

Software Development c++
Member Avatar for kevinn
0
175
Member Avatar for D_switch

im using borland [CODE]/*Write a function that will scan/read each line of a given text file and determine whether a line is valid or invalid. A line is said to be valid if and only if it satisfies the ff: a. the line is composed only of characters a and …

Software Development c
Member Avatar for gerard4143
0
116
Member Avatar for Darth Vader

I have searched for a way before what the most effective way and in this case important the fastest way is to seek backwards in a file to read the very last line in a file. Like in this case I want to search from the end and backwards to …

Software Development c++
Member Avatar for Darth Vader
0
3K
Member Avatar for Damon88

I am writing a application where i need to know which games are installed on a system. I have 3 ways by which i think i can detect the games 1: Scan specific parts of registry and look for key names that match with a List of Publishers. The list …

Software Development vb.net
Member Avatar for Damon88
0
673
Member Avatar for PoisonedHeart

Hi to all and good day... I'm still studying about vb 6's data report designer and the data environment...but what i need to know is how can i make or [B]generate[/B] a report at [U]run time[/U]... for example, generate report for the employee names. (names of the employees will populate …

Software Development visual-basic
0
85
Member Avatar for gangster88

how could i call the above function so that when i input something like 21 for the mark the ouput is "the grade is A", and when the user inputs something more than 25 and less than 0 hes asked to input it again..? [code] def mark2Grade(mark): if mark >=20: …

Software Development python
Member Avatar for gangster88
0
119
Member Avatar for pinsickle

I wanted to get some opinions on a good visual c++ book to buy. I am intermediate level when it comes to programming. I have already been through a class on C and almost done with my class on C++. So I want a book that is heavy on the …

Software Development c++
Member Avatar for zortec
0
89
Member Avatar for Jennifer84

I am trying to get a value from a specific cell in a dataGridView. I know how to choose a Row / Column but not at the same time. I have tried to get the value from row 3 in column 2 like below. But I cant find a Column …

Software Development c++
Member Avatar for milind morey
0
110
Member Avatar for mstrop

Hi, using old pure C, I was able to define a custom windows message. Once done, it was possible to broadcast the message across my application. Any object, with defined listener was able to receive and process the message. OK, right now, I need to do the same in C#. …

Software Development
Member Avatar for mstrop
0
232
Member Avatar for Lakshith

In my database I have a field date and eventname.I want to retieive eventnames after the current date.How can I do it?

Software Development sql
Member Avatar for sknake
0
245
Member Avatar for christian73

If I build an application using BS 2008 in C# that uses an SQL database, Do I have to include SQL Express as part of the deployment package? In other words, does the user need SQL Express on his/her machine in order to use my application if my app does …

Software Development sql
Member Avatar for sknake
0
158
Member Avatar for _dragonwolf_

I'm trying to create a boggle game. I have it so it will setup the board and accept user input. What I am trying to do now is get rid of the "[" braces "]" and the commas to give it a cleaner look and to hopefully make it easier …

Software Development java
Member Avatar for ~s.o.s~
0
112
Member Avatar for Nepenthe

Hi, I have to write a function in Visual Basic within Microsoft that takes customer type and number of books purchased as inputs and returns the discount that should be given. Calculate the total sum after deducting discount that is to be paid and that the interface shows the total …

Software Development visual-basic
Member Avatar for Nepenthe
0
118
Member Avatar for cellus205

Ok we have been creating this calendar in our intro to programming class for about a week or so, and right now I am stuck on getting the start day of each month. I was thinking it should be total days (days in month + total days from 1800 - …

Software Development c++
Member Avatar for midgetchris
0
115
Member Avatar for nlanka

public class Average { private double [] Score; int index; public Average(double [] s) { Score = new double[s.length]; for(index=0; index<s.length; index++) { if(Score[index]>100 && Score[index]<0) Score[index]=s[index]; } } public double getAverage() { double total=0.0; double average = 0.0; for(double value: Score) total+=value; average= Score.length/total; return average; } } the …

Software Development java
Member Avatar for javaAddict
0
108
Member Avatar for COKEDUDE

Can someone please tell me why "int can not be dereferenced" here. contents += cart[i].toString() + "\n [CODE]// ********************************************************************** // ShoppingCart.java // // Represents a shopping cart as an array of items // ********************************************************************** import java.text.NumberFormat; public class ShoppingCart { private int itemCount; // total number of items in the …

Software Development java
Member Avatar for javaAddict
0
202
Member Avatar for pankaj.garg

i created a VB-6 program using reference "DAO 3.51 object library" on XP OS....works ok on my system...but does not work on my friends system...gives error - "Runtime-error 429 : active x component cant create object" friend's system is Windows XP with Office 2007 installed... Pl help to resolve this... …

Software Development os-x visual-basic
Member Avatar for AndreRet
0
294
Member Avatar for Iam3R

Hi , I read that c is not a block structured language. means it does not allow defining functions inside other functions. but this code is not generating any error not even warnings, though we nest the functions. whats the story. [CODE] #include<stdio.h> int main() { int num; num = …

Software Development c
Member Avatar for Aia
0
93
Member Avatar for little marine

Hello, I am a student in a VB2008 class. I am using this code to copy data in a textbox to a text file. I have several forms to copy data from. Can this be done or do I need to do each form seperately?[CODE]Dim FILE_NAME As String = "C:\test2.text" …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
139
Member Avatar for little marine

I am creating a message box in VB8 for an error. I created the message box and everything works. The message box returns a value of 0 which is the default one. Where does it return 0 to. Or do you have to tell it where to return it.

Software Development vb.net
Member Avatar for PARGES
0
336
Member Avatar for Iam3R

Hi i have written a program to check the precision of float and double values. i read that the precision of float is 6 digits and double is 10. but it is showing only 6 for both. do we need to make any arrangement for the system to print the …

Software Development c
Member Avatar for Iam3R
0
496
Member Avatar for sabian4k

Hey Guys, I have a text file that has numbers in it. And I need the program I am working on to search it as an array. How do I do that?

Software Development c++
Member Avatar for fjrivash
0
98
Member Avatar for wmsigler

I'm having difficulties thinking through the logic of my natural mergesort program. I think I have the split working correctly, but my merge doesn't seem to be working at all, and the pseudocode in my book and what I've found so far on the web is fuzzy. This is a …

Software Development algorithm c++ linked-list
0
72
Member Avatar for fedya

Hello guys, I've got a question related to my data structures class. I have file in which data is unordered. Say: hello apple blue phone number I have to search a string using Binary Search. But since we cannot apply Binary Search to unordered list, we should make an ordered …

Software Development algorithm apple c
Member Avatar for mrnutty
0
78
Member Avatar for redback93

I am trying to make a code, where the points are not working. The points always give an odd number. Can you try it, if you can see a problem, I would love help. [CODE]#include <iostream> #define cls system("cls") #define pause system("pause") #include <string> using namespace std; class games { …

Software Development c++
Member Avatar for redback93
0
105
Member Avatar for mokia1

But now can't finish it.. I can't figure out how to make the board display after every turn. Can anyone help? #include <iostream> using namespace std; void showBoard (char t[3][3]); int main () { char player; char t[3][3] = {{'1', '2', '3'}, {'4', '5', '6'}, {'7', '8', '9'}}; int place …

Software Development c++
Member Avatar for mrnutty
0
112
Member Avatar for gen84

[code]/****************************************************/ /* File: Binomial Numbers.cpp */ /* */ /* Created by: Regine R Calinda */ /* Date: November 9, 2009 */ /* */ /* Program to compute binomial coefficients */ /* */ /* Inputs: (keyboard) */ /* Two positive integers (n & k) */ /* */ /* Output: */ /* …

Software Development algorithm c++ visual-studio
Member Avatar for Ancient Dragon
0
125
Member Avatar for wiselka

[code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CarsRUS { public partial class Cars : Form { private SqlConnection conn; private SqlDataAdapter daAddresses; private DataSet dsAddresses; private DataGrid dgAddresses; private const string tableName = "CarRUS"; public class Customer { …

Software Development c# dataset queue sql
Member Avatar for sknake
0
193
Member Avatar for bman214

Hello, I am trying to use the CImg library to put images into C++, can someone help? I don't know how to use this program... PLZ HELP

Software Development c++
Member Avatar for bman214
0
101
Member Avatar for qk00001

I have a small problem with string. How can I make the output str to be every single string i.e: string str="You are a good writer"; to be: str1="you"; str2=“are"; str3="a"; str4="good"; str5="writer"; //---------my_test_code,but not working yet. #include <iostream> #include <string> using namespace std; int main () { string str; …

Software Development c++
Member Avatar for qk00001
0
112
Member Avatar for roadwarrior

I need to remove all lines that contain spaces in a file. I know very little bash. Any help would be greatly appreciated.

Software Development shell-scripting
Member Avatar for sknake
0
66
Member Avatar for ganmo

Hey, I am currently following a code skeleton to implement the missing code for some function. Below is only some part of the implementation I've done so far. Yes it is not much yet... I got stuck for the implementation of the [B]list_add()[/B] function. What I want to do there …

Software Development c linked-list
Member Avatar for ganmo
0
105
Member Avatar for thesinik

Alright so I want to write a program that will compute trig functions (sin, cos, tan, arcsin, etc.). Basically I'm ignoring the included math library in python and hard coding it myself. My issue is that I'm fairly new to programming and not sure how to go about coding a …

Software Development python
Member Avatar for thesinik
0
4K
Member Avatar for Yeen

I understand the basic principle of recursion, but I'm having trouble implementing it in practice. I understand this first case perfectly fine. It works because n is constantly getting closer to 0. [CODE]def faculty(n): # Base case if n == 0: return 1 # Recursive call else: return n * …

Software Development python
Member Avatar for Ene Uran
0
127
Member Avatar for SoulMazer

Okay, so I'm having a little trouble. Let's say I run "scriptA.py" and it has a GUI (Tkinter) and it is running in its mainloop. I want to create a "scriptB.py" that can end "scriptA.py"; would there be a way to do this regardless of the OS it is on …

Software Development gui python tkinter
Member Avatar for SoulMazer
0
269
Member Avatar for nolesce

I am writing a fairly simple web site monitoring app. It uses a timer to call a class that requests a web page and measures the response. Problem is that the third time the class is called the app hangs. looking at the locals box I see that the properties …

Software Development display vb.net visual-basic
Member Avatar for Darren Smith
0
153

The End.