132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kurt_tna

does any one know the c++ code for the Nim Game?

Software Development c++
Member Avatar for username4
0
108
Member Avatar for Israelsimba

i know that a select statement is the best way to go around retrieving records from a database. the problem im facing is selecting a record then assigning a certain field from that record to a variable eg x..... so in simple english, it has to be something like....select clientnumber …

Software Development visual-basic
Member Avatar for AndreRet
0
133
Member Avatar for jorgejch

Hello, I've started with python (3) recently. Initialy only for scripting. Now I'm trying the object oriented bit. I'm getting the following error message [CODE] <Atom.Atom object at 0x7f0b09597fd0> Traceback (most recent call last): File "./Main.py", line 7, in <module> print (t.getAtomName()) File "/home/jorge/Documentos/projetos/mestrado/códigos/cartesian_zmatrix/Atom.py", line 22, in getAtomName return atomName …

Software Development python
Member Avatar for woooee
0
591
Member Avatar for Calaesto

Hi, I'm stuck on some tables from MS Access. I have the following: Items: itemId(PK), Naam Combo: comboId(PK), Naam Combineren (combination): ID(PK), itemId(FK), comboId(FK) I want my app to show ComboNaam with ItemsNaam in my dataGridView in the following form: [CODE]string queryString = "SELECT Combo.Naam FROM Combo ORDER BY Naam"; …

Software Development
Member Avatar for mikiurban
0
97
Member Avatar for mahela007

How do I send arguments to a function by using windows command prompt?

Software Development python
Member Avatar for mahela007
0
97
Member Avatar for ITech

can anyone help..plz i have a form called transaction view.in this form there is two datetime picker.dtpstart and dtpEnddate.i want to pass these two values to report such that the report will display transactions occured in the range specified by th e datetime picker there are 3 tables in my …

Software Development dataset
Member Avatar for DdoubleD
0
477
Member Avatar for ihtesham4deni

Problem Statement: File Handling in C/C++ On the basis of the given scenario create a file Expenses.txt, Open the file and copy into another Expenses2.txt, Also show output on screen A college has announced the total budget of 50,000Rs.for each game. Games are done four times in a year. Take …

Software Development c++
Member Avatar for donaldw
0
117
Member Avatar for jk2005.jeeva

Hi Anyonem, could you please explain clearly about the order of evaluation of increment, decrement operators in an expression in C? Thanks in advance..

Software Development c
Member Avatar for kommuru
0
380
Member Avatar for lacompsr

The aim of the program was to Write a short assembly language program which creates a divide by zero trap and modify the isr so that you change the error message that the isr issues. stepintr.asm << the sample isr << built in system trap message he said. stepintr.asm contains …

Software Development assembly
Member Avatar for NotNull
0
159
Member Avatar for ov3rcl0ck

I'm trying to strip HTML tags and replace certain tags with newlines and tabs. I just can't figure out a function to do this, any ideas? I'd prefer to use regex instead of a library.

Software Development html-css python regex
Member Avatar for jlm699
0
109
Member Avatar for spekulanta

Hi there, here what my problem is - I'm trying to get data from MySQL database put in on global array and make calculation. The data in the MySQL table is 3000 rows and 2 columns. The type of data is double and date Here is the code: [CODE] #include …

Software Development apache c++ mysql
Member Avatar for spekulanta
0
126
Member Avatar for mpdillon

I created a new class project. I added a new COM object. The .ddl contains a single Public Function and one Public method. The method contains one line of code, a msgbox. I have "Register for COM interop" checked in the Project>Configuration>Compile page. I have ComVisible(true) in the AsseblyInfo.vb file. …

Software Development vb.net
Member Avatar for mpdillon
0
151
Member Avatar for ubundows

Hi to everyone. I'm a beginner at Java and I'm studying a software develoopment course right now. I have a problem with my first assignment. In particular with the last exercise of the assignment that is about writing a program that shows a character distribution with a counter that shows …

Software Development java
Member Avatar for parry_kulk
0
132
Member Avatar for kleigh

Hey, guys! Newbie here. =) I'm trying to return an image that contains n^2 full size copies of my original image tiled, that makes an n-by-n square. I've been working on this for the past couple days and I am stuck. It's giving me an "image index out of range" …

Software Development image python
Member Avatar for kleigh
0
3K
Member Avatar for scrace89

