199,114 Archived Topics
Remove Filter ![]() | |
I am trying to find the average for the 10 different integer input from user and then to fine numbers above the average and below the average, I dont know what is wrong the code below executes and i am able to input 10 different integer but after that the … | |
Hello, I was wondering if it would be possible to swap an image for another image at a certain time. This would occur when the user's system time hits say 6:00pm then it would switch to a different image. It would have to stay at this same image until say … | |
how would i write a function that parses a hex number as a string into a decimal integer? the following header should be: int parseHex(const string &hexString) | |
Hi I need help? please In my site i have smth like newsletter system. Logged in users can post information about their services and this information is shown in my site. I'd like to send such information (posted by users) to the mails of the other member-users of my site. … | |
Hi , Is there a way that I can draw lines or circles etcc..(graphics) onto windows screen? Please let me know.Sample code would greatly help. | |
Hello all, Let's say I have a vector like so: [CODE]vector < char *>rlist;[/CODE] and [CODE]char* word;[/CODE] Let's say char* word was pointing to a 9 character word, like "statement". If I were to do [CODE]rlist.push_back(word)[/CODE] I would get a seg fault. I believe this is because push_back expects a … | |
Hey everyone, I'm new at this.. so please bear with me. Anyway, I'm really confused. I'm supposed to convert the first character of the String firstName to upper case. Problem is... I have no idea how to :-/ I've done so much research and reading and still nothing. Please help … | |
I really want to add sounds to my programs, but all of the codes I use fail! I am using an empty project in visual c++, if anyone could find a snippet that would work for this, I would be extremely grateful. Thanks! Here is my current code that doesn't … | |
Hello, How to generate random non-repeating numbers? | |
i need to add code to the form using code like the Controls.Add(). but to add code not a control. any ideas. | |
I'm developing a 3D Board Game based on the World of Warcraft miniatures board game. I don't know what's wrong ... the game runs and the system is like this I have a model that can move in a map through Cells I made a procedure so you click and … | |
my assignment is to retrieve data from a txt file and output how many tests were input, average of all the tests, and then list the letter grade beside each text what i have so far: [CODE] private StreamReader strRead; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs … | |
This is a simple code-snippet that can be used to parse dates with javascript. It's setup to use European dates (dd.mm.yyyy | dd/mm/yyyy | dd,mm,yyyy), but it can easily be setup to use american dates as well (mm/dd/yyyy etc), to do so simply replace "$1" with "$2" and "$2" with … | |
Hi, I am trying to code a game program in js that will allow the user to click on a "Roll Dice" button that calls a js function to randomly display various images of dice. My problem is that I cant find a way to display the images where I … | |
A company has several employees and projects. Each employee may be working on several projects. Design a database to hold information about projects and employees, choosing some sensible sample fields and data. Write an SQL query to display the number of women and the number of men working on each … | |
-------------------------------------------------------------------------------- HELLO FRIENDS... I M MAKING A GAME WHICH IS CALLED "RAMP GAME". THIS GAME CONSIST OF 1) A BALL, 2) A BASKET, 3) SOME LINES ( which can be place anywhere by the user with in the boundary walls). HERE IS TEH LINK.... SNIP u can see what it … | |
Hello my name is steve & im trying to use ajax to change the content in a div when you click on a nav button (6 buttons in nav)...... I build out side using a Ajax book and it did not work...... deleted the project and im trying to start … | |
Hello, I am trying to create a time conversion calculator and I think I have it down but I do not know how to get it to display just one answer per selection. Like I can select 1 and it shows results for 1 and 2 . . or I … | |
Hey guys, I am writing an Active Directory Tool and I created a Dictionary<> that iterates through all of the available attributes from the LDAP server. The Keys are the names of the attributes (displayname, samaccountname, gn, sn, etc), the TValues are the associated values to the keys. I am … | |
I need to parse an assembly program. I have no problems parsing a group of instructions or a group of instructions with one loop. For example: [CODE] LD R2, 0(R1) DADD R4, R2, R3 SD 0(R1), R4 DADDI R1, R1, #-8 DADD R2, R2, R4 or Loop: LD R2, 0(R1) … | |
ive got most of this figured out. the problem is then when i run, instead of my methods iterating through my array list, they simply reuse the same data set over and over, giving the same results. if anyone can help, it is appreciated. [CODE] /** * Write a description … | |
What is the method to remove dupplicate items from an character array?? A Sample Program is Here which take two arrays merge them and sort them please include some lines that should remove duplicates from an resulted array?? [code] #include <stdio.h> // A simple bubble sort void sort(char data[], int … | |
hi i have a WinForm with DataGridViewControll. one of the datagrid columns is a DataGridViewCheckBoxColumn. how can i Check or uncheck the Checkbox column of a certain row ? | |
Hi, I claim First Post! :) How do we access class names? For example, this code: [CODE]<td class="the-title" align=left>The Title!</td>[/CODE] If you want to parse html and find the title element you can find the class name "the-title". That's what I am trying to do. How do I do that? … | |
Hello Guys, I am trying to code this assignment below but I can't seem to get the running total stored for each user that I have listed below(A, B, E). Can someone guide me on how I can store the running total for each user so that I can have … | |
Hi, I am using 2 list boxes with 4 values in each. I want to create an action when a button is pressed on the form which will be something like this: If(value of list box1 is 1 and value of list box2 is 1) { total = total + … ![]() | |
My code: [code] printf("\n"); printf("\tSlalom Race, Version 1.0\t\t\n\n"); printf("1. Play\n"); printf("2. Instructions\n"); printf("3. Quit\n\n"); printf("Your choice: "); scanf("%d", &choice); } /* Initializes loop to begin game */ while (choice != 3) { /* Begins execution of game and Selects instructions if needed */ while (choice == 1) { printf("You are … | |
Asp . Net I have been asked to make a basic secure website with only one username and password. No one can add an account via subscription form. I don't want to know how to create accounts, only securely login with one username and password. (Keep it simple and basic … | |
hi guys im creating a dictionary which would show the word and the meaning of the word this is what i have done so far, i created a class called meaning which stores the meaning of the word [code] #ifndef MEANING #define MEANING #include<string> class Meaning { public: Meaning(); ~Meaning(); … | |
Hi, i'm facing a weird behavior in this code that i just wrote. It was supposed to read a string from stdin and just write it out. I've debugged it and for me it reads perfectly, but in the while (line 38), *p just seems to be taking weird chars … | |
:icon_smile:[B] hello everyone ! .. I am Abhinab Roy. I am new to this Place and I am very glad to be here. I am pursuing a course called Diploma in Multimedia & Animation. :(I have a exam on 17th Nov. .. and I have a problem in Javascript. We … | |
I want to be able to draw an eye for a colour inputted by the user. If the user enters the colour green,brown or blue then the eye should be drwan orelse an error message saying "not a valid colour" should be outputted [code] from graphics import * def drawCircle(win, … | |
I have an arraylist As such :- products.add( new CarsSubProduct( "FordMustang",1,12,10000 ) ); products.add( new CarsSubProduct( "JEEP",2,10,10000 ) ); I am trying to Edit just the value 12 without altering the value of the other objects but no success.When i use the set method it automatically modifies all the four … | |
HI I want to write a search for my site .I make a new panel in the left of my menue and it has a text input and an image which when that user click on it javascript opens a new window which is a php page.The part I don't … | |
I'll keep this simple for now Can a windows (7) gadget be made with python or does some microsoft type development kit need to be used? Thanks | |
I am trying to run my web project on Localhost but the browser is not able to load any of the .aspx pages whether related to this project or any other .aspx page.. The message displayed by the browser is"[B]IE cannot Display the page[/B]" plz give me the solution for … | |
Say I've written a function that will take an unlimited number of arguments and store them under different variables. Since the use is able to input any number of strings, it's not possible to give names to all the variables that might be created. So, how would I create variables … | |
This my problem>>>>if any one can solve it>>> Write a java program that calculates and prints out bills of the city water company. The water rates vary, depending on whether the bill is for home use, commercial use, or industrial use. A code of 1 means home use, a code … | |
OK... so I am pretty new to Java and need some help. I'll try to explain as best I can... I am trying to create a frame that will be a "menu frame" and then based on which option the user picks (JButton) it will then run the version of … | |
Hello and thank You in advance, I have been struggling quite a bit with this so any help is greatly appreciated. I need to add 3 global variables with an unknown amount of elements to a program. As far as I know and as far as I can find in … | |
Hi, I am create one application in which i use checkedlistbox. In checkedlist box i display all employee name and calculate id of particular checked employees. but how to check which employee's name checked in checked list box and how to compare this employee is checked or selected. Regards, shailaja | |
can anyone teach me how to do loop for the script below.. thanks in advance.. [CODE] <?php require_once('config.php'); $aid1=$_POST['Question-1']; $aid2=$_POST['Question-2']; $aid3=$_POST['Question-3']; $aid4=$_POST['Question-4']; $aid5=$_POST['Question-5']; $aid6=$_POST['Question-6']; $aid7=$_POST['Question-7']; $aid8=$_POST['Question-8']; $aid9=$_POST['Question-9']; $aid10=$_POST['Question-10']; $qid1=$_POST['qid1']; $qid2=$_POST['qid2']; $qid3=$_POST['qid3']; $qid4=$_POST['qid4']; $qid5=$_POST['qid5']; $qid6=$_POST['qid6']; $qid7=$_POST['qid7']; $qid8=$_POST['qid8']; $qid9=$_POST['qid9']; $qid10=$_POST['qid10']; // update vote counter $query = "UPDATE answers SET acount = acount … | |
Hi all... So, I am needing to sum all billable hours within a table... the problem is that it is returning rouded decimals instead... like .5 always comes back as 1 ... Here is my procedure: [CODE] Public Shared Function GetBillableTimeForTicket(ByVal SupportTicketID As Integer) As Decimal Dim conn As New … | |
im trying to add a star rating system to a website. id like to do something elegant graphically instead of just using a drop down... the javascript framework im using is mootools and i found a great rating system [URL="http://birijan.com.np/?q=mootools+star+rating"]here[/URL], but have no idea how to adjust it so that … | |
Hi! Does anyone know how can I make my own defragmentation tool in C# ? (similar with the windows one). | |
Hi, I want to write code for opening an external file or program from the C program.Could anyone tell me how to do this? Say if I want to open calculator.exe I mention the path in the program and it should open it or say if I want to open … | |
How to print this pattern use "for" ??? [IMG]http://ser1.share.ysk.cc/upload/photo/20091112/754158.JPG[/IMG] :?::?::?: | |
Hi all, I'm trying to populate a datagrid as part of a search function for my application. I've tried running my code, which gets executed with no errors but the contents ain't showing up in the datagrid. Please fix this for me :) [CODE]Private Sub Search_Click() Dim dbuser As String, … | |
Good day all Is it possible to type an exponent in a textbox or a label using VB6? I am currenltly using two textboxes, one for the base and the other for the exponent, by using the tabkey to go from textbox 1 to textbox 2. thanx. N | |
I've written a method that takes a variable number of arguments. My problem is that the method is supposed to do one thing if there is only one argument, and something different if it recieves multiple arguments. If it's one argument I'm supposed to get info from a global variable, … |
The End.