199,113 Archived Topics
Remove Filter ![]() | |
i am trying to write a program that finds all twin primes between 1 and 100. any suggestions? [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" int main() { int n1, n2, y, x; printf("This program list all the twin primes.\n"); for (y = 3; y <= 98; y += 2) { … | |
So I'm writing a small Blackjack game and divided a class up into 2 to keep everything tidy but keep getting this little error: [i]global name 'handle_input' is not defined[/i] The code: The class being called... [ICODE] #File: handle_input.py class handle_input: ...[/ICODE] The file defining the class... [ICODE] #File: control.py … | |
I've got a tag file, "nav.tag" with the following attribute: [code=jsp] <%@ attribute name="navigation" rtexprvalue="true" type="java.util.Map" %> [/code] I get nothing when I attempt to assign a Map value to a variable like this: [code=jsp] <c:set var="articleSection" value="${navigation['ARTICLE']}" /> [/code] However, this works: [code=jsp] <c:forEach items="${navigation}" var="s"> <c:choose> <c:when test="${s.key … | |
I'm trying to figure out how to use the atoi function I have wrote and understand this so far: #include<iostream> #include<cstdlib> #include<cstring> using namespace std; int main() { int x; string str="34"; x=atoi(str); cout<<x; system("pause"); return 0; } And Then I get error reports about a freakin const char?! HELP! | |
I know how to open an Excel file with VB but I need help with writing an argument to see if the file is already opened, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the … | |
I dont know this programe name what ever u say........ Suppose you have a html page save in c:\first.html first.html page contain two text boxes one for username and password and one button whenever we click on button it validate the username and password which is already pass in the … | |
Dear all, Firstly thanks for reading this post. I have couple questions n problems to solve, and i believe all the masters and gurus here are kind enough to help me. I am not a programmer, nor that i'm experience with jscript. But i have this task or challenge to … | |
Hello everyone, I am new to this forum and help will really be appreciated.hope that you'll will help me. I am working on a project using jsp,servlet,ms-access as database. I have to prepare a login page which should be validated with the database and i have done the coding for … | |
I get an error when I try to give this button a na ction of showing a new form. It says: `"error C2039: 'poeni' : is not a member of 'IgraBobi'"`. But this "poeni" form IS a member of the "IgraBobi" solution. I added it correctly, why doesn't it recognize … | |
hey everyone! im kinda a bit stuck my friend is a mega coder in the 'gunz' (gaming) world and he has just made some thing. ohh he also said i need to do it in dev c++ (if that any use to any one) lol he sent me 3 files, … | |
I am trying to add a new record to data base using VB.net. Here is my code: Imports System.Data Imports System.Data.OleDb Imports System.Data.SqlClient Dim objConnection As New OleDb.OleDbConnection objConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Documents and Settings\ambarda\My Documents\db1.mdb;" Dim ds As New DataSet Dim sql As String = "SELECT * FROM Sheet1" … | |
I want a button click event to do this: can i use "UNMATCHED" keyword in the same SQL Statment using a UNION ? pls help me with this!! table1 is my master Db and table2 is my work DB.. both have same columns expect that primary key in both tables … | |
I got this error and have no idea what it means... May i get a little help please ? error C2059: syntax error : ']' [code][ #include <iostream> using namespace std; int broj (int be, int a[]) { int br=0; int f=0; int b[200]; for(int i=0;i<=br;i++) { for (int j=0;j<=br;j++) … | |
[B]Background Info[/B]: I have 2 tables one called cats with categories (ie:Administration) and catid (ie:1,2,3,4..etc.) and another table called links which has catid(ie: 1,2,3,4...etc.), url, title. [B]Here is what Im trying to do[/B]: I already have it displaying everything nice and pretty but now i need to change up how … | |
Hello, all: I thought I could convert a basic upload script into a MULTIPLE file upload by simply adding a FOREACH loop to it, but doesnt seem to do it. Not sure if I am setting it up correctly. It looks like it does recognize the array since it does … | |
Hello everybody, I've a somewhat odd issue displaying a .png image onto a Tkinter canvas. The image is surrounded by a grey frame. Here below an excerpt of the relevant code and by the way I'm running under windows xp. The same thing happens with the menu of the gui, … | |
hi i am trying to add a picture to jsp page. i'm using netbeans software. the problem is when i run the page the picture is shown with red x mark. the picture is available from ie and i restored my security settings to default. | |
hi all,,here i m again stuck in the midst of my project.i am using asp.net 2005 in vb language and sql server 2005.Well in my application i have used a datagrid tht fetches data from a table.i am able to edit update and delete.in my table i have columns called … | |
hi , can i update multiple tables on submitting one form, i ve a form which includes vehicle details and driver details like driver name vehicle no,vehile type booked for the date DD/MM/YYYY from some place to another place,these details shud be updated in the driver table , vehicle table … | |
Hi, When i click one checkbox code below workes fine but, more than one, noo. I cant find the problem. Can you help me please? Thnaks 1st page. [code] <td><input type="checkbox" name="checkboxReceipt<?php echo "[$newArray[id]]"; ?>" value="<?php echo $newArray['id']; ?>" id="checkboxReceipt"></td> [/code] 2nd page. [code] if (isset($_POST['checkboxReceipt'])){ $sql="UPDATE payment SET"; foreach … | |
Hi there, I have a custom class , lets call it MyClass. In the main part of my prog I want to run a cout which outputs say Myinstance. I would have though I would add it nt he stdiolib. But I want to add it in my class... Something … | |
Hi All, I need a hlp how to connect Mysql wit outlookexpress, so that i hav to retrive data from mysql to outlook express. Regards, Sugan | |
Hi all, I am new to C on linux and have a question about I/O. I am trying to read input from the command-line: printf("What is your first name? "); scanf("%s", firstName); printf("What is your last name? "); scanf("%s", lastName); printf("What is your age? "); scanf("%d", &age); printf("What street do … | |
I guess there is a "standard" algorithm for problems of this type.. the template would look like this: given the integer n and n numbers, find the smallest sum you can get by adding the numbers like this: n1+n2+n1+n2+n3+n1+n2+n3+n4... the obvious way for me was to do some math on … | |
Hello, I was wondering about something. Whats the point of learning console programming (The black screen that comes up) when Win32 or another windows api has completely different syntax. Eventually the person will want to make an actual windows application so what would be the point of learning console first. … | |
hey can u help me out with web portal like orkut to exchange scraps..??? Need source code for that. | |
I'm getting an error msg as Type mismatch in redeclaration of 'putw' for the following code... Can anyone suggest the reason for this??? [code]#include<stdio.h> union pw{ short int i; char ch[2]; }; int putw(short int num, FILE *fp); int main() { FILE *fp; fp=fopen("test.tmp","wb+"); putw(1000,fp); fclose(fp); return 0; } int … | |
Hi frnds... If u have loginpage code by using sessions...plz send me.. Html+php code total... plz its urgent.. uptonow i used normal login page but,now i require by using sessions.. its urgent..plz send me.....asap... thanks in advance.. kishore | |
i have one date field i want to validate that field that date should not be less that current date if it is there show alert box pls tell solution for this | |
Hi, I'm getting a Parse error on line 132 and can't figure out why. Line 131-133 = [ICODE]<select name='state' id='state' class='selectInput'> <option value="">Please select</option> <option value="-1">Other</option>[/ICODE] [ICODE]<?php include("config.php"); echo "<form action='$regScript' method='$formMethod' name='form'> <label><span>Full name</span> <input type='text' name='name' id='name' class='input-text'/> </label> <label><span>E-mail</span> <input type='text' name='email' id='email' class='input-text'/> </label> <label><span>City</span> <input … | |
hi guys, i have dll function that i make form vb, and i want use this dll in php, do yo know how to load dll in php ??? thanks before. | |
hi all, I ve a requirement for standalone travel software dat is not web based which involves rentung vehicles,arraging drivers, generating bill, making a picture of bus seats n which shows seat nos available.. i want to do it on java platform. can i do static html page using dreamweaver … | |
While executing a perl script, it showed the following errors. Can anybody tell me what's wrong with the bottom script? Thanks a lot. The server encountered an unexpected condition which prevented it from fulfilling the request. The script did not produce correct headers. It must at least print out a … | |
Hi, If there are multiple type of users - Super Admin, Admin, Clients should i have to use seperate SESSION variables for each type of users? Or should i have to maintain the session in single variable? Thanks | |
Hi all, Sorry to bother u all, I think i previously post about the quiz script, and i read and research abit here and there, anyway i manage to write some but found some difficulties,especially about random generator.. I have this several 'set' of question and answer, and i like … | |
Hi all, I try to make login page in PHP.But I unable to get the loginID/UserName in login_successful page.I try to do it by using session.Please anyone tell me how I solve this problem by using session. | |
Hi, I have got a script to refresh a single image but I want the user to be able to change the refresh rate of the picture by clicking a link. I have tryed the following code: [CODE]<p><IMG src="http://rc-xbot.ath.cx/webcam.jpg" width="320" height="240" border="1" name="refresh"> <SCRIPT language="JavaScript" type="text/javascript"> <!-- function Change(t) { … | |
I did a search of this forum and didn't find anything on this issue. I want to display a specific message based on a date range. For example if it's June 10, I would like to display the message "Schools out! Enjoy your summer break." I would like this message … | |
Hi, guys. I've got a simple request form that is submitting a request to a company email address. However, now when the form is submitted, I need the data to be sent in an email to the site's admin. and prompt the company some message... Anybody can give me a … | |
In a GWBasic program I wish to delete all files *.??8 in the working directory AND sub-directories. The 'Kill' command in GWBasic allows no switches and doesn't get into subdirectories. If I shell "del *.??8 /S" (or "del /S *.??8") I get the error message 'Invalid switch -/S'; even though … | |
![]() | Hi!, I'm a first-year student at the university. When i am using Tubo C++ , i encountered a problem with inputting Date to graphics window. The code below here is the way to input date in text window, but i dont know how to input this into the gaphics window, … |
Hi! I am going mad, -I am not that familiar with php yet, but know a little basic programming. I am receiving a lot of spam i our guestbook [URL="http://www.galleri1897.no/viewguestbook.php"]http://www.galleri1897.no/viewguestbook.php[/URL] and wanted now to implement reCaptcha. I got the keys, and actually got it to show in the right top … | |
HI all, I'm a newbie here. I need your help, does one of you know how is the code to countdown from 99 with 7 segment and atmel 89s51 or 89s52? plz help me soon.. | |
I want to use the printPreviewDialog control to view the print preview of a document. I am using this code Dim oPD As New PrintDocument oPD.DocumentName = TextBox1.Text PrintPreviewDialog1.PrintPreviewControl.Document = oPD PrintPreviewDialog1.ShowDialog() TextBox1 contains the file name to be opened with print preview control. Problem is that it only show … | |
Hi there I am new to this forum so hi to every one. I have a problem with an application I am developing an application. The application is suppose to call a form.showdialog() method to show the form. Th eform should download a package. But the problem is that when … | |
for my new job, i have to learn coding for the chips. i know c, but i don't have any idea about how to coding for chip. anyone can give me some hit where is good place to get start. | |
I saw one of these and looked very effective and professional. I have been doing research and four methods have come up: - Flash - Javascript - CSS - PHP So which to use and why? and If so how do I make one? Any tutorials? Thanks, Regards X | |
hi all I'm dean. newbie bout Java, i mean i got too basic knowledge about it. I want to learn it because i wan to create a Morse code converter which it will automatically convert alphanumerical words to Morse code. i had read something about java swing. the question is … | |
hellow expert.. im trying to install vb's system's on any pc' with out microsoft office. im trying to put open office for that unit. but sure that i will encounter a lot of error.. like out of memory. or something that required FM20.dll and other DLL. any idea for that … | |
Hi there, I want to read 1 byte of information, in the form of an array of unsigned chars [1], from a file. I then want to use this piece of data to act as a secret key for a message authentication code I will be performing. The key will … |
The End.