199,114 Archived Topics
Remove Filter ![]() | |
Hey everybody, I have multiple buttons on a form, I need to make them all have the same click event, which displays the name of the sender button. I knew that in order to make them have the same event handler, I should make there delegates refer to the same … | |
Hello, I'm sorry if this has been asked before, but I didn't seem to find any answers. I'm trying to write a function that would delete a specified number from a singly linked list. This is what i've got so far, but it's not working: [code=c++] void remove(list*& start, int … | |
hi friends i have created a code which searches for the particular word from two different files and creates a new file with the records in it but i am not able to search digits from the string the code of mine goes here: [code] StreamReader sr = new StreamReader(@"C:\Documents … | |
I have this data 1 2 3 4 5 6 7 8 9 10 0 1 0 9 0 0 5 0 0 3 How to count rowwhich have value only? Which the answers is only 4 column which have value? something like this I do. [code=C++] a[i]=total; total=a[i]+temp; myfile<<"\t"<<total<<setw(5); … | |
DateTime.UtcNow gets the system date and time, so I was wondering if there is any function to extract only the syetem time and not the date. If not just in case any one knows how to do that... plz revert back... Thanks in earnest... | |
I had exported a table containing jpeg images in a ms access database to mysql using myodbc. The images were stored as mediumblob type in mysql. I now want to display the images stored in mysql as mediumblobs using php but am unable to do it. can anyone suggest the … | |
I have a structure in which there are three float variables, and in a bigger program, I'm using an array of these structure objects. Now, I thought that each time in a loop when I was using values of these structures, I was creating a new copy of those objects … | |
I wrote this a little while ago... I know i need to add a file check so overwrite does not occur but I am interested in learning to write clearer and less amatuer code. Any serious note would help... this program creates a file with an input name, saves text, … | |
Hi all, I have created a VB Script file that runs when the user logs in, and writes the username and date & time to a log file. The vbs file as well as the log file is a network location that contains more than 3 users. I would like … | |
Hi Guys, I'm trying to read a while with the following formate 1999 43558047 2000 59068567 2001 67098709 ......................... ........................... I'm not sure how many records are in the file. Now I want to read this file using struct mystruct { double x; //this would be first column double y;//this … | |
In an attempt to improve my coding skills, I decided to program a very simple DOS calculator. However, when i try and compile the program, I am presented with with following: [CODE]------ Build started: Project: Basic Calculator, Configuration: Debug Win32 ------ Compiling... Basic Calculator.cpp c:\documents and settings\my documents\visual studio 2008\projects\basic … | |
Hi all The string_in function below is intended to take two string pointers as arguments and if the first is contained in the second, return the address at which the contained string begins. [CODE=C]#include <stdio.h> #include <string.h> #define TEST "This ain't a drill" char * string_in (char * str1, char … | |
hey im real sorry about this but none of the forums ive looked at help me much. basicly ive created a database for usernames and passwords and i want to make vb check the database for passwords and usernames. im usine vb6.0 if any one could just tell me the … | |
i want code by visual basic 5 (search code for db by access connect with vb5) because i made one but search only give me one result on(( first one only)) for example -- after i enterd data in db and then i want search for any filed such i … | |
Hi, I am very new to php still trying to find my way around it, i got this code which will pull everything off my database and display in one endless table across the page is there a way i can split it and display. [CODE=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
Hi all, Could anyone please check my sample code because I can't see the final result? Private Sub Form1_Load() Call AnyNumberArguments Call AnyNumberArguments(1) Call AnyNumberArguments(2, 3) Call AnyNumberArguments(4, 5, 6) Call AnyNumberArguments(7, 8, 9, 10, 11, 12) End Sub Private Sub AnyNumberArguments(ParamArray x() As Variant) Dim y As Integer Print … | |
Perhaps someone can help me... I'm trying to figure out how to transfer Access data to Word documents so that the data for each contact will transfer with a command. Does anyone know how to do this? | |
I have a major problem. I need to write a program using linked lists that will display... A B C D E F and then... F E D C B A without using a tail pointer. When I run the program, it displays the first set of letters but crashes … | |
I have a problem installing .net on my machine.It gives the error massage:Install security updates and I don't have facilities to download security updates.Is there a compiler for c# free of charge ,can enyone post a link. | |
Hi guys! I have started writing a program for phonebook which will add, delete, search, display and sort the information of a person. information will include firstname, lastname & phonenumber. now I was testing the first part of the program which adds a contact. but my loop is not doing … | |
I am new to C++ I recently been trying to write an Game data base in C++ but I succesed in nothing though the Code seem to be all right it always shows me error messages this is the Source Code i created for this program: [CODE] #include<iostream.h> #include<conio.h> #define … | |
This came up in another thread. I gave some advice that I'm not longer sure of. Rather than hijacking that thread, I figured I'd start my own. I advised against using the == in that thread. The context was this: [code=cplusplus] string subChoice =""; getline(cin,subChoice); if (subChoice == "100") { … | |
I need help with an assignment I am working on. Here is the assignment: count all the even numbers between X and Y, where X and Y are entered by the user. Do not include X and Y. EXAMPLE 1: Please enter an integer: 0 Please enter another integer: 10 … | |
Im very well a beginner and I cant quiet grasp classes. I found that this topic is all over forums and I have decided to give it a whirl and I am stuck. Here is what needs to be done. You should create a class called ComplexNumber. This class will … | |
I know it has to do something with my main and around the "how many classes" but my program runs without any errors or warnings but blows up so I was wanting to know if someone could take a look at it..... I know I havent worked on the gpa … | |
Hi i am fetching value from a table and assigning to data grid. one of column contains date and time, which is not showing me complete value in data grid. When i test it using msg box on click. msg box prompts right value. here the msg box has input … | |
Hi, I have the following file input:- [CODE] 542 4795 61 543 4795 61 544 0 0 545 292 2 546 292 2 547 0 0 548 0 0 549 0 0 550 111 4 551 0 0 552 0 0 553 4614 63 554 4614 63 555 0 0 … | |
this program is inorder to split a string like krishnamoorthy into krishna & moorthy by splitting it at m i tried the following coding.the compiler pointed out an error saying that for cannot be expanded inline.what shud i do to rectify the error?this [code=cplusplus] #include<iostream.h> #include<string.h> #include<conio.h> class string { … | |
I thought I had posted this earlier but... I am working on a sorting problem using counting sort but am getting a crash when I run the program. I have fixed some of the problems but I am still missing something. I just need a extra pair of eyes to … | |
I wonder something about this code that read(ifstream) a .txt file. In my file I have these 2 lines: [B]Hello,1000,Yes,walker How,2000,No,walker[/B] So with my code I use getline with a delimiter to put these 4 different strings/int to variables. The code works fine for the 2 first, wich is "Hello" … | |
ive been writing a c++ program to make a quiz but i couldn't figure out about how u can put a timer. the timer should actually countdown from 20 to 1 and once the time is over it has 2 move on to the next question and no points should … | |
[QUOTE]Hi, I have an assignment where I need to take a string and display it in reverse order and then convert anything in upper case to lower case and vis versa. I have the first piece of the code, but I'm not sure where to begin with the second piece. … | |
I'm getting the following error on run Parse error: syntax error, unexpected T_VARIABLE in /www/99k.org/g/a/t/gatewayarcanum/htdocs/process.php on line 2 the code i'm using is [code=php]<? php $name = $_POST['name']; $email = $_POST['email']; $how_found = $_POST['how_found']; $comments = $_POST['comments']; mail("psidonwav@gmail.com", "Contact Form Submission", "Name: $name /n E-mail: $email /n How Found: $how_found … | |
When is it better to use random-access ? When is it not? When is it better to use sequential-access? When is it not? So far I'm only sure to use random access in a situation where I'm dealing with a fixed number of records. For example a record of rooms … | |
Okay I need to be able to limit the input parameter to one!!! Example Enter a number 1 fine!! Enter a number 1 2 No good!! Help please!!! | |
HI! I need help! please somebody help me! I need program Sudoku in language C or C++, but I can't programming. please send me source code thanks very much! this program is very important for me, because I need this in school | |
Hi, I'm wondering how your supposed to find out a widget's width in tkinter.. Little example code to explain (doesnt do anything at all) [code=python] class CustomWidget(Tkinter.Frame): def __init__(self, master, **kw): apply(Tkinter.Frame.__init__, (self, master), kw) self.masterWidth = # ???? Totally stuck, tried obvious things like master.width class MainWindow(Tkinter.Toplevel): def __init__(self, … | |
Count the words of each line in a file. No suppositions will be made regarding the maximum length of a line. And my not working c code: //Count the words of each line in a file. No suppositions will //be made regarding the maximum length of a line. #include<stdio.h> #include<string.h> … | |
Hello this statement below works when the date is set as 02/02/2008 but when i enter it like this 2/2/2008 it dont search the date, in the database the date is set as 2/2/2008 because i need it in that format. i want to search dates from and to like … | |
I am a student of b.tech with computer science And I am using a "JSP BASED LIBRARY MANAGEMENT SYSTEM " project which I have downloaded from a website("sourceforge.net")..But I m facing problems in using it succesfully. I have installed : a.tomcat 5.0 b.mysql5.0 c.j2sdkee1.3.1 d.jdk1.5.0 2.set all the envoirment variables … | |
I have a program that creates a SQL statement based upon a treeview list that the user makes. The SQL statement looks like this: [code]CREATE TABLE Test ( Test ID PRIMARY KEY, Check1 CHAR(255), Check2 MEMO, Check3 INTEGER, Check4 DOUBLE, Check5 DATETIME, Check6 BOOLEAN) VALUES (1, 'DefSML', 'DefLRG', 0, 0.0, … | |
i want to generate a query example: if the english question s given ->list all the details from my_table where name='smith' and age <30 it shld generate a mysql query for the question ->SELECT * FROM my_table WHERE name = 'Smith AND age < 30; | |
Hi, if i had a string (Iamhere) stored in an array of characters, and i want to get just (amhere) in another array, is there a way of doing it?? I've been reading in the string functions but couldn't figure out how this is done? Thanks | |
I have a GridViewControl on my Form in C++ .NET. I have put values to Rows and Columns like this: (3 columns and 5 rows) 1 a f 2 b g [B]3 c h[/B] 4 d i 5 e j What I wonder here is if I click with my … | |
When i compile my program i get the error "floating point exception". I do not know why this is occurring my code. I am hoping that this is the reason why nothing is being put into my outfile. if it is possible could you look at my code and give … | |
I understand how to use CreateProcess, ShellExecute(Ex), _spawn, exec methods to start a child process from a parent process. Question: Is there a way I can return values back to the parent process from the child process? For example, the child process sets an integer value and I want the … | |
this is some of code. I have a question. what is the meaning of '?' and ':1;' [just this part] [code=syntax] int t, dt, * cnt, tmax=0; cnt=(int*)calloc(M,sizeof(int)); ... /* Compute the mean-squared displacement using the straightforward algorithm */ fprintf(stderr,"# computing...\n");fflush(stderr); for (t=0;t<M;t++) { for (dt=1;(t+dt)<tmax;dt++) { cnt[dt]++; /* number … | |
Hello! I have a project in which I must simulate a blog application,with users' post mangament. These are the requirements: A blog has a title and a collection of posts.The posts have the following information: -author -data -title -text Each post has a code thet is generated automatically and which … | |
iam facing thesame problem of run page not getting displayed.can i use srand function in this program. and what is its use and syntax? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int randomno(); int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { randomno(); } } i int … | |
I have been using VB.Net for a little while now, but I just started needing to write code to put information in a SQL Server database. I have two tables that I need to add information into. I know that I have to use an Insert statement, maybe I need … |
The End.