199,126 Archived Topics
Remove Filter ![]() | |
I'm a little new to programming and for my class I've been asked to do a recursive program where you input a directory and it will find all the files in that directory and any subdirectories in that directory, etc etc until there aren't any more subdirectories. Quite honestly, I'm … | |
Hi All, I have been doing a little VBA in excel and I am tring to work out how to add 2 hour {or any amount of time} to the current time. Google has failed me in finding the answer, most of the things i have found is formulas but … | |
I've been trying to figure out the code for this problem for a long time and I'm stumped. The problem is: The library for which we design this system has only books and magazines that are available for library members to borrow from its circulation. Users of the library are … | |
Hi I am trying to join 2 sentences together using php and mysql. How can i do so? I am doing this as i need to add an update of a new remarks to the existing remarks. For example, $first = '[B]Hello[/B]'; $second = '[B]world[/B]'; To get the string '[B]Hello … | |
I'm trying to create a calculator in MARIE Assembly Language. After some brain storming, I have addition, subtraction, and multiplication codes. I'm completely new to this language and would like to get some help on how to get started. Any help will be appreciated. Thanks ORG 100 /Start Input Store … | |
I am doing a homework assignment for CSI 330 and not sure how to begin this program. It is asking me to initialize and unsigned int variable mask, with a value whose binary representation has a 1 followed by all 0's. The second part says... For a counter running from … | |
I want the program to update or add to a database. If an item is selected from the dropdown menu (filled with the product names already in the DB), they I need to update the fields with the information typed by the user or update the picture that is uploaded. … | |
I'm trying to could backup one of tables from database using php only. I'd like to save result in some directory at my server or (the best) send it via e-mail. My problem is that: - [B]exec()[/B] is disabled - [B]system()[/B] is disabled I'm tried to use "[B]SELECT * INTO … | |
Only Single image is display .guide how i display multiple image in our page in php i am sending coding . there are two file1.php and file2.php .guide me file1.php [code] <?php header("content-type:image/jpeg"); $con=mysql_connect('localhost','root',''); if(!$con) { die("colud not open"); } $d=mysql_select_db("test1"); if(!$d) { die("colud not open"); } $q1=mysql_query("select * from … | |
hey, i have written method to get the names of the employees from the database. how can i sort this to alphabetical order the code is below C# Syntax [CODE] public String[] FillComboBox() { int NoOfRows; String firstName; String lastName; db.openConnection(); DisplayLoginUserName(); String query = @"Select * From Employee;"; SqlCommand … | |
Could someone help me with this - I've cracked my head since. When i submit a form and then retrieve the data, there is no paragraphs. Yes I am aware of HTML encoders like TINYMCE but I'd like to submit in plain text. I tried htmlentities and htmlspecialchars but nothing … | |
![]() | hey guys, Im doing an assignment for tech... the tutor is somewhat useless I need to make an array that can loop 10 random numbers and then display them, pass that to a function and then have that display all the numbers in ascending order using for, while and if … ![]() |
Hi, i am having some difficulty calling this function, can someone please point out what i have done wrong here. The code is as below appreciate your help. [CODE]#include<iostream> #include<stdlib.h> using namespace std; void speed_value(int input) { int speed; char character; if(speed > 60 && speed <65) { cout<<"Warning"<<endl; } … | |
Hello, I am trying to do a first fit allocation in java my problem is how do i keep track of which memory block i have cheked and if there are no suitable blocks put the job in a waiting queue. Thanks for all help [CODE] import java.util.*; import java.util.Scanner; … | |
Hi, I am running the scripts below which should return a string containing a URL. So far, it cannot find the form contents in Firefox, but displays the non-dynamic data such as [I]?Location=[/I]. It won't work at all in IE. Can any one help? This is the form: [CODE] <!DOCTYPE … | |
Hi i know this may sound a bit silly but i have looked through some websites but can't really find exactly what the difference is between "=" and "==" For example [CODE]if(x==0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] how is that different from [CODE]if(x=0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] thanks | |
Write a C program using do while to find and print the average of three exam results of a student that will entered as an input from the keyboard. It repeats as many times as the user wishes. The program will ask for entering new entry (student grades) confirmation and … | |
Hi, I want to write a script which will search the net based on a few parameters. They are: 1) Find sites which high pr. 2) Sites should have the feature to allow users to register. I know very basic php and I was wondering how I should go about … | |
Hey guys, I am having a problem figuring out how I would extract all the links from a webpage, and then filter them to get only a certain type of link. For Example: i want to filter all the links that start with: [url]http://www.googleads[/url] How would I do this? (PS. … | |
Hi everyone, This is the error I get for this project. Been through the code all day and no problems found, still I get this error: DB access error(You have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to … | |
Hey is their a standard library that gives false and true values or something or are you suppose to assign them?? Im writing a function that suppose to return true or false. And i also tried replacing the words true and false by !0 (true) and 0 (false) but my … | |
Hello All, I am a little new to .NET Developing, and have learned a great deal recently, but I'm stuck with something. I come from an ASP Background, so please excuse my ignorance ;-p I'm trying to subtract 2 variables, but they don't seem to 'see' one another. I can … | |
I have a piece of code that works for adding multiple rows to a dataset but I think that it is a lot of code and thought maybe someone may know a better way of doing it. I need to add rows to the dataset based on the selection of … | |
I am very much a beginner and trying to create a linked list, asking the "user" to input 5 or 6 values. My problem is that I don't know the correct terminology or how to store the user's input so that I can create my pointer to the next value … | |
How do I do the following? I am beyond lost. Just inform me of whatever you can. I know noone will do it all Here is what problem 21 states: If A is an n x n adjacency matrix for a directed graph, then the entry in the ith row … | |
Hi, I'm writing a email program and i need to make it so that when I delete a item from a listbox it also deletes from a text file. Right now all it does is delete it from the listbox and when the program is reloaded its still there. Any … | |
hello..i want to print a form2 that get the data from form1 . my problem is i can print that form2, but the data from from1 cannot get to form2..can anyone help me?:( | |
This doesn't really have anything to do with Php but I'm following a php tutorial so...I've NEVER used any database system before... Anyway, I'm following this tutorial, [url]http://buildingbrowsergames.com/2008/04/15/designing-your-database/[/url] I'm up to the part where your making the user sql table in the tutorial. I have no idea where to input … | |
Can you do that? I can't seem to get it to work. [CODE=C#] lblfiledate.DataBindings.Add("Text", bindsrc, "filedate"); [/CODE] Doesn't work. | |
Hi all. Just a quick question for anyone who may be able to ehelp. If a user is to enter a choice and i use scanf to read it in. When that choice is a character that is entered, if the user enters either a character that is not that … | |
hi, i have a method that get the firstname and the lastname of an employee in the database and merge it together and then put it to an array and returns the array how can i return the array from the method. the code is below. C# Syntax [CODE]//This methods … | |
the program runs successfully but the final output comes out in the form of an infinite loop...please help [CODE] #include<iostream.h> #include<fstream.h> #include<conio.h> #include<stdio.h> struct emp { int eno; char name[20],desig[20]; float sal; }e; void main() { clrscr(); ofstream f1; f1.open("emp.dat",ios::app|ios::binary); char ch='y'; while(f1) { if(ch=='y'||ch=='Y') { cout<<"Enter the name"<<endl; gets(e.desig); … | |
Hi I've been working on a pretty basic program, however I've run into a couple of problems that I've been playing around with for about an hour and I just can't figure it out. [CODE]#include <fstream> #include <iostream> #include <iomanip> #include <cstdlib> #include <string.h> using namespace std; const int MAX … | |
I think I understand functions but maybe not. I am getting an error on my open files function. I looked around a bit and didn't find any answers. The compile dies on line 36 'char' should be preceded by ')' I don't know whats wrong. Any help would be appreciated. … | |
I am trying to show a diff in two files from a daily script. i am unable to get it to read the files correctly and show what is different. example of the files is - <ad_xml> <group name="group1"> </group> <group name="group2"> <user> <name>user1</name> </user> <user> <name>user2</name> </user> <user> <name>user3</name> … | |
I ran into this particular problem at work and found it quite interesting. While implementing a multi-level image threshholding algorithm, I discovered that I needed to find all the ways I could partition a range of integers into some number of consecutive groups. I like my solution, but there may … | |
can anyone tell me why this is getting a runtime error? [code=html] <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="windows-1251" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.Odbc" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ Register TagPrefix="uc1" TagName="links1" Src="/includes/_header.ascx" %> <%@ Register TagPrefix="uc2" TagName="links2" Src="/includes/_nav.ascx" %> <%@ Register TagPrefix="uc3" TagName="links3" … | |
Hi All, I am just wondering how i would check if the below checkbox was clicked or not? [CODE] private JCheckBox postage = new JCheckBox("Postal Delivery?");[/CODE] When the form is submitted i need to check the box and get a boolean saying true or false based on clicked or not … | |
I need to get my jlist to simply display a one word subject. When I do it the way below, it obviously prints: "subject: blah location: blah date: blah path: blah." How can I get to set an JList to simply display the string title of the picture rather than … | |
It will compile, and run for a split second- but then it quits itself. I've had three people look at it, but no one can see the problem. [CODE]#include<iostream> #include<conio.h> #include<iomanip> using namespace std; void getRaise(double pay[], int size) { for(int x=0; x <size, ++x;) pay[x] *=1.05; } int main … | |
Hi, can some one please have a look at my code for the user to enter integers and display it back to him. For some reason my program can not accept more than 8 integers? I wrote this program for a class assighnment where we where suppose to ask the … | |
Hello--- I've written a class where I would like to overload the equal sign (= sign) operator so that I can return a double during an assignment. The following code snippet shows what I would like to do, but for some strange (probably small) reason, it does not seem to … | |
I have been using VS 2003 forever. I am just starting to use VS2008 and I am about to just trash it. It will not render the start up form which is now in a partial class. It uses it to build because I use the objects defined in that … | |
I had a question...Im using TKinter in python trying to build a GUI to run some command prompt scripts others have made. I am having some trouble though...pretty early on... I can open a file and get the file name, but I can not even pass the file name to … | |
Hi, I want my cookie was changing like that: 1,2,3,4,1,2,3,4,1,.... after each time I refresh the page. but it is changing somehow randomly. [CODE=php]if (!isset($_COOKIE["bbb"]) && empty($_COOKIE["bbb"])) setcookie("bbb", "1", time()+3600); else { switch ($_COOKIE['bbb']) { case 1: setcookie("bbb", "2", time()+3600); break; case 2: setcookie("bbb", "3", time()+3600); break; case 3: setcookie("bbb", … | |
[B]Hello everybody, hello Dani:icon_cool:![/B] I'm doing my homework of 'Data Base', exactly in the chapter: Relational Algebra, here I am, I can't find a specific relation (or the SQL corresponding query) :icon_confused:! Here the schema: [COLOR="Green"]MEAL(guest,date); MENU(dish,date); PREFERENCE(person,dish);[/COLOR] I wanna find the SQL query (or the relation in Relational Algebra):[COLOR="Green"]"the … | |
Hi everyone, I've been charged with creating a complex database that includes all kinds of entities with common data elements including customers, users, vendors, shops, organizations, etc.. I've worked on databases with separate tables for each primary entity like (customer table, lead table, vendor table, user table, organization table). My … | |
Hi all my code is : [CODE]Dim s, w As String s = "a b c 1" w = [U]s.Split(" ")[/U][/CODE] The error is Value of type '1-dimensional array of string' cannot be converted to 'String'. Any ideas ? | |
am trying to get uniqueID in the following segment of code to count how many times the if statement gets used, but all i get is a list of 1's. Any ideas?? [CODE]if (is_tri == true) { //add the triangle to the list unsigned int uniqueID = 0; uniqueID++; cout<< … | |
I have the xml from an Excel worksheet as given below. I would like to have a xslt to parse and extract the Excel rows in asimple xml format as given below based on the data picked from the named cells. I was able to collect data for each row. … |
The End.