132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sluck

[CODE]//SELECT ID van ingelogde gebruiker MySqlConnection cn = cn = new MySqlConnection("server=localhost; user id=bla; password=bla; database=project; Allow User Variables=True;"); cn.Open(); string selID = "SELECT LidID FROM gebruikers WHERE Gebruikersnaam=?Gebruikersnaam;"; MySqlCommand cmd = new MySqlCommand(selID, cn); MySqlDataReader dr = default(MySqlDataReader); //Add parameters to get the username and password cmd.Parameters.Add("?Gebruikersnaam", MySqlDbType.VarChar); cmd.Parameters["?Gebruikersnaam"].Value …

Software Development dataset
Member Avatar for sluck
0
283
Member Avatar for achiman

I am try to form a multi thread in my program but its giving this error "\Java1.java:87: cannot find symbol symbol : class mythread2 location: class Multithreading Thread mythread1; mythread2 ^ \Java.java:88: mythread1 is already defined in Multithreading(java.lang.String) mythread1 = new Thread(this); ^ \Java.java:89: cannot find symbol symbol : variable …

Software Development java multithreading
Member Avatar for stephen84s
0
104
Member Avatar for murali_perl

I need a perl script for the following case. Input is a text file with the following content AB001. I need to replace the text with AB002 in a new file. This has to go on until AB999. ie., At the end there should be 999 files with the contents …

Software Development perl
Member Avatar for murali_perl
0
120
Member Avatar for sixesox

i was doing my final year project.i need to do calculator.fuzzy calculator.in that calculator,the user will insert 4 numbers.that number should be transform into trapezoidal shape..but i don't know how to do it..from the number we insert into trapezoidal shape.somebody please help me...

Software Development java
Member Avatar for sixesox
0
137
Member Avatar for loverdoll

hi? i'm in need of help.. our instructor in computer programming asked us to make a program..mine is a program that will ask the user to input how many sides of polygon she/he wants..minimum of 3 and maximum of 10..and the output should be the polygon with the user's inputted …

Software Development c
Member Avatar for loverdoll
0
102
Member Avatar for loliana

hi im bigginer at c# & i have some simple questions.. 1-Console.WriteLine("Result is[COLOR="Red"] {0}[/COLOR]",div); for what we use {0} here?? the bult in method Tostring() used for what & when??

Software Development
Member Avatar for ddanbe
0
111
Member Avatar for ChrisXxX

