132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ubi_ct83

Hi guys, want to discuss with u guys and begging your opinion or suggestion to solve my problem. i have this input input[0]={0,1,2,3} input[1]={0,1,2} input[2]={0,1,2,3} input[3]={0,1} value=2,3 and when value=3,binary binary[0]={0,1,1,1} binary[1]={1,0,1,1} binary[2]={1,1,0,1} binary[3]={1,1,1,0} and when value=2,binary binary[0]={0,0,1,1} binary[1]={0,1,1,0} binary[2]={1,1,0,0} binary[3]={1,0,0,1} if user choose value=2,result should b like this: (i …

Software Development algorithm java
Member Avatar for ubi_ct83
0
80
Member Avatar for zachattack05

Does anyone use it? Seems kind of scary to me the thought that I would allow a mysterious command to alter data in my tables. Is it better to write your own update strings and execute them or use the command builder? Does it matter? Edit: PS the new site …

Software Development sql
Member Avatar for finito
0
108
Member Avatar for luttinj

Hello, I am making a show quiz show applet in Java and I am now basically done it, all I need to finish it off and make my teacher happy is to find out how i would get the applet to show the user what their score is at when …

Software Development apple java
Member Avatar for BestJewSinceJC
0
160
Member Avatar for misvampire

this is the question Most teachers assign various graded activities for their students to complete. A graded activity can consist of a numeric score such as 65, 89, 93 and so on. GradedActivity class is to hold the numeric score and letter grade of a graded activity. When a numeric …

Software Development c++
Member Avatar for ndeniche
0
205
Member Avatar for skyzer

I have ordered points(x,y) for a route and i got a method optimize which removes consecutive points which distance between them is less than delta (delta=3). The first rule tells that if p1 and p2 distances are lower than delta, then remove p2 from my route. Second rule is same …

Software Development java perl
Member Avatar for BestJewSinceJC
0
109
Member Avatar for nshh

Hi, please answer me the following questions. It will be very useful for me...Thanks in advance. c questions: 1. storage classes (auto, register, extern, static) in c with these informations (scope, lifetime, default value and memory location(where it stored in memory)). 2. why should we use static in function prototype …

Software Development c c# c++ storage unix
Member Avatar for UncleLeroy
0
135
Member Avatar for ShinyDean

I am currently using the Pil library for a project, however i keep running into the same problem which will not let me do anything at all. [CODE][/CODE] def bw_negative(filename): # Create the handle and then create a list of pixels. image = Image.open(filename) pixels = list(image.getdata()) print pixels[0] print …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for neosonic

Hi, I load many of the picturebox (I named them pic) with the index 0 to 10 (pic(0) to pic(10)) on top of my main (biggest) picturebox. My problem is, pic(1) will always be on top of pic(2). pic(6) will always be at the bottom of pic(5) and so on.... …

Software Development visual-basic
Member Avatar for neosonic
0
111
Member Avatar for leesho

a) INT b) my-name c) your_name d) $dollar e) stock Price f) _UnitPrice g) while h) 1$dollar i) switch j) whileYou k) ifYou l) if m) int n) int34 o) ab.3c p) ab_3c q) 4%6 r) fourTimesSix s) 4 * 6 t) apples3

Software Development c++
Member Avatar for techsheaven
0
94
Member Avatar for SebFr

Hi, I want to be able to call a Javascript file from a C# Windows Application. This is just a stand alone C# application. What I want to be able to do is to execute this JavaScript file, think of it as a function, and be able to pass parameters …

Software Development c# java javascript
Member Avatar for kvprajapati
0
3K
Member Avatar for krishnisilva

