199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for plike922

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) { …

Member Avatar for jaikjoel
0
280
Member Avatar for Seachmall

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 …

Member Avatar for Seachmall
0
348
Member Avatar for jBrennan

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 …

Member Avatar for jBrennan
0
89
Member Avatar for CPPRULZ

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!

Member Avatar for CPPRULZ
0
573
Member Avatar for snurd

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 …

Member Avatar for snurd
0
116
Member Avatar for CatchItBaby

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 …

Member Avatar for CatchItBaby
0
409
Member Avatar for mamamiaw

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 …

Member Avatar for mamamiaw
0
97
Member Avatar for shijunair

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 …

Member Avatar for Sharaiha
0
675
Member Avatar for robertmacedonia

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 …

Member Avatar for Wiki_Tiki
0
120
Member Avatar for friendlyguy

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, …

Member Avatar for friendlyguy
0
146
Member Avatar for aditya_amb

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" …

Member Avatar for cymapAndy
0
147
Member Avatar for kavithabhaskar

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 …

Member Avatar for kavithabhaskar
0
150
Member Avatar for robertmacedonia

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++) …

Member Avatar for robertmacedonia
0
86
Member Avatar for Prodian

[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 …

Member Avatar for Prodian
0
160
Member Avatar for websurfer

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 …

Member Avatar for pritaeas
0
218
Member Avatar for TheOneElectroni

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, …

Member Avatar for TheOneElectroni
0
451
Member Avatar for emilio

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.

Member Avatar for emilio
0
108
Member Avatar for johnny.g

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 …

Member Avatar for johnny.g
0
120
Member Avatar for palavi

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 …

Member Avatar for peter_budo
0
65
Member Avatar for veledrom

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 …

Member Avatar for veledrom
0
282
Member Avatar for williamnz

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 …

Member Avatar for williamnz
0
2K
Member Avatar for suganyabavani

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

Member Avatar for vssp
0
118
Member Avatar for phickman7872

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 …

Member Avatar for yap.nice
0
401
Member Avatar for gregorynoob

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 …

Member Avatar for RemoB
0
81
Member Avatar for np2100

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. …

Member Avatar for yap.nice
0
133
Member Avatar for sarithak

hey can u help me out with web portal like orkut to exchange scraps..??? Need source code for that.

Member Avatar for praveen_dusari
0
92
Member Avatar for abhisdm

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 …

Member Avatar for ArkM
0
154
Member Avatar for saikishore

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

Member Avatar for sarithak
0
100
Member Avatar for sujithkumar

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

Member Avatar for mohandotnet
0
71
Member Avatar for justinmyoung

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 …

Member Avatar for Shanti C
0
294
Member Avatar for ochien

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.

Member Avatar for ochien
0
62
Member Avatar for palavi

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 …

Member Avatar for palavi
0
99
Member Avatar for hhheng

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 …

Member Avatar for KevinADC
0
199
Member Avatar for theBond

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

Member Avatar for Shanti C
0
82
Member Avatar for mamamiaw

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 …

Member Avatar for ~s.o.s~
0
105
Member Avatar for Shreyasi

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.

Member Avatar for praveen_dusari
0
260
Member Avatar for samarudge

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) { …

Member Avatar for ~s.o.s~
0
115
Member Avatar for jsl11

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 …

Member Avatar for ~s.o.s~
0
122
Member Avatar for god_1896

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 …

Member Avatar for Shanti C
0
138
Member Avatar for kanga85

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 …

Member Avatar for kanga85
0
115
Member Avatar for ee_girl

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, …

Member Avatar for Salem
0
105
Member Avatar for AidaPus

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 …

Member Avatar for AidaPus
0
114
Member Avatar for cinderella_nez

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..

Member Avatar for abhisdm
0
551
Member Avatar for FaridMasood

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 …

Member Avatar for FaridMasood
0
146
Member Avatar for Umair.P

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 …

Member Avatar for Umair.P
0
101
Member Avatar for dongzhe

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.

Member Avatar for swaira umar
0
154
Member Avatar for OmniX

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

Member Avatar for OmniX
0
125
Member Avatar for t_3010503

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 …

Member Avatar for sciwizeh
0
113
Member Avatar for jaasaria

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 …

Member Avatar for jaasaria
0
267
Member Avatar for adamj2

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 …

Member Avatar for ArkM
0
177

The End.