64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Solani

Hi, I was just wondering why my program wouldn't output the elements that I entered. Thanks in advance. [CODE]//Scanner utility import java.util.Scanner; public class A4 { public static void main(String[] args) { //Reads user input. Scanner inputReader = new Scanner(System.in); //Declares an array,size of the array is 10. int[] elements=new …

Member Avatar for masijade
0
117
Member Avatar for adams161

I was planning on releasing the source of my applet but I wanted to wait till i was done to do that. It got decompiled before i was ready. Is there any practical way to prevent decompiling? i googled and all the articals said how easy it is to decompile …

Member Avatar for dleskov
0
94
Member Avatar for t__

Hi, i'm actually trying to display records from 3 tables in a Data Report using an InputBox. That is whatever information i enter in the inputbox the data report should display its appropriate records from the tables. i can display records from 3 tables in the data report, but how …

0
49
Member Avatar for stevechow

:] Awesome title. I have a program called Life. This program creates an array from the numbers in a .txt file, then it puts it into an array. The cells in the array will have "bacteria" if they are named in the .txt file. The bacteria will be removed if …

Member Avatar for jonsca
0
139
Member Avatar for sathya8819

hi, i would like to do a project where I have to detect the characters of a captcha image.. any ideas

Member Avatar for kvprajapati
0
82
Member Avatar for alokjadhav

I am using SWIG to extend Python to C++. Understand that there is a different forum for SWIG users but I am still waiting for a response on that list. But the questions I have consists of basic Python C API releated. I hope this list will be able to …

Member Avatar for alokjadhav
0
730
Member Avatar for Jeffro_i4i

I am to create a project that evaluates math expressions and their derivatives. I have a Formula class with only virtual functions: virtual void print() virtual void print(int) virtual Formula *derivative() virtual int evaluate() Then I have 7 other classes which inherent from Formula, they are: Variable Constant Add Multiply …

Member Avatar for Ancient Dragon
0
120
Member Avatar for jehad

hi i am not famelier with this site and i dont know how to ask for help i want to implement breadth first and depth first search for solving 8 buzzel problem may you help me?

Member Avatar for kvprajapati
0
126
Member Avatar for wingers1290

Hi, I have a list box that on form load displays file names inside a directory using this code [code] DirectoryInfo di2 = new DirectoryInfo(path); foreach (FileInfo fi2 in di2.GetFiles()) { listBox1.Items.Add(fi2.Name); } [/code] Which works fine, however i have another function on my form which adds files to the …

Member Avatar for DdoubleD
0
292
Member Avatar for rzhaley

hello i am supposed to design a code to convert state abbreviations from only five states. I don't really know how to put if...else statement in here if anyone can help. This is what I have written so far but i am beginning so it could be completely wrong. [CODE]using …

Member Avatar for rzhaley
0
210
Member Avatar for djMot

Hi, I'm probably just blind or something, but IE7 just stopped letting a popup I've written in javascript from opening in a (duh!) popup window. Instead, it's loading in the same tab as the link was called from. That violates the tab settings I have established to pretty much open …

Member Avatar for hapakity
0
97
Member Avatar for BruenorBH

I am trying to change the NIC speed through the registry.. But my problem is that I dont fully understand the command RegSetValueEx. I have checked the Internet up and down for some good examples but have fallen short.. I am tring to set the default value for the NIOC …

Member Avatar for BruenorBH
0
418
Member Avatar for josh48

I got this code and I cannot get it to work. I want it to show up with the type of attacks you can do which it does. After each time you attack the enemy the enemy attacks you of a damage between 1-10, then its my turn etc until …

Member Avatar for FlamingClaw
0
157
Member Avatar for 6pandn21

Hello Guys! I get this error when I try to run one of my php page but I do not get this error in other page which are basically same. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\go\birthday.php:1) in C:\xampp\htdocs\go\auth.php on line …

Member Avatar for llsatellite
0
189
Member Avatar for mr.hassan4489

The Question is : A store has 6 items. Each item has a price and a bar-code that uniquely identifies it. To simulate such a store, the program offers a menu showing the codes, their corresponding items, and their prices. The user chooses one or several items to buy, and …

Member Avatar for zobadof
0
152
Member Avatar for 68thorby68

So near and yet so far. I introduced myself to session control and made a decision to only use session files (not cookies) I am submitting: session_start( ); $_SESSION['uid'] = $iduse; The session file is created and correctly reads the following where the value of $iduse is 1H: barney|s:2:"1H"; In …

Member Avatar for 68thorby68
0
137
Member Avatar for wittykitty

I have viewed a lot of threads out there relating to what I am looking for and can't seem to find one that will help. I am reading data in from a file. Even though I already know how many names are stored in the file, I need to write …

Member Avatar for jonsca
0
221
Member Avatar for fummy