OK, here's my sample code. The problem is indicated with [PROBLEM] at the starting of the code line. I'm getting a compilation error saying that: 706 C:\Users\user\Desktop\Project.cpp `reg_num' has not been declared 706 C:\Users\user\Desktop\Project.cpp request for member of non-aggregate type before ',' token and its saying this for all my …

Software Development c
Member Avatar for WaltP
0
109
Member Avatar for revenge2

hello there, I am working on a small c program that automatically detects whether the input given is a decimal number or a binary number and coverts accordingly. what is the best way to convert a binary number to a decimal number and a decimal number to a binary number. …

Software Development c
Member Avatar for akirue09
0
528
Member Avatar for am5a03

Hello, guys! I got a problem here: You're given set of x-y coordinates (at lease 2 and at most 60000). You need to find out the number of positive slopes formed by those coordinates. e.g. 4(this is the number of points that you want to pass) 0 0 1 1 …

Software Development c++
Member Avatar for am5a03
0
105
Member Avatar for xairzx

i have problem with my database.i using combobox to select elements. i have store the data using ms excess.the problem is when i select one of the element in the combobox.For example when i choose Perlis from the combobox, i hit summary button, there is no output on the label …

Software Development dataset vb.net
Member Avatar for xairzx
0
92
Member Avatar for persianprez

I have 3 functions working together, but I only have abundant returned every single time, I don't know what is wrong [CODE]def sumDivisors(n): total = 0 for counter in range(1, n): if (isDivisor(n, counter)): total += counter return total def checkForPerfect(n): total = sumDivisors if (total == n): return 'Perfect' …

Software Development python
Member Avatar for persianprez
0
205
Member Avatar for jallan2010

[code] Private Sub PopulateProductList() Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Dim strSQL As String Dim objListItem As ListItem Try strSQL = "SELECT [Sr No], [First Name] FROM [Lani]" con = New OleDbConnection(connectionString) con.Open() cmd = New OleDbCommand(strSQL, con) dr = cmd.ExecuteReader() lblani.Items.Clear() Do While …

Software Development vb.net visual-basic
Member Avatar for pritesh2010
0
148
Member Avatar for mldardy

I have two datasets called ds and ds1 that I want to merge into a grid. I get data from the first dataset to display in the grid but the second dataset where I want to display a count I don't get any data from it. I am trying a …

Software Development dataset vb.net
Member Avatar for Renukavani
0
224
Member Avatar for juju bean

I am not sure how to explain the issue that I am having. I believe that I am successful with the exception of this part of the assignment and I have been working on this for hours and need help. This is what I am having trouble with:In the subclass, …

Software Development java java-netbeans
Member Avatar for jwenting
0
384
Member Avatar for archb

I want to give command line arguments to a file and then executive that python file from within my master python file. How should I go about this? I don't really care about the standard output. The file that I want to executive from with my file just outputs all …

Software Development file-system python
Member Avatar for Tech B
0
207
Member Avatar for meistrizy

Thanks in advance for your help. I am writing a program that is supposed to display a menu and ask the user to enter a list of his/her favorite games, then display the games if they choose to. The problem is that when it comes to entering the names of …

Software Development c++
Member Avatar for VernonDozier
0
122
Member Avatar for hell04

Hi all, I have the following task; Extend an ArrayList of Integer by adding a method called 'sum', that returns the total sum of the elements of the list of integers. Such that each time the method is called sum up all the integers. So I started by making the …

Software Development java
Member Avatar for tiny7415
0
6K
Member Avatar for mrnobody

Hi, I'm doing a program in dual core processor. I'm wondering, is it possible for write a program that is core specific..? For example, thread A only runs at core 1 and thread B only runs at core 2. I'm currently looking at [URL="http://www.threadingbuildingblocks.org/documentation.php"]Intel® Threading Building Blocks (TBB)[/URL].. Am I …

Software Development c++
Member Avatar for Ancient Dragon
0
128
Member Avatar for Enders_Game

I'm trying to make a script that downloads from a specific website etc... it's done and everything. The problem is I need to compile it to a .exe for people to use and I noticed there isn't a py3exe to do this... So I downloaded python 2, and tried to …

Software Development python
Member Avatar for jcao219
0
156
Member Avatar for ejazmusavi

Hi Experts! I am working on drawing in C#. I have a problem in this program; when I draw a new object on mouse event and paint event the previous drawn object disappears. My code is as follows. [CODE] private void picMain_MouseDown(object sender, MouseEventArgs e) { MouseDownPoint = e.Location; mouseMovePoint …

Software Development c#
Member Avatar for Diamonddrake
0
578
Member Avatar for Mitja Bonca

I would like to know how can I transfter a string value (a name or something) from Login class over static class to Form1? This code I have: 1. In program class: [CODE] static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] …

Software Development
Member Avatar for kvprajapati
0
258
Member Avatar for Kyle Wiering

Ok, here goes, I've got a staticwindow where I am putting the information from keyboard presses and onscreen button presses. When I run the program, I can press the keys and they show up just fine. I then press the button on the screen with my mouse which also works. …

Software Development c++
Member Avatar for Frederick2
0
446
Member Avatar for zendet

Hey guys, i need some help with a hangman project for school. The outline is: make program that plays the game of hangman, read the word to be guessed into a string variable. ( The programmer must make about 10-20 words to have one randomly picked each time a game …

Software Development c c# c++
Member Avatar for WaltP
0
456
Member Avatar for zrd0808

I am trying to copy a string into an array then write bits out to a file accordingly. (compression assignment). here is the code [code=c] // strnewdup(const char* s) returns a copy of a // null-terminated string, with the copy stored // in the heap char* strnewdup(const char* s) { …

Software Development c++
Member Avatar for zrd0808
0
2K
Member Avatar for a.w.howell

Using Python with pylab included, I have created a plot. In the plot's title, I am including a variable from the program. I save the plot as a ps and every thing looks great. However, when I try to print the document to paper or to a pdf, the numbers …

Software Development pdf python ubuntu
Member Avatar for woooee
0
144
Member Avatar for smile_pls

Hello DW!, I am in a beginning stage vb user. I need a small help. I need to create a program, if I entered the "product code" in a text box / search box, it wants to display its full details from database, such as Product code, product name, description …

Software Development asp.net vb.net visual-basic
Member Avatar for LennieKuah
0
312
Member Avatar for txwooley

I have an old computer that doesn't have internet access. It does have Python 2.6 which supposedly has Tkinter. The problem is, it returns an error that Tkinter module is not installed. I searched the net, and saw that I may have to manually install tcl/tk. Done. I tried [CODE]import …

Software Development python tkinter
Member Avatar for woooee
0
163
Member Avatar for jeffery12109

Hey, I have one question though, how do you write on a txt file???

Software Development python
Member Avatar for HiHe
0
101
Member Avatar for hondros

This is a nice command prompt I wrote up a month ago. It's still in the Beta stages however. Anyways, here's a brief overlay of what it does: 1) Takes user input of a function, creates an x/y table and plots it 2) Change the x-range 3) Graph waves (Main …

Software Development python
Member Avatar for hondros
0
222
Member Avatar for Asthuran

I've been looking around the site for an answer to this, only thread i've found pertaining to it was this: [url]http://www.daniweb.com/forums/showthread.php?t=96516&highlight=how+do+i+get+my+function+to+ask+a+question+and+wait+until+the+user+presses+a+key+in+C%2B%2B%3F&page=2[/url] and that thread wasn't very helpful, so, i'm sorry if it's been asked before somewhere. anyway, onto my question: The title was pretty self explanatory, I want to know …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for fugnut

Hello all, I am writing a program that reads in from a file and depending on the first character read in, it will then read in other data and make calculations. The file has data similar to "C 10 or T 10 20" The letter being the shape and the …

Software Development c++
Member Avatar for MyrtleTurtle
0
150
Member Avatar for Ian Morrison

I'm implementing an [URL="http://www.objectmentor.com/resources/articles/acv.pdf"]acyclical visitor[/URL] in my project and having some difficulties with the requisite dynamic_cast. The setup looks something like this: [CODE]class Visitor; class Entity { public: virtual void accept(Visitor &v) const = 0; }; class MyClass ; class MyClassVisitor { public: virtual void visit(const MyClass &obj) = 0; …

Software Development c++ pdf visual-studio
Member Avatar for Ian Morrison
0
96
Member Avatar for ChPravin

Hello All, Is there any way to completely test a Circular Queue Implementation?I have written an array based implementation and need to know if it works for all the cases.I was just wondering how to come up with exhaustive set of test cases to test the code instead of the …

Software Development java queue
Member Avatar for ChPravin
0
582
Member Avatar for hiz460

Hi, I want to create a code, which basically adds one to the last customer ID, and shows it in a combo/list box. For example, if the last customer ID used is 7, then it would add one, and show 8 in the combo/list box. Is this possible? How do …

Software Development vb.net
Member Avatar for hiz460
0
86
Member Avatar for JainishP

This is the class I created to make a MinHeap from data that is being inserted into it: [code]public class MinHeap { protected int [] a; protected int lastindx; public MinHeap() { lastindx = 0; // heap starts at a[1] a = new int[1]; } // is the heap empty? …

Software Development java
Member Avatar for georgeh1
0
435
Member Avatar for brightstar

Please i need the code of a simple ATM program on C, please help me!!!

Software Development c++
Member Avatar for Mr.Bling Bling
0
2K
Member Avatar for pateldeep454

My task is: The Captain Crunch decoder ring works by taking each letter in a string and adding 13 to it. For example, ’a’ becomes ’n’ and ’b’ becomes ’o’. The letters “wrap around” at the end, so ’z’ becomes ’m’. Write a method that takes a String and that …

Software Development java
Member Avatar for pateldeep454
0
902
Member Avatar for tariq1081

my assigment tell me to: Write a program to randomly generate a 3-digit number N (it is ok if the number has fewer than 3 digits). Create a number NN which is N placed next to it. Example, if the number N is 263 then NN is 263263. If N …

Software Development java
Member Avatar for armsracer
0
106
Member Avatar for Freespider

hello... i want to separate string like "!string" i need to put the "string" to some char*... i did char firstWord[10]; sscanf(text,"!%s",firstWord); why its not woking? and how to make it work? i try to search, but nada....

Software Development c
Member Avatar for WaltP
0
132
Member Avatar for manutd4life

Hello just Admit in a university and new in C++ i just wanted to know how to do area for several circle How to modify the code below to do the area of circle?? here's the code: [code=C]//Calculate area of a circle #include <cstdlib> #include <iostream> using namespace std; // …

Software Development c++
Member Avatar for Tellalca
0
130
Member Avatar for pymatio

Hi everyone, I'm trying to make a Space Invaders clone with pygame (python SDL library, if you hadn't guessed ;) ). The problem I'm having is that when the space invaders move down and change direction they break formation (some move left/right to far). Here is what I think is …

Software Development python
Member Avatar for pymatio
0
611
Member Avatar for jeffery12109

as you know I'm making a text adventure using Python. Should I put the monster's stats into a class or dictionary? Please suggest. All suggestions welcome!

Software Development python
Member Avatar for jcao219
0
140
Member Avatar for omar isaid

java.io.FilePermission this exception always thrown when I am trying to run my code using tahiti server that i am developing java mobile agent

Software Development java
Member Avatar for omar isaid
0
119
Member Avatar for wckddudeman

Okay so Im having an issue,and am not able to find the actual problem with the code. I have a runtime error at : First-chance exception at 0x008b182b in OpSys.exe: 0xC0000005: Access violation reading location 0x00000000. Unhandled exception at 0x008b182b in OpSys.exe: 0xC0000005: Access violation reading location 0x00000000. I do …

Software Development algorithm c++
Member Avatar for WaltP
0
208
Member Avatar for elie_kfoury

Hey.. i want to make a string from a text file.. then i want to compare this string with another to see if they are the same... any help?? /*I'm a beginner*/

Software Development c
Member Avatar for elie_kfoury
0
96
Member Avatar for omar isaid

the following code I want to press done buttone to close JFrame without exit the application ---------------------------------------------------------------------------------- [CODE] package examples.SecretaryAgent; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Display extends JFrame { private JCheckBox _first_Interval; private JCheckBox _second_Interval; private JButton _done_Button; public Display() { setLayout(new FlowLayout()); _first_Interval=new JCheckBox("First Interval"); _second_Interval=new …

Software Development java java-swing
Member Avatar for omar isaid
0
880
Member Avatar for dalcocer

I am trying to get a WndProc Mapping solution to work so that I can avoid just making my WndProc static. In addition, a mapping solution is supposed to be great because I don't need to declare variables in my .cpp file, I can do it in my .h file …

Software Development c++ data-structure opengl video-card
Member Avatar for Kyle Wiering
0
188
Member Avatar for missmedude

I am trying to center the triangle, but I have no idea how. I am trying to make a triangle like below:[code] * *** **** ****** [/code](this is not the one I want, the format screws up) I kind of forgot, do i use something like printf? [CODE]#include <iostream.h> #include …

Software Development c++
Member Avatar for WaltP
0
113
Member Avatar for fugnut

I have to write a program that reads in from a .txt file similar to 12345 Il 4350 (sales number, state abbreviation, amount) for the most part I dont have an issue with this, however I have to read in the State abbreviation as separate characters and ultimately alphabetize them. …

Software Development c++
Member Avatar for fugnut
0
86
Member Avatar for xgenvn

I'm just a 4-months newbie in C++, and I have an assignment to do a small phonebook program for DOS or FreeDOS. This is what i got from days after searching: This is CTelrecord class that would save every record in details [CODE]class CTelRecord { private: int szTime; char szName[_MAX_NAME_LEN_]; …

Software Development c++ linked-list
Member Avatar for xgenvn
0
222

The End.