199,114 Archived Topics
Remove Filter ![]() | |
[QUOTE]I have put in all the bool operators - If the user inputs and invalid letter the while loop is supposed to ask the user to try again until a correct letter is entered. I have programmed using a while loop, switch statement and char at the same time. If … | |
Hi all I'm new in this forum, I'm trying to make a tool for a game. But in this tool i need a countdown but i only know how to do it by seconds, i need help by making it Hours:Minutes:Seconds [00:00:00]. Button1 Timer1.Start() Button2 Timer1.Stop() Button3 Textbox1.text = "" … | |
Hey guys, I have a problem. I have a connections_lib.php file this will handle all of my db connections, this works AMAZINGLY (power of OOP). Unfortunately some of my other classes require connection to the databse therfore they must use these methods (is that the right word for OOP I'm … | |
Well hi all again, This one have to be Ez for most of u guys. Im posting some thread peace per peace to finish some features to my program. well whats the code that when i open my program i cant open it again. like Example: LOL.exe when i open … | |
How to change the color and size of output in C++? How to Draw columns? I'm a beginner... Pls help... | |
Why it won't send this to mysql.Connection is ok.Here is the code. [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; if ($submit){ $queryreg = mysql_query(" INSERT INTO messages VALUES ('','$micro','$username') "); … ![]() | |
I am trying to Convert this Long String to an integer but when running the code, I get an error that tells that the inputstring is in an incorrect format. How can I convert this string so I will get the ouput integer: 41517 ? [code] String^ ba = "41516.7095211088"; … | |
8. create a console application. Insert the below code, and run the program. Note that a conditional statement is used within the body of the loop. This is common. Write a similar program using this one as an example that asks the user to name his or her favorite make … | |
we have just started learning PHP as a course in our 2nd year subject Internet Application development. below are the codes that we have worked on so far. [B][U]Homepage :[/U][/B] [code=html]<HTML> <HEAD> </HEAD> <BODY bgcolor='yellow'> <P align='center'><FONT color='blue' size='6'>ABC & Company</FONT></P> </BODY> </HTML>[/code] [B][U]Login.php :[/U][/B] [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
hi guys! can anyone tell me now to draw a line in VB.NET form? I've been trying to do so , but nothings coming.. | |
suppose I have a file like below and I would like to create 3 output files based on my first field .. .i.e, 1 /2/3. Thats means 3 lines will go to the three files [CODE] 1 AAAAAA BBBBBB CCCCC 2 DDDDDD EEEEEE FFFFF 3 GGGGGG HHHHHH IIIII 2 copy … | |
can someone please help me?! I have been working on this C++ project forever and I can't seem to get it. I am trying to write a program that will find the root of the following equation using the bisection method: x(1 + [summation from 1 to M of (Kj*Nj)/(1 … | |
I want to display the columns in to rows format as below: eg: [U] col 1 [/U] [U]clo 2 [/U] yes No I want this to display as: [U]Column name[/U] yes no The Code which i used as below: [code=sql]set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO create PROCEDURE [dbo].[Vista_Capable] AS … | |
![]() | hi currently I am developing a game in python called TankWar, it is basically 1vs1 game style and each player has its own turn. Both players control their respective tanks using the control keys and WASD and they can specify the missile's angle, velocity, tank position. I am using an … ![]() |
Yeah, I'm stumped on this one: I need to get user input from a keyboard, with some problems involved: [LIST=1] [*]I'm using an OS I created [*]I do not have access to any standard includes [*]I need to code the function myself [*]I'm in protected mode [/LIST] Any help would … | |
hi, i copied my aspx files to httpdocs/ but when i navigiate to the index.aspx page i get an error saying : To update your index page modify the file /httpdocs/index.html is this the right folder to put them in or is there some configuration to do? its looking for … | |
alright ive been banging my head against a wall for three hours and i give up does anyone have a clue? the what im supposed to do is write a method named lotsOfStars that will accept two integers: the first integer indicates the number of lines to print, the second … | |
Hello everyone. If we open the jpg file with notepad, we can see some text or gibberish that doesn't give us any meaning. How do I append some text (ie password hash) to it using Java? I'm attaching a password hash to the jpg file. Hope that anyone reading this … | |
I have a code to detec backlink from yahoo and google like this : [CODE] function google_backlink($uri) { $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); $url = 'http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link:'.$uri.'&filter=0'; $v = file_get_contents_curl($url); preg_match('/of about \<b\>(.*?)\<\/b\>/si',$v,$r); preg_match('/of \<b\>(.*?)\<\/b\>/si',$v,$s); if ($s[1]!=0) { return $s[1]; } else { return ($r[1]) ? … | |
Hi everyone. I'm going to read a content of a jpg file using java.io.FileReader. I'm successfully read the whole content of it. But the problem is, I want to only read the last 32 digit hexadecimal number which is MD5 hash I save earlier. How am i suppose to do? | |
Hello all, i need a movie/mediaplayer and i could imagine that it would be in javascript. all it should be able to do is to play mp3(music) and wmv(movie) files. it need a start,stop,pause and fullscreen button. anyone can give me a code just to place in my page? thnx … | |
anyone please tell me where i can get mp3 player for motorola v3i. Thnks | |
I've written a small web db app, designed to sit within another page (in an iframe). It is designed to be called with a parameter (or two). iframe html calls Default.aspx?Parameter=4 The default page does nothing except check for the existance of the parameter and store it a session state … | |
Hi all, I am trying to get a grasp of web form data getting passed to PHP, then dumped into a SQL Database (2005). I have created the form in html. but because the form is an employee application there are a lot of text boxes, radio button, etc etc. … | |
I wish to limit uploading to the video files swf pps bmp pps png gif mpg mp3 and wav - i'm sure I have the file / type incorrect. can someone please give logical solution... here's my code: [code=php]<?php if ((($_FILES["file"]["type"] == "video/swf") || ($_FILES["file"]["type"] == "video/pps") || ($_FILES["file"]["type"] == … | |
I am getting an error message on this php script and am a total loss as I am a complete novice and have no idea. Can someone give me some help? here is the error and also the code. Parse error: syntax error, unexpected T_VARIABLE in /home/content/m/i/x/mixxsalon/html/FormToEmail.php on line 1 … | |
what is the difference between fread() and fgets()? | |
Hi I was trying to do a type checking in my input file while reading it. I am getting some compile time errors. Compile time error report is :- [CODE]NEW.cpp:26: error: invalid conversion from ‘char*’ to ‘int’ NEW.cpp:26: error: initializing argument 1 of ‘int isdigit(int)’ [/CODE] [CODE] Line 26 is … | |
Hello! Say I have an array called BBag[3], how would I write a function void remove(int val) that removes an occurence of val in BBag? thanks! Hong | |
Hello... This is my naval battle game so far.. Just search i t if you're unfamiliar with the game it is only player vs computer.. can you adjust/fix my code so that: -the player is able to place his ships by means of dragging the JLabel ships at the left … | |
I am making a slider puzzle applet. And i have this problem when i display it as an applet my buttons do not seem to act the same was as they did before i made it into an applet by using a JApplet rather than a JFrame as my extension … | |
hello im currently installed cx_freeze on linux. and want to make win32 exe file on linux by use cx_freeze. and then will distribute on widows platform. one of my problem is ,i can build with no problem. but whenever i run,it something weird error message was show. follow is my … | |
Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I have a self referencing form, which allows me to enter a file name and browse to a … | |
okay so i am doing a program that lets you type a name of a friend in and submit and it will display a picture of that friend but my output wont show the picture, it will have some type of error. if you look at the picture attached that's … | |
Hi, I was wondering how you keep a navigation menu up-to-date on a 200 page website. When I first started using HTML I used an iframe which it is a [I]terrible[/I] idea. Now i am using PHP (im using include). But i am guessing this is also very inefficient. SO … | |
i have to call Mysql Procedure from Php... I dnt know how it is work..!! Waiting for positive reply..!! :) | |
What is a segment selector? How is "overflow" defined in assembly programming language? Thank you very much in advance! | |
is there a specific character for Ctrl? for example in Alt.. when you type &Save in the caption of a button.. the key that you gonna press is Alt+S.. how about for Ctrl? | |
Trying to make a simple english text calculator and i keep getting some errors. Here is what i have /* * A calculator that calculates your answer and outputs it i english. */ package Calc; /** * * @author Austin */ import java.text.*; import java.util.Scanner; public class Calc { /** … | |
Anyone please help. Why is it that [B]Adodc.recordset.save[/B] cannot work. it says...object in the with variable not set.... can anyone tell me what the problem is and is it normal to use [code]Adodc.Recordset.fields "name" = txtname .text;[/code] what is wrong with my code. is anything missing there because i cannot … | |
In the program below, how does the value "Poochie" know where to go in the line [CODE]crit = Critter("Poochie")[/CODE] And how do the get_name and set_name functions know when to do their thing, they don't seem to get called or anything? Thanks. [CODE]# Property Critter # Demonstrates get and set … | |
Hello what would be the best way to return a pair<> via a structure Let me further explain. Below is the type of struct that I want to use: //compass.h struct Compass { pair<int, int> C; pair<int, int> E; pair<int, int> W; pair<int, int> NE; pair<int, int> NW; pair<int, int> … | |
Code written and tested using the Borland C++ compiler. Code uses access() to determine if an input string exists either as a directory name or as a file name. If access() fails, the string is neither a file or directory and the function terminates. If it does exist, the name … | |
I wrote a query that will return a large amount of records. When I run the query it fill a datatable then show it in a datagridview, but I am only getting 80290 rows. There is more than that. Any idea of what is causing this? Thanks | |
Hey, i am trying to write a program that will evaluate n!/(k!(n-k)!) right now i am just trying to get the basic formula without the factorials to work ( i can just do a function call later and get the actual values) but no luck. all the variables have values … | |
Ok this is driving me nuts. I'm working in C++ and trying to delete an element from a vector It's going something like this (dirPath is a stack of directories, and dirPtrs the list of what a directory points to) [CODE] for(int i = 0; i < dirPath.top().dirPtrs.capacity(); i++) { … | |
HEY I JUST NEED TO PUT THE FOLLOWING: IF((N == 2) && (T CAN'T BE DIVIDED BY 4)) how can I put: CAN'T BE DIVIDED BY 4? I know divided by 4 is : (t / 4). but can not be divided by 4? | |
I am working on displaying student name, test score, average marks and grade as an output. This is what I have been working on, but still I couldn't manage to display the output.. The input must be get from the user and, which is the student name and the test … | |
Hi all, I have a form where my colleagues enter basic details about participants in a study. The 'action' attribute of the form takes the control to a 'validateForm.cfm' script where, as the name suggests, form validation is done. If there are any problems, I show the errors as well … |
The End.