hi there, Question 1: i have a question in invalid operation exception. it says that " there is already an open datareader associate with this command which must be closed first. " the code is shown below [CODE] public void AddToAction() { String query = @"Select * from TopicAction"; SqlCommand …

Software Development
Member Avatar for sergb
0
147
Member Avatar for Jack_1

Friends, i have written a code for finding HCF but it does not work. please help me in improving this code.Thanks in advance. [CODE]#include<iostream> using namespace std; int main () { int a,b,c,d,e,f,g,h; cout<<"Please input two nnumbers:"<<endl; cin>>a; cin>>b; d=a%b; c=(a-d)/b; a=b*c+d; if d==o cout<<"The hcf is:"<<b<<endl; if d>>0 { …

Software Development c++
Member Avatar for Lerner
0
137
Member Avatar for TheCur3

Hello guys. I'm not very good at at programing but i need to do one program which should do this: Write a program with objects which stores student marks of exam. All the information is read. It must be realized: a. I enter all students marks; b. and see whose …

Software Development c c# c++
Member Avatar for ccw87
0
274
Member Avatar for wish4129

Hi guys, i would like to ask is there anyway to read a txt file with UTF-8 encoding using streamreader or filestream. the txt file is contain some extended ASCII that makes me cannot read the characters properly. I hav tried Encoding.ASCII.GetString(Encoding.UTF8.GetBytes()) but still it return wrong character when it's …

Software Development vb.net
Member Avatar for biopaul
0
155
Member Avatar for sana zafar

Hi all, I just started programming.Can anyone please help me how to remove the non-printable characters of ascii from my code..I will really appreciate it. [CODE] #include <iostream> using namespace std; int main() { int num; cout<<" ASCII CODES\n -----------"<<endl; num = 32; while(num<=252){ cout<<endl<<char(num)<<" : "<<int(num); num++; } cout<<endl; …

Software Development c++
Member Avatar for biopaul
0
298
Member Avatar for DaveTran

I would like to display the current value of a class on screen for debugging purposes. For example, if I am dealing with the this class [CODE] public class Foo { public bool isSexy; public Foo() { isSexy = false; } } [/CODE] and I wish to display the boolean …

Software Development display
Member Avatar for apegram
0
167
Member Avatar for ceyesuma

I have been trying to find how to set a property for a derby connection to have a prepared statement perform several INSERT queries. it was suggested that this may be possible. [QUOTE]Are you trying to execute multiple statements with a single sql string? If so, have you activated the …

Software Development java
Member Avatar for masijade
0
118
Member Avatar for Mikhailvs

i am writing a program to find all integers that have 5 perfect squares within 30 of them... here is what i have so far: [CODE]#include <iostream> using namespace std; int range[60];//since "within 30" means to more and 30 less void integer(int testInteger) //testInteger is the integer to use to …

Software Development c++
Member Avatar for Mikhailvs
0
181
Member Avatar for reza.adinata

Hi all, I am trying to build a ui application with thread for tcp server. I managed to build the tcp server itself using console (giving a welcome message when I telnet it), but when I copy the exact source code in WPF , I can not telnet it. The …

Software Development asp.net client-server tcp-udp
Member Avatar for reza.adinata
0
337
Member Avatar for ku95

Im currently working on a Connect4 progrqam and I'm trying to convert a string into an integer. You will see that it is under the Connect4View. Its really frustrating as I'm struggling to find a way round this. Is there a possible solution to this and can someone please tell …

Software Development java java-swing
Member Avatar for ku95
0
162
Member Avatar for RossMc

Hi, I need to create this Carpark application that looks like this [url]http://i35.photobucket.com/albums/d171/rossmc/java-1.jpg[/url] I have got the buttons to work but when I try to make the grid it is not showing with the buttons when I run it. This is the code I have so far. Does anyone know …

Software Development java java-swing
Member Avatar for masijade
0
131
Member Avatar for tdhprestatyn

I am running a BackgroundWorker to make a call to a Web Service to obtain a list of Customers, and a list of Vat Rates. This is fine and works, but I am simply stuck passing this data through to RunWorkerCompleted so the form can be updated (these two sets …

Software Development multithreading
Member Avatar for orthimnas
0
421
Member Avatar for AFB

this erorer message appear to me when i run projact --------------------Configuration: afb - JDK version 1.6.0_17 <Default> - <Default>-------------------- Exception in thread "main" java.lang.StackOverflowError at sun.awt.Win32GraphicsConfig.getBounds(Native Method) at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:215) at java.awt.Window.init(Window.java:393) at java.awt.Window.<init>(Window.java:432) at java.awt.Frame.<init>(Frame.java:403) at java.awt.Frame.<init>(Frame.java:368) at javax.swing.JFrame.<init>(JFrame.java:158) at Convert.<init>(Convert.java:10) at Convert.<init>(Convert.java:115) at Convert.<init>(Convert.java:115) at Convert.<init>(Convert.java:115) at Convert.<init>(Convert.java:115) at …

Software Development java java-swing
Member Avatar for quuba
0
243
Member Avatar for merse

I would like to read input data from text file with fstream. But I don't know how to mix different type of get functions. I would like to read for example numbers after char "=" I try to use something like this [CODE]char c; double x; while (!inFile.eof()) { inFile …

Software Development c++
Member Avatar for Narue
0
800
Member Avatar for krishnisilva

hi, how can i call a method when a combo box values is selected in C#. please help me what is the event in the combo box that i have to use??????

Software Development
Member Avatar for Sodabread
0
98
Member Avatar for bigsurya

Guys, is it legal to overload the run() method in a Thread class ?

Software Development java legal
Member Avatar for BestJewSinceJC
0
133
Member Avatar for BLKelsey

I have selected to do a hangman console game in my C++ course (9th week) in which I have a question about wait(). I want to make the game "appear" to be loading just to give it aesthetics but I'm not sure how to do it the way I want …

Software Development c++
Member Avatar for BLKelsey
0
107
Member Avatar for elizabeth mwash

hello to you all, i need some assistance in making the right decisions here. i have been requested to create a system that will do the following:- when a customer gives his order, it is not written on a paper, everything is on soft copy. the data clerks enter user …

Software Development
Member Avatar for finito
0
99
Member Avatar for rai32

Hello people, i am really sorry to post two new threads in such a short time, but i have a problem that's driving me nuts. I think i know where my program fails, but i don't know the reason why. Let me explain: I am making a chat program. I …

Software Development c client-server tcp-udp
Member Avatar for rai32
0
153
Member Avatar for D4n1sD

Well I have a gui and I want to change its process name or dont display it on process at all how do I do it?

Software Development c++ gui
Member Avatar for Rajesh R Subram
0
103
Member Avatar for np2100

I was wondering if its possible to embed c++ into an Html website. Is there some engine that does it for you, or is it just not possible? Thanks.

Software Development c++
Member Avatar for Rajesh R Subram
0
159
Member Avatar for gunbuster363

Hi all, I am a beginner of C++ and I don't know many things. I happens to encounter a simple problem which I don't know how to solve. Please help me out. I intended to write a program that solve the following problem: [QUOTE]Problem A Hashmat the brave warrior Input: …

Software Development c++
Member Avatar for Sky Diploma
0
349
Member Avatar for eyes4u

I create my listview in my design part, not programmatically. Then I want to reach this listview's content when I pressed some button. In my main form, I created a public listview to return listview2 as in my design. [CODE]public ListView lst { get { return listView2; } set { …

Software Development listview
Member Avatar for dilbertz
0
234
Member Avatar for habib_parisa

Dear All, I am trying to use free function in C to free memory of an array of pointers. It does not work and I get segmentation fault. The code looks like this: [CODE] #include <stdio.h> #include <stdlib.h> int main() { int *make_pointer(int); void read_array(int *array[3]); /****************/ int *array[3] ; …

Software Development c
Member Avatar for jephthah
0
6K
Member Avatar for Geek-Master

I have been playing around with different 'flavors' of programming, like QBasic, Assembly, and C++. I like all of them, but I have really begon to like C++. The only problem I have, is that I dont have any problems to solve. I'm just programming cause its FUN ^^. I …

Software Development assembly c++
Member Avatar for mrnutty
0
179
Member Avatar for moods125

[[CODE]#include <iostream> #include <string> using namespace std; class digits { }; class numOutofRange { }; int string_to_int(string s) throw(digits, numOutofRange); int main() { int histogram[10]; int total; int currentNumber = 0; string s; for(int i=0; i < 10; i++) { histogram[i] = 0; } cout <<"How many numbers do you …

Software Development c++
Member Avatar for moods125
0
163
Member Avatar for Mitja Bonca

I would like to know how to programmatically call a mathod regarding on time. In my example I would like to call a method every hour. Can I use a Timer or is there something else?

Software Development
Member Avatar for mcriscolo
0
934
Member Avatar for cellus205

Hey guys, I need some help with the logic on coding a checkbox column on a Datagrid on a Windows Form. What I want the Datagrid to do, is once the checkbox is checked on the Datagrid, to enable several other columns also on the Datagrid. I think I almost …

Software Development vb.net
Member Avatar for cellus205
0
142
Member Avatar for yongj

I have a code here that needs to return a string from a function, but the compiler continues to tell me an error saying that "overloaded function differs only by return type from 'int Bible::getName(void)'". How can I fix this? Here is my code: [CODE]// Joseph Yong // CSC2430 // …

Software Development c++
Member Avatar for Fbody
0
193
Member Avatar for ultimatebuster

Is this needed? [CODE] class Test: def __init__(self, f): self.f = open(f) def __del__(self): try: self.f.close() except: pass [/CODE] Also, how can i open a file, and have it in append mode. However, if the file doesn't exist, python creates it?

Software Development python
Member Avatar for HiHe
0
132
Member Avatar for emaduddeen

Greetings Everyone, In the TableAdapter configuration wizard I am using this query: [CODE] SELECT AttendanceID, StudentID, ClassId, DateOfClass, Absent FROM Attendance WHERE (DateOfClass BETWEEN #5/1/2010# AND #5/30/2010#) [/CODE] Can you tell me the correct syntax to change the #5/1/2010# AND #5/30/2010# so the WHERE clause uses dteStartDate AND dteStartDate which …

Software Development vb.net
Member Avatar for emaduddeen
0
373
Member Avatar for Eternal49

Ok, I dont really know how to explain what im trying to do. So it might be easier to just look at my code. But basically im getting the following error messages when I try to compile the code, I know what error messages mean, I just dont know how …

Software Development c
Member Avatar for abhimanipal
0
197
Member Avatar for Demon_singh

Could anybody help me with this code 1. want to read a file into an array. 2.three button should sort it 1st product name should sort it alphabetically, 2nd maximum stock level which sort by maximum value, 3rd price sort by maximum value on the top. thanx cheers Demon

Software Development java
Member Avatar for moutanna
0
110
Member Avatar for arunvb

Hi.. Am using vb6.0 and crystal report 2008 in my project. Am getting lots of temp files on the root path.. Application will taking more than 2 hrs to load. After loading, the application is terminating automatically.. And when i try to open .dsr files it ll showing an error.. …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
102
Member Avatar for Donnovan

can i change the value of an int with a pointer. e.q. int n = 20; int *size = n; can i change n by doing this *size++. thanx

Software Development c++
Member Avatar for sweetyk2
0
89
Member Avatar for HiHe

Yes, you can merge two class instances in this simple manner.

Software Development python
0
9K
Member Avatar for pash101

I am writing a project to calculate the area and volume of 2d and 3d shapes. I have a class hierarchy with my abstract base class called 'shape'. I want to make a separate class to calculate a prism of a specified depth from any 2d shape, yet am unsure …

Software Development c++
Member Avatar for pash101
0
249
Member Avatar for tanvirahmad

Hi experts i m using this code for create new table and add data in this table from old table, but i need to sort or filter my old table before adding new table, how i can this?[code]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'Create …

Software Development vb.net
Member Avatar for kvprajapati
0
109
Member Avatar for SpyrosMet

hello forum I need help in making a function that randomly chooses between two numbers that I give through the parameters. Please give me a hint or something. Thanks in advance guys.

Software Development c
Member Avatar for Narue
0
533
Member Avatar for khan17

hello all, pls have some patience to read this and help me. Im a student and doing a project using CSharp. Im doing an automation process. For which i ve to login to a website click some links and then download files from there. I cant download all the files …

Software Development
Member Avatar for mcriscolo
0
109

The End.