132,726 Archived Topics
Remove Filter ![]() | |
i'm a beginner in c++ i want to programming sudoku i start with a 9x9 table but i had difficulties to continue 1)how to make a function to check numb in the row,colones,and 3x3 2)a counter to know when the game end or repeat until there is no values [code=cplusplus] … Software Development c++ | |
Hello everybody, ive only been learning C for about a month so please forgive me if my code is messy or unclear! I have written a simple program which creates a text file, reads from it and then writes the output backwards to another file; it seems to work apart … Software Development c file-system operating-system | |
hi every one suppose i have a Car class [CODE]public class Car{ [INDENT]int speed; int id; .. public void move(){ .... }[/INDENT]}[/CODE] and a Race class [CODE]public class Race{ [INDENT]int array[][];//contains car ids in race or 0 for none [/INDENT] [INDENT]Car cars[]; .... public void startRace(){ ... }[/INDENT] }[/CODE] if … Software Development java | |
I need to write a VB program which takes customer type, number of books purchased and cost of each book as an input.Then calculate the total sum after deducting discount that is to be paid by customer. Note that it needs to show both the total before discount and after … Software Development visual-basic | |
Hi, I am new to c++ programming.... i am working on a example and when ever i run the following code i get error "Server fifo failure" this is an example and should work alright but error making no sense... :( I am running this code using sun C++ compiler.... … | |
I am making on-screen keyboard in java. All what i want to know is how to get focus into the notepad or any other typing point , I mean when i press a key it type it into the typing point like a keyboard do. If any one know any … Software Development java | |
Is it possible to separate python's syntax checker and check a string object with it? I've read through the py_compile module but it looks like syntax checking it done at a fairly low interface level. Anyone tried this before? Software Development python | |
whenever i run the below program it asks me to type in a password and it should go through all that could possibly be the password but if i type in a password of 2 or more digits it only displays the first letter of the password. [CODE] #include <iostream> … | |
dear people recently i have been given with this assignment where i have to read from a txt file and then print out the following. the full class list. the class list sorted by gpa the class list sorted by name initial the user enters the class average gpa. i … | |
I am trying to transmit an Image object through a Socket connection in Java. The only thing I may be missing is how to get an image size in bytes so I know how many bytes are being transferred over the Socket. I have the ServerSocket and Client working transferring … | |
Hi, I'm fairly new to java and am trying to write a form of banking system for a college assignment. At the moment I am trying to access the account number of the object userCurrentAccount with it's method getAccountNumber from the account class. This is where the object is created … Software Development java | |
I've been trying all day to make an executable from python file using pygame too. I was doing okay until it got to the mixer module which is where it failed quite epically. I then searched the web a bit and came up with this as it was on the … Software Development python | |
Dear DaniWeb, I am working on a source code editor using Scintilla and am currently having some issues with the CreateFile() function. It does not return an error when I am saving as a new file, but when I am saving changes to the current file, it returns INVALID_HANDLE_VALUE. I … Software Development c++ windows-vista | |
This is a very simple problem, but for some reason I can't get it to work. I need to empty a variable ( char fileName[MAX_PATH] =""; ). It needs to be to where when I use this that it sees if it equals "", this wont work if it equals … Software Development c++ | |
Hello guys, Actually I am working on a software in .NET. The software objectives is to search for all music files in a specifies directory or the whole computer and display the files names in a list box. But the problem is with the directory. How can I used .Net … Software Development vb.net | |
I'm trying to traverse to the end of a linked list, but I get a segmentation fault when my while loop checks to see if the "next" pointer is null. Any suggestions on how to perform this check without causing a segmentation fault would be greatly appreciated. Software Development c++ linked-list | |
Hello, I need to implement the following situation in C++: I have a counter which I want to increment with a certain probability. I am giving a pseudo code which will clear: counter = 0; prob = 0.5; for i <- 1 to 100 if(prob) // want to increment the … Software Development c++ | |
Hi for ever can any one help me [COLOR="Red"]only give me idea[/COLOR] of this question Write a program that reads from a file list of unsorted names and sort the names automatically and then asks the user whether he/she would like to print the names in the output screen or … Software Development c++ file-system | |
Hi I am making a program that takes in a date (dd mm yyyy) & returns the day of the week(eg monday) of the input date. My problem is that my fuction [B]day_of_week[/B] is not returning the variable [B]dayString[/B] into main. So dayString is not being output in main. Any … Software Development c++ | |
Hi i would like to insert pic using a code. for instance, when i click on a button, picture1(.jpg) will appear on a form. however, when the picture1 at a location is replaced by picture2, the c# application will also change to picture2. Is it possible to do so? I … Software Development | |
Dear All, I have done a project in VBasic 10.0 for our product Design. Unfortunately the program was deleted while re-installing the OS. However we have managed to retrieve the files by using File Recovery software. [U]But now the .EXE file is working but the Vb program file is corrupted.[/U] … Software Development file-system visual-basic | |
Hi, Hoping someone can tel me where I'm going wrong, or what I should do. I'm trying to use some pure virtual functions on some polymorphic classess but am unsure how to do it correctly. Hiopefully this code will explain it a bit better: vehicle.h : [code=C++] using namespace std; … Software Development c++ visual-studio | |
I have what I thought was a straightforward program. [code=Perl] #!/usr/bin/perl -w use strict; $a = 6; $b = 9; $c = 7; print $a . "\n"; print $b . "\n"; print $c . "\n"; [/code] I assumed this would display: [code] 6 9 7 [/code] and it does when … Software Development perl | |
hello , I am creating a bot ( for personal use ) to automate posting to my website . I have used the webbrowser control and i have managed to send data to the webform using the follwing code : [CODE=vb.net] Dim elm As System.Windows.Forms.HtmlElement For i As Integer = … Software Development vb.net | |
Hi folks, I have written 2 applications on my till running windows 2000. One is an epos system and the other is a "driver" which parses the text from the touch screen and moves the mouse accordingly. I'm having a very strange issue. I have recently added network functionality to … Software Development windows-server | |
I am new to Java, I am six weeks through a nine week class. I am having problems extending a class in my program. My assignment is as follows: Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product … Software Development java | |
it keeps saying theres an error on line 17, it says: "no match for 'operator!=' in 'a != password'" [CODE] #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main() { string password; cout << "Type in a password: "; cin >> password; char a; a = 'A'; cout … | |
Hi . What is the problem of this : template < typename B > ostream &operator << ( ostream &out, const Array < B > &a ) The compiler say "Link error" and ... Software Development c++ | |
hey frnds, I want to add all the favorite names & its URL in litsview.I m able to get favorite names but not its urls. Can somebody know how to get URLs. Code below gets the favorite names- [code] Private Sub GetFavorites() Dim di As DirectoryInfo Dim lPos As Integer … Software Development vb.net | |
I made a program in Visual Studio that reads an End-Of-File signal. When you run in the debug mode, sending the signal closes the program. Running without debugging with ctrl + F5 means you can send the signal. However, when I compile in release mode and run the exe it … Software Development c++ visual-studio | |
I'm just starting python and it seemed reasonable to go ahead and learn the new version. I read that numpy wont be available for python3 until at least 2010. All I need is a basic "vector", "matrix", and some basic functions like matrix/vector multiplication. Is anything like this available for … Software Development matrix-multiplication python | |
I am writing a program to compute the fastest/shortest path between locations (stored in a directed graph represented by an adjacency list). I am trying to create this adjacency list ("al") as an array of pointers to Vertex class objects, but I get the error " 'al' was not declared … Software Development c++ | |
I am new to this any help is greatly appreciated. Software Development | |
Hi, I dont sure that I am posting the thread to right place. I want to test user bandwith over an application that installed to user's computer. There are online test tools , but I must I need java source code for implementing to our application. Can anyone help about … Software Development java | |
i want to validate the String entered wether it is a valid standard equation of [COLOR="Green"]conics[/COLOR] the standard equation is: ax^2+by^2+2hxy+2gx+2fy+c=0 some variables can be missed in input string but it should be of "degree 2" equation Software Development java | |
Hi, [LIST=1] [*]Question Why does valgrind complain? [CODE] Conditional jump or move depends on uninitialised value(s) ==25636== at 0x4C26D29: strlen (mc_replace_strmem.c:242) ==25636== by 0x40060A: main (test.c:7) [/CODE] [*]Question Strlen doesnt apparantly tell you how much space you have in your array, but the number of chars til '\0'. I my … Software Development c | |
Hi all, Im new to c#, please any one tell me how to get the column names of a table of ms access(.mdb). Here i used odbc connectivity to access the database, i got the list of tables in the database, but i dont know how to get the column … Software Development | |
So, I've been cruising these and many other forums and have found many who need help concerning this issue, but usually it's resolved using the New statement. What I'm doing here is I first add a 2D array of PictureBoxes during runtime with the following code [CODE]For i = 0 … Software Development vb.net | |
Got this project write a C# windows app program that computes employee wages. Input the employee's payroll number and number of hours worked. The employee receives 7.45 per hour as hourly rate and is taxed 20% from gross pay and 7% also national insurance. and to display this information in … | |
Hi Im devloping a form and i have used two combo boxes in it.. basically these combo boxes store numric code for them in databses[MS. ACCESS]... but i want to display relative string representation to user....i have populate items manually using collections in the propert window. but when i want … Software Development vb.net | |
i have written a program to transfer character from one comp to another using serial port .in order to test the program i want to use loopback control as i have only one computer. i have read how to connect rs232 in loopback mode but my problem is that if … Software Development c | |
hey all, im trying to compare two strings 8 characters long, the first was predefined and the second was entered by the user. i tried used (cmpsb) instruction and byte by byte comparison, but both failed its for a project that requires a student to enter their number and password, … Software Development assembly | |
Hi all, I asked about this question few days ago, and I have tried few things other experts told me I think i got overcame problem where i can read the tab spaced file but now the output is the problem..... When i run my program it outputs: Enter filename: … Software Development c++ | |
could anyone tell me if the last lines of the following are true or false? 1) int arrA[3] = {1,2,3}; int *ptrToarrA = arrA; int *anotherptrToarrA = arrA[0]; 2) int arrB[2] = {1,2}; int *ptrToarrB = arrB; int *anotherptrToarrB = *ptrToarrB; Software Development c++ | |
Hi, I am trying to add onClick events to the different menu items in the menu strip... However, I am not sure how I should do about this... Let say if I have two top menu option: "Option1" and "Option2", each of them has a sub menu item called "Item1"... … Software Development | |
Need you help. I want to use [COLOR="Red"]List [/COLOR] and I don"t know how I make definition and fill it Thanks Sergey Software Development | |
I am begininner in DLL. I looked at following site to create dll in C. [url]http://msdn.microsoft.com/en-us/library/ms235636(VS.80).aspx[/url] Can anyone explain how to use the Mathfuncdll.dll in VB.net. Here is my VB code Public Class Form1 Public Declare Function MathFuncs Lib "MathFuncsDll.dll" () Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As … | |
Hi! This is my first time on Daniweb, and my first time coding a server, too. So I've tried many ways, and finally found a working one - or one that [I]was[/I] working, until recently. For an unknown reason, my receival of data doesn't work: The data is received, it … Software Development | |
The End.