199,113 Archived Topics
Remove Filter ![]() | |
Hello, I'm a high school student and I just started learning Python. I'd really appreciate some help on some problems I've been assigned, and some tips that could help me out in the future with problems like these. >>> getLeaves ( jenny ) [5,3,0,9] >>> >>> getLeaves ( joshua ) … | |
can somebody explain the mechanism of the keyword "malloc"(allocating memory) in C++ by using a simple program code.........? | |
I have an array codes[26] which contains numbers inside {25,4646,23,12,.....29} Each position in the array corresponds to a letter of the alphabet. code[0] is a, code[1] is b, etc... I'd like to print the occurrences of each letter, something like this. If there are 12 A's, 5 B's AAAAAAAAAAAAA BBBBB … | |
I'm trying to run this code in cygwin 1.7 but i get segmentation fault when I choose to search. I tried this in cygwin 1.5 before but it works. does anybody know the reason why it won't work in cygwin 1.7? here's the code [CODE] /**************** Rachel Perono running BST … | |
I'm currently trying to create a program which factorises a number entered by the user, as reccomended by the sticky. When I run the program, I get "error C2061: syntax error : identifier 'cin'". Here is my code: [code] #include <iostream> using namespace std; int main() { int iFigure; int … | |
hi.....um reading killer game book.and when loading external models it imports ncsa portfolio package.....i dont know where i could find this package and whether this package is included in java3d api??thanks in advance for any help....... | |
Hey everyone, I have a series of loops that read through a text file and then output the occurrences for each letter on the file. This seems to be fine when using small text only. When providing a lot of text it just takes too many CPU resources and that's … | |
CAN SOMEONE TELL ME HOW THE console eraser work in the below PROGRAM PART...............describe the LOGIC??????????? [code] //Creating and hiding password. ConsoleEraser consoleEraser = new ConsoleEraser(); System.out.println(); System.out.println("(Please enter the common Password)"); System.out.print("PASSWORD : "); BufferedReader passin = new BufferedReader(new InputStreamReader(System.in)); consoleEraser.start(); String passWord = passin.readLine(); consoleEraser.halt(); System.out.print("\b"); //Password matching. … | |
I'm just starting with PHP and I was given a rather difficult task. I need to search through multiple XML files in different directories, then return the name of the files that contain a given search input. Will it be easier to write a script that reads all XML files … | |
[CODE]/* This function accepts a socket FD and a ptr to a destination * buffer. It will receive from the socket until the EOL byte * sequence in seen. The EOL bytes are read from the socket, but * the destination buffer is terminated before these bytes. * Returns the … | |
i have created a system for a library using java using input and output jframes but i need to access that project using a .exe file by just a double click...how can i do that | |
I wrote this code because I wanted the members of my volunteer organization go have a place they could easily get the most current list of email addresses to send a message. This code reads the names and addresses from the database, and creates a comma delimited list of addresses … | |
hi I have a TextBox that I want it's default language sets to farsi I mean when somebody whants write on it ,by default language sets to Farsi-IR | |
my i have wrote my code is like this but m not to get get proper out put here is my code [CODE] System.out.println("Enter Date of Birth dd/mm/yyyy"); DataInputStream in=new DataInputStream(System.in); String dob= in.readLine(); String[] dob1=dob.split("/"); int year=Integer.parseInt(dob1[2]); int month=Integer.parseInt(dob1[1]); int date=Integer.parseInt(dob1[0]); System.out.println("Date : "+date+ "Month : "+month+" year :"+year); … | |
Hey guys, Back again, I needed to ask two very quick questions: Number 1: In a login form,how do you make sure that the user doesnt type their username or password in Caps? Number 2: How do you display error messages after the user has tried to login with the … | |
Hello everyone! I am using python 2.6 on cygwin environment and wondering how could i prevent two python processes from writing to a file at the same time. The file that is shared between the python processes is an ini file and is accessed through ConfigObj module. The first python … | |
Hi! I am doing a project that's about inheritance and I've solved the most of it. I have some problems with removing a vehicle (car or motorcycle) because they have different characteristics. A car has these characteristics: brand, age, regNr, price, fuel, size A motorcycle has these characteristics: brand, age, … | |
Hello, (this is not a homework). So, I've created a graph as adjacency lists: [CODE] class Edge; class Vertex { public: Vertex* vNext; Edge* adjList; char FirstElement; bool marked; Vertex(char a) : FirstElement(a), vNext(NULL), adjList(NULL), marked(false) { } }; class Edge { public: Edge* eNext; int weight; char SecondElement; bool … | |
hello .. there is a weird problem in a website that im developing.. the problem is i cant a call external javascript if its located in a folder.. but if i put that in the directory where the index.php is located also i am able to call the javascript.. sample … | |
I am working on a web browser for fun and to get a little more acquainted with VB. I felt lost during school this past year and wanted to do something that sounded like fun. Ok, enough of that. When I put in my code to just press enter after … | |
Hi I am using two linked server Both have same tables by using sp_tables_ex 'linkedserver name' this I can see list of tables.One Emp table is available in that list but when I try select * from Openquery(linkedserver,'select * from public.Emp') then it show me error like Error message: ----------------------------------------------------------------------------------------- … | |
hi! i am a final year student could you tell me which topics i can make a project on | |
Hi all I'm trying to learn php by myself I got as far as creating my first data base and table using the following code: [code=php]$con = mysql_connect("localhost","root",""); if (!$con) { die('Could not conect: '.mysql_error()); } //Create database if (mysql_query("CREATE DATABASE FATBYTES",$con)) { echo "Database created"; } else { echo … | |
Hello there, so i have this current project for school and i`m kinda stuck the program i`m suppose to write is this : __________________________________________________ ____ Each year many tourist visit our country please write a program that collect the following information: Name(first,middle,last) sex country age profession Also the program shoud … | |
Hi all, I want to create a function in c# which receives a paramater (name of a field from a table in oracle) The function will have to return the distinct values of the specific field.I don't know how to insert the parameter into the [I]select distinct(parameter) from table [/I] … | |
Hi, New to Java & hoping you can help me with an error message I am getting. The compiler says "Cannot find symbol - variable evt" for the first line of the below code. [CODE]if (evt.target==calc) { clickedCalc(); return true; } else return super.action(evt,obj); for(int i=0;i<12;i++) result[i].setText(" "); // clear … | |
I have written code for adding and removing dynamic rows.i am using same file for both ADD and MODIFY operations.this page is working for ADD operation. lets say for MODIFY operation one employee has added 3 rows and i need to display those rows and user can edit thoese rows … | |
Hi Guys, I got a problem with updating images in mysql database wih php form. It succesfully inserted the images into the database, but it can't do any updates/changse on the existing image record. Thanks [CODE] <? session_start(); include("database.php"); include("login.php"); $pro_id = $_POST['pro_id']; $pro_name = $_POST['pro_name']; $pro_cat = $_POST['pro_cat']; $pro_desc … | |
Hi, I am having "Out Of Memory" problem with my program.I am using Borland C++ 5.0. I have an MySQL type database and trying to access one of its tables.The table which I am trying to access (activate) is around 450 Mbyte.Here is my sample code which gives error: [code] … | |
Hy sorry for my bad english I have transaksi_pembayaran table and have a tgl_tran field, tgl_tran is a date but has type varchar, how can I get date range in mysql? date range like this : 14/2/2005 to 27/2/2005 (d/m/y) | |
Hello all, I'm somewhat new to programming but I had a quick question. I have created a program to take a text file and convert it into a datatable. Unfortunately, however, I seem unable to attach this file to a database. I am getting an invalid object error stating that … | |
i have been having this error massage tying to do certain registration on Nigeria army website [url]www.nigeriaarmyms.org[/url], and i keep on getting this massage: "you have an error in your SQL syntax; check the manual that corresponds to your mySQL server version for the syntax to use near 'AZEEZ', surname= … | |
Hi! I am new to Python. How to print number+string+array? | |
Hello Developer, I am having problem to passing parameter from one user control to another user control. I am developing an application that have reusable functionality , so I converted each aspx page into .ascx page(i.e. User control) of my application which is perfactly run in aspx page. But here … | |
Can anyone please assist how to retrieve data for dropdown menu from database. I have dropdown menu in mysettings.php of login script v2. The array i am using retrieves the all contents from the database for selected dropdown menu but it does not retrieve the specific saved data selection (dropdown … | |
Hi, Is it possible to read a file only to get the first 100 bytes from the begining and the last 100 bytes at the end? I have to get info from files that are in the first 100 bytes and in the last 100 bytes of the file and … | |
I am relitively new to C#. On thursday I started out writing a Tic-tac-toe game. Just a basic gridbuilder, ask the user where they want to go, alternate the users, as player2 where he wabts to go (checking if the move is 'legal'). I've just kept adding to it... This … | |
Hello I was helping a fellow daniwebber and I noticed that I have no idea if it is possible and how the syntax works for it. Any help appreciated. example of how I think it works. [CODE] function retTrue(){ return true; } //code in if if(retTrue()){ //do some php } … | |
Hi, I would like to pass data to dialog box where the page in background is faded out. A good example is when I click 'LOG IN' on DANIWEB, I get a dialog box with username and password fields and the rest of the screen is in gray. Can someone … | |
Hi, I'm a student learning to code in C. This is what I have only when I compile it, gcc, I get two error messages and I don't understnd why. The messages are '67: error: expected declaration or statement at end of input' and '67: error: control reaaches end of … | |
Hi guys, We have a custom-written online invoicing system, written in PHP. Right now, it generates an HTML invoice (with CSS etc) and sends that to the clients as an HTML mail, but since a lot of mail clients regard it as spam, disable functionality and images, or just completely … | |
hello can you please help me how do i put checkbox in my ms access..or how to code this in my program hoping for your positive responds...thank you in advance | |
<HTML> <HEAD> <TITLE> MEA </TITLE> <link rel="stylesheet" type="text/css" href="test2.css" /> <style> .suckerdiv ul{ margin: 0; padding: 0; list-style-type: none; width: 160px; /* Width of Menu Items */ border-bottom: 1px solid #ccc; } .suckerdiv ul li{ position: relative; } /*Sub level menu items */ .suckerdiv ul li ul{ position: absolute; width: … | |
Hello, Can i make one picture for all my website, please ? like Google: [url]http://www.google.com/images/srpr/nav_logo13.png[/url] Thanks. | |
<code=python> >>>f = file("sendBuffer.dat","rb") >>> f.read() '\x81x\x00>\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00A .\x00\x10aG\xce\x00 \x00\x00\x00\x00\x00\x00\x00\x01\xcd\xccL@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' >>> text = f.read() >>> print text </code> In the above code f.read() prints the data, but when i say print text or print length of text it returns NULL and zero respectively. Any Ideas? | |
i need to upload images in imagegallery throuhg plugin in '/wp-content/images' folder. for that i need to set this path in 'Miscellaneous Settings' given in wordpress. if i give '/wp-content/images' there, all the images i upload in wordpress will be going tho this folder.. otherwise if i give the option … | |
Hi.i want to use a ajax updatepanel.on postnack i only want the datalist "dlEvnt" to get refreshed.but thats not happening.can anybody tell me what to do. Here's my code [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="news_evnts.aspx.cs" Inherits="news_evnts" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD … | |
I'm having trouble with this code its part of a birthday profile for class everything else works but this date.cpp file....looked all throughout forms but can't find this particular one..Please help [code] #include "stdafx.h" #include "date.h" #include <string> using std::string; class TestBirthday { public: static void main() { int num; … | |
Hi everyone! I am a junior database programmer. I need to know how can I save image in SQL SERVER 2000 by VB.NET? I made a table in SQL SERVER with two fields. One is Id[nvarchar] & another pic[nvarchar]. I got two forms there in VB.NET project. In the first … | |
[code] import java.util.Random; import java.util.Scanner; public class AssignmentMenu { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int loop = 0; String randomLetters[] = { "a", "b" , "c", "e" , "d" ,"f" , "g" , "h ", "i", "j" , "k" , "l" , "m" , … |
The End.