[CODE]area = ((length ** 2) * numSides) / (4 * (math.tan(FULL_ROTATION / (2 * numSides)\ )))[/CODE] this is my thought but I can't figure it out, I always get the wrong value. I need to get my answer in degrees. but even when i use [CODE]return math.degrees(area)[/CODE] at the end …

Software Development python
Member Avatar for vegaseat
0
121
Member Avatar for EvolutionFallen

Hello, My professor has asked me to write a C# GUI for a C++ program. I did not write the C++ program (hell, I'm not even completely sure what it does -- something to do with pattern recognition). I wanted to know how one would go about writing a C# …

Software Development c c# c++ gui
Member Avatar for DdoubleD
0
865
Member Avatar for saadismail85

i need to print stars on console like this * * * * * * * * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * …

Software Development java
Member Avatar for javaAddict
0
98
Member Avatar for muppetjones

I'm pretty new at this, and I'm trying to figure out how Perl's classes work with signals. Specifically, it doesn't seem that a class's DESTROY function is called when you Ctrl-C the program. I tried using [INLINECODE]use sigtrap qw(handler DESTROY INT QUIT);[/INLINECODE], but I'm not even sure this is the …

Software Development perl
Member Avatar for Sanjeeb25
0
173
Member Avatar for avirag

Hi all, How can i convert the excel worksheet into MS Access database, such that all the fields & data of excel becomes the fields of database, and then i could use that database for adding new item, modify and delete. I want to do this so as to avoid …

Software Development
Member Avatar for DdoubleD
0
289
Member Avatar for sanchitgarg

I want to check the input of the user. Only positive nos are allowed. I want to pass the input of the user to a function which checks that if it is i positive no. then it allows the user to continue further otherwise it gives an error and asks …

Software Development python
Member Avatar for sanchitgarg
0
86
Member Avatar for Clockowl

