64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Web_Sailor

Hi I have written a program in c++ and I feel that it is a bit slow for very large datasets like > 1GB. Well I am not that confident in char* since I have just started coding in c++. So can anybody help me to make it more efficient …

Member Avatar for dkalita
0
146
Member Avatar for mahela007

Why does this raise an error? I'm trying to add a value to the [0] index for the list [CODE]mylist=[] mylist[0]='hello'[/CODE]

Member Avatar for mahela007
0
78
Member Avatar for tryongliph

hello everyone, i'm wroking with a List<string> and i want to copy it's values into a variable string each but i keep getting an index error. i declared a class library which looks like this: [CODE] public class SalesData { public List<string> GetSales( string Clientname, string Empname, string Breadtype) { …

Member Avatar for Geekitygeek
0
195
Member Avatar for freddyfly

Hello all, I'm writing a program to keep track of my swim team's test set times. I would like to display the information in a table like form to edit all of the swimmers and times at once. I'm using this object: [code=c#] public class TestSetDisplay : INotifyPropertyChanged { string …

Member Avatar for sknake
0
1K
Member Avatar for EntangledDesi

When running this code --> [CODE]Private Sub cmdSquare_Click() Dim i i = InputBox("Please enter a number.", "Input Box") MsgBox "The square of " & i & " is " & (i ^ 2), vbOKOnly, "Result" MsgBox "The square root of " & i & " is " & Sqr(i), vbOKOnly, …

Member Avatar for makybe
0
297
Member Avatar for Krstevski

Hey guys, I have one stupid problem with the return value of one function... this is my code: [CODE=Java] private boolean check(String mail, int N){ // mail = The mail // N = The sum of the characters before the @ and including it him if(mail.substring(N) == "hotmail.com" || mail.substring(N) …

Member Avatar for JamesCherrill
0
117
Member Avatar for noble3ad

Hello all, I have written a program that stores randomly generated numbers between 0 and 19 into an array of 100 elements. I create a frequency array of 20 elements that shows the frequency of each number and print it's histogram. Now, I'm suppose to increase the frequency array by …

Member Avatar for mevanga
0
2K
Member Avatar for rdevi

Hi all ! Can anybody tell me why the following code is not copying the file from source to destination? Thakns in advance........ use File::Copy; my $source="C:\\shared\\8.4.1\\DXSI"; my $dest="C:\\r45"; my @files; my $file; opendir(DIR, $source) or die "can't opendir $source: $! \n"; @files=readdir(DIR); close DIR; foreach $file(@files) { print "\n …

Member Avatar for rdevi
0
163
Member Avatar for stan yost

I have an input box in my program and I want to be able to control the flow when the 'cancel' button is pushed. Any help would be appreciated.

Member Avatar for lanze12
0
107
Member Avatar for jqorso

Hi, I have some experience with C++ and FORTRAN. I would like to write software to help me visualize shapes in a GUI-based program. Where is a good place to start? Books, websites, etc that would help me get an idea of what is needed would be good. Thanks!

Member Avatar for K0ns3rv
0
108
Member Avatar for valonesal

This should be pretty simple, We have written a script that calls certain information from our database then we use a simple echo to show the information on our other .php pages. What we need to do is be able to show this same information on html pages as well. …

Member Avatar for valonesal
0
171
Member Avatar for iamsmooth

I'm not very math profficient yet, since I haven't taken enough Math classes at school, but we're covering asymptotic notation and running times of algorithms in class, which seems pretty mathy (yes mathy is a word). Anyways, first, I need to clarify: upper/lower bounds refers to max/min cost of an …

Member Avatar for iamsmooth
0
136
Member Avatar for ryno365

Hello daniweb. I'm working on a Poker Holdem Application and I'm trying to work on a view/jframe for it. Everything was running smoothly until something weird happened. After deleting an old hand-coded MainFrame which extends JFrame file, I tried to create a new MainFrame/JFrame file but this time using netbeans …

Member Avatar for ryno365
1
119
Member Avatar for mr_scooby

Hello, I have 2 php forms, the first that takes the input and sends it to the second form which checks to see if the fields are empty. What I have to do is if both fields are not entered is return to the main page and highlight the field/s …

Member Avatar for mr_scooby
0
143
Member Avatar for web3

I have a register and login code, but i don't know when the user register to automatically make user page.Can anybody help me?

Member Avatar for Will Gresham
0
133
Member Avatar for itslucky

Dear Friends, i have developed a software which have Mdi contianer, the problem is that, 1. when i click on the empty space of the main form i.e (Mdi container FORM) all other windows goes behind this Mdi container window *I would like then to stay on top of the …

Member Avatar for itslucky
0
136
Member Avatar for MichaelSammels

Does anyone know how to change the colour of strings using x86 NASM Assembler? I've found tutorials like this: [CODE] mov ah, 09h mov al, 97 mov bx, 100b mov cx, 01h int 10h [/CODE] Which prints the letter "A" once in the colour you choose. This is a handy …

Member Avatar for NotNull
0
4K
Member Avatar for axn

I am migrating scripts from UNIX server to a Linux. In the perl script it calls rcp to transfer files. It worked ok in UNIX but not in Linux, which has scp, I dont want to do scp now as this is a temporary Linux Box I am using. I …

Member Avatar for axn
0
915
Member Avatar for unsure

I have been assigned to write an algorithm. I would like to know if there is a way I can get some of you to look at it and tell me if I am correct. I know according to the rules I am not just suppose to post my work. …

Member Avatar for unsure
0
125
Member Avatar for makymakaru

Is pass by value and call by reference the same? I mean i know theres no call by reference in C but there is similarity int he output of the two isn't it? why do we use call by value and pass by value? what are its uses?

Member Avatar for Tom Gunn
0
103
Member Avatar for Jennifer84

I wonder something about finding a specific character in a string. What I am trying is to find "*" and if that character is found in the string, I will write "Found" to a file. When running the code below. All this is happening but the same thing is happening …

Member Avatar for dpreznik
0
147
Member Avatar for geoffy0404

im just so stressed and having a mind block.. i have code please help [CODE]#include <stdio.h> /*pre-defined processor statements*/ #ifndef __OPERATION__ #define __OPERATION__ #define TOTAL 0 #define ADDITION 1 #define SUBTRACTION 2 #define MULTIPLICATION 3 #define DIVISION 4 #define MODULAR 5 #endif int main() { /*assign the variables*/ int num1 …

Member Avatar for Aia
0
128
Member Avatar for vaultdweller123

Hi everyone....I have a problem on my php date function... and i hope someone will help.... the PHP date function outputs incorrect results... It outputted incorrect date which is 8 hours late.... and i found out that the timezone has been set to UTC. So ive search the net and …

Member Avatar for tarunkhatri
-2
136
Member Avatar for revski

hi i have a question about formatting combo boxes. i have 1 combobox on the form with a label and a calculate button, the combo box is layed out like this 180 / 50 like a tyre size. The calculation to be performed is the 1st number X the 2nd …

Member Avatar for revski
0
149
Member Avatar for mldardy

I have a shopping cart page where if an item is Real Estate Forms 2d then there will be a sales tax assessed. If it equals any other item there will be no sales tax assessed. The problem I am having is I can't get a sales tax assessed for …

Member Avatar for mldardy
-1
126
Member Avatar for Ineedhelpplz

I have already completed my hex to integer conversion function which works properly with the provided driver. However, my integer to hex function gets stuck in an infinite loop and I have no clue why. The red section of my code is the function which is giving me problems. Everything …

Member Avatar for Ineedhelpplz
1
384
Member Avatar for jimSp

I have a newsletter that sends out a notification to members with in 30 days of expiring. The way it works is the script populates an <option> from the members table who fall with in the thirty days. All I want to do is be able mask the $to recipients …

Member Avatar for jimSp
0
170
Member Avatar for john_beginner

hello all, as i know that if we don't want to specify the static path of databse then , we can use "Server.mapPath" like,( in any .aspx page ) [code] str = "Data Source=.\\SQLEXPRESS;AttachDbFilename=" + Server.MapPath("student1.mdf") + ";" + "Integrated Security=True;User Instance=True"; [/code] but my question is that , why …

Member Avatar for john_beginner
0
366
Member Avatar for vinnijain

Hi!!! I am using following code in which I am generating the latex format. Here I want to use the combination of characters[A-Za-z], numbers[0-9] ,special charactes(like Ï€ ,θ ,α ,β ,γ ,°,+, - ,×,÷,√ ,(,)etc) ,decimal numbers. For entering special characters I have used toolbar Can anyone tell me how …

Member Avatar for vinnijain
0
337
Member Avatar for MacAdam

Hi, First of all, I'm no database expert. See me as managing a project where this problem occurs. We are building a system that will enable us to roll out Windows Patches automatically to all Windows systems we manage. We use WSUS on SQL Server 2005/SQL Express. The application will …

Member Avatar for MacAdam
0
159
Member Avatar for jrosh

I want to find the capacity of my data fields....how can i calculate capacity of varchar(10) or int(15)...???? (in kilobytes s or megabytes s) please help..t hankx in advance.

Member Avatar for jrosh
0
119
Member Avatar for mjenn2

We've had an old website move server but am having lots of problems with it, plus it's been nearly two years since I did any PHP so any help would be greatly appreciated. Have sorted some problems out but am stumped by this one. Have stripped the code down to …

Member Avatar for mjenn2
0
98
Member Avatar for nadnakinam

Now code looks like this... [COLOR="Red"][B]No links(page navigaton links) working...[/B][/COLOR] i think(not sure) problem @ line no 55, 66 & 77...(query part of URL). [CODE]<?php //CONNECTION TO DATABASE! $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="accounts"; // Database name $tbl_name="login"; // Table name $tbl1_name="details"; // …

Member Avatar for nadnakinam
0
139
Member Avatar for Reprise

My code so far opens a text file in a particular format and reads in the data into a structure called salesRecord. There is no problem there. The problem arises when I write the data to a new binary file. Here is the structure: [code=CPP] struct salesRecord { int custNo; …

Member Avatar for dkalita
0
8K
Member Avatar for Sapreaver

I have been coding for a little bit in VB mostly and decided to try C right all is dandy until I try using a function I am getting a conflicting types error in function encrypt here is my beautiful code [CODE]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) …

Member Avatar for Sapreaver
0
5K
Member Avatar for kool.net

how to i use master & detail table concept using datagridview in c#.net.

0
84
Member Avatar for athalia

hi i'm using asp.net to create an online order form. i have 4 textboxes and i want to save the information from the textboxes to my database on click of a button. dbName = BikeOrderdb txtQty, txtBikeId, txtBikeName, txtPrice [B]Can you please help me with the code for connecting textboxes …

Member Avatar for athalia
0
116
Member Avatar for javaAddict

I encountered some code at work that got me thinking. There was a util - class that had some methods that had nothing to do with the state of the class. They were all "util" methods. Meaning that they could all be declared static with [U]no[/U] problem because the only …

Member Avatar for javaAddict
0
127
Member Avatar for vishalanuj

[CODE]package Add; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class AddSuccessAction extends Action { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { …

Member Avatar for vishalanuj
0
259
Member Avatar for Ghodmode

Is it possible to iterate through an anonymous array of strings with a for loop? Here's what I'm trying to do:[code]for ( i in ['country', 'city', 'state'] ) { doSomethingWithString(i); }[/code] What I want is the string, but what I'm getting is the index number of the array, which I …

Member Avatar for Troy III
0
1K
Member Avatar for hodaAgh

I've written a program like the follow: [CODE]int main () { . . . . ifstream file1; ifstream file2; ofstream simiralities; simiralities.open("P(0)_P(1).txt", ios::app); file1.open("test1.txt", ios::in); while (!file1.eof()) { . . . file2.open("test2.txt", ios::in); while (!file2.eof()) { . . . . } file2.close(); } simiralities<<number; file1.close(); simiralities.close(); return 0; }[/CODE] the …

Member Avatar for hodaAgh
0
146
Member Avatar for sonia sardana

[code] public partial class FrmOnline : System.Web.UI.Page { string Query; SqlCommand cmd; SqlConnection conn; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { OpenSQLConnection(); SqlCommand cmd = new SqlCommand("select * from Info1 where UID=1", conn); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { dr.Read(); TextBox1.Text = dr[0].ToString(); } } …

Member Avatar for shenulal
0
111
Member Avatar for vinnijain

Can anyone tell me how can I enable one and only one whitespace to be entered in the textbox such that user can press spacebar only once while entering the string in the textbox and not more than once........... Kindly provide me some solution.............

Member Avatar for vinnijain
0
3K
Member Avatar for cuzner

Apologies for the huge post! I am having trouble with ajax right now on my site: (This site is only a first draft and has a few nav problems with the flash - will sort it soon) My main problem is I have an Ajax code on the index page …

Member Avatar for Thirusha
0
201
Member Avatar for mansi sharma

I want to change cursor type & backcolor when mouse moves over a td,Suppose I want to chnage the cursor to Hand, & backcolor to Blue on mouse move, & on mouse leave i want to change the cursor to default..How to do it?????????

Member Avatar for Dhaneshnm
0
195
Member Avatar for Kellbell147

I had to take computer science for my major, but I have no idea what's going on in this class. I have to write an algorithm that reads in ten positive integers from the keyboard (upper size limit is 99). Output the additive total of the ten numbers and also …

Member Avatar for Drlionheart
0
324
Member Avatar for kool.net

hi, can any one tell me how to autocomplete a textbox using mysql database's data in c# .net 3.5 & how to use one form's value to other forms in windows application in c#.net & how to use master and details table concept here using c#.net. please help me......

-1
81
Member Avatar for Dlearner

Hi , I want to know, how to implement vtable in C. This is achieved through virtual functions in C++. I feel we need to do what c++ compiler internally does, But i am not sure on the entire implementation. Thanks.

Member Avatar for Dlearner
0
5K
Member Avatar for NinjaLink

I am currently having problems with my getline in main. Whenever I use it, it prints out the last word in my input file twice. I do not know how to get rid of it. Any help is appreciated. [B]Input file:[/B] noon dog race car cat mom bob [B]Current Output:[/B] …

Member Avatar for NinjaLink
0
100
Member Avatar for Jayakrishnan_gk

I want the cursor to be in a particular textbox when the page loads. I achieved it using document.formname.formname.focus() But the textbox has a default text. And i want it to disappear once the user starts typing. how can i get rid of this default test ?

Member Avatar for Jayakrishnan_gk
0
136

The End.