199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mbouster

Hi guys, I need to implement a program for simulating the flooting algorithm. Can someone suggest from where to start. I will use structs or classes? How the flow of the program will be?

Member Avatar for mbouster
0
2K
Member Avatar for Darion

Well i just bought "python for the absolute begginer" and title says it all. The task at the end of the chapter wants me to print "Game over" and then write something like '\n\nPress the enter key to exit.' which i causes the program with double click however this is …

Member Avatar for Darion
0
371
Member Avatar for qasimhasnain

hello i am try to write a c compiler i have written a lexical analyzer code next is parser can i integrate it with some standard parsers what should be my next step can some one help me through

Member Avatar for L7Sqr
0
156
Member Avatar for eman 22

is there a way to convert from pointer array to array I tried the following, but it doesn't work. [CODE] int[]a={1,2,3}; int* p; p=a; a=(*P);// doesn't work [/CODE]

Member Avatar for mike_2000_17
0
88
Member Avatar for confusedman

Hello i am new to python and i am getting increasingly worried. I have a deadline on tuesday and i have to make a game in python. I have tried and tried but i am useless at python. Therefore i have decided to finish off a piece of code that …

Member Avatar for TrustyTony
0
314
Member Avatar for choboja621

I`m new in Programming stuffs. So here is my codes: [CODE]#include<iostream.h> #include<conio.h> float records[5][5]; float ave; int ctrX, ctrY; main() { clrscr(); ctrY=0; for(ctrX=0;ctrX<=4;ctrX++) { cout<<"Student Number: "; cin>>records[ctrX][ctrY]; ctrY++; do { cout<<"Quiz 1 Score: "; cin>>records[ctrX][ctrY]; if ((records[ctrX][ctrY]<0)||(records[ctrX][ctrY]>30)) { cout<<"The score supplied must be from 0 to 30 only!" …

Member Avatar for Moschops
0
99
Member Avatar for geekme

Hello, I want to learn PHP as I'm interested in designing Wordpress blogs.But I do not know about PHP or CSS.Don't even know the IDEs one has to work on.How should I begin?Please help. Regards

Member Avatar for tomato.pgn
0
88
Member Avatar for Rishikeshan

Is there any way to list *.css from directories/subdirectories recursively? I want to make a css selector... The following script lists nonrecursively... But i need a recursive list... themeselect.php : [CODE] <?php if (ini_get('display_errors')) { ini_set('display_errors', 1); } date_default_timezone_set('UTC'); if ($_POST['currentcss']){ setcookie('currentcss', $_POST['currentcss']); } require_once('getcss.php'); function right($value, $count){ return substr($value, …

Member Avatar for mschroeder
0
95
Member Avatar for kay19

Welp, another problem arise albeit small. Just with Decrementing hours, seconds, and minutes. I seem not get the final results right at all. Keep tinkering with it, and still not getting it. This is my answer 23:00:00 23:00:00 23:00:00. First is right, but the 2nd and 3rd should be 22:58:00 …

Member Avatar for kay19
0
750
Member Avatar for IDC_Sharp

OK, i made a program that you can drag and drop mp3 files to it and it's write there's name. i want that when i will click the button "Save" it will save the mp3 files with the new name in the Desktop. how can i do it? there is …

Member Avatar for Razer_90
0
144
Member Avatar for Mike Bishop

I have a view with two tables and three fields tables are called SC011000 and SC33013 the fields are called SC01049 and SC33013 both are datetime fields. I want to make the third field show the biggest date. but i am doing something wrong I am typing in case when …

Member Avatar for BitBlt
0
105
Member Avatar for vijaysoft1

Hi frnds .... I am trying to create a contact form in PHP , MySql .... In my form i have two 3 input fields n a Submit Button ..... 1. Name 2. email 3. SecurityCode ( here user have to enter the captcha code ) I am collecting all …

Member Avatar for ivan3510
0
948
Member Avatar for pro_learner

In many job vacancies about software engineers,i have seen programming with PHP is a qualification.But as i know PHP is a server side scripting language.Therefore i want to know why they are looking about PHP as other programming languages like c,c++,java & etc.Please explain me......

Member Avatar for pro_learner
0
93
Member Avatar for sciprog1

Hello Members, I am beginning to work with the JGrapht library. The following is described as the syntax for creating a weighted, directed graph: [CODE]SimpleDirectedWeightedGraph<String, DefaultWeightedEdge> graph = new SimpleDirectedWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class); [/CODE] What is the meaning of including " DefaultWeightedEdge.class" in the above line? I will be grateful for any …

Member Avatar for sciprog1
0
218
Member Avatar for Irishgeezah

Could anyone help me with a script I've written. As part of an assignment I have to write checksums to validate various numbers (VISA,Euro Bank Notes) and if I got this going I could modify to validate the other requirements but can't see what I've done wrong.....I should add that …

Member Avatar for twiss
0
75
Member Avatar for AmIAyTi

Hey guys, I'm new to JSP and I want to make an order form with a dropdown list allowing the user to pick which product he/she wants to buy. And the products would come from the database i made. How can i retrieve the data from the database and place …

Member Avatar for javaAddict
0
2K
Member Avatar for jay.barnes

Hello! I'm working on VBA within MS Access XP, and can't seem to get the proper usage of the split function down. I've been trying to make this work, but I keep getting the "Run-time error '9': Subscript out of range" error. Since the code of my project is kind …

Member Avatar for BitBlt
0
207
Member Avatar for jeffpro

Hello again guys, I've got kind of a noob question. I have a wchar[260] and I need to compare it with a char* and im getting the error error C2664: '_stricmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *' Thanks!

Member Avatar for Narue
0
120
Member Avatar for xiiopao

Good day guys, anyone here who knows how to easily access image pointers stored in a database in JSP?... here's my code =) ... it already works in retrieving data other than the image... my database contains petid, petname,birthdate,image,petprice.... [CODE] <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> <sql:setDataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/store" user="root"/> …

Member Avatar for parry_kulk
0
148
Member Avatar for jrp370

i have the code for a simple mail transfer protocol but when i go to compile it in eclipse i get an error along the lines of cant find "main" class, program will now terminate, ive attached the code and would love it if someone could take a look and …

Member Avatar for jrp370
0
119
Member Avatar for Rahul Das

I am developing an application where I am uploading a file and then it is uploaded to a temporary folder and I see the preview of that image through an ajax call without refreshing the current page.Then after clicking "Save" it saves the file to original directory. The file I …

0
128
Member Avatar for tstory28

I have been working on a pythagorean theorem calculator and am actually stuck on the final bit of code. What I am trying to do is check the values (integers) inside a listbox, remove duplicate number (both values), and input one of the values into a textbox. Here is an …

Member Avatar for tstory28
0
1K
Member Avatar for swinchen

I am working on a project that requires me to clean data from a series of RS-232 instruments. These instruments can have a different version number, and output format (both of which can change the expected ouput). On top of that there are flags that determine if certain fields are …

0
140
Member Avatar for jemz

Hello, Can you help me please im trying to use the listview but i found difficulties on it.I don't know how to display my column header in my listview.Please help me.Thank you in advance hoping for your positive response. Here is my code. [CODE] Option Explicit Private Sub Form_Load() ConnectToDB …

Member Avatar for jemz
0
3K
Member Avatar for sj5536

hi i want to develop hotel management project which is basically dekstop appliation so my problem is that should i do that project in .net or java can u explain which platform is good for this project and also is there any diffrence oflook and feel between java project and …

Member Avatar for mKorbel
0
123
Member Avatar for pooran.c

i was jus trying to crete a form and if i submit the form the values should be displayed in the browser. code is: [U] html file- [CODE] [/U]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="firstjsp.jsp" method="get"> …

Member Avatar for javaAddict
0
179
Member Avatar for aajcl

Hi, I am new to SQL and just trying to self teach myself... I have written the below script and I am recieving an error. If anyone could help this would be much appreciated... [CODE]SELECT (CASE WHEN SL_PL_NL_DETAIL.DET_NOMINALCR = NULL THEN SL_PL_NL_DETAIL.DET_NOMINALDR ELSE SL_PL_NL_DETAIL.DET_NOMINALDR = NULL THEN SL_PL_NL_DETAIL.DET_NOMINALCR END)][/CODE]

Member Avatar for jbisono
0
466
Member Avatar for MrCapuchino

Hi, I have a problem, when I test my XSL file from Dreamweaver it opens and transforms the XML document into a temporal HTML file. But if I create a Hyperlink in another web page that links to the file.xls it does not transforms the XML document it just shows …

Member Avatar for MrCapuchino
0
152
Member Avatar for MrCapuchino

Hello, I have two Javascript functions to set and retrieve a cookie: [code] function setCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function getCookie(name) { var nameEQ = name + "="; …

Member Avatar for MrCapuchino
0
11K
Member Avatar for azegurb

I am confused about &reference operator. here i dont understand the call_user_array_func() and referense operator why used here? but can you explain it on my code original source is [URL="http://net.tutsplus.com/tutorials/php/the-problem-with-phps-prepared-statements/"]http://net.tutsplus.com/tutorials/ph...ed-statements/[/URL] i tested it. i want to know what happens there i know this & reference operator but for what reason …

Member Avatar for twiss
0
116
Member Avatar for ivan3510

I need help! Here's script: [CODE] <?php date_default_timezone_set('Europe/Paris'); $time="1303889758"; echo $time."<br>"; $convert=date("G:i:s d. n. Y. ",$time); //convert $time to our date: output is 9:35:58 27. 4. 2011. echo $convert."<br>"; $con2=mktime($convert); //convert converted time to unix: doesn't work echo $con2; ?> [/CODE] I have two script. One script write the time …

Member Avatar for ivan3510
0
104
Member Avatar for samueal
Member Avatar for samueal
0
80
Member Avatar for VibhorG

I have made a textbox on the form in which user enters any mathematical expression like of fraction,square root, integration etc....... Now I want that if user enters "square root of 2" then in the listbox it should be displayed in math format . Or if user enters (2/3), then …

Member Avatar for ddanbe
0
174
Member Avatar for kalpanaSankhya

Hi All I have written JSP to read a text file(Text file and JSP are in same location) and display the data. when I am trying to run the JSP it is displaying "Error:Null". here is my code [code] <% try{ java.net.URL url =config.getServletContext().getResource("/textfile.txt");BufferedReader buffreader =new BufferedReader(new InputStreamReader(url.openStream())); String strLine; …

Member Avatar for javaAddict
0
2K
Member Avatar for gedas

hey, i am not sure this a right forum for this question but hopefully you will be able to answer me. i have recently finished developing java application in netbeans and there is a simple issue of printing the source code. once the code printed each page should be numbered …

Member Avatar for gedas
0
111
Member Avatar for rrlogu

Hi, I have the following code in test.php file <form name=f1 method=get action="test.php"> <textarea name="question"></textarea> <input type="submit" value="Submit"> </form> If I enter "sample text" its working fine with [url]http://www.example.com/test.php?question=sample+text[/url] But if I enter "Create a view that does not contain the" its throwing the following error message with [url]http://www.example.com/test.php?question=Create+a+view+that+does+not+contain+the[/url] [B]Internal …

Member Avatar for rrlogu
0
278
Member Avatar for Pgmer

Hi All, I have two dimentional array, i want to filter the records in array is there any way to do it?

Member Avatar for Pgmer
0
132
Member Avatar for selvis

Hi, I have created a jax-ws web service. It runs fine in my development environment. When deploying to linux server machine, jdk1.6.0_10, tomcat 5.5.23, I get the following errors: Cause of error is failed to parse runtime descriptor: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found /********************************************************* com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFO: WSSERVLET12: JAX-WS context …

Member Avatar for selvis
0
395
Member Avatar for gaurav_13191

Hi, the following is the code for returning the position of a substring within a string(Brute force algorithm) [CODE] //Brute Force Algorithm #include<stdio.h> #include<string.h> int main(void) { char s1[20],s2[10]; int x1,x2,j,k,i; printf("Enter string 1:"); gets(s1); printf("Enter string 2:"); gets(s2); x1=strlen(s1); x2=strlen(s2); if(x1<x2) return 0; for(i=0;i<=x1-x2;i++) { j=i; k=0; while((s1[j]==s2[k])&&k<x2) { …

Member Avatar for koberoc
0
152
Member Avatar for twigan1015

I have everything done, but I forgot one simple little thing, how to save the database to a textfile, I have two forms with this application, the first one has all the information in it (textboxes) and a listbox in it to see all the contacts, then the second form …

Member Avatar for hdaccess
0
301
Member Avatar for zulkefli82

anybody can help me? How to culculate totalsale for each division.. I've tried many time but failed.. my coding is below [ICODE] #ifndef DIVISIONSALE_H #define DIVISIONSALE_H class DivisionSale{ private: double sales [3]; double totalSales; public: DivisionSale(double,double ,double ,double); double getQuaterSale(int); double getDivisionSale(); void culculateTotalSale(DivisionSale[], int); }; #endif[/ICODE] [ICODE] #include "DivisionSale.h" …

Member Avatar for zulkefli82
0
120
Member Avatar for Naveed_786

I have installed visual studio 2010 on dc7700 machine when i am trying to open my project made in visual studio 2008 it convets it and didn't work converted file also when i am trying to create new project i did't find languages option like vb.net c# etc please help

Member Avatar for Mitja Bonca
0
179
Member Avatar for pravej

Anyone can help me to write a code in C++ to reverse a string. Example: i/p= " string with space " o/p= " ecaps htiw gnirts " Better if we use function or class. Thanks in advance

Member Avatar for template<>
0
246
Member Avatar for nHulk

Below is part of code !!! i am new to jsp !!! it is giving error at variable temp1... help me out [CODE] try { Class.forName("com.mysql.jdbc.Driver").newInstance(); String url="jdbc:mysql://localhost/ecops"; Connection con = DriverManager.getConnection(url,"root",""); java.sql.Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("Select max(cid) from citizen_info"); while(rs.next()){ int temp1=rs.getInt("max(cid)"); break; } temp1=temp1++; stmt.executeUpdate("insert into citizen_info …

Member Avatar for javaAddict
0
116
Member Avatar for mogaka

i have written an application in vb.net 2008 that i want to access a remote database. when it tries to connect, this is the error message: system.data.odbc,system.data,version=2.0.0,culture=neutral,publicToken=b77a5c561934e089 failed what might be the problem? thanks

Member Avatar for Mitja Bonca
0
70
Member Avatar for Protoroll

I need to combine two bits in the same array so that I can display the TCP source and destination. With my code I pull in all the information from the packet and go to work on all of the individual parts. Here is my TCP section [CODE]TCP_source = eth_buffer …

Member Avatar for L7Sqr
0
129
Member Avatar for c0ld sn1ff3r

Hi, I need to develop a C# console application which implements stack as a circular queue. I've written the code to use stack as a simple queue. [CODE]using System; public class Stack { private int[] theArray; private int topOfStack; public Stack() { theArray = new int[10]; topOfStack = -1; } …

Member Avatar for ddanbe
0
759
Member Avatar for cableguy31

As part of a school assignment, I have to analyze a binary and determine what is does and what it takes to cause the various "branches" (if statements) to be triggered. I performed a strace on the file and the only part that stands out is a gettimeofday call: [CODE]gettimeofday({1303744469, …

Member Avatar for template<>
0
374
Member Avatar for moshe12007

hi i have some problem with my sql code that the code : [CODE] SELECT * FROM MenUsers,WomenUsers [/CODE] MenUsers(Table) and WomenUsers(Table) whats the problem with this code? thanks....

Member Avatar for shine_jose
0
186
Member Avatar for phpuser

Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. …

Member Avatar for Somnathpawar
0
5K

The End.