Hey guys, I have this code snippet: [code=cpp] template <typename ElementType, typename CompareClass> struct Delegate { virtual bool geef(const ElementType &element){ pair <set<ElementType, CompareClass>::iterator, bool> ret; //this is line 196 ret = elements.insert(element); //197 return (ret.second); //198 } virtual void output() = 0; set<ElementType, CompareClass> elements; }; struct ArtiestenPrinter : …

Software Development c++
Member Avatar for Clockowl
0
222
Member Avatar for Rajashree24

Hi , Can any one tell me differences between Statement ,Prepared statement,CallableStatement and when to use which (Clear Idea)

Software Development java
Member Avatar for javaAddict
0
79
Member Avatar for sidd.

hi, i have a graph and i wanna zoom somw particular area in it. Is there any zoom function available... thanx

Software Development
Member Avatar for Geekitygeek
0
387
Member Avatar for Bluesilver

Hi, I have an assignment requiring me to use the printStringArray method, but I can't find any examples on how to do so in my textbook or on the web. Can anyone provide an example please? I'd be very greatful!

Software Development java
Member Avatar for jasimp
0
102
Member Avatar for Farfie

Hello. I need to write a static recursive method that returns the frequency of occurrence a particular digit d in an integer n. For example, if passed (1342457,4) it should return 2, whereas when passed (1342457,6) it should return 0. I won't put my code in as it is arbitrary, …

Software Development java
Member Avatar for stevelg
0
161
Member Avatar for CuteCat

I can't figure out what's wrong - I was remaking the code from an older and messier version, but now I've hit a roadblock because what I say in the actionPerformed section just doesn't happen. I suspect that it's because of the Timer, which a friend adviced me to link …

Software Development java java-swing
Member Avatar for javaAddict
0
202
Member Avatar for venkates.99

Hi, Here my requirement is like,when I click on the row of the DataGridView, in required cloumns turn to Text boxes.This is known thing.But for different row should have different control in editing. Please check the attachment . for one row item template is Textbox, for some other row it …

Software Development
Member Avatar for venkates.99
0
105
Member Avatar for MxDev

Hi Guys, How are you doing guys?? Guys I was wondering how to achieve a code that highlighting multi strings at once like [ICODE]Firefox[/ICODE]??? Could someone give me an idea, because I couldn't achieve this in C# like [ICODE]Firefox[/ICODE] exactly without changing the background of the string. Any help appreciated. …

Software Development
Member Avatar for MxDev
0
125
Member Avatar for nick30266

the program is ok(i think)but the data is fixed.i want it able to input your own data.i tried cin>>c1.real>>c1.image; cin>>c2.real>>c2.image; but it cannot use them because they are private... [code=cplusplus] #include<iostream> using namespace std; class complex { public: complex(){real=0;image=0;} complex(double r,double i){real=r;image=i;} complex complex_add(complex &c2); complex complex_sub(complex &c2); complex complex_mult(complex …

Software Development c++
Member Avatar for mrnutty
0
347
Member Avatar for vinochick

I have to write a program that allows a user to pick five numbers from one to 55. The computer will then generate 5 random numbers and determine how many of the users choices match the generated numbers. I have to create an algorithm for this program. The program will …

Software Development algorithm c++
Member Avatar for pecet
0
2K
Member Avatar for brandon84

I cant get "\nNet Pay: " + netPay(dGrossPay, dRetirement)); to display anything other than 0.0. I know I need to assign a value to dGrossPay but im not sure how to. [CODE] public int menu() { Scanner keyboard = new Scanner(System.in); String strUserName; double dHours; double dRate; double dGross = …

Software Development java
Member Avatar for brandon84
0
126
Member Avatar for vuyiswamb

Good Day All i have the Following Function [CODE] private static void OMEGA_calcActvEqv() { SqlConnection conn1 = CommonFunctions.getSQLConnectionForThread(THREAD_DATA[0].ToString()); string SQL = "SELECT MAX(D.OFFS + 1) * MAX(R.OFFS + 1) FROM TBL_ROWS R, TBL_CLMN D; SELECT MAX(OFFS + 1) FROM TBL_ROWS;"; SqlCommand cmd = new SqlCommand(SQL, conn1); SqlDataReader rdr = cmd.ExecuteReader(); …

Software Development
Member Avatar for vuyiswamb
0
2K
Member Avatar for jinjishu

I am currently stuck on part a of this problem. I am having a problem with my stub, I am also running this on visual C++ 2008 express. My stub is a program i had to create to find the maximum value from the 10x20 array. For some reason that's …

Software Development c++
Member Avatar for jinjishu
0
366
Member Avatar for Daniel_Crouse

Hi I'am a beginner in C#. I would like to know how to connect to a database using C#. I'am using Visual Studio 2008.

Software Development c# visual-studio
Member Avatar for Daniel_Crouse
0
128
Member Avatar for denizen08

[CODE]#include <cmath> long double NR(long double sample) { return (abs(f(sample)))<=1e-10 ? sample: NR( (sample - f(sample)/fp(sample))); } long double f(long double sample) { return 2.5*exp(-sample)-3*sin(sample); } long double fp(long double sample) { return -2.5*exp(-sample)-3*cos(sample); }[/CODE] I'm trying to write code for a Newton-Raphson algorithm. I have it in recursive form …

Software Development algorithm c++ mathematics
Member Avatar for denizen08
0
184
Member Avatar for babylonlion

Hi everyone, I'm trying to write a code that converts the number that a user inputs to either Celsius or Fahrenheit simply by pressing a button. So far I was able to compile and run the program displaying the panel, buttons, and the text field but I'm not sure how …

Software Development java java-swing
Member Avatar for babylonlion
0
771
Member Avatar for Ponomous

Hey, so im trying to make a memory game using 2d arrays. This is my code to randomly generate the rows and columns but its not giving me pairs, could someone tell me why, i really dont know. [CODE] for (int r=0; r<4; r++) { for (int c=0; c<4; c++) …

Software Development c++
Member Avatar for vb6exp32
0
239
Member Avatar for maverick405

This program passes two parallel arrays ta a function that prints the grade reports i.e Jay Rino -- Grade: A, I had coded this program as per my knowledge but it does not executed well please help me solve this. I know there is no user input needed but I …

Software Development c++
Member Avatar for maverick405
0
133
Member Avatar for guccitan88

Hi, new learner to C++. I have to write 4 functions to compute and return the diameter, circumference, etc. of a circle. I think I might be on the right track but I'm probably making this harder than it has to be. I commented most code out because I'd like …

Software Development c++
Member Avatar for guccitan88
0
104
Member Avatar for COKEDUDE

Why is this an illegal start on an expression? public Account consolidate(Account accnt1, Account accnt2) In my if statement It says name has private access in account. What does that mean and how do i fix it? if((accnt1.name).equals(accnt2.name)) [CODE]//*********************************************************** // TestConsolidation // A simple program to test the numAccts method …

Software Development java
Member Avatar for Ezzaral
0
154
Member Avatar for aliiya

hi! I am trying to insert data from textboxes in sql server 2005 database using dataset(table adapters) in c# windows application herez the simplest coding that i know but its not working. I have made two tables in my database i.e. product and country table. In country table adapter i …

Software Development c# dataset
Member Avatar for Marcwolf
0
2K
Member Avatar for python user

[CODE=Python] def Myfunc(): print "Stuff" #Title: "CrashLanding" #By: Python User #November 16, 2009 #Features improved coding style, or at least I think so #note:code based on J.G.S'S code-I really learned alot from his code Some credit goes to him #note:I dont think that is his actual username so keep that …

Software Development python
Member Avatar for python user
0
217
Member Avatar for msvinaykumar

Hi, I'm using following packages to read and write the excel, But the problem I'm not able to copy the formula from one sheet to other sheet packages are use Spreadsheet::ParseExcel; use Spreadsheet::WriteExcel; Is there any other packages so that I can copy excel fromula to another excel ( I …

Software Development perl
Member Avatar for mitchems
0
139
Member Avatar for botaxsmaniz

Hi all i have question again, this is my code: [code] private void btAdd_Click(object sender, EventArgs e) { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet ds = new DataSet(); DataView dv; string sql = null; string connetionString = "Data Source=GOD_LOVE_ME;Initial Catalog=ProjetDB;Integrated Security=True"; sql = "Select * from Material"; SqlConnection connection = …

Software Development dataset open-source
Member Avatar for botaxsmaniz
0
125
Member Avatar for CasperG

Hi, hope you can help, i am quite new to this. I need to know who to write data from several text boxes on a form to a sql database. I have created the sql database on a localhost using myphp admin, i have created the connection in a module …

Software Development sql vb.net
Member Avatar for CasperG
0
126
Member Avatar for Vector_Joe

Hi, I've dabbled in some programming in the past, but nothing serious. I'm trying to create an array of objects in python 2.6 (VPython). What I want to do is create a 2d grid of sphere()'s. But I want to be able to manipulate each one individually after they are …

Software Development python
Member Avatar for bumsfeld
0
854
Member Avatar for yaya_star

i need to make a theme form, chossing two colors, and make them in all of the project forms using this code maybe: Sub RepaintForm() grbrush = New System.Drawing.Drawing2D.LinearGradientBrush(New Point(0, 0), _ New Point(Me.Width, Me.Height), x, y) Me.CreateGraphics.FillRectangle(grbrush, New Rectangle(0, 0, _ Me.Width, Me.Height)) End Sub Private Sub frmThemes_Paint(ByVal sender …

Software Development vb.net
Member Avatar for bvvvb
0
100
Member Avatar for mampam

Hi, I am having a user input a series of numbers and characters separated by spaces. like "10 23 65 34 765 34 65 34 64 354 64" and i need to put these into an array without the spaces. I stores them into a string but whenever i do …

Software Development c++
Member Avatar for VernonDozier
0
117
Member Avatar for mahela007

The tkinter tutorial at tkdocs ([url]http://www.tkdocs.com/tutorial/firstexample.html[/url]) shows these two lines at the beginning of every example. [CODE]from tkinter import * from tkinter import ttk[/CODE] Doesn't the first line import everything in the tkinter module? if so, why bother writing the second line? EDIT: Just found an answer (kind of ) …

Software Development python tkinter
Member Avatar for bumsfeld
0
144
Member Avatar for Tech B

I tried installing pcapy 0.10.4 and i get an error. C:>setup.py install running install running build running build_ext building 'pcapy' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nolog /0x /MD /W3 /GS- /DNDEBUG -DWIN32=1 -Ic:\devel\oss\wpdpack\Include - IC:\Python26\include -IC:\Python26\PC /Tppcapdumper.cc /Fobuild\temp.win32-2.6\Release\pcapdumper.obj pcapdumper.cc pcapdumper.cc(12) : fatal error C1083: Cannot open include …

Software Development python visual-studio windows-vista
Member Avatar for bumsfeld
0
541

The End.