132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ankur3000

Hey guys, i needed some help with this encryption-decryption program that i am trying to write, as you will notice, i am not very skilled or experienced but i want to grow naturally, so it would be great if you guys could point out the mistakes rather than suggest smth …

Software Development c encryption
Member Avatar for Auraomega
0
125
Member Avatar for cogitoergosum18

[CODE]#include <iostream> using namespace std; int main() { double firstNo;// first number is stored here double secondNo; double result;//variable for result when first and second number are operated upon double operation;// place to store the user's inputed operation // asks the user to choose the first number cout<< "Enter in …

Software Development c++
Member Avatar for Takeshi91k
0
211
Member Avatar for kingster113

I'm having trouble trying to update or delete records from my database. Basically, I have a datagridview(DGV) in my form and the following is what I wanna do. The user could directly change/edit the values in the DGV and just click the update button to update the database. And the …

0
111
Member Avatar for ddanbe

Where do I find the System.Numerics namespace, with things like BigInt and Complex? Just installed Visual Studio 2010 Professional. Google did not make me happy:'( Any help, is as always, much appreciated.

Software Development visual-studio
Member Avatar for ddanbe
0
98
Member Avatar for franchico

Hi, I'm mechanical engineering graduate student in Portugal. I'm familiarized with c++ but I've been having problems with the windows forms. I'm trying to make a form that would compile diferent data with inviscid fluid flow formulas but I've got one major problem. I've done hundreds of google searches and …

Software Development c++ engineering
Member Avatar for franchico
0
5K
Member Avatar for LianaN

