199,114 Archived Topics
Remove Filter ![]() | |
[code=javascript] <SCRIPT language=JAVASCRIPT type=text/javascript> <!-- /*Callout: Here the image objects are stored in an array.*/ var mySlides = new Array(); mySlides[1] = new Image(); mySlides[2] = new Image(); mySlides[3] = new Image(); mySlides[4] = new Image(); mySlides[5] = new Image(); mySlides[6] = new Image(); mySlides[7] = new Image(); mySlides[8] = … | |
Hi this is scorpionz I have a registration form that is created in PHP, now I am using mkdir.... to create a folder with name that login name entered by user, so no duplication is possible, now the I need some guidance code to improve the restrictions, like No Other … | |
Has anyone tried and succeeded in Inter JVM method calls within a single machine. What I mean is I have two separate applications running on the same machine using two JVMs. Can they communicate and if so what are the related packages and classes. antaryami | |
I have written multiple streams of data to a file the format is like this [CODE] J|1|2|3|4 [/CODE] that would be 1 record and there are more then one record in the file my question is how do i read that data in, deserialize it, extract it and assign each … | |
I have a base class called ModelFile I have derived classes called ObjFile and VtkFile that I would like both to use << from ModelFile. However, since << is an external function, [code] ostream & operator << (ostream &output, const ModelFile &Model) { output << "Num Vertices: " << Model.NumVertices() … | |
I am creating a tetris-like game. I have decided to use coordinates (x,y) along with a dictionary. Here is a part of the dictionary: [CODE=Python] gameTable = {(-5,10):0,(-4,10):0,(-3,10):0,(-2,10):0,(-1,10):0,(0,10):0, (1,10):0, (2,10):0, (3,10):0, (4,10):0, (5,10):0, (-5,9):0, (-4,9):0, (-3,9):0, (-2,9):0, (-1,9):0, (0,9):0, (1,9):0, (2,9):0, (3,9):0, (4,9):0, (5,9):0, (-5,8):0, (-4,8):0, (-3,8):0, (-2,8):0, (-1,8):0, (0,8):0, … | |
Basically what my program does. It has one main. It has one function. The function is: [CODE]int humhum (unsigned long x, unsigned long y) { unsigned long res; printf("Enter an integer for x:"); scanf( "%ul", &x); printf("\nEnter an integer for y:"); scanf("%ul", &y); res = x ^ y; } [/CODE] … | |
I am trying to solve a typical 0/1 knapsack problem (using greedy algorithm). In this problem I have to sort a structure consisting of 2 ints (one that contains the value and their corresponding amount I have to minimize the value to get `n' amounts so i need to sort) … | |
Hi, I need to do some sorting of the XML file. First, group the group_1 first and then sort those group_1 block by SORT_ID and Salary. Second, group the group_2 and then sort those group_2 block by SORT_ID. I just try the below and it works if the XML only … | |
hi everyone, I'm trying to write a program that calculates the the fourth sqrt() of an int ..., can someone help me thnxx | |
Hi, this is my first post here so I am not quite sure how to enter codes properly, but I will do my best to explain my problem anyway... Suppose I have a new form (Form1), and I insert a combo box (ComboBox1), and the items for ComboBox1 are 1, … | |
Hi all, I have an assignment to hand in tomorrow for programming and would appreciate any help that is given. I have done a couple of years programming with VB but java is like on a completely level compared to it. Ok, so basically I have to program an application … | |
I am a bigginer in python and even programming. I want to use python in my thesis for reading and writing large size data. I have a little sample of code which access which runs over the lines and reads each element on a line. [ICODE]def get_site_only(pat): newpat = "" … | |
Topic... just wondering if it would be friend or pointers in the main or something else... | |
Hi! I have the following code: [CODE=asm] mov al, 5d neg al[/CODE] When it executes, CF = SF = AF = 1 Ok, I think I understand why AF (number is bigger than 00001111b ?), SF (most significant bit is now 1 not 0) But what I don't understand is … | |
How can I allocate a 2D array? (on the heap) It needs to be dynamically allocated because the values of rows and columns aren't known. | |
please can any body tell when a new OPERATING SYSTEM kernal works then how it reads the hard disks .Is any body is interested in operating system developement. We are trying to make an OS which is independent in nature .Not UNIX type or WINDOW any body interested can send … | |
Well I'm about 1000 lines of code into my first program. After having recently "compartmentalized it" into small functions for readability's sake, I now find myself passing upwards of 8 or 9 variables into them. As I'm thinking of how the program will develop, I realize I'm probably going to … | |
I saw a little tutorial on placing a RSS feed in my website. I followed the instructions to the T...but still not working. Is there something special I need to do. Here is what I did: I went to Yahoo and picked the news sites I want on my sites...I … | |
What would be a good tutorial for Hangman. I have an assignment where I need to create the game using five classes. I found a couple online but they are incomplete. I'm a beginner to c++ and I would appriciate any help or guidance from you guys. Thanks in advance … | |
Hey I am a bit confused on how the Recursive heapify process works. So tell me If I have this right: It first goes to the left subtree until it reaches the last Node, it then starts the tickleup process and continues like that. It then goes to right subtree … | |
Is there any thread or resource which can list the books related to game developement? Be it any langauge (C++/Java/Flash/Directx) I tried google but results are satisfactory.Can anyone help with pointers. Thanks in advance. | |
I have to write a C++ code that computes the greatest common divisor of two numbers. When Declaring x, y, temp, remainder as a Integer is this right? Or can someone help me in the right direction. [ICODE]int x = 0; int y = 0; if (x < y) then … | |
ok lets say I have my code file in my web server and any one can call that functions in that file ( assuming they know the name of the functions ) but they can't see the actual implementation in other word they can use the implementation but they can't … | |
I did make my dll file out off those two files dll.h [code] #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else /* Not BUILDING_DLL */ # define DLLIMPORT __declspec (dllimport) #endif /* Not BUILDING_DLL */ DLLIMPORT void welcome(); class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); … | |
Hi How can i get a recursive function like this to work: It should find the sum, then print the sum out inside the function. [CODE] public static int myMethod(int counter) { int sum = 0; if(counter == 0) return 0; else { sum = sum + myMethod(counter-1); System.out.println("Sum is … | |
I would like to declare the type of an object based on user input. Ie. I would like to do the following: [code] string obj = //get from command line arguments if(Format == "obj") { ObjFile Obj; Obj.Read(InputFile); Obj.DoSomething(); Obj.Write(OutputFile); } else if (Format == "vtk") { VtkFile Vtk; Vtk.Read(InputFile); … | |
i have added a function to make selection sort to my code but i can't adjust it. i need that someone try the code and try to adjust it so can someone help me to adjust it plzzzzzzz....and try to help me in sorting in an ascending order by using … | |
the question description: when I read a jpg file, there is no any problem. but when I try to read a mht file, the service method was run twice. why? Can anyone give me a satisfying explain? Thanks first in here. [CODE]public class ShowImageServlet extends HttpServlet { public void service(HttpServletRequest … | |
I attach a file what was send by Shaik Akthar. I work with it a new access file. He use Table, I use querie. But it not work.I modify some code like: MSFlexGrid.FormatString = "<DATENOW|<NAME|<DIAGNOSIS|<REMARKS" MSFlexGrid.FormatString = "<Student ID|<Student Name|<Jamal|<Roll No" Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\DB2.MDB" … | |
OK i'm trying to make a program that saves the records in a file... this is what i got so far and isn't working.. Thanks in advance [CODE]Program AccManager; uses crt; Type T_Account= record User:string[16]; Password:string[12]; Rango:byte; END; Arc_acc= file of T_Account; var Acc:T_Account; option:byte; l,m:integer; Acu:Arc_acc; {**********Preparar o Crear … | |
I am writing a method (public static void reverse(String word)) that accepts a String as an argument, then returns the word in reverse order. The easy way would be to just have the recursive method print each letter but that wouldn't be my instructor. He wrote the main and the … | |
Dear friends I want to create some projects real time projects so that i am well equipped in making cutting real edge projects .....could you please submit some websites which explain some real code like making some text editors in C++ or C(text editors is just an example)I know the … | |
hi im trying to check if two strings are equal but ignoring the vowels so that "hello" can equal "hallo" or even "hll". i have a recursive defination for looking at the vowels but i cant get it to work for ignoring the vowels. at the moment i get an … | |
Hi Everyone I have been given the task of designing a database for a volutery organsiation and i have been give the following information as basis to design the database.The following information below is example of a paper record •Volunteer details Volunteer ID Name Telephone Address Services provided by volunteer … | |
Is it possible to establish a jdbc connection within the jar. The jar I will be using has the database file. For eg. The database used is sqlite. (uses file). The file is been archieved with the jar. How to initialize a jdbc connection with the db file in the … | |
Hi everybody!!! I am a new student of programming. I received a project from my IT Prof. making a snake game. So far i did some of my simpliest snake program. I did it for almost 2 months. Now my problem is to make a level everytime the snake eats … | |
I have 2 examples for inheritance in Java The first works but the second not. I wonder why. Does the extended class must implement constructor with [B]super()[/B] [code] class Counter { int i = 0; public Counter() { i=1; } Counter increment() { i++; return this; } void print() { … | |
I have this code. But it's not working. Please give me some code in PHP, so that I can attach a file using an HTML form and send it to some email address. The file type (I want .zip only) and size (I want 2 MB max) needs to be … | |
hi, can someone help me translating this functions from c++ to delphi, because i not a c++ coder: here you go: [ICODE] bool IsAnubis() { PROCESSENTRY32 pe32; pe32.dwSize = sizeof(PROCESSENTRY32); DWORD PID = 0, PPID = 0, expPID = 0; HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if(Process32First(hSnapshot, &pe32)) { while(Process32Next(hSnapshot, &pe32)) … | |
Hi everyone, how can i get the updated number of rows from MySQL? Because i need the syntax to do the calculations on the number of inputs, thanks.... | |
i add two numbers but wen it cums to displaying the res by using service 2 of int21,,,,i get the res in hes,,i want same in dec,,,i meam like add 02,01 dispalys a res which stands for heart symbol so that i get a heratsymbol as a res instead of … | |
hi, would anyone please point out why my data don't go into the database table? it is tested successfully connected to the database and the table maapa thanks [code] <?php mysql_connect("localhost", "root", "") or die(mysql_error()); echo "successfully logged in </br>"; mysql_select_db("maapa") or die(mysql_error()); echo "successfully connected to database maapa </br>"; … | |
:) hai can any one help me that how we can display values in a repeater from the database in c# | |
Hey guys =] First I just wanted to say I am excited to have found this forum, it looks like the members are very helpful and friendly! Hopefully I'll be able to contribute what I can but I'm not very knowledgeable :P Anyway, I am to create a grading program(utilizing … | |
hi guyz.. by the way im using crystal report 8.5 in my project. i have already a report but the report i have is to diplay the viewer.. i want it to automatically print it, without preview the viewer.. what code shall i used? shall i use crytal report? or … | |
Hi guys, im trying to call a function with in another and for some reason i am getting In function `int bDisplay()': `move' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.) In function `int move()': `int move()' used prior to … | |
I am taking a web design and development class and we have been thrown into MySQL along with java without much knowledge beforehand. Was wondering if anyone could help me with understanding how to query the database and update entries, as I am confused on how to accomplish this. I … | |
This is supposed to draw a line through the JButtons when square9 is clicked. It doesn't work but there are no errors and I don't see what the problem is. Ezzaral gave me the code to draw the line earlier. Obviously, the winning squares aren't always diagonal, so I will … | |
#include <iostream> ; #include <fstream>; #include <string> ; #include <iomanip> ; using namespace std ; int main ( ) { string name; int m1 ,m2, m3; float avg; ofstream outfile("mark.txt") ; cout<<"Write your name :"; cin>>name; cout<<"input 3 marks:"; cin>>m1>>m2>m3; avg=m1+m2+m3/3.0; cout <<showpoint << fixed << setprecision (2); cout<<"ur average … |
The End.