132,726 Archived Topics
Remove Filter ![]() | |
Hi I'm trying to generate two random numbers using the ramdom class. However, I always get the same random number for both variables. Is there a way I can get two distinct numbers? Thanks. Software Development | |
Hi there. I am getting the errors below when I am trying to compile this code using DEV C++. [Linker error] undefined reference to 'CheckLeapYear'(int) [Linker error] undefined reference to 'CalcDayNumOfYear'(int) [Linker error] undefined reference to 'CheckLeapYear'(int) Id returned 1 exit status Please help. Below I have included my coding … Software Development c++ | |
hi there, my programme stores all the coordinates from a text file into an arrayList. And from the arrayList I want to read out 3 elements at a time. Each element being a pair of (x, y) values already in a arrayList, e.g.[...., 34.123 2.121,....]. Now I need to read … Software Development java | |
I have a project which deal with DAILY TIME RECORD, i want to add the time in my form to the current record. Here it is. if i enter my EmployeeID then click cmdFind the records will be given [CODE]Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdFind_Click() … Software Development visual-basic | |
Hi I need to write data which I have successfully read in from a text file, to a new file. The original text file contains data for many objects. The read in data is stored using stl vectors in 3 nested objects: Structure, Polygon and Point i.e. a Structure contains … Software Development c++ data-structure | |
Hi everyone, I want to intitialise an object to perform a certain computation and wait for the object to finish, but I'm not sure what the best way is to go about this. Here's a couple of methods to give you an idea of what I'd like to do: [CODE] … Software Development java | |
Hello1! First af all, excuse me for my bad english! I need to read user input that contains a certain command. My problem is that it depends on the command, the amount of strings i'll need to read. For example, there's a command with the following sintaxis: Command1 name = … Software Development c | |
#include <iostream> using namespace std; int main() { int i,j,k; int Matrix1[3][3] = { {1,2,3}, {4,5,6}, {1,2,3}, }; int Matrix2[3][3] = { {3,2,1}, {6,5,4}, {3,2,1}, }; int Matrix3[3][3]; cout << "Matrix 1: " << endl; for( i = 0; i < 3; i++) { for( j = 0; j < … Software Development c++ | |
I need a vb code as below This is my login page [ATTACH]16718[/ATTACH] This is my login page code Private Sub StudentLoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentLoginButton.Click Dim connection As New OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0;Data Source = ../Data/Student.accdb;") Dim command As New OleDbCommand("SELECT * FROM Student WHERE … Software Development dataset finance microsoft-access open-source vb.net | |
please can any one write the code without using pointers and in a simplest way... my question is finding substring position in main string .....these both strings you have to take at the run time and dont use any library methods.....you yourself have to write the code.....please give eply ASAP..... Software Development c | |
Hi everyone Could someone please help me, I need to loop through all the records in a column in my access database, Currently my program only views the first record in the column and does not go any further, I tried a While loop but I get a NullException error … Software Development microsoft-access open-source vb.net | |
Hi, I have requirement on shell scripting. I require scripts for the following 1) Full backup(application and DB) 2) incremental back up of files 3) restoring of files Please help me in providing the scripts. Thanks in advance Software Development shell-scripting | |
Hello All, I am not sure, if this is the right place to post this query. If not, please redirect me. Here is the brief explanation of I have a web application (GWT application) project in Eclipse. I have a server side code which interacts with LDAP directory for some … | |
Hi, I want to update records in the access table which is connected to vb. Can somebody give code for that please. (ie)when i click add button the entered fields should get updated in the tables and the form should be refreshed again to enter datas. Software Development visual-basic | |
I am trying to find a tutorial to lean how to use a JFileChooser in order to read a file and convert it into a tick mark chart. I seen it on a demonstration video on sun.com and I thought it looked awesome. Sadly, I tried to google for tutorials … Software Development java | |
Continuing from my previous program,the code now can update but can't insert.There will be an error on ExecuteQuery.The program is suppose to identify if the id exist or not.You can probably tell from the coding. Trying to insert but i'm not sure if i set dateID parameter correctly to check … Software Development | |
how do i print the 3 most common word that begins with capitals? also how do i count how many times they appear? Software Development python | |
Good morning, I've got a general question about overloading operators. Suppose you have a class that overloads the + operator and overloads the = operator, if you do something like this length3 = length1 + length2, will you automatically call both the overloaded + and = operator and if so, … Software Development c++ | |
Hello I am confused with an error saying. [QUOTE]Error 1 error C2664: 'const char *TiXmlElement::Attribute(const char *) const' : cannot convert parameter 1 from 'char *(__cdecl *)(void)' to 'const char *' c:\GameProject\TheGameProject\ContentManager\src\NodeWater.cpp 38 [/QUOTE] I have a method that returns a const char* as follows [CODE]class XMLNodeNames { public: static … Software Development c++ | |
[CODE]import java.io.*; import java.text.*; import java.util.*; /** * FileSentenceReader - Uses sound i18n method to parse sentences. * Created 12/03, Last mofified 09/07 * @author: Tony Dahlman */ public class FileSentenceReader { /** Reads through a text file, parsing it into sentences * in sound i18n fashion. Returns an ArrayList … Software Development file-stream java ![]() | |
Hoping someone out there can help. I have a fairly simple piece of code for viewing files [code] System.Diagnostics.Process.Start(tFileInfo.FullName) [/Code] Basically passes the path of a file to the process and let Windows deal with how to open it. Have also tried [code] Dim myProcess As New System.Diagnostics.Process With myProcess … | |
Hi...I am thinking of building a Word Processor in Java for my project... The problem is that there are many components in Java for that..like JTextComponent, JTextField, JTextArea, JTextPane, JEditorPane, and some styled Documents too... Can anyone say me which one to use considering the fact that My Project should … Software Development java | |
Hello, Me and my development team are not sure how to get a users username/uid from their login on the website into the C++ application. I use PHP Cookies and Sessions for that. Is there anyway that this could work? Thanks. Software Development c++ | |
hai, i have to calculate the internet bandwidth of the system using java program.... please give any ideas to acheve it........ thanks,in advance Software Development java | |
Hello everyone, I am not a professional at vb.net so help me out. I have made a small program and a want to add a serial control to it.... here is my code.... Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text … Software Development vb.net | |
Hey guys I'm writing a program that profiles the speed of different algorithms and I have been using the getTickCount() method in order to do so. However the program is reporting that the algorithm took 0ms. Doesn't have to be too accurate but currently 'RunTime' is coming up as 0. … | |
I need to sort my array in alphabetical order. The program inputs N words(strings) and outputs them in alphabetical order. I have started out by using specific words to make sure everything is working correctly. I need to change this to accept any input. Any help would be appreciated! [CODE]public … Software Development java | |
I am doing a Quiz Generator / Viewer project, which requries the use of a database for the numerous questions the teacher has to put in, as well as the user names, passwords, etc. I used Microsoft Access (2000, I think) because I found it easier to use. For the … Software Development c# microsoft-access open-source | |
Hello, I'm still a novice with this C programming and I got some problems with my program. I got 3 errors and 3 warnings with my Linked List. I attached an image for you to see. Someone can help me how to solve this problem? Here's my code: [CODE=C]#include<stdio.h> #include<stdlib.h> … Software Development c linked-list | |
Everyone, I am having a problem with trying to get this to prompt the user for the correct input. I would like to user to be required to enter numbers only after it prompts him/her at "How much money would you like to convert today? (above 100): " My question … Software Development c | |
I tried to do an excercise from Stroupstrup's book. The reader is asked to reverse the order of elements in a vector so that if originally vector[0] = 1, vector [1] = 2, and vector[2] = 3, then new vector has newvec[0] = 3, newvec[1] = 2, and newvec[2] = … Software Development c++ | |
HellOo I've started to write a simple code to seprates the input integer , for example , if tried to enter 4444 , then it will sperate them by a space to be 4 4 4 4 , so any idea? Thanks Software Development c | |
Please assist Iam getting this "13 C:\Dev-Cpp\main1.c [Warning] return makes integer from pointer without a cast " from the program below when i try to compile it. [CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> #include <time.h> #include <math.h> int main() { /*getLarger();*/ /*getRandom();*/ printDetails(); getch(); return /*getLarger,getRandom,*/printDetails; } int printDetails() { … Software Development c | |
Ok, I'm really getting helpful answers from this site!!! Here's my new C++ question: How much code can go in an initializer list? Can I call new SomeClass() to get a pointer to initialize something even if it wasn't in the original argment list? Can I do math on the … Software Development c++ | |
GUYS i want to make a program that used to enter 7-digit number and determine the largest , smallest and the median and average of the seven number i want also to display the entered number its equivalent in binary, ocatal and hexadecimal value the sample output must be like … Software Development c++ | |
>>> import g4 >>> g4.systs() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'systs' Why is that ? The code works ok from shell >>> import time >>> def systs(): return str(time.localtime()[5]) >>> systs() '18' g4.py ------- [CODE] import os import … Software Development python | |
Hello, I've a tricky issue with a use of my macro. I specify the max length of a string parsed by sscanf with a macro define. Since I write all of my macro value between parenthesis (if it is a number) It should fix the operation problems (it's why we … Software Development c | |
Dear all, I'm starting to get the hang of this C++ business, but I have one question that I just realized I don't have an answer to. Suppose I want to call a constructor from within a constructor to reduce redundancy in the parts that are identical. I seem to … Software Development c++ | |
Hello everyone, I am currently working on a code and I got stuck in a part. My algorithm is a text generator that operates on project Gutenberg and its flow is like this: Enter a sentence as input 1-Pick longest word of input sentence 2-Search the longest word of the … | |
Re: Extra zeroes at EOF when Inputing numbers in a NotePad file.txt into a VB program. Hi All, It sure looks like I am picking up unwanted carriage control or other non viewable characters as a zero or as two zeroes, when I enter a list of numbers (a sample) … Software Development visual-basic | |
Hello everyone.. how to write "75 18" (binary) in offset 004012BC? [CODE]Dim Fhand As Integer Dim Offst As Long Dim DataP As Byte Private Sub Command1_Click() Fhand = FreeFile Offst = &H4012BC DataP = &H4B + &H12 'this is 75 18(binary), is this the right way to write 75 18? … Software Development visual-basic | |
i need to search a all related title of the book in my database.. the code below search only exact title..where do i insert an * wildcard to search all related keyword title..ex. if i search computer, all titles that contains keyword computer will be displayed...thanks Adodc2.Recordset.Filter = "[book]='" & … Software Development visual-basic | |
Hello everyone, I'm trying to develop a program which read from a text file data. Then display one data line per time with 2 sec delay in an lcd which is connected throught the internet. I get a run time error'424' here myFile = File.ReadAllLines("c:\account.txt") '//load file. [CODE] Dim LineNumber … Software Development display file-system visual-basic | |
Hi, I know how to stor multiple values in has table with single key.Basically HOH But i am not able to do the same when the hash has multiple keys I am trying something like this and when i try to print it gives garbage value for the has keys.. … Software Development perl | |
After importing the script below as g4.py as >>import g4 followed by >>> pad ="ram:t/list.lha" >>> g4.extract(pad,"path") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "g4.py", line 52, in extract return takeaction.get(itemnw,errhandler)(fromvar) TypeError: errhandler() takes no arguments (1 given) This error does not appear when i … Software Development python | |
Environmental Variable: System variable(both) 1. A new GRAILS_HOME variable installed pointing to the Grails folder. 2.PATH: C:\Grails\bin appended . However I get an error message sayings grails is not a recognized command. I am a new to grails. The documentation says its very simple and I have tried different ways … Software Development java | |
[URL="http://www.daniweb.com/forums/thread305436.html"]http://www.daniweb.com/forums/thread305436.html[/URL] accidentally i posted in the wrong forum. Software Development sql visual-basic | |
I have a search a particular filename in my msaccess file . if i search through ID no , i am able to fetch the output . but if i am searching by comparing filenames then i am getting error [CODE] Private Sub cmdSearch_Click() Dim key As String, str As … | |
Hi, I am connecting a scanner to a USB port. The scanner works as a com port connection. Before I can talk to the scanner I need to know which com port the scanner is using. When I know which com port it is on I can wake it up … Software Development visual-basic |
The End.