Hi! Please, explain me why JTextField: txtFirstName and JTextField: txtLastName are not visible on my JPanel: panfortab?! I can see only JTable: tableDetails. [CODE] private void createBaseRight() { JPanel panfortab = new JPanel(); panfortab.setBounds(330, 150, 650, 795); panfortab.setVisible(true); panfortab.setOpaque(true); panfortab.setBorder(bord); FilterClass fc = new FilterClass(); fc.setVisible(true); panfortab.add(fc); pan.add(panfortab, "Right"); // …

Software Development java java-swing
Member Avatar for LianaN
0
189
Member Avatar for gsfare

Hello everyone. I am experienceing some rather strange behaviour regarding the instantiation of an object. It's a templated custom array type object, something like this. [CODE] template <class T> class Array { public: // Construction/destruction. Array( void ); Array( unsigned int size ); Array( const Array<T> &array ); ~Array( void …

Software Development c++
Member Avatar for gsfare
0
158
Member Avatar for extemer

i am doing a problem.the problems was that what do the following code prints class printing{ public static void main(String[] args){ for(int i=1; i<=10; i++) { for(int j=1;j<=5;j++) System.out.print("@"); System.out.print(""); }} This code prints infinte "@" and after some second the printing starts to slow down. when i do through …

Software Development java
Member Avatar for jon.kiparsky
0
144
Member Avatar for corinport

Please, somebody help. I need to transform xml into xml with xsl. it´s urgent. the attach files are the input in XML and output is what the prof. want. Help-me please Corin thanks

Software Development xml
Member Avatar for iceandrews
0
115
Member Avatar for Rajicet

I need to use document.write() in XSL. Will it work ? Please help

Software Development xml
Member Avatar for Leksiq
0
213
Member Avatar for NewAndClueless

Hello, I can't seem to get this program working. I was asked to write a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order. The merge operation repetitively selects the smaller value from the two files. When two sorted …

Software Development java user-interface
Member Avatar for NormR1
0
215
Member Avatar for Premsathishbe

<action path="[COLOR="Red"]/[/COLOR]sample" forward="[COLOR="Red"]/[/COLOR]example" /> Help me to know why the highlighted '/' are used @ the starting of the code itself

Software Development xml
Member Avatar for Premsathishbe
0
86
Member Avatar for miraj0072004

hello friends, this is my attempt to execute an external cmd file through java and get the output printed to a text file while the program is running (not after the program has ended), since I need to do some real time manipulation for depending on the program output. [CODE] …

Software Development java
Member Avatar for NormR1
0
143
Member Avatar for kz07

Can anyone help me on how to display my infix notation with parentheses? 4+3 should be displayed as (4+3) also, my code only works for simple expressions like 4+0, it can translate the infix,prefix,and postfix correctly, but when the expression grows, for some reason, its outputting the incorrect notations for …

Software Development c++
Member Avatar for Narue
0
1K
Member Avatar for qtl

I wrote a very simple vector class to call level 1 BLAS through MKL, [CODE] #include<mkl.h> #include<stdexcept> #ifndef _x_matrix #define _x_matrix class xVec{ private: double *v; int n; public: xVec():n(0),v(0){} xVec(int a):n(a),v(new double[n]){} xVec(int a, double c){ n=a; v=new double[n]; for(int i=0; i<n; ++i) v[i]=c; } ~xVec(){if(v) delete[]v;} double &operator()(int …

Software Development c++
Member Avatar for qtl
0
158
Member Avatar for LianaN

Hej guys! I have a little problem with layouting Swing components. I just need to add JTree: tree to the UPPER corner of JScrollPane: scrollpanesearch, and 4 buttons to the BOTTOM corner. What I have now is JTree: tree on the LEFT, and 4 buttons on the RIGHT (see Figure …

Software Development java java-swing
Member Avatar for LianaN
0
81
Member Avatar for aikiart

Good afternoon, I've got an assignement where i need to set up a parent class and a child class with .cpp files. When I try to call the a function in the child class i get and undefined reference error. I'm able to initialize this class using the default constructor …

Software Development c++
Member Avatar for Fbody
0
159
Member Avatar for maheswari c
Member Avatar for vijaybrar

Hi you can customize it the problem is that when i put 5 it say to low then when i put 6 it say to high or any numbers pls help me.. [CODE] #include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> #include <cmath> using namespace std; char ans; int main() …

Software Development c++
Member Avatar for Fbody
0
160
Member Avatar for super-duper

[CODE]//************************************************************************************ // // This program keeps track of speakers' bureau. // It displays a menu, where the user can add info, // view the info of another speaker that's already in there, // and etc. //************************************************************************************* #include "stdafx.h" #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; //************************************************************************************** // function …

Software Development c++ data-structure
Member Avatar for Fbody
0
414
Member Avatar for Russ_T

Hello all, This code works fine on my Win XP machine, but not on Win2k. I have tried overriding the webrequest function in Reference.vb with [code=vb.net]Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest Dim webRequest As System.Net.HttpWebRequest webRequest = CType(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest) 'Setting KeepAlive to false webRequest.KeepAlive = False GetWebRequest …

Software Development vb.net
Member Avatar for Russ_T
0
221
Member Avatar for DaveTran

Here are 3 integers and 1 bool. [CODE] int a; int b; int c; bool bHasChangedValue; [/CODE] The boolean value bHasChangedValue depends on the value of b changing. If I update b each frame [CODE] public void Update() { a = b; b += c; bHasChangedValue = a != b; …

Software Development
Member Avatar for Geekitygeek
0
127
Member Avatar for Pushpasheela

I am create one program that contain two combo boxes. If first combo box i am display all date. If i select one date from first combo box then the second combo box display some dates based on first combo box select date. Here is my full program [CODE] import …

Software Development display java java-swing
Member Avatar for javaAddict
0
210
Member Avatar for rebellion346

I can't seem to figure out whats wrong with my logic for the is it a function or not area. I used the following given test with the correct output: f(1) = 1 f(2) = 4 f(3) = 3 f(4) = 1 f(5) = 1 This function is a valid …

Software Development c++ java
Member Avatar for javaAddict
0
237
Member Avatar for anitha10

I want to validate username and password i.e.I created a table with two variables username and password in sql. I want to match table username and given username as well as for password. If those matches then only it should login. Please help me with the code sir

Software Development sql
Member Avatar for Geekitygeek
0
171
Member Avatar for charqus

Hello guys. Is there any command or function, which allow me to change my screen's color, when i start the program ? Thanks

Software Development
Member Avatar for nick.crane
0
91
Member Avatar for rahulvom

Hi Everyone I need a syntax for update statement LIke this: cmd.CommandText = "UPDATE tab(tab_id,tab_name) SET tab_name=@tname WHERE tab_id=@tab_id"; this one aint working ,Somebody please help. I have two textboxes tab_id,tab_name I have to Update tab_name based on tab_id,...when i Click content of datagridview then I will get the content …

Software Development
Member Avatar for Geekitygeek
0
122
Member Avatar for adman_2005

The program initially asks the user to insert the secret sentence and the encryption code (an integer number in the range 1-100). Then, the program calls a user-defined function void encrypter (char *, int) that accepts the string pointer and the encryption code. The encryption algorithm is based on the …

Software Development algorithm c++ encryption
Member Avatar for jordan00191
0
419
Member Avatar for sjn21682

hello everyone!!! i have a problem in keeping the value of my combobox, i have a form with a combobox, what i want is when i select from my combobox, it will retain or keep its text value even if i close the program, the combobox will only change the …

Software Development
Member Avatar for Rogachev
0
83
Member Avatar for bufospro

Hi all, I am student and in two days I gine exams Java. I need your help to understand the below exercise. I have to explain all the lines from class RunParent [CODE]class Parent { double value = 0; public Parent() { value = 1.0; System.out.println("Parent value " +value); } …

Software Development java
Member Avatar for bufospro
0
100
Member Avatar for ToiNKieZ

Help!! how do you do this in turboC? when i add a space it doesnt show the following output example: [CODE]char name[50] printf("enter your name: ); (user input example is: Boris Ilyanovich Karpov) scanf("%s", &name); printf("%s", name); (the output is just: Boris) [/CODE] how do i get the following Ilyanovic …

Software Development c
Member Avatar for ToiNKieZ
0
127
Member Avatar for Danny_501

Hi all, I have a multithreaded program, one of the threads needs to listen for user input. I was wondering is there a way of checking for user input every few seconds or milliseconds, without having the thread hang on a fgets() function? Current I have: [CODE] while(keep_running == TRUE) …

Software Development c
Member Avatar for sree_ec
0
255
Member Avatar for sushant5252

hi i am a begginer in java and i neeed help in completing this program...

Software Development java
Member Avatar for jon.kiparsky
0
102
Member Avatar for ticktock

Hey all I have this program that is supposed to output a stickfigure. I got this from my game programming elective class (which I now regret enrolling to) and the professor told us to work on it in a way that the class called "example" with the function render should …

Software Development c++ opengl pdf
Member Avatar for ticktock
0
108
Member Avatar for exekiel101

[CODE]#include <iostream> using namespace std; int main() { int numbers; numbers = 2; while (numbers <= 1000); { if (numbers % 2 ==0){cout<< numbers;}; if (numbers % 3 ==0){cout<< numbers;}; if (numbers % 4 ==0){cout<< numbers;}; if (numbers % 5 ==0){cout<< numbers;}; if (numbers % 6 ==0){cout<< numbers;}; if (numbers …

Software Development c++
Member Avatar for chococrack
0
246
Member Avatar for cjreischl

Hi. I am creating a program for class that can be used to gather statisctical data about the number of movies college students watch in a certain time frame. I have to find the average, median and mode and show this in the output. I am able to get my …

Software Development c++
Member Avatar for Cool_Breezey
0
175
Member Avatar for rebellion346

Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; …

Software Development c++ java
Member Avatar for coil
0
147
Member Avatar for rebellion346

Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; …

Software Development c++ java
0
69
Member Avatar for a007s

I have this program I'm trying to write, a simple application with gui: a menu and a button. Whenever I go to run it, this is the error I get: Traceback (most recent call last): File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 27, in <module> app = Application() File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 14, in __init__ …

Software Development gui python tkinter
Member Avatar for a007s
0
3K
Member Avatar for aikiart

Good afternoon, Does anyone know whether it's possible to have more than one overloaded ostream in a class? This is for a time class that i've created however it ouputs data like this 12:12:12:AM, i'd like to use the same ostream operator to output military time 14:12:12, however when I …

Software Development c++
Member Avatar for aikiart
0
113
Member Avatar for UaBoy

I am new to this whole programming thing. I am currently using python 3.2. I want to get into trying to build GUI, but i can't find any programs that seem to work with python version 3.x. Should I downgrade to an earlier version of python? If so what is …

Software Development gui python
Member Avatar for vegaseat
0
279
Member Avatar for NewOrder

This is my array: pieces[2][1]=new Pawn("Bpn1"); pieces[2][2]=new Pawn("Bpn2"); pieces[2][3]=new Pawn("Bpn3"); pieces[2][4]=new Pawn("Bpn4"); pieces[2][5]=new Pawn("Bpn5"); pieces[2][6]=new Pawn("Bpn6"); pieces[2][7]=new Pawn("Bpn7"); pieces[2][8]=new Pawn("Bpn8"); pieces [1][1]=new Rook("BR1"); pieces [1][2]=new Knight("BN1"); pieces [1][3]=new Bishop("BB1"); pieces [1][4]=new King("BKing"); pieces [1][5]=new Queen("BQueen");; pieces [1][6]=new Bishop("BB2"); pieces [1][7]=new Knight("BN2"); pieces [1][8]=new Rook("BR2"); pieces[7][1]=new Pawn("Wpn1"); pieces[7][2]=new Pawn("Wpn2"); pieces[7][3]=new Pawn("Bpn3"); …

Software Development java
Member Avatar for NormR1
0
232
Member Avatar for cac186

I am reading code out of a txt file which contains text in this format.. [text file] Name of Project Experiment One cows, dogs, pigs, horses, sheep, goats 1,1,1,1,20,10 cowweight,dogweight,pigweight,horseweight,sheepweight,goatweight 560,50.5,54.3,641.1,35.4,42.5 deer,elk, moose 2,4,5 etc... [text file] I am trying to read in the numeric values to use for a …

Software Development java
Member Avatar for NormR1
0
381
Member Avatar for dcforshaw

Hi all, I am currently working analysising silicon pixel detectors for the LHC at my university. One thing i have to do is to find clusters of signal in a silicon pixel detector. I have directory of macros which handles the data and getting it ready, not important. My goals …

Software Development c++
Member Avatar for dcforshaw
0
185
Member Avatar for Dark Byte

Sorry for the newbie question, but what are header files? What should they contain? Just classes and definitions?

Software Development c++
Member Avatar for Dark Byte
0
183
Member Avatar for guyfrompluto

I need to write a function that takes in an array of integers and an integer, checks if the sum of any of the numbers in the array is equal to the supplied integer. Any ideas would be much appreciated.

Software Development algorithm python
Member Avatar for Beat_Slayer
0
706
Member Avatar for nssltd

Hi well recently i have had people IE parents and brothers reading files on my memory stick, reading my homework personal files and saved chat history. i worked on an application to stop them. I'm fine with the password part but what i'm stuck on is if the password is …

Software Development c#
Member Avatar for Software guy
0
299
Member Avatar for Rhuntsman21

I am still learning C# so I am sorry if I do not use the correct terminology. Here is what I am trying to do. I have the following code that I use to check to see if an instance of a form already exists, and if it does show …

Software Development
Member Avatar for Rhuntsman21
0
117
Member Avatar for judithSampathwa

hi, how can i change the interface background and the appearence of the interfaces in C#. for example how can i add themes to the forms in C#

Software Development c#
Member Avatar for Diamonddrake
0
149
Member Avatar for qutecynosure

I want to draw three circles within a pentagon in C++. I also want to give random movement to one of the circles within pentagon. Can anyone tell me the code alongwith the required header files for drawing this. regards

Software Development c++
Member Avatar for damnigottajoin
0
1K

The End.