199,114 Archived Topics
Remove Filter ![]() | |
I need help writing an anagram that test 2 strings. [COLOR="red"]os[/COLOR]: microsoft [COLOR="red"]compiler[/COLOR]: visual studio Here are some of the directions: Read the first string, then write a loop that uses an array of 26 ints to count how many times each letter has been seen. Read the second string, … | |
I used someone else's code as an example to start my game and move my character around. I understood the majority of it but there's a couple of parts I don't get. I want my character to move Up when the up arrow is pressed, but smoothly! My code right … | |
Hello I want to change date format to insert date in mysql. I tried as below code [CODE]<script type="text/javascript"> $(function() { $("#datepicker").formatDate('yyyy-mm-dd'); $("#datepicker").datepicker(); }); </script> [/CODE] but its not working form me. can anybody suggests me how to do it? | |
Hi all, I'm new here and a little flummoxed by this problem. I am working through the process of creating a notepad type program in java to get a little more experience with the language. My save functionality is not working. This is not unexpected; the part that is really … | |
I use Visual studio 2008 I use MySQL 5.1 I have created een database (test) table (table1 ) with field (Images) Data Type mediumblob size The maximum length of mediumblob is [COLOR="Red"]16777215[/COLOR] (2^24 - 1) characters I want to Check file size before save in MySQL table1. [COLOR="Green"]I want to … | |
Hi, Im guessing this is an easy piece of code, but i cant find the answer Im looking for anywhere. I have 20 files each with a different a list of numbers (not all the same amount of numbers). Each file is called data-01.txt, data-02.txt... to data-20.txt.I need to open … | |
hello i m using update pannel and required field validator is working properly but the problem is that red * dont appear with required fields after post back its stops till i enter required fields i want to see red * with that fields how can i??? | |
Hello all, I have a small helloworld program and try to run it on the command prompt. [code] public class Hello { public static void main(String[] args) { System.out.println("Hello, World!"); } } [/code] i have my file in C:\test\Hello.java C:\test>javac Hello creates a class file in c:\test\Hello.class but c:\tets>java Hello … | |
i use crytal report with vb 2008 i make a dataset with 3 field: id (number), name (strng), salary (double) and i have 2 record: 1: id: 1, name: abc, salary: 1,000,0000 2: id: 2, name: def, salary: 2,000,0000 next, i make report on dataset and when show is true … | |
I need to know the code to login into a basic authentication popup. | |
Hi I am recently trying a rating concept in php. The project is, peoples will post the images of house and ask everyone to rate it as which is beautiful home. I've placed a 5 rating stars and doing all the vote captures. But i am confused in picking the … | |
Hi all , I am trying to get input from user then convert it into specific format and hold it in new variable. here is my code [code] Dim dtmInputBox As String = "" 'Dim strDTM As String '= "" Do Until Not dtmInputBox = Nothing dtmInputBox = InputBox("Enetr DTM … | |
I am trying to make a contains method where it will search for a name using the compareTo method of the Comparable interface. Here is my problem, It will return true if found but will stay in the while loop and not end if it is not found. AND I … | |
I'll try to keep this short. I'm writing a 2D platforming engine and I had good collision detection, but I had to add a separate condition for every platform I had. Essentially the collision function compares the sides of 2 rects. Here is a code snippet of the for loop … | |
ok so i understand it's impossible to represent .01(decimal) in binary...an example i know of would be just like how 1/30 is impossible to represent in decimal 1/30 <--- always gives u .033333.....it goes on forever and i can even prove this by writing out 1 divided by 30 and … | |
Hi, I have just started python as after a chat with a friend I have discovered it would be the most suitable language for my latest project. The problem I have come across is I need a sha1 function written in python. I don't want to use the built in … | |
I've got a chunk of code that opens up a txt file with 5 or 6 lines inside. I only need to grab the first line of the txt file and put it inside of a variable. The problem is that when I use this code, instead of grabbing the … | |
Following is my url [url]http://www.teamsingapore.com.sg/content/major_games/asian/16th_asian_gamesguangzhou2010/photo_gallery/cheer_on_team_singaporeasiangamesbannercontest.html[/url] Click on the first image. then navigate through the ligthbox using 'Next' button. Sometimes the images appears distorted. Is is due to the Lightbox ajax rendering of the images? | |
[CODE]void DeleteMovie(vector<Movie> &M1){ cout << "Option selected: delete a movie from the database" << endl; string T1; int TT=0; if(M1.size()<1){ cout << ">Error: There are no movies to delete.<" << endl; } else{ cin.ignore(100,'\n'); cout << "Enter the title of the movie you want deleted: "; getline(cin,T1); for(int i=0;i<M1.size()+1;i++){ if(M1[i].Get_Title()==T1){ … | |
Hi there, I'm a newbie, and I would really like some help regarding this issue I have with my menu. First the code: [CODE PHP] 01 function public_navigation($sel_subject, $sel_page, $public = true) { 02 $output = '<ul id="sidebar_tags_ul">'; 03 $subject_set = get_all_subjects($public); 04 while ($subject = mysql_fetch_array($subject_set)) { 05 $output … | |
I'm having trouble with vectors. I have a class that I read from a file, then I insert it into a vector. It should work fine, but my compiler crashes every time. Am I not using the vector correctly? [CODE]#include <iostream> #include <string> #include <iomanip> #include <fstream> #include <sstream> #include … | |
Window Application UserControl Contain two combobox and Gridview Control . When i add this control to my form and change the value of combobox selected item then the value not get into the form But when i debug the code and reevaluate (Quick Watch it) then i get the value … ![]() | |
I'm trying to take normal, plain Jane drop-down boxes to choose a time, and replace them with a nicer DHTML version. I followed this tutorial [URL="http://www.javascriptkit.com/script/script2/dhtmlcombo.shtml"]http://www.javascriptkit.com/script/script2/dhtmlcombo.shtml[/URL] but now my buttons are stacked on each other, the selected="selected" variable isn't pre-selecting anything, and if you click on a number (5), it … | |
Hi,everyone! I have to write a program that can find zip codes. I have to read the codes from a txt. file, so i have to use struct arrays In the main program, I just have to enter any random zip code and the program should be able to tell … | |
I have a page at the following url: [url]http://streetkids.zuka.net/sandbox/map-new.html[/url] Pick a continent, select a country ( orange if in Asia, green if in Africa) click on one of the bullets and some info pops up. Works fine in FF and Safari but in IE, it works (almost) once, but then … | |
Hi everyone i was just wondering if anyone here has every created a Neural Network for predicting Sports results. i was interested in doing this however I'm not really sure where to start. if you have done something like this before could you just give me some feedback. also do … | |
![]() | Here is the script I'm using: [CODE] $(function () { $('#nav a[title=toggle]').click(function() { $('#user').slideToggle(); }); }); [/CODE] [B]However[/B], when I click the Toggle link located on the nav bar, it slides the #user up, and immediately slides #user back down. Here's the CSS for #user: [CODE] #user { z-index:1; position:fixed; … ![]() |
i have a problem getting it to display the average score of the players entered and also the player names and their scores for those that scored below the average. it works other than that. its late, ive been at this and another program for hours im probably not thinking … | |
hi people how can i create a system that creates a mailing system that allow my websites members contact each other throught a private messages . please tell me how to do it step by step , if there is code it will be fine but you can also tell … | |
I am not understanding how to fix these problems. I have placed bracket, removed brackets. Could someone please help break this down. most of my error is cannot find symbols, line 80 is unclosed character, 113, 121, 126, 127, 137,is class, interface or enum expected. I am suppose to modify … | |
i need to bounce a problem off you guys that is driving me crazy i made a php login with sessions it logins in fine then as soon as i switch pages it loges me off and i did echo the ssid out and the session id does change on … | |
Hello Friends, I've around 1000 records in mysql database. in content table im using image source url like 'img.mydomain.com' so today I've registered new domain. so i want to find replace following domain and update my new domain in image path url. so please let me know how to find/replace??? … | |
Hello, I was wandering how to save the contents of a JPasswordField into a text file, i thought to use the [CODE]getPassword()[/CODE] method, but a [CODE]null[/CODE] is saved into the file instead. Would appreciate it if I could get some initial ideas. Thanks for your time, Sam | |
Hi there. I'm looking to develop a GPS like system for mobile devices (specifically MIDP compatible devices) with a custom map and my own code to draw the route. It won't necessarily be roads, but the inside of a building so I can't exactly utilize a service like Google Maps. … | |
I'm trying to make a program where when you click a button it will retrieve each value of certain things on a webpage. I.E; [url]http://thecaconline.net/cbl/player/OoHid…[/url] On that webpage it shows Clan,Kills,Etc. I want to make it to where a Label will Say "Kills:" And another label next to it will … | |
Hi, Id like to generate a nine-digit combinations of 52 characters of alphabet (a..z and A..Z). My thought is: [LIST=1] [*]Generate nine-digit combinations of numbers from 0 to 51 [*]Use these combinations as indexes of [CODE]char[] alp={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};[/CODE] [/LIST] Iam sure its very easy.. Im learning Java for one month (once … | |
I downloaded the JDK and have started making simple applications (ex: Hello World). Is it possible to put this onto a website, and if so how do I go about doing that? | |
[CODE]System.out.println("what is your name? "); String name = kb.nextLine(); for(int i = 0; i < member2.size(); i++){ if(member2.get(i).equals(name)){ System.out.println(name + " is a member. "); break; } else{ System.out.println(name +" is not a member. "); break; } [/CODE] i did a system.out.println on the member2 arraylist (String arraylist) and it … | |
Hi guys I got a generic question (looking for a generic answer): I have to load a DLL into C++, I've been playing around all day with it trying to access the methods (I have a big manual for the DLL), so far I have tried the next: 1.- #import … | |
I've made a program that runs in the background (No gui, no console, nothing), and I want to make it so that no matter what window is active, if I hit a keyboard shortcut (Lets say, ctrl + shift + alt + space + g), it executes some code. How … | |
I am trying to make a Measurements Units Conversion Calculater on Dreamweaver with help of Javascript. THis is my first ever javascript application and need to complete it in next 6 hours. :(( I want to have a drop box containing Length, Area, Temp etc. on top. When a user … | |
Hi, Can you guys help a new gut out? I'm trying to learn how to create web based database applications using MS SQL. I'm new so I'm trying to figure what design environments I should focus on. Its very importanty that I have the ability to make the final web … | |
I am trying to search files starting with the name properties.* inside a directory and assign to an array. When I try to print the array outside the loop, it shows empty. Inside the do loop, it prints fine. How will make this array global or take the values outside … | |
The following code piece must display correct message in GUI according conditional statement. When tested using void main, I get the result as expected. However, when I test using applet the result is OK for the first if(....) statement but freezes on the second. - if condition OK then compute … | |
how do I create a 2d array, where the user choos the size of the array? or have to make this: 1 2 3 4 5 1 O O O O O 2 O O O O O 3 O O O O O 4 O O O O O … | |
I would first like to start this post with a sincere Thank you to everyone who has posted and will post help for my problem. Without you guys, I would be banging my head on my desk. Well, I got another problem. This time with a function that takes a … | |
Hi, I'm creating an rts game. I'm looking for a way to store unit data. I thought, I'll make a struct for all the required data, and make a multidemensional array of them (one dimension is the different players, the other is the units). The length in both direction is … | |
[code] //method below are codes for connecting the database private static OleDbCommand DbConnect(OleDbCommand mDB) { mDB.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0"; + "Data source= C:\Database\winbase.mdb"; return mDB; } [/code] When i debug, i have a error saying unrecognized escape sequence. I tried adding @ and \\ but i have more errors. | |
Hi, I want to give a voting option in my website. For eg. Rate "this movie " and options are good, bad.... I want to block multiple submission and my site doesn't having any login system. I am planning to store the ip address of voting computer in a mysql … | |
this is my header file.. sorted_list.h class sorted_list { private: class list_link { private: int key; // identifies the data double value; // the data stored class list_link* next; // a pointer to the next data public: list_link(int,double,list_link*); ~list_link(); }; class list_link* first; public: sorted_list(); ~sorted_list(); void insert(int key, double … |
The End.