Can someone help please! I need to search for a different set of strings like: 'fummy' or 'users' or 'logon' from a directory like this: C:\mycase\Nic..\ A Text document is stored in there LIKE: 544, Text Document, 45, 588 KB Can some help to write a script or python program …

Member Avatar for Murtan
0
187
Member Avatar for Yeen

I've been trying to figure out how to capitalize all the sentences in a string. In the string [CODE]a = "this is the test string! will it work? let's find out. it should work! or should it? oh yes. indeed." [/CODE] I want all the characters after [I]". " "! …

Member Avatar for Yeen
0
1K
Member Avatar for fisk007

Hi I have a problem where dot is used in a table's column name. Say that there is a column called 101.name in a table t1. How do i reference this column in the following: select ... from table t1, table t2 where t1.101.name='test' This doesn't work because of the …

Member Avatar for fisk007
0
1K
Member Avatar for lotrsimp12345

[B][COLOR="Red"]a multilevel index using a B-tree is to be made for a file with 600,000 records. A block contains 1500 bytes, a key is 10 bytes, a pointer is 5 bytes and a data record is 100 bytes. [/COLOR][/B] [B]a)What is the order of the tree?(assume tree node=a disk block)[/B] …

Member Avatar for lotrsimp12345
-1
104
Member Avatar for micka10

Hello, I have a problem to add string arrays into the ArrayList. My data is recorded as: {"1","0","a"}, {"1","1","b"}, .... I'm going through the "for" loop and trying to store each of these records into the ArrayList, but, after it stores all records, it appears that all elements in the …

Member Avatar for micka10
0
268
Member Avatar for lotrsimp12345

gives me error on 3rd coded line in search(). [CODE] #ifndef MY_HT_CHAIN_H #define MY_HT_CHAIN_H #include <iostream> #include <vector> #include <list> using namespace std; class my_ht_chain { public: //constructor which creates a table of a certain size my_ht_chain(int initTableSize); //destructor ~my_ht_chain(); //insert a value based on key void insert(int key); //search …

Member Avatar for lotrsimp12345
0
102
Member Avatar for mrjoli021

How would i write a function to accept X number of parameters for ex if i want to write a function to insert into a db. i dont know how many fields i will be inserting into the table?

Member Avatar for kireol
0
108
Member Avatar for xavier666

During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I …

Member Avatar for xavier666
0
155
Member Avatar for shine_jose

