199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Vytautas

Hey, guys, to begin with, I'm a complete newbie to C and I'm writing a Knight Tour program. The idea of my program is to check every possible way (it is necessary for the assignment), so I start with x + 1 & y + 2 and so on. If …

Member Avatar for jephthah
0
1K
Member Avatar for kraver

Hi All, Anybody who have good recommendations for howto guide on how to write plugins from A to Z. I will start programming plugins for a number of sites. Many thanks. /Kraver

Member Avatar for tersty
0
110
Member Avatar for LennieKuah

Hi Good Guys, I encounter another interesting problem due to my lack of C# knowledge. Please Help me. I am trying to use DATAREADER to fill TEXTBOX controls on the FORM and it's not working because this coding generate error message: [COLOR="Red"] sqlDR = sqlCmd.ExecuteReader(); <---- Error [/COLOR] Error message: …

Member Avatar for LennieKuah
0
165
Member Avatar for joeedel89

Hello and Thanks, I am trying to create a teacher grade book for my school, I have a mysql database 'gradebook' and two tables 'students' and 'data' (mysql code below) to start, I am also using PHP. I have googled this to death and can't seem to come up with …

Member Avatar for sallecpt
0
770
Member Avatar for ahmed hefnawy

peace up on u everyone.. i wanna make a program in c++ include to make more than one matrix and i can make all calculations like + * - / on them like multiply 2 matrices ........... and i can save the matrix in program and i can Retrieves it …

Member Avatar for WaltP
0
76
Member Avatar for odubhthaigh

So; I have a list in a text file that contains sections of a what would be filenames.. I'm wanting to read from this text file into I guess an array, unless there's a better way to do it.. and then find the file that matches with each of the …

Member Avatar for d5e5
0
288
Member Avatar for NoziphoR

Hello everyone! I need help with my code, I want to alternate more than just 2 images using a function and setInterval. Here is my code, can anyone tell me what's wrong with it? [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Banner Advertising</title> <meta http-equiv="content-type" …

Member Avatar for Taywin
0
119
Member Avatar for chaos123456

