43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tomo_uni

I want to retrieve dates between two dates the user has specified e.g. say the user enters the dates 01/10/2010 amd 05/10/2010 i want to be able to get the dates inbetween the dates entered by the user e.g. 02/10, 03/10.... What possible way is there to do it? Thanks …

Software Development visual-basic
Member Avatar for tomo_uni
0
159
Member Avatar for Khodz

So i'm trying to make a module for my program that returns a multidimensional array based on another array in the form of a command-line argument. Here is the module that's keeping me up at night: [CODE]public static double[][][] getDimensions(String [] args) { final int l = args.length; double dimensions …

Software Development java
Member Avatar for Khodz
0
172
Member Avatar for buster2209

Whilst I can find MANY examples of how to split a string based on a certain character within that string, how can I split a string based on the no of chars For example, I have a string that is 20 chars long but I want to create a newline …

Software Development
Member Avatar for buster2209
0
103
Member Avatar for buster2209

I'm wanting to automatically upload login details to a router then download the relevant page into a textbox in c sharp. How can this be done?

Software Development
Member Avatar for buster2209
0
101
Member Avatar for Traicey

Guys I have a textbox, I wana enter 4 digit and when I press enter it should show a label I have add the label but its not working the code I have look more like this [ICODE]if(e.KeyChar == 4) { this.Controls.Add(label); e.Handled = true; }[/ICODE] Any help will be …

Software Development
Member Avatar for tawadchai
0
96
Member Avatar for AngelicOne

I want to find out whether the password is incorrect for the username. I'm using sqldatareader.

Software Development
Member Avatar for AngelicOne
0
125
Member Avatar for mogaka

my application icon looks ugly-like a paper and i would like to change it to something like globe icon or any suitable image.Am programming using visual studio 2005 and the program is written in vb.net.Can somebody save me ?

Software Development vb.net visual-studio
Member Avatar for Oxiegen
0
93
Member Avatar for jammiedude

Ok im trying to get my head around this and i could do with some input from someone else, brains about ready to shut up shop! So im looking at LINQ to try and pull off records where a confirmed field is equal to null. The confirmed field is a …

Software Development
Member Avatar for jammiedude
0
891
Member Avatar for nammae

Hi everybody, I am a newbie in C#. I have a fragment code but it doesn't run. Here is my code: [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int number; string type; number = 5; if (number …

Software Development
Member Avatar for nammae
0
108
Member Avatar for VBNew

Hi, I need to have a status bar at the bottom of the screen which will show the login name and project after I login. I have no idea how to start in VB6, could you help? I have attached a sample. Please help! Thanks!

Software Development visual-basic
Member Avatar for AndreRet
0
90
Member Avatar for ehsantl

Hi guys I'm trying to finish my assignment, I stuck in a weird situation. I'm trying to create a pointer a linkedlist. This linkedlist contains pointer to a user-defined objects (City) and I'm trying to add City to this linkedlist and then iterate through the linked list to find and …

Software Development c++ linked-list programming-construct
Member Avatar for ehsantl
0
172
Member Avatar for TinhornAdeniyi

I cant figure out what is wrong with this code These are the instructions [ATTACH]17304[/ATTACH] [ATTACH]17305[/ATTACH] [ATTACH]17306[/ATTACH] and this is my code [CODE]#include<iostream> #include<fstream> #include<iomanip> using namespace std; void Get_Info(string[],int[][3]); void Get_Average(int[][3]); void Prt_GradeBook(string[],int[][3],int[]); int MakeUps(int[][3]); int Grades[5][3],average[5]; string Students[5]; int main() { Get_Info(Students,Grades); Get_Average(Grades); Prt_GradeBook(Students,Grades,average); cout<<"There are"<<MakeUps(Grades)<<"Makeup(s) to arrange. …

Software Development c c# c++
Member Avatar for VernonDozier
0
197
Member Avatar for iqlas

[COLOR="Red"]could any one explain me this code pls[/COLOR] [CODE] Imports System.Runtime.InteropServices Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose …

Software Development vb.net webcam
0
141
Member Avatar for muraj

. Goal is for user to input 2 numbers then get a multiplication chart with a row and column. Example: user enters 3 and 5, then should print ...3 4 5 (disregard the dots) 3 9 12 15 4 12 16 20 5 15 20 25 My program will not …

Software Development java
Member Avatar for muraj
0
1K
Member Avatar for flowerzink

Hello, I have a problem, and I'd be grateful if someone could help me solve it. It's divided in two parts: 1. Record a sound using only code (Doesn't have to be in c++) 2. Being able to use the sound of a hanclap and use it to trigger an …

Software Development c++ linked-list
0
93
Member Avatar for ana_1234

Hi everyone, I have an assignees that I've been working on and I'm stuck on the last function. use the function void Increment(int numDays = 1) This function should move the date forward by the number of calendar days given in the argument. Default value on the parameter is 1 …

Software Development c++
Member Avatar for brandonrunyon
0
249
Member Avatar for ankilosado

Hi, there, I am also very new to Java. For class, I have to create an structure that reflects that of a document stored in a plain txt file. The hyerarchy of the classes is: Class document is made of //complex objects class Page objects, that are made of class …

Software Development java regex
Member Avatar for ankilosado
0
482
Member Avatar for Fadam360

Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 …

Software Development java
Member Avatar for muraj
0
169
Member Avatar for VBNick

Hi. I was wondering if someone could offer a bit of advice on this. I have made a web server, and everything seems to be done correctly as far as I can tell. It works and loads web pages just fine. The problem is, that when big files are requested …

Software Development c++ client-server web-browser web-server
Member Avatar for VBNick
0
285
Member Avatar for Peter_morley

Ive pasted the code for actor.cpp, date.cpp and the main function. This is alot of stuff I pasted but I believe it is necessary to show my problem. At first I get the date of the individuals birth and that gets displayed and everything turns out as it should. When …

Software Development c++
Member Avatar for Peter_morley
0
152
Member Avatar for Anon17

At the moment, I have the following to do MySQL queries: [code] MySqlCommand Command = new MySqlCommand(Query, SQLConnection); IAsyncResult Result = Command.BeginExecuteReader(); return Command.EndExecuteReader(Result); [/code] This is a static command in a server in the database class, which includes a static connect/disconnect function (used once when the server starts and …

Software Development client-server mysql
Member Avatar for Anon17
0
183
Member Avatar for coolboym99

I'm writing up a program for a class I'm taking where I need to make a linked list stack & queue. Right now I'm not quite done, but I'm having problems calling the functions from the .h file. What's happening is in the while loop, I'm trying to get data …

Software Development c++ linked-list queue
Member Avatar for coolboym99
0
202
Member Avatar for Fadam360

Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 …

Software Development c++
Member Avatar for VernonDozier
0
81
Member Avatar for plasticfood

[CODE]import java.util.Scanner; public class Inti{ public static void main (String [] args){ Scanner kb = new Scanner(System.in); System.out.println("enter name: "); String input = kb.nextLine(); char name1 = input.charAt(0); int blank = input.indexOf(' '+1); char name2 = input.charAt(blank); int lastBlank = input.lastIndexOf(' '+1); char name3 = input.charAt(lastBlank); System.out.println(name1 + "\n" + …

Software Development java
Member Avatar for plasticfood
0
109
Member Avatar for Kanoisa

Hi guys, Im working on a small console app to seek out all those pesky and disk consuming .ncb files and debug folders left from VS and destroy them so the space i need to backup the files is considerably reduced. I have got my recusrion algorithm to scan as …

Software Development algorithm c++
Member Avatar for Kanoisa
0
2K
Member Avatar for |hex

how would i be able to make sure the user inputs the correct data. for example, if i wanted a command in my code to be run (filename). how can i display a message if the user forgets to add the name of the file or the 'filename'. i hope …

Software Development c++
Member Avatar for |hex
0
370
Member Avatar for neoraghav

Hi, I want to create a log file that captures all the actions happening...anyway i got code for that from internet. Now what i want to do is, make that [COLOR="Red"][U][B]file read only[/B][/U][/COLOR] so that the data is not modified by external application or user. [code=c++]log(char* msg) { time_t now …

Software Development c++ ios
Member Avatar for neoraghav
0
2K
Member Avatar for jbisono

Hi all, i have a little problem here trying to print a crystal report document using the PrintToPrinter method. This process is trigger by the event click in a asp:button control, basically i just saying this. [code=csharp] rpt.PrintOptions.PrinterName = @"PathToPrinter"; rpt.PrintToPrinter(1, false, 0, 0); [/code] this solution works fine if …

Software Development
Member Avatar for jbisono
0
340
Member Avatar for alexchen

How can I create the map size, [CODE] #include <iostream> #include <fstream> #include<string> using std::ifstream; bool msize(int Height,int Width){ //add code return true; } bool draw_map(char* Filename,int Width,int Height){ if(Width<1||Height<1) return false; msize(Height,Width); ifstream file; file.open(Filename); if(file.is_open()){ while(!file.eof()){ for(int x=0;x<Height;x++){ for(int y=0;y<Width;y++){ if(c!=']'){ file >> map[x][y]; file.get(c); }else map[x][y] = …

Software Development c++
Member Avatar for daviddoria
0
174
Member Avatar for samm22

My professor has given me the code and I wanna run it. I use Visual Studio2008. Code contains data structure "queue". He defines one queue as "queue<int> Q;" But my compiler gives an error and says "error C2065: 'queue' : undeclared identifier" Do we need any separate header file to …

Software Development c++ data-structure queue
Member Avatar for Fbody
0
260
Member Avatar for aska07

Hi All, I am developing a window form where in my form, i have 3 buttons, insert, delete and update, a SAVE menutoolstripbutton and a datagrid to display the data get from database. now I want is for example whenever a user want to insert a new data (click the …

Software Development vb.net
Member Avatar for aska07
0
598
Member Avatar for varun mca

[B]Hello sir.. I want to know that if there is any difference between Parameter and Argument of a function[/B]....?

Software Development c
Member Avatar for creeps
0
120
Member Avatar for TayKaye

I am needing help figuring out how to get this program to function correctly. The program is developed in order for a user to type in any number and it will tell if the number is prime or not. This works, however, I cannot figure out how to get it …

Software Development c++
Member Avatar for caut_baia
0
151
Member Avatar for swathys

hi, Does anyone know how to accumulate total in sql.I have made a function to add a amount to sql.i wants the amount which i have add to be accumulated in total column in sql.How do i make it work. please help [CODE] Public Function Update_TotalBalance() As Boolean Dim myConnection …

Software Development sql vb.net
Member Avatar for swathys
0
118
Member Avatar for mrbungle

My form fields will populate an Excel workbook. No problems there. My question is how do I call it to enter the data into an Excel template I have already created? The location of the template sits in my C drive- C:\DailyLogs\DailyLog.xlsx Here's my code so far: [CODE]# ' Here …

Software Development vb.net
Member Avatar for mrbungle
0
2K
Member Avatar for varun mca

[B]hello sir.. I am not being able to make a program that accepts any number and displays it in words.... for example: when user enter 3456 then output should be three thousand four hundred fifty six.... 12 then print twelve.....9 then print nine...and so on....[/B]

Software Development c
Member Avatar for varun mca
0
93
Member Avatar for Rastabot

Hello, I'm trying to make a program that will multiply 2 matrices using shmget() and fork(). For example, I would need to multiply a 64 x 64 matrix using 4 processes or 16 processes, and the multi-processes will be created using fork. Each process will calculate a partition of the …

Software Development c
Member Avatar for sree_ec
0
1K
Member Avatar for sandawg

First I apologizeif the answer to my question is somewhere in the hundreds of posts listed. I am new to java and basically clueless. I am suppose to pass an array to a method and then sort the array. I get an "illegal start of expression error when attempting to …

Software Development java
Member Avatar for Ashok Agarwal
0
129
Member Avatar for maichy

hi guys thanks for all your help previously,i am having a problem displaying the grand total.this is the scenario: i have several buttons which are used to compute various taxes e.g D1, D2,D3....subtotal i would like when i compute using D1 i get the total displayed,if i press d2 i …

Software Development visual-basic
Member Avatar for jhai_salvador
0
148
Member Avatar for gunbuster363

I am studying further about C++ and come across a topic which describe method to avoid multiple inclusion of header file, which may cause compilational problem. But I never seen such problem, I've tried to mimic the situation with the below files in Visual C++ 2008 express, no error prompted …

Software Development c++
Member Avatar for gunbuster363
0
1K
Member Avatar for Akilah712

Hi, I am working on a program for one of my courses. The program requires the use of a command line argument. I am using JCreator and as such my code does not work. Is it not possible to run a program with a command line prompt from JCreator? Thanks

Software Development java
Member Avatar for masijade
0
1K
Member Avatar for Wumbate

Hi, I have a UI built in Tkinter. The user can type in some inputs and hit "Run" When the "Run" occurs, a program executes that could take 30 seconds or more! The problem is that this blocks the graphics updating. At the beginning, I set a Label to "Running …

Software Development python tkinter
Member Avatar for D33wakar
0
29K
Member Avatar for chun0216

Hello, I am trying to run a program that uses raw file as an input file and then use a function that requires input file data into uint8_t array type argument. The problem is that when I use the sample input raw file, it works perfect but when I use …

Software Development c++ data-structure file-system
Member Avatar for chun0216
0
138
Member Avatar for hsquared

i was able to make an add functin for a binary tree. in my code, i am able to add a string for the name, university and and int value for an id. now, i need help being able to search the binary tree for a specified id, then return …

Software Development c++
Member Avatar for chiwawa10
0
103
Member Avatar for bettersaid

helo! can anyone help me in automatically saving files with fixed filename in python? the OUTPUT would be like this: FILE- A01.txt FILE- A02.txt FILE- B01.txt File- B02.txt i was hoping that i could save a file automatically after making some changes in the older version. Thank you, Gene

Software Development file-system python
Member Avatar for bettersaid
0
445
Member Avatar for cguan_77

hi guys, need your help. got this code from this site: [url]http://www.vbdotnetheaven.com/UploadFile/prvn_131971/mailvb11172005000829AM/mailvb.aspx[/url] [code] public static void Send(String from, String to, String subject, String messageText). SmtpMail.Send("mcb@mindcracker.com", "webmaster@mindcracker.com", "Subject", "Message body"). [/code] just need your help guys, what's the equivalent code of this in vb express 2010. Thanks. :)

Software Development vb.net
Member Avatar for cguan_77
0
329
Member Avatar for gingerfish

Hello I have a code here. it generates random 2d array [B]kMean[2][3][/B] and then this program calculates the distance between random generated [B]kMean[2][3][/B]s and [B]data[][][/B]. but the problem is, when the random kMean is 1, then it calculates the distance, but when the number or kMean becomes more than one, …

Software Development java
Member Avatar for gingerfish
0
136
Member Avatar for Emver

Hey, ive been creating this number guessing game, it works perfectly but I need to add a limit to the amount of turns a user can have. Any help would be greatly appreciated. [CODE]Module Module1 Sub Main() 'This program plays a simple number guessing game. Dim RandNum As Integer Dim …

Software Development vb.net
Member Avatar for crapulency
0
247
Member Avatar for Wootens

Hey guys, I recently wrote this program and it compiles and works but I have two issues that need addressing and I'm a bit confused on how to solve them. Question 1) [CODE]System.out.println("What's your name?"); name = Scan.nextLine(); System.out.println("How old are you?"); age = Scan.nextInt(); [/CODE] I always thought Scan.next …

Software Development java
Member Avatar for Wootens
0
246
Member Avatar for eduard77

I have an exercise again and I got blocked again. The exercise is: Daphne invests $100 at 10% simple interest. That is, every year, the investment earns 10% of the original investment, or $10 each and every year: interest = 0.10 × original balance At the same time, Cleo invests …

Software Development c++
Member Avatar for eduard77
0
233

The End.