199,112 Archived Topics
Remove Filter ![]() | |
Hey there, I am just a little confused with the code below, i parse the XML file although i cant call functions from outside the main. My programming isnt really up to scratch. Ive had a long break so now im paying for it :( Any help/ suggestions would be … | |
I need to read data from a data register n times and calculate the average of that and write it into another data register.... I dont know how to do this at all... Can anyone help me... | |
I have to write a function that takes an input such as this chevrolet, MALIBU and makes chevrolet into CHEVROLET and MAILIBU into Malibu I am having no trouble with capitalizing the CHEVROLET but when it comes time for the Malibu to be corrected it doesn't come out right. directions … | |
Hi, there Let me put my resource line and target lines here firstly resource line: 56 J=7224,164 SEC=CON450X450 ANG=45 target lines: *beam section,section=R, elset=CON450X45056,material=con2 0.45,0.45 0.707107,0.707107,0 I have a dictionary below (created using woooee's code) Frame_Section contains {'CON450X450': [['MAT', 'CONC2'], ['SH', 'R'], ['T', '.45,.45']], 'B400': [['MAT', 'CONC2'], ['SH', 'R'], ['T', … | |
i am at uni an i have a project in which i have to create a backgammon game. i have created the board the dice and the moves, now i need to do the legality of the moves i was wondering if anyone had an idea of how i would … | |
Hi folks! I'm an experienced web developer who finally has time to teach himself ASP.NET. I've worked with it from time to time, but have been delving deeper and deeper, lately. I've created user controls that are dynamically loaded into a Wizard control. (I'm no veteran, but not sure if … | |
I am unable to execute these codes. This code is a replica from a website. I used Testing.java and Person.java. Should the files be named comparable.ex01.Testing.java and comparable.ex01.Person.java? As I am pretty new to java I have this doubt. [CODE] package comparable.ex01; import java.util.Arrays; import java.util.ArrayList; public class Testing { … | |
Hi. Intel Xeon CPU 2.40Ghz -- 2GB Ram Windows 2003 R2 Standard edition - (SP 2 applied) SQLServer 2008 Management Studio 2008 (v 10.0.1600.22) I am trying to add a maintenance job using the wizard to perform a backup and I get almost to the end and then I see … | |
I have been trying to format a date that I receive from a value in a mysql database. The format in mysql is as follows. 1986-08-02 I want to convert that to Aug. 2, 1986 I tried the date function in php and it was not working for me. Anyone, … | |
I'm working on a program which requires me to read in a file of input and organize it by calling a few functions. The first function I'm writing breaks up the input and assigns it to the appropriate array. For some reason what I keep getting back is random values. … | |
I don't understand what getstream is about nor do i know how to change a certain part in an array to something else. please help me. [code] // ************************************************************************** // // Airplane.cpp // // Program that displays the seat diagram for an airplane and allows the user // to select … | |
Hello Everybody! I'm trying to catch the entering event (when the control becomes active in a form) of an hScrollBar. It would be used for an undo/redo process, and whenever I click on it, or just tabbing to it or anything else, the enter event won't fire. Anybody got some … | |
Plz provide me complete discription of four algorithms used for sorting arrays e.g bubble sort. | |
([I]Invoice class[/I] Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces of information as instance variables— a part number (type string), a part description (type string), a quantity of the item … | |
HI All, I have ollowing code to delete the image by using File.Delete(fileNamefordel + ".jpg"); function. It works fine on local server but not on uploaded server. string fileNamefordel = Server.MapPath("StdImage") + "\\" + (Session["lCandidateID"]).ToString(); if (File.Exists(fileNamefordel + ".png")) { File.Delete(fileNamefordel + ".png"); } if (File.Exists(fileNamefordel + ".gif")) { File.Delete(fileNamefordel … | |
Hi again, I'm trying to use a python wrapper for the last.fm api. It's pretty old but seems to be working ok (for now). See [url]http://code.google.com/p/pyscrobble/[/url] Anyway, I'm having trouble extracting some information from the output. [CODE] import scrobble user = scrobble.User('mattfeliks') # invoke user class recent = user.recent_tracks # … | |
Forgive my ignorance, I am learning. I am writing a C++ BlackJack program for school project. I have googled and incorporated the following code into my project. My results are I am getting a value for the cards of 2 - 5 and i do not understand why. If someone … | |
Hi all, I am a newbie to C programming world. In my program I want to log information into a log file whose file name should be filename_date_time I am using following code to write information but need help in changing the file name from filename to filename_date_time. [CODE] #include … | |
I want to create server in one system and make another system as clients like if i save data in server that is also saved in clients system .So what datasource i have to give i mean to say that if i run setup in any system then that database … | |
I have an assignment that needs me to read in a file that is a source code in a .txt file. Then read in a file listing c++ keywords. Examine the first file for those keywords and convert them to lowercase and export the new file into a .cpp file. … | |
I apologize beforehand if this topic is in the wrong place. Quite honestly I am desperate for help. I have a project for school involving Firefox and making an extension that is a visual database. My professor suggested I use SQL Lite to make the database. I am so beyond … | |
I am trying to display/hide different div tags when a checkbox is checked and when a California is selected as a drop-down value. I have it working when the check-box is selected and choosing the drop-down value, but not when the drop-down is selected and clicking the check-box. I hope … | |
i want to read to a 2d-array from a file, but for some reason the file is not opening (at least thats what the output says) [code=cplusplus] #include <fstream> #include<string> #include <iostream> using namespace std; int main(){ string filename; cout<<"Please type the name of the file"; cin>>filename; fstream file(filename.c_str());//same result … | |
[code=c] // a code which prints "hello world" #include<stdio.h> int main() { (&printf)("hello world"); return 0; } why does the above code work? #include<stdio.h> int main() { char str1[]="hello"; int j=762; char str2[]="hello"; if(str1==str2) printf("true %d\n",--j); else printf("\nfalse %d\n",j--); return 0; } [/code] //the above code prints "false 762", why? … | |
Hey guys, How do you handle exceptions in your programs? For instance, I have this function: [code=cpp]bool load_file(const char *filepath, std::string &dest) throw (std::bad_alloc, std::runtime_error) { using namespace std; ifstream file; file.open(filepath, ios::binary); if (!file.good()) { throw runtime_error("Couldn't open the file"); } //get filesize in bytes from ifstream //seek end, … | |
Hi, I am working on VB.Net. I have a sub form with a datagridview, that is being loaded with the criteria taken from another form. Hence this form is called with parameters. Here is the code that calls the sub form. [CODE] Dim frmHis As New frmHist(ds, rb) frmHis.Show()[/CODE] where … | |
![]() | Hello, I have the following tables: tbl_Products, tbl_Categories, tbl_CategoryFields, tbl_ProductDetailsText tbl_Products houses basic product data, such as ID, CategoryID, Title, Description, Body, Date, Status, etc... tbl_Categories has ID, ParentCategoryID, Title, etc... tbl_CategoryFields has custom fields that the user can add in a CMS for specific categories. For example, Category A … |
Hello, I have just finished writing the code for my FTP application but according to my code, everything should work fine. But when I run my application, the file is not transfer to the server. Can someone please check where I am going wrong. I am sending the code as … | |
Hello everyone, Actually I want to learn more about thread, can we have more than one "run" for thread in a program ? [code] package ignisftpv20; import javax.swing.JFileChooser; import java.io.*; import java.net.*; import javax.swing.JOptionPane; public class FTPClient extends javax.swing.JFrame implements Runnable { JFileChooser fileChooser = new JFileChooser(); File fileUpload; ObjectInputStream … | |
Hi all i am new in ASP. Net How can i start to learn ASP.NEt | |
Hello everyone, I just fall on an article on design patterns. They said that if you want to become a good programmer, you must follow design patterns. But till now I have never follow these patterns. I don't even know how to use design patterns, they said that there are … | |
I am trying to bind data coming from a GridView into a variable. I only need one item "EmployeeID" from the table. This variable will be set to a guid type and passed to a global class file for use in other pages. I am new to NET so I … | |
Hello I want to display all images from a particular folder on a web page, such that web page shows thumbnails of images and after clicking on thumbnail, image should get open in new window. For this I want a script so that i can run for loop for total … | |
i want to start programming a new program (electronic health care center) in python and before start learning python i wanna make sure that python does have all the features i need to accomblish this project so i wanna ask you does python able to support these features : 1- … | |
Hey there, I am going to start a larger project. For this I just set up my programming invironment as follows: python2.5 numpy scipy matlibplot PyOpenGL ctypes I then tried to test the installation with a simple example. First I found the warning: [COLOR="Red"]No handlers could be found for logger … | |
hi, i'm new here and got a really simple problem. i need to parse a conf file, where # is a comment, like this: [CODE] # Begin conf VAR1 = VAL1 VAR2 = VAL2 # end [/CODE] i want to skip all comments and read VAL1 and VAL2 to members … | |
hi, i am using visual web developer 2005 express. i am trying to locate the web.config in the solution explorer, but it is not there and i don't know any other alternative way to know where it is located. please help. | |
dear frnd help me to solve a problem I want to show search result on form which has a number field, as numbers are in simple formate of integer column(without commas),but when results come on form, the numbers greater then 1000, comma r automaticaly inserted in it......how to remove these … | |
i need help on how to create a C++ program that will input string of characters and will count the number of different vowels, consonants and symbols included in the string. Input a string => "program!" total letter 'a' => 1 total letter 'e' => 0 total letter 'i' => … | |
Hello all i am in ned of help with getting a cgi script to output to a flat file with out the use of a cron job whis is what ive ben using as such perl /[path to cgi file]/vfx.cgi > /[path to plx folder]/vfx.txt can i add a line … | |
I have two MFC Window Form. The main window will call the second window to process a necessary input then the result generated by the second window should appear in the main window's edit box. But the problem is I don't know how to do it. Does anyone knows how … | |
hi I want to write this code in do while or if else, or any other way except for loop. here is the code [CODE]for i in range(65,90): for j in range(65,90): for k in range(65,90): token=chr(i)+chr(j)+chr(k) block = ((i<<16)+(j<<8)+(k)) cblock = pow(block,e,n) table[token]=cblock[/CODE] can anyone please help me to … ![]() | |
Dear all, I have 2 tables : [CODE]create table test ( FieldA varchar(10), FieldB varchar(10), FieldC varchar(10) ) and create table test_trigger ( FieldA varchar(10), FieldB varchar(10), FieldC varchar(10) )[/CODE] I create Insert Trigger in test table. Every time test table is inserted new row, automatically inserted in test_trigger table. … | |
Hello friends, I am new to assembly language and I want the user to input a string ... then save the string in a stack. Is there a function to get the string from the user, like getStr . Thanks in advance. | |
Hi there, i have a quick question. What is a good software that we can use to build php pages??? I heard that netbeans is a good one!! i never used php before, and would like to have my own website using php. It's not a complex website, it's fairly … | |
Hi to all, I integrated the supercali calendar to my office intranet application using a iframe. I also changed the meta attributes and made sure it is not cached. Still my boss does not find the events or calendar items, instead gets a blank calendar. I tried even the frame … | |
I wrote this php birthday script to send emails to people whos birthday is today. I know there is a more efficient way to do this, but because i did not use the standard unix timestamp in my mysql database. I had to do it this way which was a … | |
I need to execute the following SQL command from within VB: [CODE]CREATE LOGIN [rx] WITH PASSWORD=N'rx', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF[/CODE] I've been trying to find info for days but everything always deals with updating tables etc If someone could show me the connection string and have to execute the statement … | |
Hey guys I need to copy multiple string arrays into one array to use to display output. I need to copy the name, addr, telephone, carinfo, payment array to the output array. How would I go about doing that. [code=cplusplus] #include <iostream> #include <iomanip> #include <fstream> using namespace std; void … |
The End.