199,113 Archived Topics
Remove Filter ![]() | |
The program initially asks the user to insert the secret sentence and the encryption code (an integer number in the range 1-100). Then, the program calls a user-defined function void encrypter (char *, int) that accepts the string pointer and the encryption code. The encryption algorithm is based on the … | |
Well, I just got finished spending a couple hours looking for a solution to an issue concerning the background image. Originally, I was not able to get it even close to the manner I wanted it to work. However I have made it to a decent point. The original idea … | |
hi how can i add controls to a gridview at runtime? anyone knows? | |
hello everyone!!! i have a problem in keeping the value of my combobox, i have a form with a combobox, what i want is when i select from my combobox, it will retain or keep its text value even if i close the program, the combobox will only change the … | |
Hi all, I am student and in two days I gine exams Java. I need your help to understand the below exercise. I have to explain all the lines from class RunParent [CODE]class Parent { double value = 0; public Parent() { value = 1.0; System.out.println("Parent value " +value); } … | |
Hi There, For some reason I need my form to be submitted twice (in one go). Is there any way to do that instead of submitting once go back and submit again? My form based on PHP and Javascript... Thanks! | |
Help!! how do you do this in turboC? when i add a space it doesnt show the following output example: [CODE]char name[50] printf("enter your name: ); (user input example is: Boris Ilyanovich Karpov) scanf("%s", &name); printf("%s", name); (the output is just: Boris) [/CODE] how do i get the following Ilyanovic … | |
Hi all, I have a multithreaded program, one of the threads needs to listen for user input. I was wondering is there a way of checking for user input every few seconds or milliseconds, without having the thread hang on a fgets() function? Current I have: [CODE] while(keep_running == TRUE) … | |
hi all hope that all of u are fine : ) well i want to draw a tree [B]not a binary tree[/B] but i can't find an efficient algorithm to draw it the big problem when the tree is unbalanced Thanks ur help will be greatly appreciated : ) | |
hi i am a begginer in java and i neeed help in completing this program... | |
Hi, I am trying to insert two columns each from a different table into a single table and give that a value and i can only find insert INTO different table examples, and none for FROM different tables? I have attached the table im trying to insert into: the samples, … | |
Hey all I have this program that is supposed to output a stickfigure. I got this from my game programming elective class (which I now regret enrolling to) and the professor told us to work on it in a way that the class called "example" with the function render should … | |
[CODE]#include <iostream> using namespace std; int main() { int numbers; numbers = 2; while (numbers <= 1000); { if (numbers % 2 ==0){cout<< numbers;}; if (numbers % 3 ==0){cout<< numbers;}; if (numbers % 4 ==0){cout<< numbers;}; if (numbers % 5 ==0){cout<< numbers;}; if (numbers % 6 ==0){cout<< numbers;}; if (numbers … | |
The font size is 28px. How do i change the font size to 12px onfocus? i tried below but it isn't working. [code] <textarea name='content' style='font-size:28px;' id='content' onfocus='font-size:12px;'>test</textarea>[/code] | |
Hi i'm doing some php i make login page where i check if user put right information i redirect him/her to index.php where session starts and other things occur.But when i put right username and password it not going to index.php else it coming back to login.php again. Here is … | |
Hi. I am creating a program for class that can be used to gather statisctical data about the number of movies college students watch in a certain time frame. I have to find the average, median and mode and show this in the output. I am able to get my … | |
Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; … ![]() | |
Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; … | |
Hi all, My problem is i've got this form that submits fine but when i try to redirect it i keep getting an error. I want to redirect to another page so the user can't refresh the page and submit the form multiple of times. I've been using 'header' to … | |
I have this program I'm trying to write, a simple application with gui: a menu and a button. Whenever I go to run it, this is the error I get: Traceback (most recent call last): File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 27, in <module> app = Application() File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 14, in __init__ … | |
Good afternoon, Does anyone know whether it's possible to have more than one overloaded ostream in a class? This is for a time class that i've created however it ouputs data like this 12:12:12:AM, i'd like to use the same ostream operator to output military time 14:12:12, however when I … | |
I am new to this whole programming thing. I am currently using python 3.2. I want to get into trying to build GUI, but i can't find any programs that seem to work with python version 3.x. Should I downgrade to an earlier version of python? If so what is … | |
This is my array: pieces[2][1]=new Pawn("Bpn1"); pieces[2][2]=new Pawn("Bpn2"); pieces[2][3]=new Pawn("Bpn3"); pieces[2][4]=new Pawn("Bpn4"); pieces[2][5]=new Pawn("Bpn5"); pieces[2][6]=new Pawn("Bpn6"); pieces[2][7]=new Pawn("Bpn7"); pieces[2][8]=new Pawn("Bpn8"); pieces [1][1]=new Rook("BR1"); pieces [1][2]=new Knight("BN1"); pieces [1][3]=new Bishop("BB1"); pieces [1][4]=new King("BKing"); pieces [1][5]=new Queen("BQueen");; pieces [1][6]=new Bishop("BB2"); pieces [1][7]=new Knight("BN2"); pieces [1][8]=new Rook("BR2"); pieces[7][1]=new Pawn("Wpn1"); pieces[7][2]=new Pawn("Wpn2"); pieces[7][3]=new Pawn("Bpn3"); … | |
I am reading code out of a txt file which contains text in this format.. [text file] Name of Project Experiment One cows, dogs, pigs, horses, sheep, goats 1,1,1,1,20,10 cowweight,dogweight,pigweight,horseweight,sheepweight,goatweight 560,50.5,54.3,641.1,35.4,42.5 deer,elk, moose 2,4,5 etc... [text file] I am trying to read in the numeric values to use for a … | |
Hi all, I am currently working analysising silicon pixel detectors for the LHC at my university. One thing i have to do is to find clusters of signal in a silicon pixel detector. I have directory of macros which handles the data and getting it ready, not important. My goals … | |
Hi, I transferred a folder from server A which consists web scripts (php) to another server i.e server B. After creating the database just like in the server A, I managed to have the log in page ready. Then I exported the sql data from server A and imported it … | |
Sorry for the newbie question, but what are header files? What should they contain? Just classes and definitions? | |
I need to write a function that takes in an array of integers and an integer, checks if the sum of any of the numbers in the array is equal to the supplied integer. Any ideas would be much appreciated. | |
![]() | Hi well recently i have had people IE parents and brothers reading files on my memory stick, reading my homework personal files and saved chat history. i worked on an application to stop them. I'm fine with the password part but what i'm stuck on is if the password is … |
hello everyone, i need your help i want to create a php age that work the same as the mobile application"to do !ist" so i want to create to do liat with php and mysql but i really dont know how to start and how it is supposed to work … | |
I am still learning C# so I am sorry if I do not use the correct terminology. Here is what I am trying to do. I have the following code that I use to check to see if an instance of a form already exists, and if it does show … | |
hi, how can i change the interface background and the appearence of the interfaces in C#. for example how can i add themes to the forms in C# | |
I want to draw three circles within a pentagon in C++. I also want to give random movement to one of the circles within pentagon. Can anyone tell me the code alongwith the required header files for drawing this. regards | |
i have written the following code for an add fucntion for a linked list implementation. when i run it, it runs correctly. when i went to class today, i found i had made a mistake. my add function adds only a student data type, whereas the assignment was to make … | |
Simple assignment - create a java program to print j a v v a j a a v v a a j j aaaaa vv aaaaa jj a a v a a I'm using a 2d array rather than escape characters and print sequences but can anyone thing of a … | |
So I've just been getting into jquery, been reading some tutorials and I've found myself very confused to do with event delegation/rebinding Basically: User clicks "Show Users" result is retrieved using jquery and is a HTML forms and placed into <div id="listusers"></div> Then when they click the submit button jquerys … | |
[CODE]background_image_filename = 'sushiplate.jpg' sprice_image_filename = 'fugu.png' import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) background = pygame.image.load(background_image_filename).convert() sprite = pygame.image.load(sprice_image_filename) # our clock object clock = pygame.time.Clock() x1 = 0. x2 = 0. # speed in pixels per second speed = … | |
HI, I am currently working on a project to develop a webpage using jsp. I need to include some css properties in the jsp file. But it doesnt work even though I am not getting any errors. My jsp code is [CODE] <% String captcha = (String) session.getAttribute("captcha"); String code … | |
Hey guys, I need some help with this code I have. I'm running into several issues at the moment. 1 - I don't know what bitwise operators to use for finding the difference of A and B 2 - When the Union and Symmetric Difference calculate, the outputs aren't displaying … | |
[CODE] FileInputStream fs = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/listpass"); DataInputStream in1 = new DataInputStream(fs); while (in1.available() !=0) { String str1=in1.readLine(); StringTokenizer st1 = new StringTokenizer(str1); String node=st1.nextToken(); if (node.equals(sports[i])) { String pass=st1.nextToken(); out.println ("<b>"+sports[i]+" <b>"); out.println("**Your Required Password**"); out.println(pass); out.println("<br></br>"); [/CODE] Hi , I have a text file (named listpass in the above … | |
Hi, I just installed Tomcat 5.5 and could see the default index page (with images missing) Upon running the sample JSPs, I get the following- HTTP Status 404 - Servlet default is not available In the logs, I can see a Root Cause saying something like- "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource" Basically, I … | |
hey friends..i'm trying to make a program to find the largest prime factor of a number of 12 digits.but i'm unable to figure out that what's the appropriate variable type for that.can u guys help me... [CODE]#include<stdio.h> int main() { int c2; unsigned long nbr=600851475143,lprime=2,prime,n=3; do { for(c2=2;c2<n;c2++) if(n%c2==0) break; … | |
Alright I was given a link ([url]http://support.microsoft.com/kb/195192[/url]) along with [b]InternetSetOption(0, INTERNET_OPTION_END_BROWSER_SESSION, 0, 0);[/b] and told it should force 2 browsers in the same application to use 2 different cookies. I ran it through the code translator and got the following. [code=c#] const int INTERNET_OPTION_END_BROWSER_SESSION = 42; [DllImport("wininet.dll", EntryPoint="InternetSetOptionA")] private static … | |
I have too make an application in C that uses a dictionary. I have 54000 words in a file, on per line and I need a way to handle it. - I first wanted to keep it in an array but as it's bigger that INT (32767) I cannot do … | |
Hi im looking to echo a result of a query code i have at the moment is connections + [code=php] <?php $result = mysql_query("SELECT SUM(tablefield) FROM table") or die(mysql_error()); [/code] got no idea if this is right, i seem to have got really mixed up with this. Can anybody help … | |
Hi everyone, I'm in a situation where I would like to have a ServerSocket that listens on a specific port. However, if this port is already taken, I would like to listen on a different port. How can I advertise what port my Java program is listening on, so that … | |
Hi, i know this topic was here several times, but all threads are very old and codes from them are not working for me. So, I need to simulate mouse and keyboard events on my windows (moving mouse,clicking mouse, pushing keyboard buttons). I need to do this all from c++ … | |
Hi, I am getting the following error when I try to submit registration on my website. Am not able to figure out the issue. Any help is greatly appreciated. Parse error: syntax error, unexpected T_STRING in /home/content/t/h/i/thinkvirtual/html/includes/registration_mail.php on line 3 The code on registration_mail.php is <?php $message="<body> <div align=¥"center¥"> <table … | |
Hi everyone, We are doing our minor project. We(project team) are planning on making a [I]strategy game[/I]. If we succeed it will be somewhat like DOTA([I][U]not that great![/U][/I]). We have started learning OpenGL + SDL for graphics, boost.threads for threading, and for artificial intelligence we are planning on implementing Finite … | |
Hi, I need help. Im an new to this one. I have been into web designing for a long time. Just the designing part... I'm new to JavaScripts and PHP.. cant hey go together to create a web site that can work with the dynamics of both server sided and … |
The End.