199,114 Archived Topics
Remove Filter ![]() | |
![]() | 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 … |
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 | |
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: … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … | |
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> … | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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()) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
hi, What is 3-Tier Architecture and how is it implemented in ASP.NET? Can anybody please make me clear regarding this doubt..? | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
This particular snippet will display a chessboard in a new frame. Needless to say save it in a file named "chessboard.java". | |
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 … | |
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? … | |
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 … | |
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 | |
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 … | |
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. | |
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] |
The End.