Hi, I wish to save a text file to the client system.i had try ed in my desktop its working fine when i run from server its showing error this code i had given and each client system there is a folder name FCR. fs = new FileStream("d:/FCR/FCR" + strdt …

Member Avatar for Geekitygeek
-1
143
Member Avatar for checker

[CODE]element = {'H': 1, 'N': 6, 'F': 7, 'Cl': 7} i = input("Enter: ") dots = '*' totalDots = (dots * i)[/CODE] Enter: H Traceback (most recent call last): File "D:/Python26/lewisdot.py", line 4, in <module> i = input("Enter: ") File "<string>", line 1, in <module> NameError: name 'H' is not …

Member Avatar for jimothy
0
148
Member Avatar for JohnBlanco

Hi, I have a register page where there is a field for confirming the password. I have a function that evaluates if the two boxes have the same text and I call this function in the form tag, but it doesn´t work. Can someone help? Thanks in advance. Function: function …

Member Avatar for JohnBlanco
0
178
Member Avatar for Neona

Hello there. I've put together an Access Database which handles opening hours. However I want to be able to update each day individually, but at the moment it updates the entire week in one go. I know that I'm supposed to add some sort of WHERE in my sql sentence, …

Member Avatar for Neona
0
138
Member Avatar for Ulukay

I got a button array of 40 buttons And i handle all the button events in 1 sub . But i need to know what button is pressed. Can someone help me ? [CODE] Private bttonArray(41) As Button Public Sub Hoofdscherm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Member Avatar for morke
0
556
Member Avatar for amishraa

Need help with calculating student grades using arrays. If I have the names and subsequent grades listed on notepad input file. eg. Name1 23 43 54 23 43 54 Name2 54 34 65 76 23 54 Name3 97 68 45 68 86 58 How do I setup two dimensional array …

Member Avatar for amishraa
0
155
Member Avatar for bharanidharanit

Hello sir, In a label i am having data like this 12/9/2009. With split function i splitted numbers as 12, 9 , 2009. I want this numbers to be stored in LabelArray as Integers Label1 = 12 Label2 = 9 Label3 = 2009 So i used this coding, but with …

Member Avatar for bharanidharanit
0
102
Member Avatar for xuexue

hi, i want to have a button wherein it will create dynamic text boxes depending on the times i click the button. i've seen several codes thru javascript, however, i cannot get the value of the said textbox, could you please help me with this?? tnx..^^

Member Avatar for network18
0
2K
Member Avatar for lisedaton

hi everybody!!! I will really appreciate if somebody could help me.... we are working with c and python and the same time and it gets confusing sometimes... I need to write a program in python tha will receive a string and it will print only the number in the string …

Member Avatar for Namibnat
0
93
Member Avatar for saj_amo

hi guys, i have a problem in crystal report when i am getting a data from database field that field has 30 words i want that in my report that field should be broke in 10 words each line so how can i do this please help me.

Member Avatar for saj_amo
0
318
Member Avatar for laelzio.mosca

Can someone help me please? I have to do this turkey project, everything is working ok, exept for my oven time. when it prints this line: [CODE]cout << "Put the turkey in the oven on the " << startThawDay + howLongToThaw <<"th " << " at " << ovenTime <<" …

Member Avatar for valtikz
0
88
Member Avatar for Jaydenn

Do you guys think this code will function properly? [CODE] public void LoadUser(string UserName, string Password) { try { using (StreamReader sr = new StreamReader("./Users/" + UserName + ".txt")) { string Line; bool passCorrect = false; bool userCorrect = false; while ((Line = sr.ReadLine()) != null) { if (Line.Equals("UserName = …

Member Avatar for Jaydenn
0
137
Member Avatar for xarz

I don't know how to explain this correctly but just some sample for you guys so that you can really get what Im trying to say. Today is November 28, 2008 3 days from now is December 1,2008 Im looking for a php code, which can give me the exact …

Member Avatar for chetan.akarte
0
157
Member Avatar for samweb$

I have the following code which works on the .txt file The file content is as given below. ;* ;* { = LanguageIso LANGUAGE_ISO = "EN" } [CODE] xlong MyProg::Import(const char* buffer, xlong x) { try { while (1) { if ((bytesParsed = AddLine(tmpSrcBuffer)) == -1) return FALSE; tmpSrcBuffer += …

Member Avatar for samweb$
0
117
Member Avatar for FlowerGirl1027

I need to analyze a list of five cards as a poker hand. After printing the cards, the program needs to categorize accordingly. Royal Flush: 10, Jack, Queen, King, Ace all of the same suit. Straight Flush: Five ranks in a row, all of the same suit Four of a …

0
71
Member Avatar for Carrots

Hi, I'm making a simple forum. When a user register's, I trying to create their join date. [code] CREATE TABLE Users ( userName varchar(15) NOT NULL, registrationDate datetime default NULL ) [/code] and then have MySQL automatically set that value: [code] $sql = "INSERT INTO Users (userName, registrationDate) VALUES ('".$username."' …

Member Avatar for Carrots
0
121
Member Avatar for jigglymig1

for this function i need help with the email part. I am trying to string compare domain with 3 different string possibilities (.com,.org,.edu). void add(char firstName[][32],char number[][9],char email[][32],char lastName[][32],int count) { int i; int length; char domain[3]; cout << "enter their name\n"; cin >> firstName[count]; cin >> lastName[count]; cout << …

Member Avatar for jigglymig1
0
95
Member Avatar for FancyShoes

why does this happen? I want it so that it does not display the text using an or statement and not using and or anything else. [CODE] if( 1 == (2 || 2 || 2)) { cout << "Should not display"; }[/CODE]

Member Avatar for Dave Sinkula
0
101
Member Avatar for rena0514

hello again....i'm in need of help. for my final program for my programming two class i have to write a program doing operations on sets. i wanted to know if someone could put me towards the right direction and give me an example of a program using friends of a …

Member Avatar for rena0514
0
113
Member Avatar for infern0

Hi, I am having trouble getting the item and its calories to match. Could anyone tell me what is wrong with this bubble sort? Thanks [CODE]int main() { string food[100]; string search; int calories[100]; int x = -1; bool look = false; do { x++; cout << "Enter a menu …

Member Avatar for infern0
0
110
Member Avatar for infern0
Member Avatar for Judgment

I require a program that will remove all trailing whitespace (any spaces that occur at the end of a line) from a text file. It should do something like: Space Stripper Enter the name of the file to be stripped: news.txt Any help would be gladly appreciated. I'm also seeking …

Member Avatar for Namibnat
0
184
Member Avatar for simonfoley

Hi there Just started an IT course recently, and although flying with HTML and other disciplines, I'm having trouble with some C++ syntax. I have a problem with a short piece of code I have to write, which has to read input from the keyboard for 5 fictional employees, each …

Member Avatar for simonfoley
0
234
Member Avatar for Ryveris

I know there have been posts in the past where some were asking about "how to make a zodiac calculator," and I kind of have the same question, but I've done the research and wrote most of the code out, so it's nothing like that. I didn't quite understand how …

Member Avatar for Ryveris
0
151
Member Avatar for andrewktmeikle

Hello, I'm having a slight problem with my code. The task is to create an indexing program, similar to the ones the google uses. The problem i'm having is that we have to remove the common ending from the words left after the removal of stop_words(which is a list variable …

Member Avatar for andrewktmeikle
0
2K

The End.