199,114 Archived Topics
Remove Filter ![]() | |
Hi, Im new to c++ and this site but I have been reading it for the last few weeks to month. I have a problem with a battleship game im trying to finish. Basically I have the random and custom boards working, the function to prevent overlapping and placement off … | |
I have a .wmv file which is 3 seconds long. I want it to play at a certain part of my program. Any ideas? | |
Hi , i use enable choice function to enable or disable the ADD button for data grid. now when i tried to use the code for update button its not working.. need to add cmdUpdateEntry. here is the code..[CODE]Sub EnableChoice() ' disable to remove button ' check to see if … | |
I have to write a program to check for balanced HTML tags here is what i have so far. My problem is it is not working right. My stack implementation is fine, i believe my problem is when i am looping through the string ( lines58-70 I marked with comments … | |
[B]****Output[/B] There were 305 birds in this list. Species: Snow_Goose Number: 305 There were 567 birds in this list. Species: Canada_Goose Number: 567 There were 4 birds in this list. Species: Tundra_Swan Number: 4 There were 31 birds in this list. Species: Wood_Duck Number: 31 There were 60 birds in … | |
I dont know shell scripting, It will be great help if someone help me in writing the script for below requirnment Requirnment: I have a file in which sql quires are written.I have to replace content of that file. sql file looks some what like below [CODE] #partial content of … | |
I was trying to input an array of strings using pointers but failed. Here is the code: [CODE=C]int i=0; char *p[6]; //array of strings for(i=0;i<5;i++) { gets(p[i]); // input string } for (i=0;p[i];i++){ printf(p[i]); // print string printf("\n"); }[/CODE] The problem is that each time the first for loop executes, … | |
HELLO. THIS IS MY CODE.. WHY HAS THAT ERRORS..I HAS TRY MANY SOLUTIONS, BUT IT CANT WORK... PLS HELP ME IMMEDIATELY.. TQ "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\integombmds\updateCurriculumCorrect.php on line 190" BELOW IS MY CODE: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … | |
Please help me to write c program in order to calculate value as below: 1 + 3 + 4 + 6 + 7 + 9 + 10 + ... My Email: [snipped] [CODE][/CODE] | |
I'm trying to make a deck of cards to use in a blackjack game but I'm having problems. [CODE]#include <stdio.h> #include <math.h> #include <string.h> main(){ int i; typedef struct { int rank, suit; } cardtype; cardtype deck[52]; cardtype hand[5]; char *rank[13] = {"ace", "Duece", "3", "4", "5", "6", "7", "8", … | |
Hey everyone, I'm trying to figure out how to convert from an Integer or a Double into a string. I want a string variable to print out on a command line. Thanks for any help. - [B][I]WolfShield[/I][/B] | |
Hello, I had convert my program from vb6 to vb.net, how come there is a error when i debug?? [url]http://img51.imageshack.us/i/debugerror.jpg/[/url] Pls help me, URGENT!!!!! | |
Hi, I want to ask how to add/insert new row/record and it show at the top in datagridview. i don't want the new add record at the bottom but i want it at the top. I mean,the current is at the top in datagridview. i'm adding the new record is … | |
I am designing my own site to learn English words. Attached is the image of my DB design. Can some one suggest/direct me to design the DB more perfectly? | |
Hi All, Im new to threading and forms and really bad at API. Jonsca pointed me to Backgroundworker because my original problem was to constantly check if a window is open. If it is open, terminate my program. I failed at that so I tried Hotkeys. The problem is: My … | |
I need to write a program square that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. For example if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form … | |
Hi everyone, I have been a long time forum viewer but first time poster. I am really struggling with this project I am working on. I created the three functions but they are not being called when the input matched the else ifs. I really don't understand this problem. I … | |
Guys, i have a question. Is it possible for datagridview to be use for a time-in, time-out program? | |
i am trying to write a simple webserver which serves 1 htnl file but i dont know where i am going wrong i am not able to read the file any suggestions ? [CODE] listen(sockfd,5); clilen = sizeof(cli_addr); newsockfd = accept(sockfd,(struct sockaddr *) &cli_addr, &clilen); if(newsockfd < 0) error("eror on … | |
I am supposed to write a program to output Pascal’s Triangle. Ask the user to input the number of rows of the triangle to display. Also output for each row, the sum of the elements of the row, and show that it is equal to 2n, where n is the … | |
Hello everyone, I am having some problems with my code and allowing it to do what I want. I need within main to have the account balance from my class to be allowed to change value through "transactions" adding negative numbers for a withdraw and positive numbers to put in … | |
hi, i want to ask about keyevent when keypress on form load in a function. what i want is when i click "F2" then the key of "F12" and a button is enabled=false. Anyone, please help me..:?: thank you. | |
hi, i need help with this: Assume that your computer has the very limited capability of being able to read and write only single-integer digits and to add two integers consisting of one decimal digit each. Write a program that can read two integers up to 30 digits each, add … | |
I'm writing an Observer Pattern program that uses an UpperCaseMonitor subject or concrete subject to monitor when there is an uppercase letter in a line of text entered by the user. Everything seems to work fine until i try to access the state changes to keep count, store, and print … | |
Alright, I suspect there is already a solution here somewhere on the forums but I'm not quite sure I'm searching for the right terms so I hope you dont mind me asking the question anyway. My goal is to make a constructor for a class called building. instance variables are: … | |
how can i zoom an image inside a picturebox? and i also want to know how can i make a picture inside the picturebox draggable while at the same time, it can be zoomed in and out. my goal is to crop an image inside the picturebox and i can … | |
I have this code for a hover effect, it was working, but now won't. jQuery is working, but events from jquery aren't... [CODE] $(document).ready(function () { $("#logoimg").hover(function () { $("#logoimg").attr("src", "Media/imgover.png"); $("#logoimg").animate({ width: 420 }, 300); }, function () { $("#logoimg").attr("src", "Media/imgout.png"); $("#logoimg").animate({ width: 400 }, 300); }); });[/CODE] | |
I am trying to write a script that will get TOP ten values from a Table of a certain column. Here is my code.. [CODE]<?php include("../inc/db.php") $data = mysql_query("SELECT * FROM table ORDER by rank DESC LIMIT 10"); while($row = mysql_fetch_array($data)) { echo $row['id'] ; echo "-----"; } ?>[/CODE] Here … ![]() | |
Hello! I am beating myself up here. I use [CODE]include "header";[/CODE] on all pages, at the top, the header contains everything within <header></header> on a html page. But should i use [CODE]session_start();[/CODE] inside the header or before i include header.php on all pages? The session on my website logs out … ![]() | |
[CODE] /* Programmer: Date: March 30th, 2011 Filename: DiceGame2.java Purpose: Java program that lets the player roll 5 normal 6 sided die. The player gets to choose which of the die to keep or which to reroll - explains it in messages to the player. Reroll the selected die not … | |
Hello, Could someone help me with this one? I have developed a small application. It has a MDIParent form on which the other childforms are displayed. I have a Panel on the MDIParent on which there are buttons to call up the MDIChild forms. Now my issue is, when anyone … | |
Hi friends i have to present a paper with topic "E-mail Security" for that i have to know some thing about "Hacking emails and today's technology in it" But i didn't found any good resource.Will anybody help me.please | |
Hey, So I've got these instructions for a piece of work, but I don't understand what it's saying, there are prototypes for functions but like I said, I don't understand them. [CODE]typedef struct BigInteger* big_integer_t; // so I know typedef allows you to assign different names to existing types, but … | |
I have a ul and I would like to animate each li in descending order, and I'm having no luck on this. my current code it, [CODE]function menuItemsIn(){ $(".ac_menu ul li").each(function(){ $(this).animate({marginTop : '0px', opacity : '100'}, {duration : 'slow', easing : 'easeInBack'}).delay(200); }); }[/CODE] It animating all the li's … | |
Hey everyone! It has been a very long time since I posted, but I have a new question for you guys. So, I made a sort of "remote-desktop" program that allows me to move the mouse from another computer. However, the mouse will move to where I want it but … | |
when i log in my pages move to home.php page,so i need how to relate home page with other pages,that the same person to get permission to access to other pages! | |
Hey there. Now Reaaaaly close to finishing my project =), had a bit of scope creep with the person we are doing the project for. uffff, yea i know... so now im saving all the details to my mysql database. like this field. "name" of the person, i would save … | |
I'm starting to have more source files than is easily managed and was wondering if it's possible to put the .java files into sub-folders of the package folder they are already in? I'm using eclipse if that makes a difference. | |
Hi, I have a frame with a combobox. the combox is editable. It should show [Select] in its text field when we open the frame but in the drop down, [Select] should not be shown as a drop down item. Now I have implemented the combobos as: combo.addItem("Select"); combo.addItem("A"); combo.addItem("B"); … | |
Im writing a program that creates matrices and what not then count different things based on the elements in the matrix. That all works fine except 1 part, dividing 2 specific numbers. What htis is for isint important because everything works fine EXCEPT that one part. Anyway, im supposed to … | |
Hi all , below is a program i have made, and i need to know the code to compare password and password1 so they are the same value and the user hasn't made a mistake, but im not sure on how to do this, any ideas ? [CODE]<body> <table width="744" … | |
Hi all i am trying to make a script which will select nth (1st,2nd blah blah..)highest record from Database. Suppose i have a table with two columns "id" and "score".And for example i wanna select the "id" of member with the 5th highest score?? I am doing this with php … | |
hello , Iam trying to add google map fuctionality in website dynamicallly. Iam sucessfull in but noe i want my map to be opened in lightbox .i have googled and found various results but of no use .any kind of help appreciated thanks ![]() | |
input [CODE=python]import math print(repr(math.pi)) print(str(math.pi)) [/CODE] output [CODE=python]3.141592653589793 3.141592653589793[/CODE] could someone please tell me what the difference between [CODE=python]repr[/CODE] and [CODE=python]str[/CODE] is as the example on the documentation does not help as they both return the same figure? surely it does something more complex? | |
I am using the following code and it's working perfectly for windows XP. The game I am creating this for is known as Dransik. What this does is when I my character gets poisoned. My program automatically cures this issue using basic macro's. The problem is my program is not … | |
I'm working on a CyberPet assignment and I'm not sure how to do the following: 'Then write an [ICODE]encounter ( CyberPet )[/ICODE] method that allows one CyberPet to encounter another and will describe the encounter by returning a String data type. Note that the method should take a CyberPet parameter. … | |
Given a word, check whether it is a simple English word, with these characteristics: Contains at least one vowel, Doesn’t contain three consecutive vowels or consonants, Vowels ‘e’ and ‘o’ can be repeated twice consecutively, but other vowels can’t. Can it be done using traditional regular expression?!! the question what … | |
I am getting myself deeper into trouble on a program I am working on. I strated out with only four errors and am now up to twelve (I am currently learning and working with six languages-c++,html,javascript,PHP,SQL,and c#). I think my languages are running together! This program is from a textbook, … | |
Is it possible to create a microsoft access database (mdb) file through a java program? and how to register the thus created mdb file to ODBC center? thanx in advance | |
Hy! I want to improve the design of my windows application.I've searched a lot on google but i couldn't find anything good. Can everyone please tell me some web addresses or maybe turorials were I can find stuff about the design of a windows application?Something like a special form for … |
The End.