199,114 Archived Topics
Remove Filter ![]() | |
i have a table where the table contains the path of the files. when the user enters a word in the text box it should search all the file and display the files.p | |
![]() | What's the best way to swap two arrays? Would it be better to copy each position into a new array and then assign the array a new name? Or would it be better to use pointers? What would the algorithm be if I were to use pointers or a dynamically … |
Hey, im trying to use pointers with a struct. I am having an issue in the function searchData. I can not get the pointer to compair with the string, it is still just compairing the actual adress or something else. Not sure if i even passed it right. Please help … | |
I've created simple WindowsApplication project with one additional windwos form named Form2. On default form I added button named button1. And added this code [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; namespace WindowsApplication1 { public partial class Form1 : Form { … | |
Hello, After having a list created from objects of a certain Class. I wish to sort the contents. How do I do this? This is my case: _bkgList = new ArrayList(); for(int i = 0; i<10; i++){ BookingResponse bkngRes = new BookingResponse(); bkngRes.setAwbNum(awbNum); bkngRes.setOrigin(origin); _bkgList.add(bkngRes); } As you can see, … | |
can anyone help me regarding this issue. i have got few textfiles and i need to get all those textfiles displayed in a grid one after the other immediatly when i click a button.. thanks in advance Divya | |
this is what I have so far. I did most of the work just that my output is screwed [code=cplusplus] #include <iostream> #include <fstream> #include <stack> #include <cmath> #include <cassert> using namespace std; int number(); bool Valid( stack<int> s, int row){// This will find out if there is a valid … | |
Elo guys, i have trying to develop a client/server application! i'm new with sockets, so i'm trying to learn from existing source codes. I have come accros a piece of code: public static void main(String args[]) { // validate parameters: if (args.length != 2) { System.err.println("Usage: java GameClient <host> <friend_port>"); … | |
I just finished up the final touches on my C Project (at least I hope that's the last of them). Anyway, it's due Friday (10% of my overall grade) and I'd like to have some quick feedback (constructive criticisms and complements) before I had it in. It was suppose to … | |
I have another assignment for class that I am having some difficulties with. I seem to be able to write the program, except for the fact that it keeps looping over and over and I'm not quite sure how to stop this. Could anyone please help?? Thanks! This is the … | |
This suppose to be a simple coin toss program that tells when the coin is fliped it reads heads or tails and this is wat i got so far #include <stdio.h> int example (int h,int t ); int main() { int x1, x2; int x; printf(" Enter 5 to run … | |
can any help me how to create a database and its table in the run time of an application. i need to create new tables also and also specified columns in the table with some record. the application should ask the user to specify the file path also.. help needed … | |
Hi all, I am not able to get the session in IE.Its Working Fine in Mozilla.I tried a lot to Overcome this Problem.Session registration was Successfull.After Successfull login i am redirecting to some Other page.Here Session is Not Coming.Anybody can help me for Doing this? Rajeev | |
hello there, i need some help as my teacher gave us a very vague example on random number code and i'm stuck on doing my assigned homework. the assignment is to have three text boxes, generate random numbers between 1-10, and afterwards both automatically added together. so one text displays … | |
I am trying to add values that I read from input file using fscanf. There are 15 float values that were read from .txt file. Im copying some of the code here [code=c] #define MAX 15 for (i = 0; i < MAX; i++) { fscanf(ifp, "%f", array[i].miles); } [/code] … | |
Hii..... Ok here goes my issue I am developing a recruitment tool intranet aplication for my company and when i post a resume i want a pop up which is same like when we upload a pik in sites liek orkut...its basically used in php i wanna know how can … | |
HI, I am currently stuck. i am using visual studio 2005 and have successfully got data from my database using a repeater. I dont know if this is possible but i thought i would ask... i want to get my data from the database based on a value that is … | |
This is a question for all people who know about Digital Communications, coding and decoding. Please I need to know how can I implement a (24,12) Golay Code in C. ( if you cant help me with the Golay code, I need to know about any block codes). Thank you. | |
Hi ladies and gents, Wanted to ask a simple question probably for you guys and the answer will maybe be simple aswell, but, I thought, what the heck, I'll go for it :) It just seems strange that when everyone tells to use <iostream> instead of <iostream.h>, <cstdlib> instead of … | |
Hello I'd like to have a list of ints inside my vector.. I tried to do the following: [CODE]private static Vector<List<int>> getCombMatrix() {[/CODE] But it will give me error: Syntax error on token "int", Dimensions expected after this token However, this works okay: [CODE]private static Vector<int[]> getCombMatrix() {[/CODE] What am … | |
im writing a personal program thats storing scores. The layout is done using Tkinter using labels buttons and entry widgets, however, because there are a lot of entry widgets needing created i just stuck their creation in a loop, [code] for m in range(1,10): self.input_score = Entry(frame,width=6) self.input_score.grid(column=5, row=m) [/code] … | |
I am creating a php property buy/sell/trade game. The goal is to have the most properties and the most cash after a set time period (cash prize awarded later in site development). I was wondering what you guys would like to see in a game like this. Here is a … | |
Would anyone be able to help me with this assignment. I pretty much almost got it, but I'm still stuck. Here is the assignment: Write a program that asks the user for two integers; call them num1 and num2. Make sure the number is between 1 and 9 (including 1 … | |
Ok i need a program that finds the greatest common divisor of two integers. 1) if A/B is 0 then B is the greatest common divisor 2) if A/B is not 0 then plug B into A and the remainder into B 3) repeat the process I have to use … | |
Im only new to python but im trying to write a code that will allow me to randomly generate a number between 1 & 15, I know that part is import random def main(): number=random.randrange(15) + 1 But im not sure where I need to go to from here to … | |
Hello ive got a form where the users enter there details on a form then click on submit which then should update there telephone number, where is says where Email= $_Post[Email]") thats one of the fields that automatically appear the email cant be updated, this code below luks correct and … | |
Hi, i was just wondering how i could do this, Say if i made a char array, password, could i change the input to *'s as soon as the user entered them without seeing normal char's Thanks. | |
#include<iostream> #include<string> #include<stdio.h> using namespace std; int main(){ char s[100]; cout<<"enter the string :"<<endl; gets(s); //memcpy char a[100]; memcpy(a,s,strlen(s)+1);//here if we decrease bytes to be copied to a value less than length of s i.e.(strlen(s)), then s is getting destroyed ...some garbage value is coming cout<<" a : "<<a<<" s … | |
Hi, I am supposed to read data from an input file with following information 16 //number of destinations// Baltimore //origin city// MD //origin state// Lewes //destination state// DE //destination state// 117.0 //miles b/w previous location and and this one// 160 //estimated driving time// Ferry //place to visit in that location// … | |
![]() | I'm a little confused about empty arrays. I'm supposed to write code for a function of type boolean that returns whether an array is empty or not. This function is a part of a class called Sequence, and takes no parameters. Earlier in the code, I included a typedef so … ![]() |
I've just started trying to learn how to implement Windows API calls in VB, as the graphics in VB themselves seem to respond rather slowly no matter what computer I run them on, but ran into a couple problems. The graphics at first wouldn't appear until I went over each … | |
hey guys I need you help, I'm new comer in here but I hope this can help me. I'm writing a code that can read the file (such a story or newspaper) then the identifythe story if that story has a itemY in it the it will print +1 otherwise … | |
I know that frets on fire was made with python, but a question i have had was whenever you save something in python idle it is a .py, and you cant run them unless you have python (and if they do, they can just edit your program) installed, but how … | |
I am trying to write a function that will read one value of an array. I must prompt the user for an index and then read the its value. I am having a horrible time and need help. [code] // read_one_value(A, n) prompts the user for an index i and … | |
Hey all, I am trying to display a message asking if the user is sure that they want to close just before closing. Here's what I've got...and it's only telling me that there's something wrong with the word "Message" after the MessageBox.Show part [code] Private Sub xExitButton_Click(ByVal sender As System.Object, … | |
Hi All! Im creating a java web application. I am finding a very little information on making forums/blogging/chatting application with java. There is plenty of stuff that uses php/mySQL. Should I learn php, or how to use java to interact with php, or are there tutorial, books or other sources … | |
can anyone tell me how to use a variable table name in select syntax?? like..select * from tablename here tablename is a variable name ..i read tht it can be done using dynamic sql..but i am not able to do it..can anyone tell me the code for it...i tried writin … | |
I am currently working on a mini project for my class. the project is designing a game called etch n sketch. you first etch out a map then quit the game after youre done. then sketch the etch you just created. the problem im having is the scoring system. score … | |
Hi everyone, Just started programming in Python and iI'm already starting to like this language very much. I have a problem with a program I wrote last night - I'm trying to ping a certain host using [CODE]os.popen("ping xxx.xxx.xxx.xxx"[/CODE] and then read the %errorlevel% from my system using [CODE]result = … | |
Hi, I'm new to these forums. I've been working with java in school, but I can't stand the language. So I've been working with python and find it's very easy to understand, and I actually enjoy working with it. So just for fun I've been working on a pretty basic … | |
Game: Ragnarok Online Emulator: eAthena Code: C Programming SVN: [url]http://svn.eathena.ws/svn/ea/[/url] Okay so I am trying to create a mod for this game. It requires a source code edit to get it working, but I can't seem to make it work. There is this pet system called homunculus, and I am … | |
i'm practicing my use of functions at the moment by writing a program to convert pounds to euros and vise versa but when i try calling the functions that do the converting i get a load of 'expected primary-expression' errors. what dose that actually mean because i'm not really sure … | |
Hi, This code works fine but, when i choose "Female" from selectbox, it sets "Male" in the selectbox again. What is the problem? Thanks [code] <?php if (!isset($_POST["sex"])) { print "Please start!"; } else if ("Male" == $_POST["sex"]) { print "Male !"; } else if ("Female" == $_POST["sex"]) { print … | |
Hi, I'm not sure there is an answer to this question, but here goes. I have a program written in c++ (compiled in windows using devC++) and I can run dos commands easily using the "system function". I can also launch the cygwin bash shell by using this function. Obvously, … | |
I can't run the programme, please assist to check the error. Thank you in advance for your assistance. Question: 1. Develop an application program that creates a list of integer test score value in an array, sorts the array in increasing order and searches it for a test score value. … | |
I'll make this real short - don't know much about PHP. This form was created and then run through a utility that sets all required fields. I am getting a T_string error message in line 1. If someone can help I would greatly appreciate it. I am attempting to include … | |
Hello, I am using a code to generate random numbers upto 32 char... The problem is that i want to display the 32 characters each randomly because the code is displaying the same char 32 times and i want to get the 32 chars generated randomly... The code is:- [code=c++]#include … | |
Hi all, i must create new Cookie key into an existent cookie but i must create them dynamically. I need that the name of new key are generated from a "for" or simply from a variable. This is the piece of code interested. I want to know what i can … | |
I want to call a shell script from java.I have searched in many java related web sites but I did not find the correct answer.Can anyone please help me out with this problem. plzzzzzzzzzzzzz thank you!! | |
Hi, I have this factorial function that I have working just great, but I am not really sure how I am supposed to print the local variable and the recursive call parameter. Any help would be greatly appreciated! Thanks. [code=cpp]#include <iostream> using std::cout; using std::endl; #include<iomanip> using std::setw; unsigned long … |
The End.