199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jackmaverick1

Hi! My problem is that i have an object that needs to be in an array however the array must not be the same size each time I create an array. I know that you would use the [ICODE]classType[] objectName={new classType(),new classType(),new classType(),etc};[/ICODE] That would only work if I had …

Member Avatar for masijade
0
118
Member Avatar for ashley11

i have a problem to do calculation part. i need to do 3 calculation part. Now my problem is , my answer for conf and lift loop many times. may i know how to correct it? below are my coding: [CODE] string b = txtTotalItems.Text; double e = Double.Parse(b); double …

Member Avatar for Saikalyankumar
0
149
Member Avatar for mas51

I have put together a program using a class AbstractSort that can be used to analyze the number of comparisons performed by a sorting algorithm. Anyway, I built the programs( I have 2 here) and the first one counts the passes but does not order the array created and the …

Member Avatar for mas51
0
409
Member Avatar for computerbear

Requirements are listed throughout. I have tried with and without the converter. prefix. Please help. [CODE] namespace Assignment_4b_Moon_money { //program that contains a method that calculates the conversion of any amount of money into the fewest bills; it calculates //the number of 20s, 10s, 5s, and 1s needed. This assignment …

Member Avatar for computerbear
0
196
Member Avatar for salty11

You are the manager of a travel agency with 20 employees. You have announced a promotional campaign for your agents to sell vacation packages. Each day you will enter the ID number of the agent (#1-#20), the number of packages sold, and the dollar value of the package. Entries will …

Member Avatar for salty11
0
429
Member Avatar for divyakrishnan

Hi , I want to access a pdf file by clicking a hyperlink using PHP.the pdf file is stored on a shared folder of a storage machine.It work with internet explorer.But with firefox and chrome its not working.Showing error on chrome as "The loading of the URL has been blocked …

Member Avatar for divyakrishnan
0
147
Member Avatar for xxreenaxx1

I am working on a rule to find out which question has the highest correct answer. Not sure how to work with this. But here is an explanation of what I have so far and what I want my program to do. I have question and answer table Question: questionid,QuestionName, …

Member Avatar for Akash Saikia
0
80
Member Avatar for shyla

i am trying to solve this problem i dont know which object i need to refer to in my main method [CODE]using System; namespace ShapesDemo { abstract class GeometricFigure { static void Main(string[] args) { } public int height; public int width; public readonly double area; public int height { …

Member Avatar for shyla
0
258
Member Avatar for babbu

Visual studio 2005 and access 2007. Autocomplte textbox is not displaying results. Here is my code [CODE] txtname.AutoCompleteCustomSource = m_namesCollection; m_namesCollection.Clear(); if (!String.IsNullOrEmpty(txtname.Text.Trim().ToString())) { m_search = txtname.Text.Trim().ToString(); foreach (DataRow cust_dr_autoloop in m_dt_Customer.Rows) { if (cust_dr_autoloop["cust_name"].ToString().StartsWith(m_search)) { m_namesCollection.Add(cust_dr_autoloop["cust_name"].ToString()); } } } [/CODE] I have set the autocomplete mode to suggest and …

Member Avatar for sandeepparekh9
0
117
Member Avatar for nadleeh

how can i parse between blank lines in a file to separate paragraphs between the white lines?

Member Avatar for abhimanipal
0
77
Member Avatar for kazekagerandy

hello there, i want to put my images saved as byte from the database to crystal reports. please give me code to do this, thanks :)

Member Avatar for sandeepparekh9
0
108
Member Avatar for chad33

My homework assignment is to do the following steps below. I am able to write steps 1,2,3, and 5. I am stuck on how to go about writing code for step 4. Can I include this step into one of my for loops or do I need to write another …

Member Avatar for Slyvr
0
317
Member Avatar for erza26

Hello...i'm new here...juz want to ask some help from anybody..i've done search coding..the problem is, how i want to print it in pdf form...or can i use this coding <input type="button" value="Print Vendor Detail" onClick="window.print()" /> to print the details...hope someone can help me...thanks...:$

Member Avatar for erza26
0
76
Member Avatar for rjdelight

I have a simple text file that I am reading the contents of in a GUI. It's a simple program that enables a user to browse the file and add to it if needed. I have this part running fine, but I'm having some difficulty reading just the first word …

Member Avatar for Slyvr
0
2K
Member Avatar for aamira_s

This program is to count the number of words,vowels and consonants of a string.Here is my code.Please post your comment.I do not know whether I need to change anything. [CODE]#include <stdio.h> int main() { char a,b =' '; int vowel=0,c=0,count=0; printf("Please press '*' to terminate.\n\n"); while(scanf("%c",&a)==1) { if(a=='*') break; else …

Member Avatar for abhimanipal
0
167
Member Avatar for ecko21

Need to make a dtd for this xml code. There seems to be errors that come up, tryed it on w3 xml validator and it gives an error message. [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Timetable [ <!ELEMENT Timetable (week, timecode)> <!ELEMENT week (day)> <!ELEMENT timecode (time)> <!ELEMENT time (#PCDATA)> <!ELEMENT day …

Member Avatar for xml_looser
0
152
Member Avatar for dlazzeri

I am trying to make a script in Python to recursively list all the files in a folder recursively. This code only shows some of the files in the directory I run it in, and I can't figure out why. Any help you can give me is much appreciated. [CODE] …

Member Avatar for dlazzeri
0
163
Member Avatar for fadi_1234

this game is between a player and computer can you make it between two player please ?

Member Avatar for VernonDozier
0
337
Member Avatar for w1mark

Hi. I've been working with linked lists for a bit, but I've been having some trouble with them. My programming book does a good job in helping you make a linked list, but it does a bad job of showing you how to use them. What I am trying to …

Member Avatar for w1mark
0
280
Member Avatar for lalala423

Hey all, So i created a program that performs matrix addition and subtraction. It compiles but when I try to run it, it shows "SEGMENTATION FAULT" Help Please! Here are my codes: Matrix.h [code] #ifndef MATRIX_H #define MATRIX_H class Matrix { private: const int numRows, numCols; int **data; public: //constructors …

Member Avatar for lalala423
0
163
Member Avatar for thecoolman5

hey, I use DEV-C++ and I want to know how to display text in a new windows project. this code that i used from an example doesnt work. [CODE]#include <windows.h> #include<iostream> #include<string.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into …

Member Avatar for thecoolman5
0
300
Member Avatar for Ninjaboi

In a nutshell: How can I statically link .dll files into my programs executable? I know it's possible, just have never done it before. I know there is also some issues that arise in doing so ( as well as bloating the executable's size ) but I'm still game for …

Member Avatar for Ninjaboi
0
2K
Member Avatar for mushahidh

CONVERT THIS QUICK SORT PROGRAM INTO PARTITION OF 3,5,7OR 11 ELEMENTS. [CODE] #include"stdafx.h" #include<iostream> using namespace std; #include <stdio.h> #include <stdlib.h> #define size 50 void swap(int *x,int *y) { int temp; temp = *x; *x = *y; *y = temp; } int partition(int i,int j ) { return((i+j) /2); } …

Member Avatar for Momerath
0
221
Member Avatar for toferdagofer

i wrote some code to take an array and run it through a function to reverse the elements of the array and then return a pointer to the new array. For some reason im not getting the results i want. It has to do with my reverseArray function. Specifically in …

Member Avatar for toferdagofer
0
107
Member Avatar for plasticfood

i am getting an error in this. basically it sorts a queue in abc order. [CODE]public class Queue2{ public static void main(String [] args){ LinkedQueue q = new LinkedQueue(); q.enqueue("d"); q.enqueue("v"); q.enqueue("b"); q.enqueue("a"); q.enqueue("d"); System.out.println(q); System.out.println("----------------"); sort(q); } public static void sort(LinkedQueue q){ LinkedQueue qFinal = new LinkedQueue(); int count …

0
76
Member Avatar for Awah Mohamed

hey people. this is my 1st time to get this error. i usually save cookies using this code: [CODE] <?php $time = time()+60*60*6; // the time is saved for 6 hours // then save the cookie with the $id data setcookie("ln", $id, $time); ?> [/CODE] but with my new website. …

Member Avatar for diafol
0
199
Member Avatar for stow19

hey all, I've been trying to shuffle a deck of cards but my shuffle results in the deck duplicating cards. i've used the the knuth shuffle and I had no luck i've found: [CODE] var cards = Enumerable.Range(0, 51); var shuffledcards = cards.OrderBy(a => Guid.NewGuid());[/CODE] but I don't know how …

Member Avatar for stow19
0
124
Member Avatar for Morten Brendefu

I did an experiment regarding sorting of 256.000 random "names" using TListBox component. A friend of mine say that TListBox is faster than my code at sorting, so I wanted to test this out of curiosity. Method of testing. When I have created 256 thousand random textstrings, each 6 characters, …

Member Avatar for TrustyTony
0
2K
Member Avatar for kazekagerandy

i need to set the transparency of a bitmap using a trackbar. how can i do this? if i change the value of the trackbar, the image's transparency will change. codes will be greatly appreciated. thanks!

Member Avatar for Unhnd_Exception
0
1K
Member Avatar for luislupe

I'm trying to build my first template function, but it generates a compile error when lines 21 and 22 are not commented. What I'm trying to do is to have a template function that can return multiset<int>, multiset<double> or multiset<string> depending on the attribute I want to extracto from the …

Member Avatar for mike_2000_17
0
329
Member Avatar for Cece Skies

Hello. Is PHP hard to learn? :sweat: I would like to incorporate it on my website. Thanks!

Member Avatar for chrishea
0
103
Member Avatar for Chubbymouse

Hi there, I have some code on a page to extract info from a database (like a back end system) and I just wondered if there was anyway I could do a shortcut around the code to avoid doing multiple SELECT statements. e.g [CODE]<?php $result = mysql_query("SELECT * FROM quackedup …

Member Avatar for gokhanfil
0
164
Member Avatar for salty11

In the display function when i output it shows multiple output for some agents, but i only want it to show the final one, how can i do this? [CODE]#include<iostream> #include<fstream> #include<conio.h> #include<iomanip> #include<cmath> #include<string> // Associating program identifiers with external file names #define in_file "data.txt"//input file name #define out_file …

Member Avatar for salty11
0
547
Member Avatar for ashley11

i have a sortedLIst. The value in sortedList is already change to percentage. when i key in the minimum support, if the value is not fulfill the minimum support, then it will be ignore. MY sortedList: 1: 55 2: 70 4: 25 3: 65 6: 15 5: 30 my expected …

Member Avatar for ddanbe
0
105
Member Avatar for twigan1015

I know im suppose to show code, but im stuck on how to make an integer, I kinda feel bad wasting a thread for a simple answer, but I cant figure it out, what im trying to do it make an integer values in the range of 10 to 1000. …

Member Avatar for twigan1015
0
108
Member Avatar for Wrai

I'm having issues with basically moving the snowman itself. I know I have to repaint image in a different position, but I tried and failed. The snowman always end up having a line of color and shape following it as an aftereffect. Can anyone help me out on how to …

Member Avatar for Wrai
0
1K
Member Avatar for jamesf786

Hello, There is multidimensional array which has stored several information about each record. From those 1st is name and 2nd is pswd I am trying to write a function which would check name and pswd entered by user and check whether name exists in array or not. If it does …

Member Avatar for noamwegner
0
98
Member Avatar for TrustyTony

Here is code to execute these printing commands from file: [CODE]talk("How Are You") bark("I am fine") bark("...and how are you") snarl("...sorry I asked") [/CODE] from file INPUT, do printing of results to screen without tags and to file with tags, and open the html output with webbrowser.

0
312
Member Avatar for Mafiasays

Im having an issue with making a few test to overload the == operator in my linked list stack. i have the standard header files containing pop push and so forth. But Im having a problem writing these test. i was thinking maybe a test that would copy the stacks …

Member Avatar for Mafiasays
0
386
Member Avatar for arezz09

i hve create 1 listview and all data from accessdatabase (using oledbconnection) in database hve 4 column, so in listview 4 column.. can i view only 2 column in listview, example only column 1 & 2 only in listview.. i using this code [CODE] ListView.Items.Clear() While (myDR.Read()) With ListView.Items.Add(myDR("column1")) .SubItems.Add(myDR("column2")) …

Member Avatar for debasisdas
0
136
Member Avatar for thedonflo

I am having trouble ascending and descending an array with an insertion code. I know the while loop displays it in ascending order but i cannot get it to display from the original, ascending or descending. It just keeps repeating the first element in the array. Any help will be …

Member Avatar for thedonflo
0
102
Member Avatar for MackSwagga

I need help with my final project, I think I have the basic structures set up already. I'm a little lost on loops, do I need one to populate the list? and one to go through the list to display the information back in the text boxes? Also how do …

Member Avatar for MackSwagga
0
191
Member Avatar for Suzie999

Sorry for noob question. If a condition is tested with or, and the first condition is met, are the further conditions tested? For example, is "b" even tested in the following code?... [CODE]bool a = true; bool b = false; bool c = false; if (a || b) { c …

Member Avatar for Suzie999
0
143
Member Avatar for >>> isaac = []

First I have to say, Eclipse works wonderfully except for this minor problem. I've tired looking for help on this for about a week and so far the only soluctions relate to content assist not working at all. None refer to content assist missing some major functions, libraries, classes. Some …

Member Avatar for >>> isaac = []
0
1K
Member Avatar for stan_l

I have a generic script in another language which I use to query an ASA5500 firewall. Because of thousands of possibilities in even the 'show' commands, I write small .cmd files which are macro-executed from the main script. A .cmd file looks something like outfile("config.dat") showline("terminal pager 50000",0) makebuff(2000000) showline("show …

Member Avatar for TrustyTony
0
299
Member Avatar for MeandJava

Hello everybody, I am working on a school project now and I want to have a blinking LED. The piece of hardware we use is not familiar because it is designed by school. I have the methods to put on the led and to put off, but can't get it …

Member Avatar for MeandJava
0
150
Member Avatar for debeloglava

I have never programmed a client / server before but I would like to create a game where objects can be passed back and forth between two players who reside on separate machines. An example object would be a game piece and the reason it would be passed is because …

Member Avatar for JamesCherrill
0
207
Member Avatar for Formby

I have an array set up to receive the names of forms when they open. The form name is sent as a Form not a String therefore when I run my code I cannot check for whether the field is empty in the normal way (ie. array(1) = "") as …

Member Avatar for Formby
0
140
Member Avatar for aamira_s

this is a simple code to test whether a number is prime or not...i dont know y it is taking this much time to execute...can ne1 tell where m mistaking?? heres my code [CODE] #include<stdio.h> #include<math.h> int main() { int a,n,prime,l=2; printf("Please enter a positive integer.\n"); printf("To end the program …

Member Avatar for Adak
0
166
Member Avatar for nitnayak

This is probably a stupid question, but I don’t know this stuff and need some help. I have a form with 2 text box, and I want to pass the user-entered contents of the 1st text box to a php variable ($size)(without posting the page) on onBlur of 1st textbox. …

Member Avatar for tomato.pgn
0
175

The End.