199,114 Archived Topics
Remove Filter ![]() | |
OK, so I'm finally transitioning from VB6 to VS 2005 and it is excruciating. I do a lot of db programming in VB6 and Access 2003 and just trying to connect to a table in VS2005 has taken me several hours. I finally could read data from a table and … | |
i would like to add graphics to to the "8 queens problem" with a 8*8 grid colored in black and white with the 8 queens placed on the board and moving them using the arrow keys is that possible plz help me it is counted for my annual exam i've … | |
[code] class Movie{ private: string director,title,genre; public: Movie(){ director="";title="";genre="";} int main(){ Movie a();} [/code] I am having problems with my default constructor. my program compiles but it gives me a warning "warning C4930: 'Movie a(void)': prototyped function not called (was a variable definition intended?)" and if i try to run … | |
Don't know if anyone here will be able to help me - but here I go. I'm reading [i]Beginning Game Design[/i] by Jonathon S. Harbour. In a chapter on DirectSound, the author says to go the DirectX SDK, and then go to \samples\c++\common to get four files (dsutil.h, dxutil.h, dsutil.cpp, … | |
Hi I want to create a login screen which asks for username and passwor with change passsword facility. My idea is to store username and password in a php file and update them. Can anyone please tell me how to update a php file from another php file.. Thanx in … | |
Hi all! I've been searching the internet and various C++ books for quite some time now, and I appear to have reached a brick wall. As suggested in a given algorithm written by my professor, during input validation, if the stream goes into failure, I am to "reset cin" followed … | |
[code=java]public class Formal2{ String name; double longitude; double latitude; double distanceFrom; public double getLongitude(){ return longitude; } public void setLongitude(double longitude){ this.longitude = longitude; } public double getLatitude(){ return latitude; } public void setLatitude(double latitude){ this.latitude = latitude; } public String getName(){ return name; } public void setName(String name) { … | |
[code=c++] #include <stdio.h> #include <iostream> #include <string> #include <vector> using namespace std; vector<string> g_split_string(const std::string& str, const char c) { vector<string> v; cout << str << endl; string::const_iterator s = str.begin(); bool flag = true; // continuous c while (true) { string::const_iterator begin = s; while (*s != c && … | |
Hello, I am a student. In my Java class we are learning about classes and objects this week. To me this has been very difficult. I have written the following bit of code for the program but I cannot get it to run. The piece of the program is designed … | |
I am doing the following process using forms and javabeans: 1. User enter data using a HTML form 2. The form is submiited to form handler for validation using Java bean. 3. If validation is ok data will be inserted into the appropriate table. When tested data entry and validation … | |
I cannot find documentation of this anywhere. I am assuming from context that this goes a id lookup of a dom object and returns the object. Is that correct? If someone could point me to documentation of this, I would greatly appreciate it. Thanks, | |
the program works and all but i dont want my qts,dms,nks,pns to be in a decimal form i keep changing it but then it doesnt wotk can anybody help me pleasee i really appreciate it am not sure how to improve it..thank you so much.... import java.util.Scanner; public class Program1 … | |
While trying to run someone elses example code, Visual Studio 2005 never produced an executable even though the build process was successful. Do you have any idea why this might be? | |
-------------------------------------------------------------------------------- I am trying to do a program that will use a function to search a string for an occurence of another string. Can someone please tell me what is wrong with this? [CODE]#include <iostream> #include <cstdio> #include <cstring> using namespace std; void replaceSubstring(string, string, string); int main(){ string string1, … | |
Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS" I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure … | |
i have made walls for my 2d topdown view game by using pictureboxes.... but the player1 must move in the map but when it hits one of the walls it must not pass through.... the .Top .Left .Right .Bottom do not work as they take the whole forms width or … | |
Hello(repost)- I am reposting because I didn't get the answer I needed. My teacher gave us this problem in a lab and I need help with it. Basically, he wants us to write an algorithm to count symbols. The user will provide anywhere between 3-10 symbols and then an initial … | |
Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public … | |
hi, i'm new in this site.. i'm working on a airplane seat reservation program.. we were asked to design a program that chooses the users' desired row number and the desired seat number (or rather in this case, seat letter)... here's my code [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void main() { struct … | |
hey im just wondering like how would i make it die when its not application/ocet-stream? [CODE]$ip = $_SERVER['REMOTE_ADDR']; $files = $_FILES["file"]["tmp_name"]; $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } … | |
Hello, i have rather curious question, i have an array of integers, but i need/want to put them as a single strings which separates the rows with newline characters... does anybody have any idea on how to create a string from an array of integers? please, and thank you! | |
Create a class in C++ name Height with the following Data members Feet Inches The Height class presents Height in Feet and Inches. For instance, Height (4, 3) means 4 feet and 3 inches. The Height class you will design should have the following features. Constructors Class must have 1. … | |
I need to write a program that runs in the background without a gui window or a console window. It also needs to recognize when a key is pressed. Is there any way to do that? And if yes, then how? Any and all suggestions would be great. thanks. | |
I am having a sort of an issue with something. I am writing a script where, the user inputs some information in a form, and based on that form, a new file is created. The file which is created will actually become a webpage of .php type. The problem I … | |
ok i kno wthe other thread i made was stupid but this one actually has use, first off how can i code a button to add a row to a database and make the row a yes/no so it will show as a radio button on the form and stay … | |
I am trying to write a program that will flip a coin 100 times and count the number of times it lands on heads as well as the number of times it lands on tails. I have a function, flip, that returns 0 for tails and 1 for heads. When … | |
Hey, Is there anyway to control a volatile number of objects (don't know if I'm using the right term here... I mean when you don't know how many of an object you're going to have at any one time), like bullets in a shooter. If you have a bullet class, … | |
Hello, I have been stuck on this for awhile, and can not seem to get it to work exactly correct. I am trying to read in a file ("in_text.txt") and print out it's contents to the screen for now (eventually i will manipulate the data with a block_cipher class). Here … | |
Hi All, I am having this issue and don't really know a good way to overcome it. I have a main form. With a click of a button another form is created. For the example let's just say it has a simple text box. You type whatever you want in … | |
Hi, Good Afternoon to All. Need Some Help Regarding file saving on server. I am developing a Client Server Architecture using VS.NET2005 and i want to Save All files to Server only. But i am not able to get hw can i achieve this? Can anybody help me.......? Thanking You..... | |
![]() | Say I have an infinite loop, and I want to start over or terminate depending on what user inputs. [CODE] while( 1 ) // start the inifite loop { printf( "Enter your number: " ); // prompt scanf( "%d", &operand1 ); // store user entered number into operand1 if ( … |
Hi everyone, I want to delete uploaded files from the server. here I am not using database please check my code and suggest me any changes Del.php [CODE]<?php $jpgdir = "uploads/"; $file=$_REQUEST['file1']; echo $file; //echo $jpgdir; // Open a known directory, and proceed to read its contents if (is_dir($jpgdir)) { … | |
i want sample code with Html with Ms Access.....i want urgently,, | |
please help us in getting information regarding working of internet browsers(in general IE or Mozilla etc).... API's involved.. we want to develop a server tool that monitors and logs the users internet activity such as sites visited, on client machines in LAN. | |
Im creating a slot machine program and used the kbhit command to stop the reels. Right now im tryn to change how the program works instead of stoping it all at once i want the reels to stop one at a time (everytime a key is pressed one reel would … | |
Introduction Reverend Zeller developed a formula for computing the day of the week on which a given date fell or will fall. Suppose that we let a, b, c and d be integers defined as follows: a = the number of the month of the year, with March = 1, … | |
Hi there I am writing a simple while loop which terminates on the condition that a certain value is found, as follows [code] std::string question = q.quest().que(); std::string answer = q.ans().answer(); std::string graphic = q.inf().info(); std::string english1; std::string english2; std::string arabic1; std::string arabic2; while((answer != english1) || (answer != english2)) … | |
ok people i wrote this code myself. i just need your help so this program can accept any digits and print the decimal equivalent. i worte more than i needed too because i wasnt so sure how muchi needed. i dont think it works very well. i tried 1101 and … | |
Hey all, first post here and as im sure once i ask my question.. you will all know that i am very new the shell scripting. I spend all of time in php, not shell. I need to figure out a way to see if a shell varable has a … | |
Hey guys, I just have a simple (?) question. What difference is there, if any, between [inlinecode]cin[/inlinecode] and [inlinecode]std::cin[/inlinecode] (for example)? If the latter is better form, why is it so? | |
Okay, im trying to write a simple calculator. Heres my code: [CODE=VB]Public Class Form1 Dim value1 As Double Dim value2 As Double Dim sign As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = " " Then TextBox1.Text = "1" Else TextBox1.Text = … | |
Input an integer containing only 0’s and 1’s( ie. “binary” integer) and print its decimal equivalent. {hint: use the remainder and division operators to pick off the binary numbers digits one at a time from right to left. Just as in the decimal number system, in which the right most … | |
i m trying to terminate a thread when it is executing . could anyone help me how to go about this... thanks, aravind | |
Hello!! I have an array filled with figures stored in an input file. My program has read the input file, and filled the array with the contents. I also have a random number generator. I have made this make 2 random numbers between 0 and 1 at a time. I … | |
Hey guys, recently I started playing around with pygame. Right now im making a little orb move when you hit a key. But its stuck with the image loading! [CODE]background_image_filename = 'C:\\orb\\backroundorb.jpeg' sprite_image_filename = 'C:\\orb\\orbsprite.jpeg' import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), … | |
Hello All! I am running AIX4.3 UNIX OS. I am developing using the C-Programming Language. I have inherited code which creates a dialog box. [code] dialog(box_height, box_width, position_x, position_y, "message")[/code] The requirement [B][I]now[/I][/B], is to place a list of say numbers in the box and grow it dynamically. Problem is, … | |
[B]RE:Google Analitcs[/B] Hi gang, I'm new to PHP... as you will probably be able to easily recognize by my following dialog. ;-) Anyway... I am taking over a website written in PHP with dreamweaver CS3. It has a seperate footer.php file in a sub directory and I believe this makes … | |
I'm relatively new to programming in wxPython and I have been trying to put a BoxSizer within a wx.Window. This only results in a small square (which is the panel within the BoxSizer) appearing in the window. Could somebody please tell me what I'm doing wrong? Sample code: class TestPanel(wx.Frame): … | |
Is there a script I can put on my webpage that will create a search bar so people can type a name to match it on the current page in my website? It will be exactly like the finder search bar that comes with your browser window, IE; click edit, … |
The End.