Hi all [CODE]import java.io.*; public class POManager { private static String posFname = "C:/ITM200/OOP-Advanced-Topics/src/po.txt"; private static String taxposFname = "C:/ITM200/OOP-Advanced-Topics/src/tax.txt"; public static void main(String [] args) throws IOException { PO[] pos = readPOFile(); writePOTaxFile(pos); } public static PO[] readPOFile() throws IOException { BufferedReader in = new BufferedReader(new FileReader(posFname)); in.readLine(); String …

Member Avatar for chaos123456
0
634
Member Avatar for bigbags911

import java.io.*; import java.util.*; public class Reverseing { public static void main(String[] args) throws Exception { File f = new File("backwards.txt"); Scanner finput = new Scanner(f); String sentence = "", s = "", r = ""; while(finput.hasNext()) { sentence = s + finput.nextLine(); } ArrayList<String> lines = new ArrayList<String>(); ArrayList<String> …

Member Avatar for bigbags911
0
2K
Member Avatar for Jaxzen

My code is supposed to take numbers from an .txt file, assign them variables, print out the numbers and THEN if the number is less than 25, add them up according to parity. So, if the list of numbers is 1,2,3,4,5 It'll output: 1 2 3 4 5 Sum of …

Member Avatar for Lerner
0
930
Member Avatar for ceyesuma

Hello I am trying to figure what kind of code that would be needed to add a JTabbedPane to an JInternalFrame. I have 7 tabs added now (as many as I need) they are added by simply adding(hard coded) the "text name" to an array and every time the program …

Member Avatar for ceyesuma
0
88
Member Avatar for Xufyan

Hello using conditional operators I want to make a program that ask user to input three values and print the maximum among those three values. i have done for two values but dont know the logic for three values. [CODE] int main(void) { int a,b,c,d; printf ("first value"); scanf ("%d",&a); …

Member Avatar for jephthah
0
142
Member Avatar for biomed

Hi, I am new to python but I want to use it over perl because I think it is a better overall approach to programming. This is a bioinformatics problem. I have four identically formatted tab delimeted files that have genomic variation data. Each line looks like this. chr1 11828655 …

Member Avatar for Gribouillis
0
97
Member Avatar for apo

Hi, here is the thing, I'm trying to make my university grading table on C++, when i fill in the grades it should tell me what i have accumulate. the thing is that when i insert the text grades it shows a zero when i click the buttom. the math …

Member Avatar for apo
0
322
Member Avatar for some

Here is my code, I am trying to make a smaller version of a chatterbot like Eliza. Anyways here it is.[CODE]#include <cstdlib> #include <iostream> #include <cstring> #include <stdio.h> #include <string.h> #include <string> #include <windows.h> #include <fstream> #include <tchar.h> // a few global variables char str[50]; // this one is for …

Member Avatar for some
0
138
Member Avatar for baseballfury

Hi there, I've created a page that uses 2 seperate functions for passing variables. The first runs when the page loads and requests categories from a database to fill a dropdown box. The second function sends a date value and the contents of the select from the dropdown box to …

Member Avatar for baseballfury
0
184
Member Avatar for tones1986

Hey guys, I am trying to store a varying number of coordinate points in an array. So i thought of a list, and declaring this list as an arraylist using the Point class. Make sense so far? Or am i incorrect already? In doing so i came up with this: …

Member Avatar for tones1986
0
4K
Member Avatar for avinash_545

Hi everyone, I am currently working on a small drawing application and I wanted to know if it was possible to insert a paint application inside a form,like vertically dividing the form into two. On one side you have some literature and on the other side you have the application. …

Member Avatar for avinash_545
0
73
Member Avatar for Alicito

Hello Friends I'm facing a problem and I can't figure out what is the wrong ( it is [COLOR="Red"]a Run~Time~Error[/COLOR]) I have these two classes [CODE] // singly-linked list class to store integers #ifndef INT_LINKED_LIST #define INT_LINKED_LIST class IntSLLNode { public: int info; class IntSLLNode *next; IntSLLNode(int el, IntSLLNode *ptr …

Member Avatar for Alicito
0
109
Member Avatar for xfrolox

Ok im making a tool for a game like always and im having a little problem. This tool is to prevent users to know the site so they can't steal or copy the files. i prefer not to tell what game it is. But when they are in game there …

Member Avatar for xfrolox
0
142
Member Avatar for CelestialDog

Hi guys, I've hit a problem I'm hoping someone can help me with. I'm trying to create a little irc bot application, just to learn how to use sockets in Java. Everything works fine so far up to the point where I try to pass the data coming from the …

Member Avatar for CelestialDog
0
116
Member Avatar for handrews3583

I have to write a program using accessors and mutators and a constructor that stores a savings account's annual interest rate and balance. The class constructor needs to accept the amount of the savings account's starting balance. The class needs to have methods for subtracting withdrawals, adding deposits, and adding …

Member Avatar for sfeinst
0
876
Member Avatar for josolanes

I'm using [this website](http://stdcxx.apache.org/doc/stdlibug/33-3.html) as a reference and am modifying some code to (hopefully) have it work the way I'd like it to. I *think* I'm close, but since I have no experience with custom paramaterized output manipulators (and have limited experience with custom output manipulators even) I'm kind of …

Member Avatar for josolanes
0
369
Member Avatar for gunbuster363

Hi, I have a dictionary storing many things... I would like to delete entries which have key of len < 3. But after I do the del statement, there are still lots of entries with len < 3, what happens? [CODE]for w in fdict.keys()[:]: if w.strip() in banset or len(w.strip()) …

Member Avatar for gunbuster363
0
83
Member Avatar for Fewa

I am trying to write a code that will launch the MSDOS prompt from windows and input a pre-set command line when i click a button, but am having trouble trying to find a proper way of getting it to work, if anyone could help me out, i would greatly …

Member Avatar for Mikav6
0
96
Member Avatar for euclid135

Hi all, I want to use some container for this case: i have 4 elements, say string1,string2,class1,class2. I need string1,string2,class1 to be united, means if i access string1 in this container you'll get class1. The problem is class2 is something flexible, sometimes it can be written, sometimes it can be …

Member Avatar for euclid135
0
120
Member Avatar for webman

Hello, I am a web developer who is having tremendous trouble with my Dynaform form. :( I have created a form found off my web design business website: [URL=http://www.focusonedesign.ca/form.htm]www.focusonedesign.ca/form.htm[/URL] and three things needs to happen, but during the php process I receive errors. To see the error which I am …

Member Avatar for annywo
0
348
Member Avatar for samal123

Hiii Everyone i)Show diagrammatically a linked list of 4 nodes, where each node consists of one pointer and one integer data item. ii)Give a declaration of this data structure in a language of your choice. State what language you are using I want using pascal language Please give me quick …

Member Avatar for FlamingClaw
0
260
Member Avatar for atticusr5

hey everyone, newbie programmer here, and i am working on a project to use linked lists, by creating a linked list class. basically i am using old code and modifying it to work with a linked list class. i am using visual studio to debugg, and it seems that my …

Member Avatar for atticusr5
0
171
Member Avatar for nchkalyanbabu

hi, What is 3-Tier Architecture and how is it implemented in ASP.NET? Can anybody please make me clear regarding this doubt..?

Member Avatar for dsweb1017
0
146
Member Avatar for chakde

Hi, I am trying to display a number of text boxes and drop down menus using a For Loop. I can only display one of each time I select any number from the drop down menu. Currently the For loop is commented out, but if I leave it there nothing …

Member Avatar for Taywin
0
96
Member Avatar for chouki

hello I'm trying to make a program that allows you to return and calculate the shortest common supersecuence using dynamic programming. The basic ideas of supersecuence common Shortest to search a given set of strings for example L, the smallest chain, which is one for each string supersecuence L. the …

Member Avatar for chouki
0
73
Member Avatar for Whusmaname

What I need to do is grab information in an "internet-station-control" program (NetTime) I have on my pc (The server) that tells me whether or not the user has used up their minutes on the internet-station connected to my pc (The server) that I'm running the program from, then run …

Member Avatar for Whusmaname
0
303
Member Avatar for Excizted

Hi. I'm just trying out Ruby on Rails, and I'm trying to create some application that takes a hostname from the user and then checks if it is connectible through Net::SSH and if it is, it should check if a file is present. Quite simple, and I also almost reached …

Member Avatar for Excizted
0
186
Member Avatar for P.manidas

Dear Sir/Madam, I want to draw a word/sentence over form by coding as like as pencil is drawing in Paint Programe. But in Paint Programe Pencil is handle by user, here i want it to draw automatically. (like somebody is writing his name by Pen/Pencil) Please guide me.

Member Avatar for billmaster
0
225
Member Avatar for buzzykerbox

This is an assignment for class,design a hangman program,I convert the letters of the random word to charchters,when the user inputs there letter how do I compare that with the secret word, and display it,any suggestions???? [CODE] for(int i = 0; i<word_to_guess.size();i++) { word_to_guess[i] = 'X'; } cout<<word_to_guess<<endl<<endl; while (lives>0 …

Member Avatar for Lerner
0
184
Member Avatar for elkinsdu

I have an xml document that looks like this: [code] <OUTPUT version="2.0"> <RESPONSE> <LOAN_DATA loan_id="xxxx" loan_number="1111" loan_type="HE" status_code="OK"> <![CDATA[<MORTGAGE_LOAN xmlns="http://www.something.com/CLF" version="1.0"> <APPLICANTS> <APPLICANT is_declined="N" first_name="MARISOL" last_name="TESTCASE" m_initial="L" middle_name="L" ssn="000000001" > </APPLICANT> </APPLICANTS> </MORTGAGE_LOAN>]]> </LOAN_DATA> </RESPONSE> </OUTPUT> [/code] I can successfully read down to the CData section and can even access …

Member Avatar for elkinsdu
0
229
Member Avatar for random12810

I have no idea how to move a bitmap with the arrow keys. Here is my code [CODE] #include <windows.h> #include <tchar.h> #include <stdlib.h> #include <string.h> #include "Menu.h" #include "Icon.h" LPCTSTR ClsName = L"App"; // Class name LPCTSTR WndName = L"WindowsAPI"; // Window title HWND hwnd; // Handle to our …

Member Avatar for strmstn
0
2K
Member Avatar for Drowzee

Hello, all. After trying to wade through a great deal of undocumented and uncommented code in order to speed up a frame capture rate, I've decided that, for my sanity and that of my boss and any coders to follow me, I should start over and write it myself. I …

Member Avatar for xorcrud
0
195
Member Avatar for lee.j.baxter

Hi everyone, I'm really, really confused with the whole CHS thing. Here's what I understand so far... INT13, function 8 can get me the following drive parameters:- Heads Cylinders Sectors-per-Track I can use the following calculations to get the disk space:- Sectors-per-Side = Sectors-per-Track * Cylinders Total Sectors = Sectors-per-Side …

Member Avatar for coffeeuncle
0
206
Member Avatar for tallygal

We are doing an assignment that reads from a file on the hard drive, asks for user input and then writes it to a different file on the hard drive. We have to use three different functions, besides the main, and cannot use global variables. I cannot seem to get …

Member Avatar for tallygal
0
134
Member Avatar for x_mysterious_x

I m trying to make simple windows look like calculator in java script. but when i add two numbers the result is zeroy . can anyone take a look on the code and can tell me where is problem? [CODE] <html> <head> <title></title> <script type="text/javascript"> var res=0;var z="0";var o="o";var y=0;var …

Member Avatar for x_mysterious_x
0
118
Member Avatar for codiction

This particular snippet will display a chessboard in a new frame. Needless to say save it in a file named "chessboard.java".

Member Avatar for mundvawala
0
1K
Member Avatar for kelvinyap828

basicallt i want to make a simple quiz...and the quiz contained 20 questions...but i have no idea in looping the question...so can anyone help me? [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; class Quiz extends JFrame implements ActionListener{ private JButton submit,next; private JTextArea text; private JTextField answer; private JLabel …

Member Avatar for stultuske
0
128
Member Avatar for allaboutdrew

Hi all Could someone please explain this program to me, especially lines 25 and 30. I understand that line 30 is a for loop and I understand how it works. However, I am unclear why it is minusing 3 from n and is n the variable passed from line 14? …

Member Avatar for allaboutdrew
0
202
Member Avatar for jackiejoe

I am looping through a list of DateTime variables and have got the .ToUniversalTime variable. I want to find out from the list which is the closest one approaching Now.ToUniversalTime but am having difficulty trying to work it out I had it looping through like this but this isn't much …

Member Avatar for Chris147
0
317
Member Avatar for tbth

I'm taking an intro VB class and am having trouble writing code for hangman game. I need help w/ creating textbox or label for the words. can anyone help? thanks

Member Avatar for tbth
0
151
Member Avatar for nakul_pancholi

Dear All, Hello..! I have one problem with html links. Suppose we want to set the link in our html document, we use <a href="filename.html"> Link </a> Suppose we want to go to a particular section to other html document then we use <a href="[COLOR="Green"]filename.html[/COLOR]#name> Link </a>. Here in this …

Member Avatar for almostbob
0
99
Member Avatar for Daaave

This snippet shows how to open, read, write and close text files. This skeleton can be modified to handle any type of file, from untyped to text to typed files.

Member Avatar for Deffcon
0
482
Member Avatar for gloris

Hi, how work with \ ? Now i get error where is \, how fix this code? This option is not me: instead of \ use \\ [CODE="C#"] string word = "Name\UserName"; string[] words = word.Split(''); foreach (string name in words) { Console.WriteLine(name); } [/CODE]

Member Avatar for gloris
0
89

The End.